auditing
Use when reviewing a bundle-plugin for structural issues, version drift, skill quality, workflow integration, or security risks — before releasing, after…
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
$ npx -y skills add OdradekAI/bundles-forge --skill authoring --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/authoringContext preview
The summary Claude sees to decide when to auto-load this skill.
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
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:
0. **Triage: should this be a skill?** — Before writing, verify the content warrants a skill:
1. **Detect project root** — look for `skills/` directory + `package.json` above the target 2. **If project exists**, read 2-3 existing SKILL.md files to extract the project's conventions:
3. **If no project** (standalone authoring), use the conventions from `references/skill-writing-guide.md` directly
Write skill or agent content from scratch.
1. **Gather requirements** — from `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 overviews 2. **Load writing guide** — read `references/skill-writing-guide.md` (frontmatter conventions, description rules, instruction style) 3. **Write frontmatter** — `name` (kebab-case matching directory), `description` (start with "Use when...", under 250 chars, triggering conditions only) 4. **Write Overview** — 1-3 sentences: what the skill does, core principle, skill type declaration (rigid / flexible / hybrid) 5. **Write the process** — step-by-step execution flow. Use imperative form. Explain why, not just what. Include at least one concrete example per key instruction 6. **Write Common Mistakes** — table of pitfalls and fixes (at least 3 entries) 7. **Write Inputs / Outputs / Integration** — declare artifact IDs, calling relationships, and pairing skills 8. **Check external dependencies:**
9. **Evaluate token budget** — if body exceeds 300 lines, extract heavy sections to `references/`. Front-load critical instructions in the first ~5,000 tokens — after context compaction, only this portion survives 10. **Run validation** (see Post-Action Validation below)
Adapt an existing/external skill to fit a project's conventions and workflow.
1. **Read the incoming skill** — understand its purpose, triggering scenarios, and current structure 2. **Read project conventions** (from Step 0) — identify gaps between the incoming skill and project patterns 3. **Load writing guide** — read `references/skill-writing-guide.md` (frontmatter conventions, description rules, instruction style) 4. **Adapt frontmatter** — rewrite `description` to match project style (verb
A toolkit for building bundle-plugins — AI coding plugins organized around collaborative skill workflows — across Claude Code, Cursor, Codex, OpenCode, Gemini CLI, and OpenClaw.
Use when reviewing a bundle-plugin for structural issues, version drift, skill quality, workflow integration, or security risks — before releasing, after…
Use when planning new bundle-plugins, splitting complex skills, combining skills into bundles, or exploring a vague idea about packaging skills
Use when optimizing a bundle-plugin or single skill — improving descriptions, reducing tokens, fixing audit findings, restructuring workflows, adding skills to…
Use when releasing a bundle-plugin, bumping versions, fixing version drift across manifests, setting up version sync infrastructure, updating CHANGELOG,…
Use when generating project structure for new bundle-plugins, adding or removing platform support (Claude Code, Cursor, Codex, OpenCode, Gemini CLI, OpenClaw),…
Use when testing a bundle-plugin locally before release — generating dev-marketplace environments, verifying component discovery, running hook smoke tests, and…