Concepts

Artifact kinds

Dex Trove has seven kinds of artifact. They all look like “a Markdown file with frontmatter”, but a harness treats them very differently: some are always in the model’s context, some are loaded only when the model decides they’re relevant, some only when you type a command, and some run without the model being involved at all. Knowing which is which tells you what an item will cost, when it will act, and what it is allowed to do.

This page explains each kind and follows an item all the way from its upstream repository, through Dex Trove, into the harness that runs it. To choose between kinds, see Which artifact when.

At a glance

KindWhat it isLoaded whenWho decidesRuns code?In the trove
skilla folder of know-how and helpersthe task matches its descriptionthe modelif it bundles scripts (62 do)901
agenta persona with its own instructions and toolsyou pick it, or another agent delegatesyou or a parent agentthrough its tools522
instructionstanding rules for matching filesalways, for files matching applyTothe harnessno189
prompta reusable requestyou type the commandyouno9
hooka command bound to a session eventthe event firesthe harnessalways7
workflowan agentic automation in CIits trigger fires (schedule, issue, PR…)the triggerin CI, under declared permissions8
plugina bundle of the abovewhen installed (its members then behave as above)youas its members72

Counts are for the current trove (1708 items). The live numbers are on the catalog.

The whole journey

Every item takes the same path. Dex Trove never edits upstream files; it adds evidence beside them.

flowchart TB
  subgraph Upstream["Upstream repositories"]
    direction LR
    U1[awesome-copilot]
    U2[superpowers]
    U3[anthropic skills]
    U4[first-party]
  end
  subgraph Dex["Dex Trove: dex learn"]
    direction LR
    A[Adapters<br/>parse each layout] --> K[Kind detection<br/>skill · agent · hook …]
    K --> L{Licence gate<br/>redistributable?}
    L -- no --> X[Excluded list<br/>with the reason]
    L -- yes --> S[Secret and safety scan<br/>tags: executes-code]
    S --> F[Facets sidecar<br/>task · phase · role …]
    F --> T[(Trove<br/>upstream bytes + digest<br/>+ licence evidence)]
  end
  subgraph Targets["dex install"]
    direction LR
    C[Claude Code<br/>~/.claude/…]
    G[GitHub Copilot<br/>.github/…]
    D[Plain folder<br/>--target dir]
    N[Ananke registry<br/>troves sync]
  end
  Upstream --> A
  T --> C & G & D & N
  1. Learn. An adapter per source reads the upstream layout and decides each file’s kind.
  2. Admit. Only items whose licence permits redistribution go into the trove. Every exclusion is listed with its reason on the excluded page.
  3. Annotate. Dex scans for secret-shaped strings and code that runs. It also records facets (task, methodology, phase, role and more) in a sidecar, without touching the upstream file.
  4. Install. dex install writes the item into the native layout of the tool you choose. When the tool needs it, Dex adapts metadata; for example, it translates Copilot agent tools into names Claude Code understands.

What happens inside a harness

Once installed, kinds act at different moments of an agent session. This is the core idea of this page:

sequenceDiagram
  autonumber
  actor You
  participant H as Harness<br/>(Claude Code, Copilot, Ananke)
  participant M as Model
  participant T as Tools and scripts
  H->>H: session starts: sessionStart hooks run
  H->>M: system context = active agent persona<br/>+ instructions whose applyTo matches<br/>+ names and descriptions of every skill
  You->>H: request (or /prompt-name)
  H->>M: your request (a prompt expands into its full text)
  M->>M: does a skill description match the task?
  M->>H: open SKILL.md of the matching skill
  H->>M: skill body (references and scripts stay on disk until asked for)
  M->>H: tool call (edit, run a command, call a helper script)
  H->>H: preToolUse hooks run (they can block the call)
  H->>T: execute the tool
  T-->>H: result
  H->>H: postToolUse hooks run
  H-->>M: tool result
  M-->>You: answer
  H->>H: session ends: sessionEnd hooks run

Read it as three layers:

  • Always in context (pay every turn): the active agent persona and matching instructions. Keep these short.
  • In context on demand (pay only when used): skills. Before use, only a skill’s name and description sit in context. Its body, references and scripts load progressively, so a hundred skills cost little until one is used.
  • Outside the model: hooks run on events and never ask the model. Workflows run in CI on triggers. Prompts are expanded by the harness when you type them.
flowchart TB
  subgraph Always["Always in context"]
    AG[Agent persona]
    IN[Instructions matching the open files]
  end
  subgraph Demand["Loaded on demand: progressive disclosure"]
    D1[1. name + description<br/>of every skill] --> D2[2. SKILL.md body<br/>when the task matches]
    D2 --> D3[3. references/ and scripts/<br/>only when the body points to them]
  end
  subgraph Outside["Outside the model"]
    HK[Hooks: events]
    WF[Workflows: CI triggers]
    PR[Prompts: you type /name]
  end
  Always --> Model((Model))
  Demand --> Model
  PR -- expands into your message --> Model
  Model -- tool calls --> HK

How kinds compose

Kinds are building blocks that refer to each other:

flowchart LR
  P[Plugin] -- bundles --> S[Skills]
  P -- bundles --> A[Agents]
  A -- may use --> S
  A -- may delegate to --> A2[Subagents]
  A -- calls --> T[Tools and MCP servers]
  W[Workflow] -- runs an agent with --> T
  H[Hook] -. guards .-> T
  I[Instructions] -. shape every edit to .-> F[(Matching files)]
  Pr[Prompt] -- starts --> A
  • A plugin is only packaging: installing it installs each member.
  • An agent decides how to behave. A skill gives know-how for one kind of task. A good agent stays general and leans on skills.
  • Hooks and instructions constrain everything else: hooks around tool calls and session events, instructions around the files being edited.

Skill

A skill is a folder of instructions plus bundled resources (scripts, references, templates, assets) that an agent loads on demand when the task matches its description. It follows the Agent Skills specification:

my-skill/
├── SKILL.md          frontmatter: name, description (+ license, allowed-tools, compatibility, metadata…)
├── references/       docs the agent reads only when needed
├── scripts/          deterministic helpers the agent runs
└── assets/           templates, examples, images
stateDiagram-v2
  [*] --> Listed: installed (name + description in context)
  Listed --> Loaded: task matches the description
  Loaded --> Reading: body points to a reference
  Loaded --> Running: body asks for a script
  Reading --> Loaded
  Running --> Loaded: result returned
  Loaded --> Listed: task done
  • Trigger: the description. The harness shows the model only names and descriptions, and the model opens SKILL.md when one matches. A good description says what the skill does and when to use it, including the words people actually type.
  • Context cost: about one line per installed skill until it is used.
  • Safety: 62 skills bundle scripts. These are tagged executes-code and show runs code on their page. Read the scripts before you let an agent run them. allowed-tools in the frontmatter narrows what the skill may use, where the harness supports it.
  • Claude Code: dex install <ref> --target claude → ~/.claude/skills/<name>/ (user) or ./.claude/skills/<name>/ (--scope project). Claude Code discovers skills there automatically.
  • Copilot: --target copilot → .github/skills/<name>/.
  • Ananke: kind skill; activate after learning (see In Ananke Plexus).

Agent

An agent (custom agent, subagent or “chat mode”) is a persona with its own system instructions and, optionally, a tool allow-list, a preferred model and MCP servers. Upstream frontmatter commonly includes:

KeyMeaning
name, descriptionidentity and when to use it
toolstools the agent may use (e.g. codebase, editFiles, runCommands)
modelpreferred model
mcp-serversMCP servers the agent expects
argument-hint, user-invocable, handoffsinvocation details

The item page shows all of these under Upstream metadata.

flowchart LR
  Y[You] -- pick the agent --> A[Agent persona<br/>its own instructions]
  P[Parent agent] -- delegates a subtask --> A
  A -- only the tools in its allow-list --> T[Tools / MCP]
  A -- may load --> S[Skills]
  A -- handoff --> B[Another agent]
  A -- summary back --> P
  • Trigger: you select it, or a parent agent delegates to it as a subagent, which gets its own fresh context and returns a summary.
  • Context cost: its whole body, for as long as it is active. In a subagent this cost stays out of the parent’s context.
  • Safety: what it can do is bounded by its tools. An agent without runCommands can’t run a shell.
  • Claude Code: agents/<name>.md (a subagent). dex install translates Copilot tools and model values into ones Claude Code can launch; see Agents in Claude Code.
  • Copilot: .github/agents/<name>.agent.md.
  • Ananke: kind agent; the manifest’s instructions.ref points at the entry file.

Instruction

An instruction file holds coding standards that the harness applies automatically to files matching its applyTo glob (e.g. '**/*.py'). Item pages show the glob.

flowchart LR
  E[You edit app/models.py] --> G{applyTo matches?}
  G -- "**/*.py: yes" --> C[Rules added to context]
  G -- "**/*.ts: no" --> N[Not loaded]
  C --> M[Model writes code that follows them]
  • Trigger: the harness, by file glob. The model doesn’t choose.
  • Context cost: the whole file, every time a matching file is involved. Keep instructions short and specific.
  • Safety: text only; nothing runs.
  • Copilot: .github/instructions/<name>.instructions.md.
  • Claude Code: no native equivalent. Install with --target dir and reference the file from CLAUDE.md, or turn it into a skill.
  • Ananke: kind prompt, tag instruction.

Prompt

A reusable prompt file (*.prompt.md), invoked explicitly by the user. The current sources ship none, but the awesome-copilot adapter supports them.

  • Trigger: you, by name (/name). The harness expands it into your message.
  • Context cost: only when you use it.
  • Claude Code: commands/<name>.md (a slash command).
  • Copilot: .github/prompts/<name>.prompt.md.

Hook

A hook runs a command automatically when an agent session event fires (sessionStart, sessionEnd, preToolUse, …). It is a folder with a README.md (frontmatter name, description, tags), a hooks.json and usually a script:

{
  "version": 1,
  "hooks": {
    "sessionEnd": [
      { "type": "command", "bash": ".github/hooks/secrets-scanner/scan-secrets.sh", "timeoutSec": 30 }
    ]
  }
}
flowchart LR
  EV[Session event<br/>sessionStart · preToolUse · postToolUse · sessionEnd] --> HJ[hooks.json<br/>which commands, which timeout]
  HJ --> SH[Script runs on your machine<br/>no model, no prompt]
  SH -- exit code / output --> R{preToolUse?}
  R -- non-zero --> B[Tool call blocked]
  R -- zero --> OK[Session continues]
  • Trigger: the event. No model is involved and nobody is asked.
  • Context cost: none, unless the hook’s output is fed back.
  • Safety: hooks run code without asking, so Dex never installs one unless you pass --allow-exec. Read the script first. Item pages list each event with its command and timeout.
  • Copilot: .github/hooks/<name>/ (with --allow-exec).
  • Ananke: kind tool, tags hook and executes-code.

Workflow

An agentic workflow (GitHub Agentic Workflows) is a Markdown file whose frontmatter declares triggers (on), permissions, safe-outputs, tools and engine, and whose body is natural-language instructions. Item pages show the triggers and permissions.

flowchart LR
  TR[Trigger<br/>schedule · issue · pull request] --> CI[GitHub Actions runner]
  MD[workflow .md] -- gh aw compile --> LK[.lock.yml]
  LK --> CI
  CI --> AG[Agent engine runs the instructions<br/>with the declared tools]
  AG --> SO[safe-outputs only<br/>e.g. comment, open an issue]
  • Trigger: an event in your repository, not a chat. It runs unattended.
  • Safety: bounded by permissions and safe-outputs. Check both before enabling a workflow.
  • Copilot / GitHub: .github/workflows/<name>.md, then compile with the gh aw CLI.
  • Ananke: kind workflow.

