plugin-development
Create, convert, validate, and publish Claude Code plugins with Agent Skills, hooks, agents, and servers. Use when scaffolding a plugin with a decided name and purpose, adding a component to an existing plugin, converting a project into a plugin, improving plugin structure, publishing a plugin (plugin.json) to a marketplace, or packaging skill collections into plugins. Also use for directory structure, component organization, auto-discovery, and manifest configuration. Component-specific work delegates to hook-development, agent-development, and skill-development skills. For a component's own R1-R37 naming/language/formatting/tool-scoping compliance, use plugin-rulebook instead. For validating structural correctness of an existing plugin, use plugin-validator instead. For marketplace publishing of a skills repo, use marketplace-development instead. For an undecided idea with no name or components yet, use plugin-lifecycle-upstream or plugin-ideation instead — this skill assumes a concept exists.
- License 许可
- Apache-2.0
- 最近更新
- 2026-11-15
- Stars
- ★ 0
- Forks
- 0
01 前言 Front Matter
- name
- plugin-development
- description
- Create, convert, validate, and publish Claude Code plugins with Agent Skills, hooks, agents, and servers. Use when scaffolding a plugin with a decided name and purpose, adding a component to an existing plugin, converting a project into a plugin, improving plugin structure, publishing a plugin (plugin.json) to a marketplace, or packaging skill collections into plugins. Also use for directory structure, component organization, auto-discovery, and manifest configuration. Component-specific work delegates to hook-development, agent-development, and skill-development skills. For a component's own R1-R37 naming/language/formatting/tool-scoping compliance, use plugin-rulebook instead. For validating structural correctness of an existing plugin, use plugin-validator instead. For marketplace publishing of a skills repo, use marketplace-development instead. For an undecided idea with no name or components yet, use plugin-lifecycle-upstream or plugin-ideation instead — this skill assumes a concept exists.
- allowed-tools
- Read Write Edit Glob Bash(jq:*) Bash(python:*) Bash(claude:*) Skill
02 资源文件 45
- 参考文档examples/advanced-plugin.md18.6 KB
- 参考文档examples/minimal-plugin.md1.7 KB
- 参考文档examples/standard-plugin.md13.4 KB
- 参考文档references/claudemd-guidelines.md6.2 KB
- 参考文档references/component-patterns.md12.1 KB
- 参考文档references/components-in-plugins.md14.1 KB
- 参考文档references/directory-structure.md20.2 KB
- 参考文档references/hooks.md7.2 KB
- 参考文档references/installation-and-cli.md14.7 KB
- 参考文档references/local-development.md6.7 KB
- 参考文档references/lsp-servers.md9.9 KB
- 参考文档references/manifest-reference.md19.3 KB
- 参考文档references/marketplace-reference.md8.0 KB
- 参考文档references/mcp-servers.md6.6 KB
- 参考文档references/monitors.md3.6 KB
- 参考文档references/output-styles.md2.4 KB
- 参考文档references/plugin-architecture.md15.9 KB
- 参考文档references/plugin-caching.md12.8 KB
- 参考文档references/plugin-json-schema.md3.8 KB
- 参考文档references/plugin-paths-variables.md14.9 KB
- 参考文档references/plugin-structure.md2.2 KB
- 参考文档references/quick-reference.md7.1 KB
- 参考文档references/quick-start-guide.md917 B
- 参考文档references/routing-patterns.md3.5 KB
- 参考文档references/slash-command-format.md12.3 KB
- 参考文档references/themes.md2.2 KB
- 参考文档references/troubleshooting-and-production.md14.5 KB
- 参考文档references/validation-checklist.md9.5 KB
- 参考文档references/validation-rules.md6.2 KB
- 参考文档references/versioning-and-distribution.md14.1 KB
- 参考文档references/workflows.md11.9 KB
- 脚本scripts/bump_version.py3.3 KB
- 脚本scripts/check_links.py3.5 KB
- 脚本scripts/create_plugin.py4.6 KB
- 脚本scripts/generate_manifest.py11.9 KB
- 脚本scripts/init_plugin.py8.3 KB
- 脚本scripts/package_skills.py10.8 KB
- 脚本scripts/scan-plugin.sh13.5 KB
- 脚本scripts/validate_plugin.py17.7 KB
- 其他templates/marketplace.json.minimal416 B
- 其他templates/marketplace.json.multi1.1 KB
- 其他templates/plugin.json.complete501 B
- 其他templates/plugin.json.minimal32 B
- 其他templates/plugin.json.standard247 B
- 参考文档templates/README.md1.3 KB
03 SKILL.md 正文
Plugin Development
Dual purpose: Create plugins from scratch OR transform existing projects into well-structured plugins.
Quick Routing
Ask the user what they want to do using AskUserQuestion — see references/routing-patterns.md for the full block. Options: Create a new plugin, Add a component to an existing plugin, Convert a project to plugin, Validate or publish a plugin (a sub-question then distinguishes Validate from Publish). Then proceed to the appropriate section below.
When to Use
- Building a plugin from scratch (manifest, directory structure, components)
- Adding one already-designed component (skill/agent/command/hook) to a plugin that already exists — not a whole new plugin or project conversion
- Converting an existing project into a Claude Code plugin
- Improving (restructuring, migrating components, fixing organization) an existing plugin's structure. For a structured manifest/directory/component-wiring validation report, use the
plugin-validatoragent instead; for R1–R37 naming/language/formatting/tool-scoping compliance, useplugin-rulebook. - Publishing a plugin with
plugin.jsonto a marketplace - Packaging standalone
.claude/skills/directories into distributable plugin format
When NOT to Use
- Skills-repo marketplace publishing without individual
plugin.json— usemarketplace-developmentinstead - Creating individual skills, hooks, or subagents — use
skill-development,hook-development,agent-developmentinstead - Debugging plugin runtime behavior or writing plugin application code
- Structured plugin manifest/wiring validation report → use
plugin-validatorinstead - A rough idea with no name/scope decided yet, wanting guided help figuring that out — use
plugin-lifecycle-upstreaminstead (orplugin-ideationalone for just the concept step) - Deciding which components (and how many, at what content depth) a plugin whose name/purpose is already
decided should have — use
plugin-planninginstead; this skill's own New Plugin Creation Interview only toggles coarse manifest categories (skills/agents/hooks/MCP yes-no), it never produces a scoped component inventory or depth plan. If the user has, or should have, an accepted Concept Card and hasn't yet decided component types/counts/depth, route toplugin-planningfirst
Slash Commands Deprecated
Slash commands (via commands/ directory) are legacy compatibility, merged into skills. Both commands/ and skills/ create slash-command entries. For new plugin work, always use Agent Skills (skills/ directory); commands/ remains supported for backward compatibility only. A plugin must not define a legacy command and a skill with the same effective slash-command name unless the duplication is intentional and documented.
How Plugins Work
Plugin activation is pure LLM reasoning on manifest metadata — the plugin.json description is your activation signal (vague = never activated; specific = reliably activated). Plugin name becomes the skill namespace (/plugin-name:skill-name). For directory structure, token loading hierarchy, and auto-discovery sequence, see references/plugin-architecture.md.
Quick Start
- Create a new plugin — Answer the Quick Routing question above, then complete the New Plugin Creation Interview section below to gather all manifest fields before writing any files.
- Add a component to an existing plugin — See Adding a Component to an Existing Plugin below.
- Validate an existing plugin — Run
claude plugin validate /path/to/plugin. Checkreferences/validation-checklist.mdfor detailed best practices. - Convert a project — Audit components, create
.claude-plugin/plugin.json, migrate toskills//agents//commands/— seereferences/workflows.md(Workflow 2). - Publish to marketplace — Create
.claude-plugin/marketplace.jsonusing the template in the Workflow Sections → Publishing section below, then seereferences/marketplace-reference.mdfor full schema.
For bash scaffolding commands and init_plugin.py, see references/quick-start-guide.md.
New Plugin Creation Interview
After the user selects "Create a new plugin" from Quick Routing, conduct this structured interview to gather all manifest fields before file creation. Ask one question at a time (progressive disclosure):
-
Plugin name — "What's the plugin name?" (lowercase-hyphen, 1-64 chars)
- Maps to:
plugin.json→name; Example:code-reviewer,pdf-processor
- Maps to:
-
Purpose/description — "What does the plugin do? Describe its main purpose and capabilities."
- Maps to:
plugin.json→description(1-1024 chars)
- Maps to:
-
Version — "What version? (semantic format: MAJOR.MINOR.PATCH)"
- Default if not specified:
1.0.0
- Default if not specified:
-
Author information — "Who is the author? (name, optional: email, URL)"
- Maps to:
plugin.json→author.name
- Maps to:
-
Optional metadata — "Any additional metadata? (license, repository, homepage)"
- Example:
"MIT","https://github.com/user/plugin"
- Example:
-
Components (BATCH 1) — Use AskUserQuestion with predefined options (multiSelect: true):
questions: [
{
question: "Which core components will the plugin include?",
header: "Core Components",
options: [
{ label: "Skills", description: "Agent Skills (recommended)" },
{ label: "Agents", description: "Subagents for complex workflows" },
{ label: "Hooks", description: "Event handlers and automation" },
{ label: "MCP servers", description: "Model Context Protocol servers" }
],
multiSelect: true
}
]
- Components (BATCH 2) — Then use AskUserQuestion for optional server support:
questions: [
{
question: "Include Language Server Protocol (LSP) support?",
header: "LSP Servers",
options: [
{ label: "Yes", description: "Add language-specific code intelligence" },
{ label: "No", description: "Skip LSP servers" }
],
multiSelect: false
}
]
⏸️ Wait for both batch responses before proceeding.
- Distribution scope — Use AskUserQuestion with predefined options:
questions: [
{
question: "What's the distribution scope for this plugin?",
header: "Distribution",
options: [
{ label: "Personal", description: "Personal use only" },
{ label: "Team-shared", description: "Share with team members" },
{ label: "Marketplace", description: "Publish to plugin marketplace for community" }
],
multiSelect: false
}
]
Manifest Field Mapping Reference
| Interview Question | Maps to | Type | Required | Notes |
|---|---|---|---|---|
| Plugin name | plugin.json → name |
string | Yes | kebab-case, 1-64 chars |
| Purpose/description | plugin.json → description |
string | Yes | 1-1024 chars |
| Version | plugin.json → version |
string | No | Default: 1.0.0 |
| Author name | plugin.json → author.name |
string | Yes | Must be object property |
| Author email | plugin.json → author.email |
string | No | Optional |
| License | plugin.json → license |
string | No | e.g., "MIT" |
| Repository | plugin.json → repository |
string | No | GitHub URL |
| Distribution scope | marketplace.json |
string | No | personal / team / marketplace |
Common Manifest Generation Failures (Prevention)
author is string instead of object
- ❌
"author": "John Doe"→ ✅"author": {"name": "John Doe"}
Missing required fields — always check name, description, author.name are present before writing.
Incorrect marketplace.json schema:
ownerMUST be object:{"name": "username"}(not a string)pluginsMUST be array:[{...}]sourcepaths MUST start with./
Adding a Component to an Existing Plugin
For one already-designed skill/agent/command/hook joining a plugin that already exists — not a whole new plugin, not a project conversion. This assumes the component's content is already decided (via plugin-ideation/plugin-planning, or already fully specified by the user) — if it isn't yet, redirect to the matching Design skill's own interview first (skill-development/agent-development/command-development/hook-development), then return here to place the result.
- Confirm the target plugin. Ask if not already clear which plugin's directory this component joins (a repo can contain multiple plugins).
- Confirm the component is actually designed and ready to write — full
SKILL.md/agent/command/hook content, not just a name and idea. If not, stop and redirect to the matching Design skill (per the note above) rather than improvising content here. - Check for a name collision —
Globthe target plugin'sskills//agents//commands//hooks/directory for an existing component with the same name. A collision means either this is actually an edit to an existing component (different task, not this workflow) or the name needs to change — surface this rather than silently overwriting. - Check for an in-development staging mirror (the pattern this repo's own
plugin-devkituses,.claude/alongsideplugins/<name>/) — if the target plugin has one, write the component identically to both locations, matching every other component's mirror convention in that plugin. - Write the component's file(s) to the appropriate directory (
skills/<name>/SKILL.md+ anyreferences//scripts//assets/, oragents/<name>.md,commands/<name>.md, or thehooks/hooks.jsonentry + script). - Validate the addition —
claude plugin validate /path/to/plugin(orscripts/validate_plugin.py), confirming the existing plugin's structure and manifest are still valid after the addition, not just that the new component's own file is well-formed. - Invoke
plugin-rulebookagainst the new component before considering it done, same as any other new component (see Reference Guide).
This is the gap build-handoff-writer's own handoff report for this skill originally flagged: Quick Routing previously had no path for this case, forcing a prior real pipeline run to write a component directly rather than through this skill's own interview.
Workflow Sections
1. Creating a New Plugin from Scratch
Interview → create structure → add components → claude plugin validate → test locally.
See references/workflows.md (Workflow 1) for complete step-by-step procedures.
2. Converting an Existing Project to a Plugin
Identify components → create plugin structure → migrate metadata → validate.
See references/workflows.md (Workflow 2).
3. Validating or Improving Existing Plugins
Run claude plugin validate /path/to/plugin directly. Then check references/validation-checklist.md for best practices. For scanner-based automated scanning, see references/workflows.md (Workflow 3).
4. Publishing to Marketplace
Skills repo without plugin.json? Use the
marketplace-developmentskill — it handlesstrict: false, cache footprint validation, and schema anti-patterns.
Create .claude-plugin/marketplace.json:
{
"name": "your-plugin-name",
"owner": { "name": "github-username-or-org" },
"plugins": [
{
"name": "your-plugin-name",
"source": "./",
"description": "What the plugin does"
}
]
}
owner MUST be object. plugins MUST be array. source MUST start with ./. See references/marketplace-reference.md for full schema and distribution setup.
Manifest Generation Best Practices
Official schema vs. internal policy: plugin.json is optional, and when present only name is officially required by the platform. Requiring description, version, author, README, and marketplace metadata below is this project's internal publishing policy for distributable plugins, not a platform requirement — do not present them to the user as officially mandatory.
Before generating, verify you have: name (kebab-case, 1-64 chars), description (1-1024 chars), author name (object), version (default: 1.0.0).
Never generate with incomplete data — incomplete manifests cause validation failures. Run the interview flow first.
allowed-tools convention: plugin-devkit expects every packaged skill to declare allowed-tools in its SKILL.md frontmatter. This is a local convention, not a platform requirement: the platform treats the field as optional, and it only pre-approves tools. Audit with python scripts/validate_plugin.py --check 2025.
Automation Scripts
| Script | Purpose | Key Flags |
|---|---|---|
scripts/init_plugin.py |
Scaffold plugin structure (directories + plugin.json) | --components skills,agents |
scripts/create_plugin.py |
Scaffold + register in marketplace.json | --author-name --author-email --description --keywords (all required), --marketplace-root /path |
scripts/generate_manifest.py |
Generate schema-compliant plugin.json | --template minimal|standard|complete |
scripts/validate_plugin.py |
Validate structure, manifest, allowed-tools convention | --check 2025 --verbose, --json (CI) |
scripts/package_skills.py |
Copy .claude/skills/ into plugin format |
--validate --dry-run |
scripts/bump_version.py |
Bump version in plugin.json + marketplace.json atomically | major|minor|patch |
scripts/scan-plugin.sh |
Scan plugin and output JSON validation report | /path/to/plugin /tmp/report.json |
scripts/check_links.py |
Check markdown link targets resolve; flag bare `file.md` mentions that don't exist anywhere in the tree (advisory) |
/path/to/plugin-or-skill-dir |
Templates in templates/: plugin.json.minimal, plugin.json.standard, plugin.json.complete, marketplace.json.minimal, marketplace.json.multi. See templates/README.md for template usage guide.
See references/workflows.md for complete development workflows using these scripts.
Component Overview
| Component | Use Case |
|---|---|
Agent Skills (skills/) |
Capabilities Claude uses automatically or via /skill-name (recommended) |
Subagents (agents/) |
Isolated execution with custom prompts and permissions (use agent-development) |
Hooks (hooks/hooks.json) |
Event handlers: tool use, permissions, sessions (use hook-development) |
MCP Servers (.mcp.json) |
External service integration (APIs, databases) |
LSP Servers (.lsp.json) |
Language-specific code intelligence |
Commands (commands/) |
DEPRECATED: Use Agent Skills instead |
See references/quick-reference.md for component templates and metadata requirements.
File Naming Conventions
| Component | Convention | Example |
|---|---|---|
| Commands | kebab-case .md → becomes slash command |
code-review.md → /code-review |
| Agents | kebab-case .md describing role |
test-generator.md |
| Skills | kebab-case directory name | api-testing/, error-handling/ |
| Scripts | kebab-case + extension | validate-input.sh, process-data.py |
| Config | Standard names only | hooks.json, .mcp.json, plugin.json |
Common Mistakes
| Mistake | Wrong | Correct |
|---|---|---|
Components inside .claude-plugin/ |
my-plugin/.claude-plugin/skills/ |
my-plugin/skills/ (at plugin root) |
| Absolute paths in manifests | "skills": "/Users/me/plugin/skills" |
"skills": "./skills" |
| Non-kebab plugin name | "name": "My_Plugin" |
"name": "my-plugin" |
author as string |
"author": "John Doe" |
"author": {"name": "John Doe"} |
Missing allowed-tools in SKILL.md |
No frontmatter field | allowed-tools: Read Grep |
| No README.md | (missing) | Always include install + usage instructions |
Common Failures (Quick Reference)
- Plugin directory already exists — scaffolding scripts refuse to overwrite; remove the existing directory or edit it directly.
- Marketplace manifest not found —
.claude-plugin/marketplace.jsonmust exist before registering a plugin in it (seereferences/marketplace-reference.md). - Plugin not found in marketplace manifest — the plugin name must match exactly (case-sensitive) an entry in
marketplace.json. - Changes not taking effect after reinstall — Claude Code caches plugin files; restart Claude Code or run
/reload-plugins(seereferences/plugin-caching.md,references/local-development.md).
For debugging, common issues, and production checklist, see references/troubleshooting-and-production.md.
Key Notes
Description formula (activation signal):
[Action]. [Brief description of purpose]. [Components/scope].
Example: "Review code for best practices. Includes validate, report, and export commands."
For plugin naming, paths, CLI commands, and installation scopes, see the Reference Guide below.
Testing & Validation
Expected triggers — concrete phrases this skill should activate on (documentation only; the frontmatter description above is the actual activation-matching text this list doesn't modify):
- "Create a Claude Code plugin"
- "Build a plugin for marketplace"
- "Add a command/skill/agent/hook to plugin"
- "Bump the plugin version"
- "Update plugin.json" / "Register plugin in marketplace"
- "Set up plugin testing" / "Publish plugin to marketplace"
Non-triggers — phrases that should NOT activate this skill:
- "Create a new skill for X" → use
skill-developmentinstead (component-level, not whole-plugin) - "Review my plugin's code for bugs" → not a plugin-structure concern
After creating or modifying a plugin:
- JSON syntax —
jq empty .claude-plugin/plugin.json && echo "Valid"before anything else - Schema validation —
claude plugin validate /path/to/plugin(orpython scripts/validate_plugin.py) - allowed-tools convention —
python scripts/validate_plugin.py --check 2025forallowed-toolsaudit - Local test —
claude --plugin-dir /path/to/plugin— verify components appear and activate correctly - Marketplace test — if publishing:
claude plugin marketplace add . && claude plugin install <name>
Quality gates:
- [ ]
claude plugin validatereports no errors - [ ]
authoris an object ({"name": "..."}) not a string - [ ] All manifest paths use
./(no absolute paths) - [ ] All packaged skills have
allowed-toolsin frontmatter - [ ] Plugin activates correctly under
claude --plugin-dir /path - [ ] README.md exists with installation instructions
- [ ] Manifest/component changes were verified against the current official plugin reference, not cached assumptions
Packaging & Scope Notes
- CLAUDE.md is not project context here: a
CLAUDE.mdat the plugin root is NOT loaded as project context. Deliver runtime instructions through skills, agents, hooks, or other plugin components instead (seereferences/plugin-architecture.mdandreferences/claudemd-guidelines.md). - Reload behavior: skill
SKILL.mdchanges take effect immediately; changes to other components (hooks, agents,.mcp.json, output-styles) require/reload-pluginsor a restart (seereferences/local-development.md). - Scope selection: choose
user(personal, cross-project),project(team-shared, version-controlled),local(private, machine-specific), ormanaged(org-controlled) intentionally — for team-shared settings, hooks, MCP servers, and plugins preferproject; reservelocalfor personal overrides (seereferences/installation-and-cli.md). defaultEnabled: setdefaultEnabled: falsefor plugins that add cost, contact external services, start background services, or broaden tool scope (seereferences/manifest-reference.md).bin/is privileged: plugin executables inbin/are added toPATHwhen the plugin is enabled — review and test them like hook scripts and MCP server binaries (seereferences/directory-structure.md).- Plugin
settings.json: only a limited set of keys is supported — validate againstreferences/manifest-reference.mdbefore adding new ones. - Dependencies: declare plugin dependencies explicitly; they are validated during install, enable, update, disable, and prune workflows (see
references/manifest-reference.md). - MCP servers: define plugin MCP servers in plugin-root
.mcp.jsonor inline inplugin.json; use${CLAUDE_PLUGIN_ROOT}for bundled server commands and config files (seereferences/mcp-servers.md). - Version bumps: bump
plugin.jsonversion andmarketplace.jsonfor releases intended for users, and sync the README version on distribution-ready releases (seereferences/versioning-and-distribution.md); specific commit-per-bump requirements are project-internal policy, not a platform rule.
Reference Guide
| Resource | Purpose |
|---|---|
references/plugin-architecture.md |
How plugins load, token costs, architecture overview |
references/directory-structure.md |
Standard directory layout |
references/plugin-structure.md |
Structure overview + common plugin patterns |
references/plugin-json-schema.md |
Terse, example-first plugin.json field reference |
references/manifest-reference.md |
Complete plugin.json field reference (defaultEnabled, dependencies, version fallback chain, path resolution) |
references/quick-start-guide.md |
5-minute setup commands and bash scaffolding |
references/quick-reference.md |
Component templates, formats, metadata requirements |
references/workflows.md |
Create, convert, validate, distribute — complete procedures, patterns, and automated scanning |
references/components-in-plugins.md |
Component packaging and path guidance |
references/component-patterns.md |
Component design patterns |
references/hooks.md |
Hook patterns and examples |
references/validation-checklist.md |
Comprehensive best practices checklist |
references/validation-rules.md |
allowed-tools convention rules |
references/marketplace-reference.md |
marketplace.json schema, distribution methods, team setup, versioning, troubleshooting |
references/versioning-and-distribution.md |
Semver, changelog, distribution |
references/plugin-paths-variables.md |
$CLAUDE_PLUGIN_ROOT and path portability |
references/plugin-caching.md |
Caching behavior and implications |
references/installation-and-cli.md |
Scopes and CLI commands |
references/troubleshooting-and-production.md |
Debugging, common issues, production checklist |
references/local-development.md |
Local debugging and testing |
references/mcp-servers.md |
MCP server configuration |
references/claudemd-guidelines.md |
Writing and maintaining a project's CLAUDE.md |
references/lsp-servers.md |
LSP integration |
references/slash-command-format.md |
Legacy command support (backward compatibility) |
references/output-styles.md |
Response-formatting styles (Markdown, /output-style) — not CSS |
references/themes.md |
Color theme presets (JSON, /theme) |
references/monitors.md |
Background watcher configs (v2.1.105+) |
templates/README.md |
Overview and usage guide for template files |
examples/minimal-plugin.md |
Minimal working plugin example |
examples/standard-plugin.md |
Standard plugin with common components |
examples/advanced-plugin.md |
Full-featured plugin with all component types |
plugin-rulebook |
Plugin-level rules — invoke before finalizing any component to check naming, language, formatting, tool-scoping, and external-reference compliance |
04 同仓库更多 Skills
demo
Fixture skill used by scripts.marketplace_ci sync tests.
export-demo
Fixture skill used by scripts.marketplace_ci export tests.
work-to-development
Validate an accepted Linear Issue's readiness for implementation (criteria, dependencies, duplicate/existing artifacts) and request governed branch/worktree creation through git-kit:starting-work — recording work-started Git/GitHub evidence and a deliberate Linear Started transition only after Git identity is read back and verified. Use when asked to start work on a Linear issue, begin development for an accepted issue, or prepare an accepted issue for implementation. Never creates a branch directly — always delegates to git-kit.
work-linking
Create and maintain stable cross-system links and authority labels between Notion and Linear records, and detect/repair drift between them. Use when asked to link a Notion record to a Linear record, check for drift between Notion and Linear, or repair a broken/stale link. Repairs only the bounded non-authoritative copy or link — never chooses by newest timestamp, and never creates a reverse-write loop against either system's own authority.
status-and-learning
Produce a dated, explicitly non-live Linear-to-Notion progress summary, or capture an outcome/learning after work completes. Use when asked to summarize progress to Notion, report portfolio status, or capture what was learned from a completed piece of work — not to disposition open follow-up items (see open-item-management for that). Never runs automatically or continuously — every summary is a deliberate, approved snapshot, not a live sync.
repository-gates
Discover, delegate, record, and invalidate this repository's actual Git/GitHub lifecycle gates (pre-commit, pre-push, PR required checks, Codex delta review, review requirements, merge rights) and the repository-policy provider profile that maps governed operations to git-kit. Use when asked what gates apply to this repository, to discover repository policy before starting Wave 2 work, or to check whether prior gate evidence is still valid after new commits. Discovery and delegation only — never executes a gate's own internal logic, and never invents a gate the repository doesn't actually define (in particular, never assumes a "Review Changes" gate exists).