Skip to main content

The Explyt plugin format

1. What a plugin is​

A plugin is a directory in a public git repository — the root or a subdirectory — holding a plugin.json manifest and components: skills, rules, agents, MCP servers, hooks. Components are found by location; the manifest's skills field can add skill directories to the default skills/ (§3).

my-plugin/                    plugin root: repository root or a subdirectory
├── plugin.json manifest (required)
├── mcp_servers.json MCP servers (optional)
├── hooks/
│ └── hooks.json hooks: commands on session events (optional)
├── README.md text of the catalog card (recommended)
├── LICENSE full license text (recommended)
├── skills/
│ └── <name>/
│ └── SKILL.md skill: markdown with YAML frontmatter
├── rules/
│ └── *.md rules: markdown, optional frontmatter
└── agents/
└── *.md custom agents: markdown with YAML frontmatter

2. Manifest​

The file plugin.json at the plugin root.

FieldTypeRequiredAccepts
$schemastringnoSchema URL for editor hints; ignored by validation. ≤2048 characters
schemaVersionintegeryesAlways 1
versionstringyesMAJOR.MINOR.PATCH, no pre-release or build suffix, no leading zeros
namestringyesDisplay name, 1–200 characters. Not an identifier
descriptionstringyesOne or two sentences for the card and search, 1–1000 characters
licensestringyesSPDX identifier from the allowlist, or an AND/OR expression of them
variablesobjectnoValues the user passes at install or sets later, keyed by id (§5). ≤20 entries
homepagestringnohttp:// or https:// URL, ≤2048 characters
minPluginVersionstringnoLowest agent version that can install the plugin, MAJOR.MINOR.PATCH; an older agent refuses the plugin at install and enable
skillsarray of stringsnoSkill directories besides skills/, each ./-prefixed and relative to the plugin root (./skills/engineering), read one level deep: a directory of <name>/SKILL.md folders, or one folder holding SKILL.md directly (§3)
{
"$schema": "https://marketplace.explyt.ai/schema/plugin-manifest.schema.json",
"schemaVersion": 1,
"version": "1.2.0",
"name": "PostgreSQL Toolkit",
"description": "Skills, rules and MCP tools for PostgreSQL development",
"license": "MIT"
}

Rules the schema does not express:

  • version is strict MAJOR.MINOR.PATCH and must be greater than the last published version.
  • name is a display name. The plugin id is chosen at first publication, matches [a-z0-9-]{1,64}, and never changes.
  • License allowlist: MIT, Apache-2.0, BSD-2-Clause, BSD-3-Clause, ISC, Unlicense, CC0-1.0, CC-BY-4.0.
  • A license expression: A AND B needs every part allowed, A OR B one; parentheses group. Case-sensitive (mit is not MIT); WITH and + are not accepted.
  • There is no author field: the author is the publishing account.
  • Unknown fields are ignored with a warning; $schema gives no warning.
  • Control characters (NUL and other C0 characters except tab, newline, CR) are rejected in the manifest, mcp_servers.json, README and frontmatters.

For editor validation and completion add "$schema": "https://marketplace.explyt.ai/schema/plugin-manifest.schema.json".

3. Components​

Skills​

The file skills/<name>/SKILL.md: markdown with YAML frontmatter; helper files (scripts, resources) may sit in the same folder.

A skill is a folder with SKILL.md one level below a skill directory: skills/, plus every directory the manifest's skills field lists ("skills": ["./skills/engineering"], ./-prefixed, relative to the plugin root). A listed folder that holds SKILL.md directly is one skill itself. Nothing is read deeper than one level: a skill inside an unlisted folder is not found. With a skills field in the manifest (even an empty one) a folder without SKILL.md in skills/ or in a listed directory — a group such as skills/engineering/, an unlisted folder — is passed over in silence; without the field it is a SKILL_MD_MISSING warning. Skill names are unique across all skill directories. A listed path that does not exist, is a file, or escapes the plugin root is rejected.

FieldRequiredAccepts
nameyesSkill identifier: lowercase letters and digits joined by single hyphens (review-pr), ≤64 characters; not a name of a built-in command of the agent (skills, search, compact, …)
descriptionyesWhen to use the skill, non-blank, ≤1024 characters
invocationnoany (default) — the model by description or a person by name; user — a person only; model — the model only
argument-hintnoHint for a person invoking the skill by name, e.g. [issue-number], ≤200 characters; accepted by the agent, not shown
argumentsnoNames of positional arguments: a space-separated string or a list, each [a-z][a-z0-9_-]*; accepted by the agent, not acted on

