agentleFS
Mnorbert87Mnorbert87/claude-code-skills/skills/skill-factory/SKILL.md

skill-factory

Skill0 starsChanged 5 months agoMITView on GitHub

Turn any workflow, conversation, or demonstrated process into a reusable SKILL.md. Use when the user says "turn this into a skill", "make a skill from this", "save this workflow", "remember how to do this", or after completing a complex multi-step task that should be repeatable. Also triggers on "tanítsd meg magad", "jegyezd meg ezt a folyamatot", "csinálj ebből skill-t".

13 other projects use a version of this, 1 of them edited.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

10 rules. 0 are common, 8 are distinctive, and 2 are very specific to this project.

  • 0

    Common

    Most of the 12 edited versions we read keep these.

  • 8

    Distinctive

    This author's own choices. Worth a look.

  • 2

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    After a complex task (5+ tool calls) that could be reusable

    line 14
  2. Distinctive:

    When user corrects your approach and the correction is generalizable

    line 15
  3. Distinctive:

    Trigger conditions: When should this skill activate?

    line 24
  4. Distinctive:

    Don't just copy the specific instance.

    line 34
  5. Distinctive:

    If the workflow involves scripts or templates:

    line 82
  6. Distinctive:

    Test the skill mentally:

    line 95
  7. Distinctive:

    Overfitting to one example: Don't just save the exact steps you did.

    line 103
  8. Distinctive:

    Missing error handling: If you hit errors during the original workflow, document them in Pitfalls.

    line 105
  9. Very specific:

    Too long: Keep SKILL.md under 500 lines.

    line 106
  10. Very specific:

    Duplicate skills: Before creating, check your existing ~/.claude/skills/ for similar skills.

    line 107

“Common” is measured: kept by at least 6 in 10 of the 12 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

Skill Factory

Convert demonstrated workflows into reusable skills. This is a meta-skill: it creates other skills.

When to Use

  • User explicitly asks to create a skill from a workflow
  • User says "remember how to do this" or "save this process"
  • After a complex task (5+ tool calls) that could be reusable
  • When user corrects your approach and the correction is generalizable
  • Hungarian triggers: "tanítsd meg magad", "csinálj skill-t", "jegyezd meg"

Procedure

Step 1: Extract the Workflow

Analyze the current conversation (or specified workflow) and identify:

  1. Trigger conditions: When should this skill activate?
  2. Input: What does the skill need to start?
  3. Steps: What are the concrete steps (in order)?
  4. Tools used: Which tools/commands were involved?
  5. Decision points: Where did you need to make choices?
  6. Error handling: What went wrong and how was it fixed?
  7. Output: What's the expected result?

Step 2: Generalize

Don't just copy the specific instance. Abstract it:

  • Replace specific file names with [input-file] patterns
  • Replace specific URLs with [target-url] patterns
  • Identify which parts are constant vs. variable
  • Note any prerequisites or dependencies
  • Think about edge cases the original workflow didn't cover

Step 3: Write SKILL.md

SKILL_NAME="[kebab-case-name]"
mkdir -p ~/.claude/skills/$SKILL_NAME

cat > ~/.claude/skills/$SKILL_NAME/SKILL.md << 'EOF'
---
name: [skill-name]
description: [What it does + when to trigger. Be specific and "pushy" -- include multiple trigger phrases so the skill activates when needed.]
---

# [Skill Name]

## When to Use
[List concrete trigger conditions and contexts]

## Prerequisites
[Dependencies, tools, access needed -- skip if none]

## Procedure
1. [First step -- be specific, include commands]
2. [Second step]
...

## Pitfalls
- **[Problem]**: [How to solve it]

## Verification
- [How to confirm the result is correct]

## Examples
**Example 1:**
Input: [what the user said]
Output: [what was produced]
EOF

Step 4: Add Supporting Files (if needed)

If the workflow involves scripts or templates:

mkdir -p ~/.claude/skills/$SKILL_NAME/scripts
mkdir -p ~/.claude/skills/$SKILL_NAME/references
  • scripts/: Executable code for deterministic/repetitive tasks
  • references/: Documentation loaded into context as needed
  • assets/: Templates, icons, or other static files

Step 5: Validate

Test the skill mentally:

  • Would the description trigger on a realistic user message?
  • Are the steps clear enough to follow without the original context?
  • Are edge cases covered in Pitfalls?
  • Is the SKILL.md under 500 lines?

Pitfalls

  • Overfitting to one example: Don't just save the exact steps you did. Generalize so it works for similar but different inputs.
  • Too vague descriptions: The description field is the primary trigger. Be specific and include multiple phrasings.
  • Missing error handling: If you hit errors during the original workflow, document them in Pitfalls.
  • Too long: Keep SKILL.md under 500 lines. Move large content to references/ subdirectory.
  • Duplicate skills: Before creating, check your existing ~/.claude/skills/ for similar skills. Patch instead of creating a new one.

Skill Quality Checklist

Before finalizing, verify:

  • Description includes multiple trigger phrases
  • Steps are numbered and concrete
  • Commands are copy-pasteable (no pseudocode)
  • Variables are clearly marked with [brackets]
  • Pitfalls section has at least one entry
  • Verification section explains how to confirm success
  • Under 500 lines

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.