Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Authoring a plugin

Working with an agent? Point it at llms.txt, a single file written for agents with what it needs to write a Symposium plugin. Ask it to download the file with curl -fsSL https://symposium.dev/crate-authors/llms.txt and read all of it: web-fetch tools can hand the agent a summary instead of the text.

Symposium lets you ship skills, hooks, and MCP servers to the AI agents of people whose projects depend on your crate. This page walks through how to create a plugin and configure each extension type.

Step 1. Decide where your plugin lives

A plugin can live in one of two places:

A recommendations entry is a Symposium.toml manifest declaring your plugin’s name, which crates it applies to, and what extensions it provides:

# `my-crate/Symposium.toml` on the symposium-dev/recommendations repository
name = "my-crate"
depends-on = ["my-crate"]

The depends-on field controls when the plugin is active: depends-on=["foo"] means that your plugin will load if the current workspace directly depends on "foo". Use ["*"] to apply to all projects.

See the plugin definition reference for the full manifest schema.

Will users get every crate from all their dependencies by default?

No, the default is that Symposium makes users away when there are suggested plugin for their workspace, but users must explicitly run symposium sync and then agree for those plugins to be enabled. However, once a plugin has been enabled in one workspace, it will automatically be enabled in other workspaces.

NB: Plugins in the recommendations repository are reviewed before they are merged so they do not require explicit confirmation.

Step 2. Add skills, hooks, and/or MCP servers

Wherever your plugin lives, you can add any combination of the extension types below.

Skills

Skills are guidance documents that teach AI assistants how to use a crate. Each skill is a directory containing a SKILL.md file with YAML frontmatter and a markdown body:

---
name: my-crate-basics
description: Basics of my-crate. Use when building or validating widgets with my-crate.
---

Prefer using `Widget::builder()` over constructing widgets directly.
Always call `.validate()` before passing widgets to the runtime.

See the Skill definition reference for the full format and the agentskills.io quickstart for writing effective skills.

If you maintain the crate, we recommend shipping skills directly in your source tree. This way users always get skills matching the exact version they have installed.

1. Put skills in your crate sources under skills/
my-crate/
    Cargo.toml
    src/
        lib.rs
    skills/
        basics/
            SKILL.md
        advanced-patterns/
            SKILL.md
2. Publish your crate

That is all Symposium needs. When a project depends directly on my-crate, an interactive symposium sync offers to enable its plugin, and symposium status lists it as a candidate until the user decides. symposium use my-crate enables it directly, even for a project that doesn’t depend on the crate.

Symposium reads your plugin from the published package, so make sure skills/ (and Symposium.toml, if you have one) are part of it: check with cargo package --list (add --allow-dirty if you have uncommitted changes), and add them to include if your Cargo.toml uses that field.

Prefer a directory other than skills/?

Add [package.metadata.symposium] to your crate’s Cargo.toml to declare your own skills directory. This block uses the same schema as a Symposium.toml plugin manifest:

# In your crate's Cargo.toml
[[package.metadata.symposium.skills]]
source.path = "docs/agent-skills"

By default, Symposium looks for skills in skills/. Adding a skills section does not disable this default, it adds another source for skills in addition to the default. If you wish to disable the default, set [package.metadata.symposium.defaults] skills = false. If you only want to use the default location, you don’t even need a Symposium.toml. See Supporting your crate for the full schema including chained references to other crates.

Ship a full Symposium.toml in your crate

For more than a single custom directory (several skill groups, per-group predicates, a git skill source, hooks, or MCP servers), put a Symposium.toml at your crate root. When the crate’s plugin loads, whether the user enabled it or a [[plugins]] source.cargo reference reached it, that manifest is loaded as a first-class plugin:

# `my-crate/Symposium.toml` (in your crate's source tree)
[[skills]]
source.path = "docs/agent-skills"

[[skills]]
depends-on = ["tokio"]
source.path = "docs/async-skills"

Because reaching your crate is already the gate, a crate manifest doesn’t need name (it defaults to the crate) or a top-level depends-on. The default skills/ group is still appended unless you opt out with [defaults] skills = false. The [package.metadata.symposium] block and a Symposium.toml file are the same manifest schema and are combined when both are present: lists from both are kept, and where both set the same value the Symposium.toml file wins. Use whichever is convenient.

Hooks, MCP servers, and subcommands declared in a crate Symposium.toml load just like its skills.

Standalone skills (on the recommendations repo)

You can also upload skills directly to the recommendations repo — without embedding them in the crate source. This is the right approach when you’re writing skills for a crate you don’t maintain.

Place skill directories alongside your Symposium.toml:

my-crate/
    Symposium.toml
    basics/
        SKILL.md
    advanced-patterns/
        SKILL.md

