content-to-skill
CLAUDE.md2 starsChanged 8 months agoMITView on GitHub
This file provides guidance for AI agents (Claude, Cursor, Codex, etc.) working on the content-to-skill codebase. content-to-skill converts any content (PDF, video, audio, PPTX, XLSX, URL, text, image) into a properly structured Claude skill. It runs natively inside Claude — no external tools, no API keys, no dependencies. Core differentiators: - Knowledge / Action auto-classification — detects whether content maps to a Knowledge-type skill (frameworks, analysis guides) or Action-type skill (executable workflows with scripts) - Multi-file output — generates not…
- Installs packages
In this repositoryOne other file it gives its agents.
- content-to-skillSkill
The file
We split this CLAUDE.md into the rules it gives an agent
11 rules. About 0 are common, 4 are distinctive, and 7 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈4
Distinctive · estimate
This author's own choices. Worth a look.
7
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 66
Add a row to the "Supported Inputs" table in SKILL.md with the file extension and extraction method
- Very specific: line 67
If the format requires a helper script, add it to scripts/ and reference it from SKILL.md
- Very specific: line 68
Test with /to-skill using a real file of that format
- Very specific: line 75
Update the example count in README.md and docs/README-zh.md
- Very specific: line 79
Create or edit commands/<command-name>.md
- Distinctive: line 112
If content is non-English, description must be bilingual (English + native language)
- Very specific: line 113
Must include When NOT to Use section to prevent false triggers
- Distinctive: line 114
Must include at least 1–2 concrete examples (input → output)
- Distinctive: line 120
No executable steps — teaches Claude *how to think*
- Distinctive: line 128
Every command file must have:
- Very specific: line 140
Use ${CLAUDE_SKILL_DIR} to reference files within the skill:
≈ “Common” is an estimate: at least 1 in 5 of the 12,729 CLAUDE.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
CLAUDE.md
This file provides guidance for AI agents (Claude, Cursor, Codex, etc.) working on the content-to-skill codebase.
Project Overview
content-to-skill converts any content (PDF, video, audio, PPTX, XLSX, URL, text, image) into a properly structured Claude skill. It runs natively inside Claude — no external tools, no API keys, no dependencies.
Core differentiators:
- Knowledge / Action auto-classification — detects whether content maps to a Knowledge-type skill (frameworks, analysis guides) or Action-type skill (executable workflows with scripts)
- Multi-file output — generates not just
SKILL.mdbut alsocommands/,scripts/, andreferences/when appropriate - Bilingual — auto-detects language and produces dual-language descriptions (Chinese/English)
Architecture
The skill follows a 6-step pipeline (steps 0–5):
Input → 0. Parse Intent → 1. Ingest → 2. Classify → 3. Language → 4. Generate → 5. Quality Check → Output- SKILL.md — Core instructions: input handling, classification logic, templates, quality checklist
- commands/ — 8 slash commands that expose the pipeline to users
- scripts/ — Helper scripts (e.g. Whisper transcription)
- examples/ — Reference skills demonstrating both Knowledge and Action types
File Structure
content-to-skill/
├── SKILL.md # Core skill — the brain (templates, pipeline, quality rules)
├── CLAUDE.md # This file — AI agent guidance
├── commands/ # 8 slash commands
│ ├── to-skill.md # /to-skill — main entry point (chains full pipeline)
│ ├── skill-ingest.md # /skill-ingest — extract content from any format
│ ├── skill-classify.md # /skill-classify — Knowledge vs Action classification
│ ├── skill-generate.md # /skill-generate — generate with user instructions
│ ├── skill-knowledge.md # /skill-knowledge — force Knowledge-type output
│ ├── skill-action.md # /skill-action — force Action-type output
│ ├── skill-batch.md # /skill-batch — process multiple files
│ └── skill-package.md # /skill-package — bundle into .skill archive
├── scripts/
│ └── transcribe.py # Whisper-based audio/video transcription
├── examples/ # 5 reference skills
│ ├── git-rebase-workflow/ # Text input -> Action skill (end-to-end demo)
│ ├── api-deploy-workflow/ # PDF input -> Action skill (multi-file output)
│ ├── context-engineering-guide/ # Twitter/X URL -> Knowledge skill
│ ├── optimal-study-protocols/ # Audio input -> Action skill
│ └── ai-industry-insights/ # Video input -> Knowledge skill
├── assets/
│ └── demo.svg # Animated demo for README
├── docs/
│ └── README-zh.md # Chinese README (kept in parity with English)
├── .github/
│ ├── scripts/validate_skill.py # 12-point quality validator
│ └── workflows/validate-skill.yml # CI: validate on push/PR
├── README.md
├── CONTRIBUTING.md
└── LICENSE # MITDevelopment Guide
Adding a New Input Format
- Add a row to the "Supported Inputs" table in
SKILL.mdwith the file extension and extraction method - If the format requires a helper script, add it to
scripts/and reference it fromSKILL.md - Test with
/to-skillusing a real file of that format
Adding a New Example Skill
- Create
examples/<kebab-case-name>/SKILL.md - For multi-file skills, add
commands/,scripts/, orreferences/subdirectories as needed - Run validation:
python .github/scripts/validate_skill.py examples/<name>/SKILL.md - Update the example count in
README.mdanddocs/README-zh.md
Adding or Modifying a Slash Command
- Create or edit
commands/<command-name>.md - Include YAML frontmatter with
name,description,argument-hint, andallowed-tools - Reference the command in
SKILL.mdif it's part of the core pipeline - The 4 required commands are:
to-skill,skill-ingest,skill-classify,skill-generate(CI checks for these)
Running Validation
# Validate the main skill
python .github/scripts/validate_skill.py SKILL.md
# Validate a specific example
python .github/scripts/validate_skill.py examples/api-deploy-workflow/SKILL.md
# Strict mode (warnings become errors)
python .github/scripts/validate_skill.py SKILL.md --strict
# Validate all examples (same as CI)
for d in examples/*/; do python .github/scripts/validate_skill.py "${d}SKILL.md"; doneRequires pyyaml: pip install pyyaml
Coding Conventions
Naming
- Skill directories:
kebab-case(e.g.api-deploy-workflow) - Command files:
kebab-case.mdmatching the slash command name - Scripts:
snake_case.py
SKILL.md Constraints
- Total length < 500 lines — keep instructions concise
- YAML frontmatter
descriptionmust be ≥ 80 characters ("pushy" — list trigger phrases) - If content is non-English, description must be bilingual (English + native language)
- Must include
When NOT to Usesection to prevent false triggers - Must include at least 1–2 concrete examples (input → output)
Skill Types
Knowledge-type (frameworks, analysis, guides):
- Sections: Core Framework, Key Concepts, Analysis Workflow, Output Template, Examples
- No executable steps — teaches Claude how to think
Action-type (workflows, automations):
- Sections: Prerequisites, Step-by-Step Workflow, Input/Output Spec, Scripts, Verification, Edge Cases
- Concrete executable steps — teaches Claude what to do
Commands Frontmatter
Every command file must have:
---
name: command-name
description: "One-line description"
argument-hint: "[arguments]"
allowed-tools: Read Bash Grep Glob Write
---Bundled File References
Use ${CLAUDE_SKILL_DIR} to reference files within the skill:
${CLAUDE_SKILL_DIR}/scripts/health_check.py
${CLAUDE_SKILL_DIR}/references/config-guide.mdDocumentation Parity
docs/README-zh.md must stay in sync with README.md. When updating one, update the other.
CI/CD
GitHub Actions workflow (.github/workflows/validate-skill.yml) runs on every push/PR to main:
- Validates
SKILL.mdformat and quality - Validates all example skills
- Checks that 4 required commands exist
- Syntax-checks
scripts/transcribe.py - Reports example skill count in PR summary
Common Tasks
| Task | Command |
| Convert content to skill | /to-skill <file or text> |
| Extract content only | /skill-ingest <file> |
| Classify content type | /skill-classify |
| Generate with instructions | /skill-generate "focus on X" |
| Force Knowledge type | /skill-knowledge |
| Force Action type | /skill-action |
| Process multiple files | /skill-batch |
| Package for distribution | /skill-package |
| Validate a skill | python .github/scripts/validate_skill.py <path> |
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
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.

