/project-toolkit:skillforgefrom project-toolkit
Routes any input to existing skills, improves them, or creates new ones. Analyzes goals, errors, URLs, and code to avoid duplication. Use for skill creation, discovery, or improvement requests.
Ships in project-toolkit. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Analyzes any input to find, improve, compose, or create the right skill.
Boundary with skillify: SkillForge starts from a goal or request. To turn a
workflow you just completed into a skill, driven by the session's tool calls,
branches, and errors, use skillify.
SkillForge accepts direct creation requests, skill improvement requests, skill lookup questions, task prompts, error messages, URLs, and code snippets. It routes first, then creates only when no existing skill covers the need.
SkillForge: create a skill for automated code review
-> Creates a new skill after checking for duplicates
help me debug this TypeError
-> Recommends an existing debugging skill
improve the testgen skill to handle React components better
-> Loads the skill and enters improvement mode
do I have a skill for database migrations?
-> Recommends matching database skills
See references/overview-and-triggers.md for the full examples, triggers, routing diagram, and command summary. See references/phase0-triage.md for the full triage flow and script examples.
SkillForge: {goal}: full autonomous skill creationcreate skill: natural language activationdesign skill for {purpose}: purpose-first creationultimate skill: maximum quality creation pathSkillForge --plan-only: generate specification without execution{any input}: analyze and route automaticallydo I have a skill for: search existing skillswhich skill or what skill: recommend matching skillsimprove {skill-name} skill: improve an existing skillhelp me with or I need to: detect task and route| Input | Output | Quality Gate |
|---|---|---|
| Any input | Triage -> Route -> Action | Phase 0 analysis |
| Explicit create | New skill | Depth Contract tier; unanimous panel when it runs |
| Skill question | Skill recommendation | Match confidence >=60% |
Any user input
-> Accepted outcome: what must be true, its check, and who accepts it
-> Phase 0: Skill triage
-> USE_EXISTING, IMPROVE_EXISTING, CREATE_NEW, COMPOSE, or CLARIFY
-> Depth Contract: pick the tier from the triage route and the outcome
-> Phase 1: Analysis the tier calls for (skipped for a bounded edit)
-> Phase 2: Specification with rationale and evolution score (Standard and Full tiers)
-> Phase 3: Generation of SKILL.md, references/, assets/, and scripts/
-> Phase 4: Independent review; full panel until unanimous approval when the tier requires it
-> Production-ready agentic skill
Key principles:
Start with least privilege: Read, Glob, Grep, Write, and Edit. Add
Bash, WebFetch, WebSearch, or Task only when the current skill requires
local scripts, external facts, or true parallel sub-agent orchestration.
| Command | Action |
|---|---|
SkillForge: {goal} | Full autonomous execution |
SkillForge --plan-only {goal} | Generate specification only |
SkillForge --quick {goal} | Bounded tier for a low-risk edit with a deterministic verifier; escalates when the Depth Contract says so |
SkillForge --triage {input} | Run Phase 0 triage only |
SkillForge --improve {skill} | Enter improvement mode for existing skill |
Measured improvement against a scored eval set routes to skillopt. Improve mode
(--improve, IMPROVE_EXISTING) is for unscored structural edits.
Define the accepted outcome before choosing steps: one sentence naming what must be true, the check that proves it, and who accepts it. Then pick the lightest tier whose analysis covers the unresolved risk. Three inputs choose the tier: uncertainty (open requirements, unknown triggers), consequence (who ships it, what breaks if wrong, whether it is reversible), and missing evidence (no verifier, no prior art checked).
| Tier | Typical case | Path |
|---|---|---|
| Bounded | Structural edit to an existing skill, known scope, a deterministic verifier | Phase 0 triage, --improve or --quick, Phase 3 edit, validators. No Phase 1 discovery, no long-horizon scoring. |
| Standard | Scoped change with a few open questions | Bounded path plus only the Phase 1 lenses and regression questions that address a named open risk |
| Full | New ambiguous capability, or two or more high inputs | Phases 0 to 4, all 11 lenses, panel review |
Consequential changes override the tier. A change to a safety control, a permission or authority boundary, a shipped default, or anything irreversible keeps the human decision and an independent review, whatever the step count. Get explicit human acceptance before Phase 3 writes any such change.
Choose each step's executor on purpose. Existing scripts do computable work
(triage_skill_request.py, discover_skills.py, the validators). Models
interpret and synthesize. The accountable human keeps tradeoffs and authority
decisions. Follow Design Selection (map, GPS, or hybrid) in the script
integration framework for the split.
Reuse context only with its scope and freshness: record the skill or repo it covers and the SHA or date it was read. Revalidate when scope widens, the touched paths changed since that SHA, or a verifier fails. Stale context is re-read, never reused.
Report a depth reduction as an improvement only when accepted outcomes hold and
trust does not regress. Report accepted outcomes, human effort, cost, and
latency, and mark any figure not measured as unknown.
See references/depth-contract.md for the tier rules, escalation triggers, and the before/after cases.
Classify the input, scan the skill ecosystem, score matches, then route to one of five actions. Recommend existing skills for strong matches (>=80%, or >=60% for skill questions), improve matches in the 50-79% range, create below 50%, compose multi-domain requests, and clarify only when ambiguity or duplicate risk blocks a safe route.
See references/phase0-triage.md for the decision matrix, script examples, ecosystem index, and integration with later phases.
When the input is an external or third-party skill catalog to adapt (not a local task), apply three gates before any Phase 0 route:
See references/external-skill-source-adaptation.md.
Run at Standard and Full tiers, scoped by the Depth Contract. Expand explicit requirements, implicit requirements, unknown unknowns, and domain context. At the Full tier, apply all 11 thinking models and run regression questioning until three rounds add no new insight. At the Standard tier, apply only the models that address a named open risk and stop when a round adds no new unresolved risk. Identify automation opportunities at both tiers.
See references/phase1-analysis-deep-dive.md, references/multi-lens-framework.md, and references/regression-questions.md.
Create the XML skill specification with metadata, context, requirements, architecture, scripts, evolution analysis, anti-patterns, and success criteria. Validate traceability, rationale, extension points, and timelessness before writing skill files.
See references/phase2-specification-deep-dive.md and references/specification-template.md.
Generate the skill directory in this order: structure, SKILL.md, references,
assets, then scripts when scripts are needed. Keep SKILL.md concise and move
deep detail into progressive-disclosure reference files. Choose map, GPS, or
hybrid design with the Design Selection section of the script integration
framework. Record that choice in the generated skill only where it changes the
workflow. Reuse an existing tool before adding a script.
Read references/skill-content-rules.md
before you write or review a SKILL.md body or description. It owns the
content rules and the description rules that skillify and skillopt cite.
See references/phase3-generation-deep-dive.md, references/output-structure.md, references/script-integration-framework.md, and references/script-patterns-catalog.md.
Required at the Full tier and for any consequential change; a Bounded edit is reviewed by the validators and the repository gates instead. Run 3-4 independent evaluators: design and architecture, audience and usability, evolution and timelessness, plus script and automation when scripts exist. All agents must approve. Rejections loop back into targeted analysis and generation.
See references/phase4-synthesis-deep-dive.md and references/synthesis-protocol.md.
Evaluate each skill across 6-month, 1-year, 2-year, and 5-year horizons. Reject transient designs, revise tool-bound designs, and approve principle-based skills with extension points. Select the architecture pattern that fits task complexity.
See references/evolution-scoring.md, references/evolution-timelessness.md, and references/architecture-patterns.md.
Before distribution, validate structure, frontmatter, scripts, documentation safety, and packaging. Keep command examples portable when a plugin-root path is needed.
# Validators enforce a path-traversal guard: the target skill directory must
# live under your current directory. Run them from an ancestor of the skill.
ROOT="${COPILOT_PLUGIN_ROOT:-${CLAUDE_PLUGIN_ROOT:-.claude}}"
ROOT="$(cd "$ROOT" && pwd)"
FORGE="$ROOT/skills/skillforge/scripts"
cd "$HOME/.claude"
python "$FORGE/quick_validate.py" skills/my-skill/ # required before packaging
python "$FORGE/validate-skill.py" skills/my-skill/ # full structural validation
python "$FORGE/check_docs_safety.py" skills/my-skill/ # unsafe hook command examples in docs
python "$FORGE/skill_modularity_audit.py" skills/my-skill/ --ci # size and progressive disclosure
python "$FORGE/package_skill.py" skills/my-skill/ ./dist # package for distribution
Every validator takes the skill directory and answers --help. skill_modularity_audit.py
exits 0 without --ci even for an oversized skill; with --ci it exits 1. In either mode it
exits 2 when it audited nothing (wrong path, or every SKILL.md unreadable). With --ci, any
unreadable SKILL.md also exits 2. An exit 2 is never a pass.
To validate a skill in another checkout without cd or copying, pass
--root DIR to quick_validate.py or validate-skill.py. The skill must
resolve inside DIR. A symlinked skill directory, SKILL.md, or
script file that escapes it is rejected. The default root stays the
current directory, and an absolute path outside it is still rejected without
--root. A relative skill path resolves against the current directory, not
against DIR, so pass an absolute path with --root:
python "$FORGE/quick_validate.py" /other/repo/skills/my-skill --root /other/repo
See references/output-structure.md for allowed frontmatter fields, directory layout, script categories, hook configuration, and output requirements.
| Avoid | Why | Instead |
|---|---|---|
| Duplicate skills | Bloats registry | Check existing first |
| Single trigger | Hard to discover | 3-5 varied phrases |
| No verification | Cannot confirm success | Measurable outcomes |
| Over-engineering | Complexity without value | Start simple |
| Missing WHY | Cannot evolve | Document rationale |
| Invalid frontmatter | Cannot package | Use allowed properties only |
| Restating pre-trained knowledge | The model already knows SOLID, Clean Code, and the refactoring catalog. Restating it adds tokens and buys no behavior change. | Write only what the model cannot know: repo gotchas, local conventions, post-cutoff APIs |
| Body loaded when the description would do | The description is always visible; the body is not. If the body only elaborates the description, it is never the reason the skill worked. | Put the decision rule in the description, the depth in references/ |
| Adding to always-on context | Passive context is billed on every request, whether or not the task needs it | Use progressive disclosure by default. Read ../context-optimizer/references/model-context-doctrine.md and ../context-optimizer/references/rule-audit-procedure.md before proposing always-on text. |
| Negative rule pileup | Long "never do X" lists cause overconstraint; the model optimizes for the prohibitions over the task | State the goal and the one costly failure to avoid; keep hard rules for genuinely expensive mistakes |
After creation:
< or >SKILL.md under 500 lines and 5,000 tokens, or the overage is statedpython "$FORGE/quick_validate.py" skills/my-skill/ passespython "$FORGE/validate-skill.py" skills/my-skill/ passespython "$FORGE/check_docs_safety.py" skills/my-skill/ passespython "$FORGE/skill_modularity_audit.py" skills/my-skill/ --ci exits 0 (1 means oversized, 2 means it audited nothing).claude/skills/... exec path in the generated SKILL.md; script invocations use the portable ${COPILOT_PLUGIN_ROOT:-${CLAUDE_PLUGIN_ROOT:-.claude}}/skills/... form (see docs/SKILL-AUTHORING.md, "Portable Script Invocations")references/ or deletedThe scripts/ directory makes SkillForge agentic: it can scaffold, triage, validate, and package skills with fast-fail checks and independent postcondition checks. Scripts run on the Python 3 standard library; a few use PyYAML for frontmatter parsing when it is installed and fall back to a stdlib parser when it is not. Exit codes: 0 on success and non-zero on failure (1 general; individual scripts add 2 or 3 for specific precondition failures, documented in each script's --help).
| Script | Purpose |
|---|---|
triage_skill_request.py | Phase 0 triage: classify an input and route to build, improve, or reuse |
discover_skills.py | Ecosystem scan: enumerate existing skills before creating a new one |
init_skill.py | Scaffold a new skill directory from the standard structure |
validate-skill.py | Full validation of a generated skill against SkillForge standards |
quick_validate.py | Fast structural check of frontmatter and required sections |
skill_modularity_audit.py | Audit SKILL.md size and flag progressive-disclosure violations |
package_skill.py | Package a completed skill for distribution |
check_docs_safety.py | Safety scan of generated documentation |
frontmatter.py | Internal helper module: shared YAML frontmatter parsing (imported, not run directly) |
_constants.py | Internal helper module: shared constants and thresholds (imported, not run directly) |
_inflection.py | Internal helper module: shared word-inflection matching for discovery and triage (imported, not run directly) |
See references/script-integration-framework.md for when to add scripts and references/script-patterns-catalog.md for the standard patterns.
| Reference | Contents |
|---|---|
| Overview and Triggers | Original examples, trigger lists, routing diagram, commands |
| Depth Contract | Outcome-first tiers, escalation, evidence reuse, before/after cases |
| Phase 0 Triage | Input classification, ecosystem scan, decision matrix, triage scripts |
| External Skill Source Adaptation | Gates for adapting a foreign skill catalog: pinned source, reuse over duplication, reject product coupling |
| Phase 1 Deep Dive | Input expansion, lens scan, regression questioning, automation analysis |
| Multi-Lens Framework | 11 thinking models and application guidance |
| Regression Questions | Complete question bank and termination criteria |
| Phase 2 Deep Dive | Specification structure and validation |
| Specification Template | Full XML specification template |
| Phase 3 Deep Dive | Generation order and quality checks |
| Output Structure | Frontmatter, directory structure, scripts, hooks |
| Script Integration Framework | When and how to add scripts |
| Script Patterns Catalog | Standard Python script patterns |
| Phase 4 Deep Dive | Panel composition, script agent, evaluation format, consensus loop |
| Synthesis Protocol | Multi-agent panel execution details |
| Evolution Scoring | Timelessness scoring and evolution rubric |
| Skill Content Rules | Authoring content rules and description rules; read before writing a body or description |
| Skill Development Conventions | Repository skill conventions: frontmatter schema, size ceilings, Triggers and Process sections |
| Evolution Timelessness | Temporal projection and anti-obsolescence patterns |
| Architecture Patterns | Pattern selection guide and decision tree |
| Configuration | SkillForge configuration defaults |
| Changelog | Version history |
skill-composer (orchestrate created skills), claude-authoring-guide (deeper patterns), codereview (multi-agent panel pattern), maker-framework (zero-error standard).
Add thinking models, panel agents, architecture patterns, or script patterns via the matching references/*.md; add domain templates in assets/templates/.
TRANSFORMATION_NOTES.md (opens in a new tab)assets/templates/script-template.py (opens in a new tab)assets/templates/skill-md-template.md (opens in a new tab)assets/templates/skill-spec-template.xml (opens in a new tab)references/architecture-patterns.md (opens in a new tab)references/changelog.md (opens in a new tab)references/configuration.md (opens in a new tab)references/degrees-of-freedom.md (opens in a new tab)references/depth-contract.md (opens in a new tab)references/evolution-scoring.md (opens in a new tab)references/evolution-timelessness.md (opens in a new tab)references/external-skill-source-adaptation.md (opens in a new tab)references/iteration-guide.md (opens in a new tab)references/modularity-guidelines.md (opens in a new tab)references/multi-lens-framework.md (opens in a new tab)references/output-structure.md (opens in a new tab)references/overview-and-triggers.md (opens in a new tab)references/phase0-triage.md (opens in a new tab)references/phase1-analysis-deep-dive.md (opens in a new tab)references/phase2-specification-deep-dive.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Generated from the plugin's indexed repository (rjmurillo/ai-agents) — no native marketplace selected
npx claudepluginhub p/rjmurillo-copilot-cli-agents-src-copilot-cli104 skills in this plugin
/adr-generatorCreate comprehensive Architectural Decision Records (ADRs). Researches the destination directory to detect existing template conventions, gathers context, determines next ADR number, generates the ADR, validates completeness, and saves. Supports multiple ADR formats (MADR, Nygard, Alexandrian, project canonical). Use when documenting technical decisions, creating new ADR files, or capturing rationale so future readers can revisit a choice. Use when you say "write an ADR", "document this decision", "document these design choices", "record why we chose this", "capture the rationale", or "for future maintainers", or when creating an ADR-like markdown file under docs/decisions/, docs/adr/, docs/architecture/, architecture/decisions/, or .project-toolkit/architecture/. Do NOT use to debate or review an existing ADR (use adr-review)./adr-reviewMulti-agent debate orchestration for Architecture Decision Records. Automatically triggers on ADR create/edit/delete. Coordinates architect, critic, independent-thinker, security, analyst, and high-level-advisor agents in structured debate rounds until consensus. Use when you say "review this ADR", when an ADR is created/edited/deleted, or when reviewing, accepting, or updating a decision file under .project-toolkit/architecture/, docs/architecture/, docs/decisions/, docs/adr/, or architecture/decisions/, including intent like "review this decision record" or "check this rationale for future maintainers". Do NOT use to author a new ADR (use adr-generator)./agent-harness-referenceField reference for Claude Code and GitHub Copilot CLI hook contracts. Covers hook locations, events, matchers, payloads, decisions, exit codes, timeouts, plugin roots, and cloud limits with official URLs and versioned probes. Use for `harness contract`, `copilot cli hook behavior`, `hook payload format`, `stale plugin root`, `Errno 2 _dispatch.py`, or before changing cross-harness hooks. Do NOT use to run the porting campaign (in the ai-agents repository, use `ai-agents-portability-campaign`)./ai-agents-external-claimsVerify external, vendor, and third-party claims (numbers, attributions, structure) against authoritative primary sources before they land in a repo artifact or external deliverable. Covers stake-holding sources, round-number tells, citation-chain drift, and the walk-the-gate-or-file-conservative discipline. Use when you say `verify an external claim`, `check a vendor number`, `is this stat real`, `validate a third-party citation`. Do NOT use for running an experiment (use `ai-agents-research-methodology` in the ai-agents repository) or command-injection scanning (use `security-scan`)./analysis-provenanceIdentify code ownership before modifying validators or linters. Checks file headers for provenance indicators, reviews documentation, and determines provenance as UPSTREAM, LOCAL, VENDOR, or UNKNOWN. Prevents accidental modification of upstream tools./analyzeSystematic multi-step codebase analysis producing prioritized findings with file-line evidence. Covers architecture reviews, security assessments, and code quality evaluations through guided exploration, investigation planning, and synthesis. Use when you say "analyze this codebase", "run security assessment", "architecture review of this system", "find code smells", or "review code quality" across multiple files. Do NOT use for single-file maintainability scoring (use code-qualities-assessment) or CWE-78 injection pattern scanning (use security-scan).Other plugins' skills for the same job