/project-toolkit:skillforgefrom project-toolkit
Routes any user input to existing skills, improves them, or creates new ones. Acts as the front-door orchestrator for skill management.
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, run these checks:
# Validators enforce a path-traversal guard: the skill directory must sit under
# the current directory, or under --root when it is given. package_skill.py
# packages only a skill under ~/.claude/skills.
SKILL="$HOME/.claude/skills/my-skill"
# Required before packaging:
( for d in "${CLAUDE_PLUGIN_ROOT}" "${COPILOT_PLUGIN_ROOT}" .claude; do if [ -n "$d" ] && [ -f "$d/lib/ptk_run.py" ]; then exec python3 "$d/lib/ptk_run.py" skills/skillforge/scripts/quick_validate.py "$SKILL" --root "$HOME/.claude"; fi; done; echo "ptk_run: no plugin root holds lib/ptk_run.py" >&2; exit 2 )
# Full structural validation:
( for d in "${CLAUDE_PLUGIN_ROOT}" "${COPILOT_PLUGIN_ROOT}" .claude; do if [ -n "$d" ] && [ -f "$d/lib/ptk_run.py" ]; then exec python3 "$d/lib/ptk_run.py" skills/skillforge/scripts/validate-skill.py "$SKILL" --root "$HOME/.claude"; fi; done; echo "ptk_run: no plugin root holds lib/ptk_run.py" >&2; exit 2 )
# agentskills.io conformance (in this repository, add --profile project):
( for d in "${CLAUDE_PLUGIN_ROOT}" "${COPILOT_PLUGIN_ROOT}" .claude; do if [ -n "$d" ] && [ -f "$d/lib/ptk_run.py" ]; then exec python3 "$d/lib/ptk_run.py" skills/skillforge/scripts/conformance.py "$SKILL" --root "$HOME/.claude"; fi; done; echo "ptk_run: no plugin root holds lib/ptk_run.py" >&2; exit 2 )
# Unsafe hook command examples in docs:
( for d in "${CLAUDE_PLUGIN_ROOT}" "${COPILOT_PLUGIN_ROOT}" .claude; do if [ -n "$d" ] && [ -f "$d/lib/ptk_run.py" ]; then exec python3 "$d/lib/ptk_run.py" skills/skillforge/scripts/check_docs_safety.py "$SKILL"; fi; done; echo "ptk_run: no plugin root holds lib/ptk_run.py" >&2; exit 2 )
# Size and progressive disclosure:
( for d in "${CLAUDE_PLUGIN_ROOT}" "${COPILOT_PLUGIN_ROOT}" .claude; do if [ -n "$d" ] && [ -f "$d/lib/ptk_run.py" ]; then exec python3 "$d/lib/ptk_run.py" skills/skillforge/scripts/skill_modularity_audit.py "$SKILL" --ci; fi; done; echo "ptk_run: no plugin root holds lib/ptk_run.py" >&2; exit 2 )
# Package for distribution:
( for d in "${CLAUDE_PLUGIN_ROOT}" "${COPILOT_PLUGIN_ROOT}" .claude; do if [ -n "$d" ] && [ -f "$d/lib/ptk_run.py" ]; then exec python3 "$d/lib/ptk_run.py" skills/skillforge/scripts/package_skill.py "$SKILL" ./dist; fi; done; echo "ptk_run: no plugin root holds lib/ptk_run.py" >&2; exit 2 )
Read references/scripts-and-validation.md before you act on a validator's exit code or validate a skill in another checkout with --root DIR.
| 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 statedquick_validate.py skills/my-skill/ passesvalidate-skill.py skills/my-skill/ passescheck_docs_safety.py skills/my-skill/ passesskill_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 ADR-121 plugin-root locator (see docs/SKILL-AUTHORING.md, "Portable Script Invocations")references/ or deletedEntry scripts: init_skill.py, triage_skill_request.py, discover_skills.py, quick_validate.py, validate-skill.py, conformance.py, check_docs_safety.py, skill_modularity_audit.py, and package_skill.py. Each runs on the Python 3 standard library; quick_validate.py and validate-skill.py use PyYAML when it is installed and fall back to a stdlib parser when it is not. Exit codes differ by script; read references/scripts-and-validation.md before you act on one.
| Reference | Read when |
|---|---|
| Overview and Triggers | You need examples, trigger lists, or the routing diagram |
| Depth Contract | You pick a tier or decide to escalate |
| Phase 0 Triage | You classify input or scan existing skills |
| External Skill Source Adaptation | You adapt a skill from a foreign catalog |
| Phase 1 Deep Dive | You start Phase 1: source intake, lenses, regression questions |
| Multi-Lens Framework | You apply the 11 thinking models |
| Regression Questions | You run regression questioning |
| Phase 2 Deep Dive | You write the specification |
| Specification Template | You draft the XML specification |
| Phase 3 Deep Dive | You generate files |
| Output Structure | You write frontmatter or lay out directories |
| Scripts and Validation | You pick a script, read a validator exit code, or use --root |
| Script Integration Framework | You decide whether to add a script |
| Script Design Rules | You write, review, or test a bundled script |
| Script Patterns Catalog | You write a script |
| Phase 4 Deep Dive | You run the Phase 4 panel |
| Synthesis Protocol | You run the multi-agent panel |
| Evolution Scoring | You score timelessness |
| Skill Content Rules | Before you write a body or description |
| Skill Development Conventions | You check repo frontmatter, size, Triggers, or Process rules |
| Evolution Timelessness | You project future change |
| Architecture Patterns | You choose a skill pattern |
| Configuration | You change SkillForge defaults |
| Changelog | You check 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
Three short reads, in order
skill-routing, skill-creation, orchestration, skill-management
npx claudepluginhub rjmurillo/ai-agents --plugin project-toolkit105 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