Other keys the schema accepts (allowed-tools, model, hooks, …) are ignored by the agent.

---
name: review-pr
description: Review a pull request by number
invocation: user
---
Review the pull request the user names.
Follow the checklist in checklist.md next to this file.

The body goes to the model as written: nothing in it is substituted — not $ARGUMENTS, not ${PLUGIN_ROOT}, not {{var:}}. Arguments a person types after the skill's name reach the model as their own text. The skill's files are reached by the path the agent gives with the skill's text when it loads it (use_skill): write "the checklist next to this file", not a placeholder path. {{var:<id>}} of a non-secret variable (§5) may stand in the body — the validator checks it is declared — but travels as text. Keep secrets out of the body.

Rules​

The files rules/*.md: markdown; frontmatter is optional. A file starting with --- must have a block that parses and passes the schema.

FieldRequiredAccepts
filePatternnoGlob of files the rule applies to: one string or a non-empty list of strings (any match applies)
strictnessnosystem (default) — sent once; user-message — before every request; tool-call — after every batch of tool results

Three spellings of filePattern:

filePattern: "**/*.kt"
filePattern: ["**/*.kt", "**/*.kts"]
filePattern:
- "**/*.kt"
- "**/*.kts"

No substitutions in rules: {{var:}} and ${PLUGIN_ROOT} are plain text there.

Agents​

