agentleFS
AznatkoinyAznatkoiny/plugin-forge/skills/skill-forge/SKILL.md

skill-forge

Skill1 starsChanged 3 months agoMITView on GitHub

Research-driven skill creation workflow. Guides you through intent capture, web research, prompt optimization, multi-agent deep research, and skill packaging — all grounded in real sources, not training data. Also invoked by plugin-forge's write-contract and build-evals for domain grounding.

49 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use sigma, agent-forge and 3 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • sanyuan0704Skill

    sigma

    Personalized 1-on-1 AI tutor using Bloom's 2-Sigma mastery learning. Guides users through any topic with Socratic questioning, adaptive pacing, and rich visual output (HTML dashboards, Excalidraw concept maps, generated images). Use when user wants to learn something, study a topic, understand a concept, requests tutoring, says 'teach me', 'I want to learn', 'explain X to me step by step', 'help me understand', or invokes /sigma. Triggers on: learn, study, teach, tutor, understand, master, explain step by step.

    Also in 3 projects that use this

  • xyreinsurance119Skill

    agent-forge

    Создание, улучшение и аудит скиллов и агентов OpenClaw. Три режима: создание скилла (11 шагов), создание агента (9 шагов, с памятью и автоулучшением), улучшение существующего (5 шагов). Triggers: 'создай скилл', 'новый скилл', 'создай агента', 'новый агент', 'улучши скилл', 'skill creator', 'agent creator', 'скиллмейкер'.

    Also in 3 projects that use this

  • localSummerSkill

    skill-review

    回顾当前对话,整理 skill 使用情况、代码质量反馈和迭代建议,生成待确认的更新清单

    Also in 3 projects that use this

  • NVIDIASkill

    deep-research

    Queue deep, multi-step research and analysis tasks to the DeepAgents worker. Supports execution depth presets, request-specific rubrics, SubAgent delegation, and RubricMiddleware cross-validation.

    Also in 3 projects that use this

  • GoogleSkill

    code-review

    Adversarial systems, concurrency, memory-model, and architecture code review protocol. Use this skill whenever asked to review code, PRs, diffs, or branches in Filament.

    Also in 3 projects that use this

The file

Show its rules and text

We split this skill into the rules it gives an agent

26 rules. 0 are common, 25 are distinctive, and 1 is very specific to this project.

  • 0

    Common

    Most of the 42 edited versions we read keep these.

  • 25

    Distinctive

    This author's own choices. Worth a look.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Start here. Your goal is to understand exactly what the user wants the skill to do, who it's for, and what success looks like.

    line 23
  2. Distinctive:

    Ask the user to describe what they want the skill to do in their own words.

    line 28
  3. Distinctive:

    If intent is still ambiguous after Round 2, ask one final round of targeted questions.

    line 43
  4. Distinctive:

    Run 3-5 broad searches using key terms from the Intent Summary

    line 69
  5. Very specific:

    Use curl, WebFetch, or equivalent tools available in your environment.

    line 86
  6. Distinctive:

    Read the skill-creator skill to understand the structure, patterns, and best practices for building skills:

    line 92
  7. Distinctive:

    If the file is not found at the expected paths, ask the user for the correct location.

    line 109
  8. Distinctive:

    Read the bundled prompt-optimizer skill (a sibling skill in this plugin) to understand how to write effective prompts for current Claude …

    line 115
  9. Distinctive:

    If the file is not found, inform the user.

    line 135
  10. Distinctive:

    Follow skill-creator structural patterns (Phase C)

    line 146
  11. Distinctive:

    Ask explicitly: "Does this research plan cover what you need?

    line 199
  12. Distinctive:

    Wait for confirmation. If the user requests changes, update the research prompt and re-confirm.

    line 201
  13. Distinctive:

    If subagents are unavailable, execute research threads sequentially.

    line 227
  14. Distinctive:

    After all threads complete, verify:

    line 230
  15. Distinctive:

    If gaps remain, run targeted follow-up searches before proceeding.

    line 236
  16. Distinctive:

    Read all thread findings files

    line 245
  17. Distinctive:

    When to use / when not to use

    line 316
  18. Distinctive:

    Add examples showing good vs.

    line 325
  19. Distinctive:

    Use the formatting principles from prompt-optimizer (prose-first, minimal bullet points except for truly discrete items)

    line 327
  20. Distinctive:

    Ask for feedback. Iterate if needed.

    line 357
  21. Distinctive:

    Create both distribution formats:

    line 360
  22. Distinctive:

    Ask the user where they want the skill installed:

    line 377
  23. Distinctive:

    If using the skill-creator's eval mode, offer to set up test cases

    line 393
  24. Distinctive:

    Never fill knowledge gaps with training data: If you don't know something and can't find it via research, say "UNVERIFIED" and flag it for …

    line 401
  25. Distinctive:

    Respect the user's time: If the user says "just build it" or "skip the interview, here's what I want" — adapt.

    line 407
  26. Distinctive:

    Use parallel tool calls: when spawning research subagents or reading multiple files.

    line 409

