一键导入
authoring
// Use when writing, completing, improving, or adapting SKILL.md and agents/*.md in a bundle-plugin — integrating external skills, filling scaffolded stubs, or rewriting for better triggering and token efficiency
// Use when writing, completing, improving, or adapting SKILL.md and agents/*.md in a bundle-plugin — integrating external skills, filling scaffolded stubs, or rewriting for better triggering and token efficiency
Use when reviewing a bundle-plugin for structural issues, version drift, skill quality, workflow integration, or security risks — before releasing, after changes, or after adding skills. Auto-detects scope (full project vs skill vs workflow)
Use when generating project structure for new bundle-plugins, adding or removing platform support (Claude Code, Cursor, Codex, OpenCode, Gemini CLI, OpenClaw), updating platform manifests, or migrating hooks and configuration between platforms
Use when optimizing a bundle-plugin or single skill — improving descriptions, reducing tokens, fixing audit findings, restructuring workflows, adding skills to fill gaps, or iterating on user feedback
Use when planning new bundle-plugins, splitting complex skills, combining skills into bundles, or exploring a vague idea about packaging skills
Use when releasing a bundle-plugin, bumping versions, fixing version drift across manifests, setting up version sync infrastructure, updating CHANGELOG, publishing to marketplaces, or checking release readiness
Use when testing a bundle-plugin locally before release — generating dev-marketplace environments, verifying component discovery, running hook smoke tests, and validating cross-platform readiness
| name | authoring |
| description | Use when writing, completing, improving, or adapting SKILL.md and agents/*.md in a bundle-plugin — integrating external skills, filling scaffolded stubs, or rewriting for better triggering and token efficiency |
| allowed-tools | Bash(bundles-forge audit-skill *) |
Guide the authoring of effective SKILL.md files, agent definitions (agents/*.md), and supporting resources within a bundle-plugin. Good content is the difference between skills that agents consistently find and follow — and ones that get ignored or misinterpreted.
Core principle: Write for the agent's experience. Every instruction should be discoverable (good description), loadable (right size), and followable (clear, motivated instructions). Skills are the first-class source of truth in a bundle-plugin — docs and README must not contradict skill content (see bundles-forge:auditing — references/source-of-truth-policy.md).
Skill type: Hybrid — follow the execution flow rigidly (Entry Detection → Path steps → Validation), but apply writing guidance flexibly based on context. The process is discipline-enforcing; the content decisions are pattern-based.
Announce at start: "I'm using the authoring skill to help [write / complete / improve / adapt] [skill / agent] content."
Determine the authoring path from context:
| Context | Path |
|---|---|
skill-inventory from blueprinting, or user requests writing new SKILL.md / agent definition from scratch | Path 1: New Content |
| User provides an existing/external skill to add into a project, or asks to adapt a skill to match project conventions | Path 2: Integrate Content |
scaffold-output directories exist but SKILL.md body has < 10 non-empty lines | Path 3: Complete Content |
User provides existing in-project skill-md to improve, or optimization-spec from optimizing with specific changes | Path 4: Improve Content |
When the target is an agent definition (agents/*.md) rather than a skill, follow the same path logic but use the agent authoring conventions from references/agent-authoring-guide.md.
Before writing any content, verify scope and detect the project context:
bundles-forge:blueprinting (triage already done during design)skills/ directory + package.json above the targetproject:skill-name prefix)references/, line counts)references/skill-writing-guide.md directlyWrite skill or agent content from scratch.
skill-inventory and design document context (blueprinting), user description, or conversation context. Identify: skill purpose, triggering scenarios, expected inputs/outputs, relationship to other skills. When a design document is available, leverage its project overview, target users, and use cases to write more targeted descriptions and overviewsreferences/skill-writing-guide.md (frontmatter conventions, description rules, instruction style)name (kebab-case matching directory), description (start with "Use when...", under 250 chars, triggering conditions only)references/skill-writing-guide.md "External Tool References" section for allowed-tools declaration, fallback patterns, and CLI vs MCP guidanceallowed-tools declares external CLI tools (not git, python, node, npm, npx, bash, or paths under bin//scripts/), confirm the body includes a ## Prerequisites section with a Tool/Check/Install table. Read references/skill-writing-guide.md "Prerequisites Writing" for the standard formatreferences/. Front-load critical instructions in the first ~5,000 tokens — after context compaction, only this portion survivesAdapt an existing/external skill to fit a project's conventions and workflow.
references/skill-writing-guide.md (frontmatter conventions, description rules, instruction style)description to match project style (verb form, scoping), ensure name follows project kebab-case conventionFill in scaffolded skill stubs with substantive content.
references/skill-writing-guide.md (frontmatter conventions, description rules, instruction style)description (triggering conditions, "Use when...", under 250 chars). If name is already set, verify it matches directory namereferences/ for heavy content, assets/ for templates. Read references/skill-writing-guide.md "Supporting Resources" section for thresholds. Front-load critical instructions in the first ~5,000 tokens — after context compaction, only this portion survivesEnhance existing in-project content based on user feedback or optimization specs.
optimization-spec, or self-diagnosis:
references/, cut redundancy, front-load critical instructions in the first ~5,000 tokensreferences/skill-writing-guide.md (frontmatter conventions, description rules, instruction style)After completing any path, validate the authored content:
bundles-forge audit-skill <skill-directory> on each authored/modified skill
references/quality-checklist.md manually| Mistake | Fix |
|---|---|
| Description summarizes workflow | Describe triggering conditions only — agents shortcut to description |
| Piling on MUST/ALWAYS/NEVER | Explain why the rule exists — understanding beats compliance |
| Putting everything in SKILL.md | Extract heavy content (100+ lines) to references/; keep body under 500 lines |
| No examples, only abstract rules | Add at least one concrete example per key instruction |
| Writing for humans, not agents | Use imperative form, clear structure, explicit output formats |
| Description too narrow | Be pushy — list related scenarios, edge cases, alternative phrasings |
| Description too broad | Scope to the right context (e.g., "bundle-plugins" not just "any project") |
| Skipping project conventions | Always read existing skills first when working in an established project |
| Not wiring Integration section | Every skill needs Called by / Calls / Pairs with to connect to the workflow graph |
| No defensive instructions for rigid skills | For rigid/hybrid skills, add explicit loophole closers, rationalization tables, and red-flag lists — see Defensive Writing in references/skill-writing-guide.md |
| Forgetting validation | Always run bundles-forge audit-skill after authoring — catches issues before they propagate |
skill-inventory (optional) — list of skills and agent definitions to write, from bundles-forge:blueprinting design documentscaffold-output (optional) — scaffolded skill directories needing content (from blueprinting pipeline or standalone scaffolding)skill-md (optional) — existing SKILL.md or agent definition to improve, complete, or adaptoptimization-spec (optional) — specific content changes requested by bundles-forge:optimizing (e.g., rewrite description, reduce tokens, restructure sections)skill-content — completed or improved SKILL.md files following authoring conventions (frontmatter, description, body structure, token efficiency)agent-content (optional) — completed agents/*.md definitions following agent authoring conventionsCalled by:
Pairs with: