agentleFS
skillforgeai-devskillforgeai-dev/content-to-skill/CLAUDE.md

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

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
  1. Very specific:

    Add a row to the "Supported Inputs" table in SKILL.md with the file extension and extraction method

    line 66
  2. Very specific:

    If the format requires a helper script, add it to scripts/ and reference it from SKILL.md

    line 67
  3. Very specific:

    Test with /to-skill using a real file of that format

    line 68
  4. Very specific:

    Update the example count in README.md and docs/README-zh.md

    line 75
  5. Very specific:

    Create or edit commands/<command-name>.md

    line 79
  6. Distinctive:

    If content is non-English, description must be bilingual (English + native language)

    line 112
  7. Very specific:

    Must include When NOT to Use section to prevent false triggers

    line 113
  8. Distinctive:

    Must include at least 1–2 concrete examples (input → output)

    line 114
  9. Distinctive:

    No executable steps — teaches Claude *how to think*

    line 120
  10. Distinctive:

    Every command file must have:

    line 128
  11. Very specific:

    Use ${CLAUDE_SKILL_DIR} to reference files within the skill:

    line 140

≈ “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.

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

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.md but also commands/, scripts/, and references/ 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                           # MIT

Development Guide

Adding a New Input Format

  1. Add a row to the "Supported Inputs" table in SKILL.md with the file extension and extraction method
  2. If the format requires a helper script, add it to scripts/ and reference it from SKILL.md
  3. Test with /to-skill using a real file of that format

Adding a New Example Skill

  1. Create examples/<kebab-case-name>/SKILL.md
  2. For multi-file skills, add commands/, scripts/, or references/ subdirectories as needed
  3. Run validation: python .github/scripts/validate_skill.py examples/<name>/SKILL.md
  4. Update the example count in README.md and docs/README-zh.md

Adding or Modifying a Slash Command

  1. Create or edit commands/<command-name>.md
  2. Include YAML frontmatter with name, description, argument-hint, and allowed-tools
  3. Reference the command in SKILL.md if it's part of the core pipeline
  4. 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"; done

Requires pyyaml: pip install pyyaml

Coding Conventions

Naming

  • Skill directories: kebab-case (e.g. api-deploy-workflow)
  • Command files: kebab-case.md matching the slash command name
  • Scripts: snake_case.py

SKILL.md Constraints

  • Total length < 500 lines — keep instructions concise
  • YAML frontmatter description must be ≥ 80 characters ("pushy" — list trigger phrases)
  • If content is non-English, description must be bilingual (English + native language)
  • Must include When NOT to Use section 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.md

Documentation 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:

  1. Validates SKILL.md format and quality
  2. Validates all example skills
  3. Checks that 4 required commands exist
  4. Syntax-checks scripts/transcribe.py
  5. Reports example skill count in PR summary

Common Tasks

TaskCommand
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 skillpython .github/scripts/validate_skill.py <path>

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.