And point the manifest at the local directory:

name = "my-crate"
depends-on = ["my-crate"]

[[skills]]
source.path = "."

The manifest’s depends-on says which crate the skills apply to, so the skills themselves don’t need one.

A skill can also be an entry on its own: a directory in the recommendations repo holding just a SKILL.md, with no Symposium.toml. Such a skill names the crates it applies to with depends-on in its frontmatter (or a depends-on(...) predicate in predicates). Without one it loads dormant, and only users who run symposium use <skill-name> get it:

---
name: widgetlib-basics
description: Basics of widgetlib. Use when building or configuring widgets with widgetlib.
depends-on: widgetlib=1.0
---

Guidance body here.

Skills from a git repository

Symposium also supports fetching skills from a GitHub URL:

[[skills]]
source.git = "https://github.com/org/my-crate/tree/main/symposium/skills"

This is useful for hosting skills in a dedicated repository or a subdirectory of a monorepo. Note that the central recommendations repository does not currently accept source.git entries by policy — use a [[plugins]] source.cargo chained reference or source.path for submissions there.

Installing auxiliary tools

An installation tells symposium how to obtain a binary that your hooks or subcommands will run. The recommended approach is a cargo installation, which installs a crate binary from crates.io:

[[installations]]
name = "my-crate-hooks"
source = "cargo"
crate = "my-crate-hooks"
executable = "my-crate-hooks"

Symposium installs the binary into its cache (~/.symposium/cache/) the first time a hook needs it, and checks crates.io for a newer release at the start of each agent session, unless the installation pins an exact version.

The binary must be installable with cargo install: publish it as its own crate, as above, or add a [[bin]] target to your main crate and set crate = "my-crate" with executable naming that binary.

See the plugin definition reference for other installation sources (GitHub repositories, local paths) and advanced options like install_commands.

Hooks

Hooks run when the AI performs certain actions — invoking a tool, starting a session, or submitting a prompt. They receive JSON on stdin describing the event and can return guidance, inject context, or block the action.

Every agent varies in the specifics of what hooks it offers and how those hooks are configured. Symposium allows you to provide agent-specific hook handlers, but we recommend instead using a Symposium hook handler, which is portable across agents. Hooks run on every supported agent except Goose and OpenCode, which have no shell hooks Symposium can register (they still receive skills and MCP servers).

Symposium hooks (portable across agents)

To define a Symposium hook handler you add a [[hooks]] section. This defines the command to run as well as the events it expects and other filters.

[[hooks]]
name = "check-usage"
event = "PreToolUse"
matcher = "^(Bash|bash|run_command|execute_bash)$"
command = "my-crate-hooks"

The matcher is a regular expression tested against the tool name. Agents name the same tool differently (the shell is Bash in Claude Code and Codex, bash in Copilot, run_command in Antigravity, and execute_bash in Kiro). The tool name reaches your handler exactly as the agent sent it, and the input keeps the agent’s own argument names, so match every name you care about. See Matcher for the details.

The command field references the name of an installation defined in the [[installations]] section described previously. For example:

[[installations]]
name = "my-crate-hooks"
source = "cargo"
crate = "my-crate-hooks"
executable = "my-crate-hooks"

The hook binary receives symposium canonical JSON on stdin and writes symposium canonical JSON to stdout. Symposium handles converting to and from each agent’s wire format, so a single implementation works on every agent that runs hooks. See Writing a hook handler for how to implement the binary using the symposium-sdk crate, and Symposium hook events for input/output JSON schemas.

Agent-specific hooks

You can also provide hooks specialized for a particular agent by setting format to an agent name. The handler receives that agent’s native wire format on stdin — giving you access to agent-specific features (e.g., Claude Code’s updatedInput, Copilot’s modifiedArgs). Symposium still intermediates; it just delivers in the declared format instead of converting to canonical. On agents without a matching hook, symposium falls back to delivering any symposium-format hook the plugin declares.

[[hooks]]
name = "check-usage-claude"
event = "PreToolUse"
format = "claude"
command = "my-crate-hooks"
args = ["--claude"]

On Claude, check-usage-claude fires (receives Claude’s native JSON). On other agents, check-usage fires (receives symposium canonical JSON). See the plugin definition reference for the full [[hooks]] manifest syntax.

MCP servers

MCP servers expose tools and resources to agents via the Model Context Protocol. Symposium registers them into each agent’s configuration during sync — you declare the server once and it works across all agents.

[[mcp_servers]]
name = "my-crate-tools"
command = "my-crate-mcp"
args = ["--stdio"]
env = []

command is written into the agent’s MCP configuration as is, so it must be an absolute path or a program on the user’s PATH. Unlike hooks, MCP servers don’t use [[installations]]: Symposium does not install the server, so tell your users how to install it, for example in your README (cargo install my-crate-mcp). args and env are required, even when empty.