The files agents/*.md: markdown with YAML frontmatter, one file per agent, top level only.

FieldRequiredAccepts
nameyesAgent identifier, [a-zA-Z0-9_-]{1,50}; not a name of a built-in agent (workhorse, hawkeye, retriever)
descriptionyesWhat the agent does, non-blank, ≤1024 characters
toolsnoTool names the agent may use, as the agent names its tools; an unknown name stops the agent from launching
skillsnoNames of skills of this plugin the agent may use; a name that is not a skill of the plugin warns

Other keys the schema accepts (model, tags, …) are ignored by the agent; agents is not a field: an agent does not launch other agents.

The body goes to the model as written, like a skill's. The file is at most 64 KB.

Hooks​

The file hooks/hooks.json: commands the agent runs on session events — a session starts, the user sends a message, before and after a tool call, the model stops, a subagent starts or stops. The file has the form of a Claude Code hook file, as is: hooks → event → matcher groups → type: command handlers. One file only: there is no hooks field in the manifest, and a hooks: key in a skill or agent frontmatter is ignored by the agent. A hooks/ folder without hooks.json is just files.

{
"$schema": "https://marketplace.explyt.ai/schema/hooks.schema.json",
"hooks": {
"SessionStart": [
{ "hooks": [ { "type": "command", "command": "bash \"${PLUGIN_ROOT}/hooks/session-start.sh\"" } ] }
],
"PreToolUse": [
{ "matcher": "Bash",
"hooks": [ { "type": "command", "command": "\"${PLUGIN_ROOT}/hooks/guard.sh\"", "if": "Bash(git push *)", "timeout": 10 } ] }
],
"PostToolUse": [
{ "matcher": "Edit|Write",
"hooks": [ { "type": "command", "command": "bash \"${PLUGIN_ROOT}/hooks/format.sh\"", "async": true, "statusMessage": "Formatting" } ] }
]
}
}

Events (the agent's list; a handler of an event the agent does not have is excluded from the plugin and shown on its page as not imported):

EventWhen
SessionStartA session starts, resumes, forks or is cleared
SessionEndA session ends
UserPromptSubmitThe user sends a message, before the model sees it
PreToolUseBefore a tool call; matcher and if apply; exit 2 blocks the call
PermissionRequestA tool call asks for permission; matcher and if apply
PostToolUseAfter a successful tool call; matcher and if apply
PostToolUseFailureAfter a failed tool call; matcher and if apply
PostToolBatchAfter a batch of tool results
StopThe model stops; exit 2 makes it continue with the handler's stderr
StopFailureA run ends with an error
PreCompactBefore context compaction
PostCompactAfter context compaction
SubagentStartA subagent starts
SubagentStopA subagent stops

A matcher group:

FieldRequiredAccepts
matchernoAn exact value, values joined by | (Edit|Write) or a regular expression. On the four tool events it matches the tool name (Bash; an MCP tool is mcp__<server>__<tool> with the server name as in mcp_servers.json); on SessionStart/SessionEnd the source or reason (startup, resume, …); on SubagentStart/SubagentStop the subagent type; on StopFailure the reason. Not used on UserPromptSubmit, PostToolBatch, Stop. Omitted — everything
hooksyesThe handlers of the group, run in order

A handler:

FieldRequiredAccepts
typeyescommand — the only type the agent runs; a prompt, http, mcp_tool or agent handler is excluded and shown as not imported
commandyesThe shell command line; ${PLUGIN_ROOT}, ${PLUGIN_DATA} and the Claude Code spellings ${CLAUDE_PLUGIN_ROOT}, ${CLAUDE_PLUGIN_DATA} are substituted, ${CLAUDE_PROJECT_DIR} is the project root
argsnoArguments of the command, substituted like command. With args the agent starts command directly, without a shell: command is then an executable, not a shell line
shellnoAccepted; the agent honours only powershell on Windows
ifnoCondition on the call's input, Tool(pattern) — Bash(git push *); only on the four tool events
timeoutnoSeconds the agent waits; the agent's default when omitted
asyncnoRun in the background without blocking the session
asyncRewakenoAccepted; the agent runs it as plain async
oncenoAccepted; the agent runs the handler every time
statusMessagenoText shown while the handler runs

What a handler gets on stdin (JSON with the event, the tool name and its input), what exit codes mean, what JSON it may print, and the tool names are the agent's: see the agent's hooks documentation (bundled with the agent, hooks.md). The handler's environment carries PLUGIN_ROOT, PLUGIN_DATA, CLAUDE_PLUGIN_ROOT, CLAUDE_PLUGIN_DATA, CLAUDE_PROJECT_DIR and CLAUDE_PLUGIN_OPTION_<KEY> for every variable of the plugin (§5) — secrets included. {{var:}} is not substituted in this file.

Enabling a plugin in a project is consent to all its parts, hooks included: the agent runs them without a separate question. The plugin's page therefore lists every handler — event, condition, command — so that the person installing sees what will run. A script under ${PLUGIN_ROOT} must exist in the plugin; the archive keeps its executable bit. In a shell command put the path in quotes ("${PLUGIN_ROOT}/hooks/x.sh"): the plugin directory lives under the user's application-data folder, and a space in that path splits an unquoted command. A plugin of hooks alone is a plugin.

Component identity and naming​

  • Skill and agent identity is the frontmatter name (a mismatch with the folder or file name only warns); rule identity is the file name.
  • A duplicate name among skills, or among agents, is rejected: the agent makes every component of a shared name unavailable, and never replaces one.
  • Names share one space with the user's own skills and agents, with other plugins and with the agent's built-ins. A name the agent keeps for itself — a built-in command for a skill, a built-in agent for an agent — is rejected; a name shared with the user's own skill or another plugin's makes both unavailable on that machine, so prefer a prefix of your own (acme-review).
  • Names and paths are compared case-insensitively and after Unicode normalization: rules/A.md next to rules/a.md is rejected.
  • A skill folder without SKILL.md is not a component (warning); its files still ship.

4. MCP servers​

The file mcp_servers.json at the plugin root: a map from server name to { "runModes": [...] }, where runModes is a non-empty array of ways to start the server; the user picks one per server when enabling the plugin in a project (explyt plugin enable <id>@<version> --run-mode <server> <index>, index from 0, no default). Server names are case-sensitive. Omit the file when there are no servers; an empty map is rejected.

FieldVariantRequiredAccepts
commandstdioyesProgram to start, ≤2048 characters
argsstdionoList of string arguments, each ≤2048 characters
envstdionoMap of environment variable name → string value
typestdio / remoteremote: yesstdio (optional) or, in the remote variant, http / sse
urlremoteyesServer address, ≤2048 characters
headersremotenoMap of HTTP header → string value

A run mode is either stdio (command) or remote (type + url); mixing them is rejected. No cwd and no extra fields: start a program under ${PLUGIN_ROOT} instead.

{
"$schema": "https://marketplace.explyt.ai/schema/mcp-servers.schema.json",
"Github MCP": {
"runModes": [
{ "command": "docker", "args": ["run", "-i", "--rm", "-e", "GITHUB_PERSONAL_ACCESS_TOKEN", "ghcr.io/github/github-mcp-server"],
"env": { "GITHUB_PERSONAL_ACCESS_TOKEN": "{{var:github_pat}}" } },
{ "type": "http", "url": "https://api.githubcopilot.com/mcp/",
"headers": { "Authorization": "Bearer {{var:github_pat}}" } }
]
},
"Local": {
"runModes": [
{ "command": "${PLUGIN_ROOT}/bin/server", "args": ["--data", "${PLUGIN_DATA}"],
"env": { "LOG_LEVEL": "${env:LOG_LEVEL:-info}" } }
]
}
}

Substitutions — text replacement anywhere in the string, in two passes: {{var:}} and the plugin directories first, then ${env:} over the result (so a variable's value may itself be ${env:NAME}). The agent substitutes once per session, in memory, and hands the result to its MCP runtime; it writes nothing into the user's mcp_servers.json. A changed value or environment is seen by the next session.

SyntaxAllowed inBecomes
{{var:<id>}}args, env, url, headersValue of a variable declared in variables, any type. Not in command
${PLUGIN_ROOT}, ${PLUGIN_DATA}command, args, envAbsolute plugin directories. Not in url, headers
${env:NAME}, ${env:NAME:-fallback}command, args, env, url, headersVariable of the agent's process environment; NAME is [A-Za-z_][A-Za-z0-9_]*. Unset and no fallback: the server is not started, the agent reports it — publication warns about such a reference

Any other ${WORD}, $env:WORD or {env:WORD}, and an env or headers value starting with !, is rejected: the agent's MCP runtime would expand it a second time and does not start such a server. There is no way to pass a literal $ of that shape.

A value shaped like a known token (ghp_…, AKIA…, sk-…, a PEM key) warns: use a secret variable and revoke the token.

A remote server (url) without headers is signed in by the agent itself: it asks the user to sign in (/mcp-auth <server>) and registers itself with the provider by Dynamic Client Registration. A provider without Dynamic Client Registration needs a header with a secret variable instead (measured on the agent 0.6.1-dogfood.3, 09.11.2026).

Limits: §8.

5. Variables​

The manifest's variables field: key — variable id, value — the declaration of the variable.

FieldRequiredAccepts
typeyessecret, string, number, boolean, path; any other value is rejected
labelyesCaption of the variable, 1–200 characters; the agent shows it in the plugin's details
helpTextnoWhere to get the value, its format; ≤500 characters
requirednoDefault true; false lets the value stay unset
defaultnoPre-filled value, always a string, ≤2048 characters; or one ${env:NAME} / ${env:NAME:-fallback} reference
choicesno1–100 strings to pick from; only with type: string
"variables": {
"github_pat": { "type": "secret", "label": "GitHub Personal Access Token",
"helpText": "Create a token with scopes: repo, read:org. Get at https://github.com/settings/tokens" },
"api_key": { "type": "secret", "label": "Context7 API key", "required": false, "default": "${env:CONTEXT7_API_KEY}" },
"mode": { "type": "string", "label": "Server mode", "default": "mcp", "choices": ["mcp", "http"] },
"max_chars": { "type": "number", "label": "Truncate inputs to", "default": "20000" },
"debug": { "type": "boolean", "label": "Verbose log", "default": "false" },
"kubeconfig": { "type": "path", "label": "kubeconfig file" }
}
  • Id: [a-z0-9_-]{1,64}, used as {{var:<id>}} without spaces inside the braces. ≤20 variables.
  • Types: secret — a secret, the agent never shows its value; string — text or a pick from choices; number — decimal; boolean — switch; path — file or directory. oauth is rejected: the agent has no such type; a remote MCP server without headers is signed in by the agent itself (§4).
  • default per type: boolean — "true" or "false"; number — -?\d+(\.\d+)? (no exponent, +, .5 or 1.); with choices — one of them. A fallback in ${env:NAME:-fallback} follows the same rule.
  • A secret default may be only a bare ${env:NAME}: a literal or a fallback would put the secret into git.
  • A secret variable is rejected in a skill or agent body.
  • Every value, secrets included, reaches the plugin's MCP servers and the environment of its hooks (CLAUDE_PLUGIN_OPTION_<KEY>, §3): declare as secret only what they need.
  • The object is closed: a misspelled key (helptext) is rejected.

What the agent does with them: values are passed at install in a --values-file (explyt plugin install <id> --values-file values.json) and changed with explyt plugin config set; a required variable without a value or a default stops the install. They are kept by the agent, not in the project, and survive updates; a new required variable without a default stops explyt plugin update — the user installs the new version with a values file. Values are substituted as strings in mcp_servers.json (§4) and passed to the plugin's hooks; a skill or agent body is not substituted into. An empty optional variable becomes an empty string in args, url and headers; in env a key whose value was exactly {{var:<id>}} is not set. default: "${env:NAME}" means "take from the agent's environment"; a value the user sets may be ${env:NAME} too.

6. Version, source and card files​

  • The plugin version is the manifest's version. A changed plugin tree publishes only with a version strictly greater than the published one; an unchanged tree at the same version is "up to date": no new version, and a plugin deleted from the catalog returns this way.
  • Source: a public git repository over https://, whole (plugin.json at the root) or a directory https://host/owner/repo/tree/<branch>/<path>. No SSH URLs, no private repositories. The HEAD of the named branch is taken; without a branch in the URL, the default branch. The plugin id is fixed at the first publication and does not depend on the repository address.
  • Updates are explicit for the user: the agent does not check the marketplace for new versions and installs nothing on its own; explyt plugin update downloads the new version, which is installed beside the old one and enabled in a project with explyt plugin enable <id>@<version>.
  • LICENSE — the full license text next to the manifest; without the file, warning LICENSE_FILE_MISSING.
  • README.md — the text of the plugin's page in the catalog; without the file, the page has no description.
  • Icon — not a file of the plugin: it is uploaded to the marketplace with the publication (the publish-plugin skill sends it after the submission is accepted) and replaced on the plugin's page. PNG or JPEG up to 2 MB; the marketplace keeps a square PNG of it. A plugin without an icon shows the initials of its name.

7. Category and tags​

Exactly one category and up to 10 tags from the marketplace's dictionary are chosen in the publication form, not in the manifest; both can change later.

KeyLabelCovers
developmentDevelopmentCoding workflows: review, refactoring, commits, languages and frameworks, SDKs
testingTestingTests, browsers under automation, QA
dataDataDatabases, analytics, warehouses
devopsDevOpsDeployment, cloud, CI, infrastructure as code, monitoring
securitySecuritySecurity scanning, secrets, auth, compliance
designDesignDesign tools, UI generation, creative assets
productivityProductivityTasks, documents, communication, project management, learning
financeFinanceFinance, payments, CRM, business operations

8. Publication will refuse the plugin if…​

All problems are reported together; warnings do not block.

  • There is no plugin.json in the plugin root.
  • The manifest fails the schema (missing required field, bad version, non-http(s) homepage), or a string contains a control character.
  • version is not greater than the last published version.
  • license is outside the allowlist, or an expression with a disallowed part.
  • The plugin has no components: a skill folder without SKILL.md, a broken SKILL.md, rules/ without markdown, an empty mcp_servers.json or a hooks/hooks.json with no handler the agent runs count as nothing.
  • A skill, agent or rule frontmatter fails its schema, or description is blank.
  • Two skills or two agents share a name; a skill is named after a built-in command of the agent, or an agent after a built-in agent.
  • An agent file is over 64 KB.
  • Two paths differ only in letter case or Unicode form, or a file and a folder share a name.
  • {{var:<id>}} names an undeclared variable, or a secret one in a skill or agent body.
  • ${PLUGIN_ROOT} or ${PLUGIN_DATA} stands in url or headers; {{var:}} stands in command; a run mode mixes command with url; a value holds ${WORD}, $env:WORD or {env:WORD} of another meaning, or an env/headers value starts with !.
  • hooks/hooks.json is not a JSON object with a hooks object; a matcher group has no hooks list, or a handler lacks type or command; matcher, if or $schema is not a string, or args is not a list of strings; a hook command calls a script under ${PLUGIN_ROOT} that is not in the plugin; the file is over 256 KB or holds more than 200 handlers. A handler of an event or type the agent does not run, or with an if outside the four tool events or not of the form Tool(pattern), is not a refusal: it is excluded and shown on the page as not imported.
  • A variable breaks a rule of §5: wrong default, literal or fallback default on a secret, malformed ${env:…}, unknown key, unknown type, type oauth.
  • The repository uses git submodules or git LFS.
  • An archive lies inside the plugin (.zip .war .tar .tgz .tar.gz .gz .bz2 .xz .7z .rar .zst by name, or any file with an archive signature); .jar is allowed.
  • A symbolic link points outside the repository, to a directory, to another link, to a missing target, or to a file outside the plugin directory that is over the file-size limit.
  • A limit of the table below is exceeded, or a file name is not valid UTF-8.
  • The repository tree is too large to process (kind=tree): move the plugin into a smaller repository.

The limits, by the kind of the LIMIT_EXCEEDED refusal:

kindLimitOf what
repo50 MBthe repository working copy, without .git
zip20 MBthe resulting zip
file10 MBone file
readme1 MBREADME.md
manifest256 KBplugin.json
mcp256 KBmcp_servers.json
hooks256 KBhooks/hooks.json
agent_file64 KBone agents/*.md file
components500skills, agents, rules, MCP servers and the hooks file together, invalid ones included
servers20MCP servers
run_modes10run modes per MCP server
variables20variables
server_name64characters in an MCP server name; an empty name is refused too
hook_handlers200handlers in hooks/hooks.json, excluded ones included
filename255bytes in a file or directory name
path1024bytes in a path inside the plugin