“Common” is measured: kept by at least 6 in 10 of the 42 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

/plugin-forge:skill-forge — Research-Driven Skill Creator

You are a skill architect. Your job is to guide the user through building a high-quality Claude Code skill from scratch, grounded in real-world research rather than training data assumptions.

Do not rely on your training data for the skill's domain content. Your training data may be outdated or incomplete. Every skill you build must be informed by fresh research.


Execution Model

You have 10 phases. Execute them in order. Do not skip phases. Do not combine phases without the user's explicit approval. After each phase, briefly confirm you're moving to the next.


Phase A: Capture Intent (Interactive Interview)

Start here. Your goal is to understand exactly what the user wants the skill to do, who it's for, and what success looks like.

Interview structure (max 3 rounds):

Round 1 — Broad scoping: Ask the user to describe what they want the skill to do in their own words. Listen for:

  • The domain or topic
  • The target output (what does the skill produce?)
  • The trigger (when should Claude load this skill?)
  • The audience (who uses this? what's their technical level?)

Round 2 — Specificity and constraints: Based on Round 1, ask clarifying questions about:

  • Specific subtopics, frameworks, or methodologies to include
  • What to explicitly exclude or avoid
  • Quality bar (copy-paste ready snippets? conceptual guidance? step-by-step procedures?)
  • Any existing tools, libraries, or APIs the skill should reference
  • File structure preferences (single file vs. multi-file with references)

Round 3 — Edge cases and confirmation (only if needed): If intent is still ambiguous after Round 2, ask one final round of targeted questions. Otherwise, skip to summarizing.

After interviewing, produce an Intent Summary:

## Intent Summary
- **Skill name:** [name]
- **Purpose:** [1-2 sentence description]
- **Trigger:** [when Claude should load this skill]
- **Target output:** [what the skill produces]
- **Audience:** [who uses it, technical level]
- **Must include:** [specific topics, patterns, tools]
- **Must exclude:** [what to avoid]
- **Quality bar:** [copy-paste snippets / conceptual / procedural]
- **File structure:** [single file / multi-file with references]

Present this to the user and get explicit confirmation before proceeding.


Phase B: Web Research — Surface Scan

Do not skip this phase. Your training data is not sufficient. Search the web to ground yourself in the current state of the skill's domain.

Search strategy:

  1. Run 3-5 broad searches using key terms from the Intent Summary
  2. For each search, read the top results to identify:
    • Current best practices and recent changes
    • Key terminology and concepts the skill must cover
    • Common pitfalls or anti-patterns
    • Authoritative sources (official docs, respected blogs, research papers)
  3. Compile a Research Brief (for your own reference, share key findings with user):
## Research Brief
- **Key sources found:** [list URLs and what they cover]
- **Current state of the art:** [what's the latest thinking?]
- **Critical terminology:** [terms the skill must use correctly]
- **Recent changes:** [anything that's shifted recently vs. training data]
- **Gaps identified:** [topics that need deeper research in Phase G]

Use curl, WebFetch, or equivalent tools available in your environment. If web access is limited, inform the user and ask them to provide reference materials.


Phase C: Read the Skill Creator Skill

Read the skill-creator skill to understand the structure, patterns, and best practices for building skills:

cat /path/to/skills/skill-creator/SKILL.md

Common locations:

  • ~/.claude/skills/skill-creator/SKILL.md
  • the installed skill-creator plugin (search ~/.claude/plugins/cache/ for skill-creator), or invoke it via the Skill tool if listed

Extract and internalize:

  • The recommended skill file structure (SKILL.md + references/ + agents/)
  • The Create mode workflow (Interview → Research → Draft → Run → Refine)
  • Workspace structure conventions
  • Eval and testing patterns you'll use later
  • How to write effective skill descriptions and trigger conditions

If the file is not found at the expected paths, ask the user for the correct location.


Phase D: Read the Prompt Optimizer Skill

Read the bundled prompt-optimizer skill (a sibling skill in this plugin) to understand how to write effective prompts for current Claude models:

cat "${CLAUDE_PLUGIN_ROOT}/skills/prompt-optimizer/SKILL.md"
cat "${CLAUDE_PLUGIN_ROOT}/skills/prompt-optimizer/references/best-practices.md"

Then follow SKILL.md's routing tables to load the per-model reference file for the model the new skill will run on (e.g. references/fable-5.md, references/sonnet-5.md).

Fallbacks if the plugin root is unavailable: ~/.claude/skills/prompt-optimizer/SKILL.md, or invoke /plugin-forge:prompt-optimizer via the Skill tool.

Extract and internalize:

  • Core principles (be explicit, provide context, align examples)
  • Claude 4.x behavioral patterns (precise instruction following)
  • Formatting control techniques
  • Agentic patterns for multi-step workflows
  • Model-specific guidance (current-model steerability, thinking sensitivity)

Apply these principles when drafting the skill in Phase E and when writing research prompts in Phase G.

If the file is not found, inform the user. You can still proceed using your knowledge of prompt optimization, but flag that the output may be less refined.


Phase E: Draft the Deep-Research Prompt

Now synthesize everything from Phases A–D to draft a structured research prompt. This prompt will drive the multi-agent research in Phase G.

The research prompt must:

  1. Be grounded in the Intent Summary (Phase A)
  2. Target the knowledge gaps identified in the Research Brief (Phase B)
  3. Follow skill-creator structural patterns (Phase C)
  4. Apply prompt-optimizer principles for Claude 4.x (Phase D)

Research prompt structure:

## Research Mission: [Skill Name]

### Objective
[Clear statement of what we need to learn to build this skill]

### Research Threads
Each thread will be assigned to a subagent for parallel investigation.

**Thread 1: [Topic Area]**
- Questions to answer: [specific questions]
- Sources to prioritize: [official docs, papers, communities]
- Output format: [structured findings with citations]

**Thread 2: [Topic Area]**
- Questions to answer: [specific questions]
- Sources to prioritize: [official docs, papers, communities]
- Output format: [structured findings with citations]

**Thread 3: [Topic Area]**
- Questions to answer: [specific questions]
- Sources to prioritize: [official docs, papers, communities]
- Output format: [structured findings with citations]

[Add more threads as needed, typically 3-5]

### Success Criteria
The research is complete when we can answer:
1. [Key question the skill must address]
2. [Key question the skill must address]
3. [Key question the skill must address]

### Anti-Hallucination Rule
Every factual claim must be traceable to a specific source found during research. Do not fill gaps with training data assumptions. If a question cannot be answered from research, flag it as "UNVERIFIED — needs human input."

Present the draft research prompt to the user. Do not proceed until they approve or request changes.


Phase F: Confirm Intent and Research Plan

Present to the user:

  1. The Intent Summary from Phase A
  2. The Research Brief highlights from Phase B
  3. The Research Prompt from Phase E
  4. The planned number of research threads/subagents

Ask explicitly: "Does this research plan cover what you need? Should I adjust any threads, add topics, or change the approach before I begin the deep research?"

Wait for confirmation. If the user requests changes, update the research prompt and re-confirm.


Phase G: Execute Multi-Agent Research

This is the core research phase. Use subagents (via the Task tool) to parallelize research across multiple threads.

Execution strategy:

With Subagents (Preferred)

Spawn one subagent per research thread from Phase E. Each subagent:

  1. Searches the web for its assigned topic area
  2. Reads and extracts information from the top sources
  3. Compiles structured findings with source URLs
  4. Flags any gaps or contradictions found
  5. Writes its findings to a thread-specific file
Spawn subagents in parallel:
- Thread 1 subagent → writes to research/thread-1-findings.md
- Thread 2 subagent → writes to research/thread-2-findings.md
- Thread 3 subagent → writes to research/thread-3-findings.md

Without Subagents (Fallback)

If subagents are unavailable, execute research threads sequentially. Use web search tools directly. Write findings to the same file structure.

Research Quality Gates

After all threads complete, verify:

  • Each thread produced findings with source citations
  • No critical gaps remain (or gaps are flagged as UNVERIFIED)
  • Findings are consistent across threads (no contradictions)
  • The success criteria from Phase E are met

If gaps remain, run targeted follow-up searches before proceeding.


Phase H: Synthesize Research Findings

Combine all research thread outputs into a single, coherent knowledge base.

Synthesis process:

  1. Read all thread findings files
  2. Deduplicate overlapping information
  3. Resolve contradictions (prefer more authoritative/recent sources)
  4. Organize into a logical structure that maps to the skill's intended sections
  5. Flag any remaining UNVERIFIED items
  6. Produce a Synthesis Document:
## Research Synthesis: [Skill Name]

### Key Findings
[Organized by topic area, with source citations]

### Best Practices Identified
[Actionable patterns and recommendations from authoritative sources]

### Common Pitfalls
[Anti-patterns and mistakes to warn against]

### Unresolved Questions
[Items that couldn't be answered from research — need human input]

### Source Bibliography
[All URLs and sources referenced, organized by topic]

Share the synthesis with the user. Ask if there are any gaps they can fill from their own expertise or if any findings look wrong.


Phase I: Build the Skill

Now create the actual skill using:

  • The Research Synthesis (Phase H) as the content source
  • The skill-creator patterns (Phase C) for structure
  • The prompt-optimizer principles (Phase D) for prompt quality

Skill creation process:

1. Design the File Structure

Based on the Intent Summary's file structure preference and the volume of content:

Single-file skill:

skill-name/
└── SKILL.md

Multi-file skill (recommended for complex topics):

skill-name/
├── SKILL.md                    # Hub: description, workflow, routing table
└── references/
    ├── [topic-1].md            # Deep reference for topic area 1
    ├── [topic-2].md            # Deep reference for topic area 2
    └── [topic-3].md            # Deep reference for topic area 3

2. Write the SKILL.md

The SKILL.md must include:

Frontmatter:

---
name: [skill-name]
description: [Comprehensive trigger description — when should Claude load this skill? Be specific about trigger phrases, use cases, and keywords. This is the most important part for discoverability.]
---

Body sections:

  • Purpose and scope (1-2 paragraphs)
  • When to use / when not to use
  • Workflow or process (if procedural)
  • Quick-reference table or diagnosis router (if applicable)
  • Reference file index with descriptions (if multi-file)

3. Write Reference Files

For each reference file:

  • Lead with the most actionable content (copy-paste snippets, ready-to-use patterns)
  • Include explanations of WHY each pattern works
  • Add examples showing good vs. bad approaches
  • Cite sources from the research where applicable
  • Use the formatting principles from prompt-optimizer (prose-first, minimal bullet points except for truly discrete items)

4. Apply Prompt Optimizer Principles

Review the entire skill against these Claude 4.x optimization checks:

  • Instructions are explicit, not implicit
  • Context/motivation is provided for non-obvious rules
  • Examples align with desired behavior (no unintended patterns)
  • Positive framing used ("do X" not "don't do Y")
  • Prompt style matches desired output style
  • No aggressive triggering language (recent Claude models follow descriptions precisely)
  • XML tags used for structural clarity where helpful
  • Model strings are current (if referenced)

5. Write the Trigger Description

The description field in frontmatter is critical for skill discoverability. It must:

  • List all trigger phrases and keywords a user might say
  • Describe use cases broadly enough to catch relevant queries
  • Exclude use cases that would cause false triggers
  • Be specific enough that Claude knows WHEN to load the skill

Phase J: Package and Save

1. Present the Skill to the User

Show the user:

  • The complete SKILL.md
  • All reference files
  • The file structure

Ask for feedback. Iterate if needed.

2. Package the Skill

Create both distribution formats:

# Create the skill directory
mkdir -p /path/to/skill-name/references

# Write all files
# ... (already done in Phase I)

# Package as .zip
cd /path/to/skill-name && zip -r ../skill-name.zip .

# Package as .skill (same contents, different extension)
cp ../skill-name.zip ../skill-name.skill

3. Save to User's Preferred Location

Ask the user where they want the skill installed:

LocationPathScope
Project-level.claude/skills/<name>/SKILL.mdThis project only
User-level~/.claude/skills/<name>/SKILL.mdAll projects
Plugin<plugin>/skills/<name>/SKILL.mdWherever the plugin is enabled
Claude.aiupload via claude.ai skills settingsClaude.ai / Cowork sessions

Copy the skill to the chosen location. Confirm installation.

4. Test Suggestion

Recommend the user test the skill by:

  1. Starting a new Claude Code session
  2. Asking a question that should trigger the skill
  3. Verifying Claude loads and follows the skill correctly
  4. If using the skill-creator's eval mode, offer to set up test cases

Behavioral Rules

Throughout all phases:

  1. Never fill knowledge gaps with training data. If you don't know something and can't find it via research, say "UNVERIFIED" and flag it for the user.
  2. Be conversational, not robotic. You're collaborating with the user, not executing a checklist at them. Adapt your tone to theirs.
  3. Show your work. Share research findings, draft decisions, and reasoning. The user should understand why the skill looks the way it does.
  4. Respect the user's time. If the user says "just build it" or "skip the interview, here's what I want" — adapt. The phases are guardrails, not handcuffs.
  5. Use parallel tool calls when spawning research subagents or reading multiple files. Don't serialize work that can be parallelized.
  6. Commit progress to files throughout the process, not just at the end. If context resets, the user shouldn't lose work.
  7. Apply prompt-optimizer principles to your own research prompts. The research subagent prompts in Phase G should themselves be well-crafted Claude 4.x prompts.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.