See the plugin definition reference for HTTP and SSE transports, crate filtering, and registration details.

Subcommands

A subcommand lets agents run your crate’s own command-line tool through symposium, so they can find crate-aware tooling before they work on the code. By convention a crate adds one subcommand named after itself, and its tool handles everything typed after that name: symposium my-crate --help prints your tool’s help, and symposium my-crate check runs its check command.

[[installations]]
name = "my-crate-cli"
source = "cargo"
crate = "my-crate-cli"
executable = "my-crate-cli"

# `symposium my-crate check` runs `my-crate-cli check`
[subcommand.my-crate]
description = "Check and inspect the widgets in this workspace"
command = "my-crate-cli" # the [[installations]] entry that provides the tool

symposium --help lists the subcommand under “Commands for agents” with its description, and on agents that run hooks, Symposium suggests running symposium --help at the start of each session in a project that has one. Your tool’s output and exit code are passed through. See the plugin definition reference for the other [subcommand.<name>] fields.

Step 3. Check it with the author tools

Symposium’s tools for plugin authors live under symposium plugin:

  • symposium plugin validate <path> checks a plugin without installing anything: missing fields, bad crate predicates, unreachable skill paths, invalid skills, and crate names that don’t exist on crates.io. <path> is your crate (its directory, Cargo.toml or Symposium.toml), a recommendations entry, or a whole checkout of the recommendations repo. A crate is checked as your users get it, so a mistake in [package.metadata.symposium] or Symposium.toml that Symposium would otherwise only log is reported here. See the reference.
  • symposium plugin try <path> installs a plugin, skill or Agent Plugins package directory in your agents the way a user would get it, so you can use it while you write it, and reports which agents list its skills. Symposium reads the directory in place, so edits reach your agents on the next sync. symposium plugin try --remove <path> discards the trial. A crate is tried through a path dependency instead, as in step 4. See the reference.
  • symposium plugin import <path> turns a Claude Code plugin into an Agent Plugins package that Symposium loads: its skills and commands become skills, its hooks and MCP servers go into a Symposium.toml, and anything it cannot carry over is reported. See the reference.
# In your crate
symposium plugin validate .

# A recommendations entry, or every entry from the root of the checkout
symposium plugin validate my-crate/
symposium plugin validate .

# Skip the crates.io name check (e.g., for private crates)
symposium plugin validate . --no-check-crates

To try the entry before opening the pull request, install it in your agents with symposium plugin try my-crate/ and use it in a project that depends on the crate: edits reach your agents on the next sync. Discard the trial with symposium plugin try --remove my-crate/. See the reference.

Step 4. Try it in a project

Before publishing, check what your users will get. In a scratch project that depends on your crate by path, enable the plugin (this assumes you have run symposium init):

cargo new try-my-crate && cd try-my-crate
cargo add my-crate --path ../my-crate
symposium use my-crate
symposium status

symposium use records the choice and syncs, and symposium status should list your plugin as active; if it doesn’t, see Edge cases. Its skills are now in each configured agent’s skills directory, for example .claude/skills/ for Claude Code.

To try a hook or subcommand before its binary is published, point the installation at your local build: drop source and crate, and set executable to the binary’s absolute path:

[[installations]]
name = "my-crate-hooks"
executable = "/path/to/my-crate-hooks/target/debug/my-crate-hooks"

Then, from the scratch project, run a subcommand as an agent would, for example symposium my-crate --help. To try a hook, send Symposium the payload an agent would send, using a tool call your hook reacts to (this one runs ls). This runs the same dispatch the agent triggers, so it prints what the agent would receive:

echo '{"session_id":"test","cwd":"'"$PWD"'","hook_event_name":"PreToolUse","tool_name":"Bash","tool_input":{"command":"ls"}}' \
  | symposium hook claude pre-tool-use

Each agent has its own payload format; see Agent details for the others. If nothing happens, rerun the command with --verbose to see which plugins and hooks Symposium considered, and check the logs in ~/.symposium/logs/.

When you are done, remove the test enablement with symposium use my-crate --remove. Before you publish, restore the source = "cargo" installation and publish the hook or subcommand crate first: your users’ agents install it from crates.io.

A path dependency reads your source tree, so it doesn’t catch files missing from the published package; check those with cargo package --list (see step 2 of Embedding skills in your crate).

Inside your crate’s own repository, a Symposium.toml or skills/ directory is already active as a workspace plugin ([package.metadata.symposium] is not read there), which is handy while writing skills. Its hooks and MCP servers are active there too; gate a component with predicates = ["not(workspace-member())"] to keep it for your users only.