Plugin

A plugin groups related skills and agents around a theme (e.g. arize-ax bundles 9 Arize skills). Upstream it is a plugin.json (Agent Plugins) whose extensions.com.github.awesome-copilot lists skills and agents.

flowchart LR
  PJ[plugin.json] --> R[Resolve members to trove items]
  R --> OK[Admitted members]
  R --> EX[Excluded members<br/>licence or scope: dropped]
  OK --> I[dex install installs each member]
  OK --> B[Ananke bundle<br/>members = ananke://kind/ns/name]

In Dex a plugin keeps its plugin.json and README.md, and its members are resolved to trove items:

  • dex install <plugin> installs every member into the target.
  • In Ananke the plugin becomes a bundle whose members are ananke://<kind>/<ns>/<name> references. ananke registry resolve <ns>/<plugin> --explain shows the member graph.
  • Members excluded for licence or other reasons are dropped. A plugin with no admissible members, such as awesome-copilot’s canvas-only plugins, is excluded as out-of-scope.

Where each kind lands

KindUpstream shapeClaude CodeGitHub CopilotAnanke kind
skillfolder with SKILL.mdskills/<name>/.github/skills/<name>/skill
agent*.agent.md or frontmatter .mdagents/<name>.md.github/agents/<name>.agent.mdagent
instruction*.instructions.md with applyTo—.github/instructions/prompt
prompt*.prompt.mdcommands/<name>.md.github/prompts/prompt
hookfolder with README.md + hooks.json—.github/hooks/<name>/tool
workflowagentic workflow .md—.github/workflows/<name>.mdworkflow
pluginplugin.json listing membersmembersmembersbundle

”—” means the tool has no native equivalent; use --target dir and wire it up yourself.

In Ananke Plexus

Ananke Plexus treats every kind as a versioned capability in a registry, not as loose files. Dex Trove is one of its sources:

flowchart TB
  subgraph In["1 · Bring in"]
    direction LR
    T[(Dex Trove)] -- registry troves sync --> L[learn<br/>identity · version · digest] --> RG[(Registry<br/>trust · channel · licence)]
  end
  subgraph Pin["2 · Choose and pin"]
    direction LR
    RS[resolve under policy<br/>an exact version] -- lock --> LK[ananke.lock<br/>digests pinned]
  end
  subgraph Use["3 · Use"]
    direction LR
    MT[activate: materialise<br/>runtime-native layout] --> RUN[Run] --> EV[(Evidence<br/>which versions were in play)]
  end
  In --> Pin --> Use
  • ananke registry troves enable dex-trove then ananke registry troves sync learns the slice you choose. Items flagged for secrets are skipped.
  • ananke registry resolve picks an exact version under your policy (trust, channel, licence). lock pins it in ananke.lock, and verify-lock checks the digests later.
  • ananke registry activate materialises the version for your project. translate shows the runtime-native file it will produce.
  • Every run records which capability versions were in play, so a result can be traced back to the exact skill text that shaped it.

See Using Dex Trove with Ananke for the commands in order.

Safety by kind

KindCan run codeDex defaultWhat to check before use
skillonly through bundled scriptsinstalls; flags executes-codethe scripts, and allowed-tools
agentthrough its toolsinstalls; adapts tool namestools and mcp-servers
instructionnoinstallsthat the glob is narrow enough
promptnoinstallsnothing special
hookyes, automaticallyrefused without --allow-execthe script, every event it binds
workflowyes, in CIinstallspermissions and safe-outputs
pluginas its membersinstalls admitted memberseach member, as above

See the security model and licence policy for how these defaults are enforced.

Edit this page on GitHub ↗