Skip to content

kasimmj/claude-code-skills-factory

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

3 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation


claude-code-skills-factory

Type what you want. Get a working Claude Code skill. The skill factory for Claude Code โ€” natural language to production-ready SKILL.md.



๐Ÿญ What is it?

Writing a good Claude Code skill is hard. You need:

  • The right frontmatter format (name, description, triggers)
  • Specific, unambiguous trigger phrases
  • A "When NOT to use" section
  • Clear failure modes
  • Concrete examples

This tool does all of that automatically. You describe what you want in plain English (or Arabic, French, Spanish). It generates a lint-passing, idiomatic, ready-to-install skill.


โšก Quick Start

npm i -g claude-code-skills-factory
$ claude-skill new "I want a skill that audits my Tailwind classes and removes duplicates"

โœจ Generating skill...

  โœ“ Name:        tailwind-deduper
  โœ“ Triggers:    5 phrases generated
  โœ“ Failure modes: documented
  โœ“ Examples:   3 included

  โ†’ Saved to ~/.claude/skills/tailwind-deduper/SKILL.md
  โ†’ Lint passes. Ready to use.

The next time you ask Claude "find duplicate Tailwind classes," your new skill activates.


๐ŸŽฏ How it works

  1. Intent extraction โ€” parses your description into structured fields
  2. Trigger generation โ€” produces 5โ€“8 unambiguous phrases that should activate it
  3. Template instantiation โ€” fills the SKILL.md scaffold
  4. Self-lint โ€” runs the skill through claude-code-skills-factory lint before saving
  5. Optional preview โ€” opens the generated SKILL.md in your editor for review

๐Ÿ“ฆ Commands

claude-skill new "<description>"          # Generate a new skill
claude-skill list                          # List your installed skills
claude-skill edit <name>                   # Re-generate with edits
claude-skill lint <path>                   # Validate any SKILL.md
claude-skill publish <name>                # Push to claude-skills-mega registry
claude-skill import <url>                  # Import from a URL or git repo

๐Ÿ”ง Advanced โ€” bring your own templates

Drop custom templates in ~/.claude-skill-factory/templates/:

templates/
โ”œโ”€โ”€ default.md         # standard skill
โ”œโ”€โ”€ code-review.md     # specialized review skill
โ”œโ”€โ”€ ci-action.md       # GitHub Action helper
โ””โ”€โ”€ data-transform.md  # ETL-style skill
claude-skill new "Slack message formatter" --template ci-action

๐ŸŽจ Example: from one sentence to working skill

Input:

claude-skill new "Convert ASCII diagrams in code comments into Mermaid"

Output (~/.claude/skills/ascii-to-mermaid/SKILL.md):

---
name: ascii-to-mermaid
description: Convert ASCII diagrams found in code comments into equivalent Mermaid syntax, preserving structure and labels.
triggers:
  - "convert ASCII diagram to Mermaid"
  - "turn this ASCII chart into Mermaid"
  - "rewrite the diagram in mermaid"
  - "ascii to mermaid"
  - "make this a mermaid graph"
license: MIT
author: generated by claude-code-skills-factory
---

# ASCII to Mermaid

You are converting an ASCII diagram embedded in a code comment into Mermaid syntax.

## Step 1 โ€” Identify the diagram type
... (full content) ...

## When NOT to use
- Diagrams already in Mermaid (use a syntax fixer instead)
- ...

## Failure modes
- โš ๏ธ Complex 3D ASCII art cannot be losslessly converted ...

The output passes claude-skill lint without warnings.


๐ŸŒ Multi-language

Describe in any language โ€” the skill instructions are always in English (Claude works best in English internally), but you can pass --locale=ar to make the user-facing docs Arabic.

claude-skill new "ุฃุฏุงุฉ ุชูƒุชุจ ุงุฎุชุจุงุฑุงุช pytest ู…ู† docstrings" --locale ar

๐Ÿ›ก๏ธ Quality Standards

Every generated skill must pass:

  • โœ… Required frontmatter fields present
  • โœ… At least 5 specific triggers (no generic ones like "do X")
  • โœ… "When NOT to use" section
  • โœ… "Failure modes" section
  • โœ… At least one concrete example
  • โœ… No reference to non-existent tools/APIs

If generation can't meet the bar, it asks you for clarification instead of producing low-quality output.


๐Ÿ“œ License

MIT. See LICENSE.


Star โญ if you're tired of writing SKILL.md boilerplate.

About

๐Ÿญ Generate production-ready Claude Code skills from natural language. The skill factory for Claude Code.

Topics

Resources

License

Stars

1 star

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors