content-to-skill
Skill2 starsChanged 8 months agoMITView on GitHub
Convert any content into a Claude skill. Accepts text, documents, audio files, or video files and transforms them into a properly structured SKILL.md with optional bundled resources. Supports two skill modes: Knowledge-type (analysis frameworks, reference guides, decision trees) and Action-type (executable workflows with scripts, API calls, file operations). Auto-detects the best mode from content, but user can override. Accepts optional user instructions to customize the generated skill's focus and behavior. Use this skill whenever the user says "turn this into a skill", "make a skill from this", "万物皆可skill", "content to skill", or uploads any file (video, audio, PDF, article, tutorial, transcript, documentation) and wants it converted into a reusable skill. Also triggers when the user pastes text (a guide, a process, a workflow, tips, a how-to) and asks to skillify it. 万物皆可 Skill:将任何内容转化为可复用的 Claude 技能。支持知识型和动作型两种模式, 自动判断素材类型,也接受用户自定义指令。
- Installs packages
1 other project uses a version of this.
Adopted by
Most recently taken up by
- gnipbao/content-to-skilltheir own version, first seen Jun 15, 2026
Other versions1 project uses a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 1
- gnipbao/content-to-skill★ 102same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repositoryOne other file it gives its agents.
- CLAUDE.mdCLAUDE.md
The file
Show its rules and text
We split this skill into the rules it gives an agent
25 rules. About 0 are common, 18 are distinctive, and 7 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈18
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
- Distinctive: line 42
Before doing anything, determine two things:
- Distinctive: line 52
If instructions are provided, they take priority over auto-classification.
- Distinctive: line 62
For audio/video: run the transcription script:
- Distinctive: line 92
No clear repeatable "do this then that" workflow
- Distinctive: line 131
If the user doesn't respond or says "go ahead", use the recommended mode.
- Very specific: line 136
Write the SKILL.md body in that same language.
- Distinctive: line 144
Create a skill folder. The structure depends on the skill type and complexity:
- Distinctive: line 169
Use the appropriate template based on the classified type:
- Distinctive: line 271
Be structured: Use headers, numbered steps, decision trees.
- Very specific: line 272
Keep SKILL.md under 500 lines: If content is too rich, split into references/ files.
- Very specific: line 279
Add
allowed-tools: when the skill needs specific tools (Bash, Write, etc.) to reduce permission prompts. - Distinctive: line 284
Before presenting the skill, verify every item.
- Distinctive: line 303
Write the skill folder to the appropriate output directory.
- Very specific: line 304
If the package_skill.py script is available, package it:
- Very specific: line 320
Put the core workflow in SKILL.md (under 500 lines)
- Very specific: line 321
Create references/ files for detailed sub-topics
- Very specific: line 322
Add a "Reference Index" section in SKILL.md pointing to each reference file
- Distinctive: line 341
If it's "how I built X" → Action-type
- Distinctive: line 342
If it's "my view on the state of X" → Knowledge-type
- Distinctive: line 349
Treat each slide as a potential section or step
- Distinctive: line 359
Create the skill around the *process* the spreadsheet encodes, not the data
- Distinctive: line 363
When user provides content AND instructions:
- Distinctive: line 364
Use the content as the knowledge base / raw material
- Distinctive: line 365
Use the instructions to determine the skill's purpose and behavior
- Distinctive: line 376
When user provides multiple pieces of content:
≈ “Common” is an estimate: at least 1 in 5 of the 213,895 skill 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
Content-to-Skill Converter
万物皆可 Skill — Turn any content into a reusable Claude skill.
Supported Inputs
| Input Type | How to Handle |
| Text / Markdown | Directly in chat or uploaded .txt/.md file — process inline |
| PDF (.pdf) | Extract text: from pypdf import PdfReader; text = "".join(p.extract_text() for p in PdfReader("f.pdf").pages). For scanned PDFs, use OCR. |
| Word Document (.docx) | Extract with pandoc: pandoc doc.docx -t markdown -o output.md |
| PowerPoint (.pptx) | Extract text: python -m markitdown presentation.pptx. For visual context: use pptx skill's thumbnail.py |
| Spreadsheet (.xlsx, .csv) | Read with openpyxl — extract headers, formulas, and workflow logic |
| Audio (.mp3, .wav, .m4a, .ogg, .flac) | Transcribe with scripts/transcribe.py, then convert |
| Video (.mp4, .mov, .webm, .mkv) | Extract audio → transcribe with scripts/transcribe.py, then convert |
| URL / Web page | Fetch content with web_fetch or browser, then convert |
| Image (of text/slides/whiteboard) | Read text from image using Claude's vision, then convert |
| Social media post (X/Twitter, etc.) | Fetch via browser or API, then convert |
| Mixed batch | Multiple inputs of different types — process each, then merge or create separate skills |
Workflow
Step 0: Parse User Intent
Before doing anything, determine two things:
- Content (素材): What raw material did the user provide?
- Instructions (指令): Did the user specify what the skill should do or focus on?
Three scenarios:
- Content only: User provides material without instructions → auto-classify and generate
- Content + Instructions: User provides material AND tells you what the skill should do → follow their instructions, use content as the knowledge base
- Instructions only: User describes what they want without providing material → ask for content, or search/research to gather it
If instructions are provided, they take priority over auto-classification. For example:
- Content: an article about DEX aggregators
- Instruction: "make a skill that monitors aggregator performance daily"
- Result: Action-type skill (even though the article alone would suggest knowledge-type)
Step 1: Ingest Content
- Determine input type from file extension or content.
Route to the correct extraction method:
For audio/video: run the transcription script:
python3 /path/to/content-to-skill/scripts/transcribe.py <input_file> -o /tmp/transcript.txt- Uses OpenAI Whisper (local, free). Install if needed:
pip install openai-whisper --break-system-packages
For PDF:
from pypdf import PdfReader; text = "\n".join(p.extract_text() for p in PdfReader("f.pdf").pages)Install if needed:pip install pypdf --break-system-packagesFor DOCX:
pandoc input.docx -t markdown -o /tmp/extracted.mdFor PPTX:
python -m markitdown input.pptx > /tmp/extracted.mdInstall if needed:pip install markitdown --break-system-packagesFor XLSX/CSV:
import openpyxl; wb = openpyxl.load_workbook("input.xlsx")— extract headers, formulas, logic- Uses OpenAI Whisper (local, free). Install if needed:
- For URLs: try web_fetch first, then browser if blocked.
- For images: read text directly from the image using Claude's vision.
- For text: use directly.
Step 2: Classify → Knowledge-type or Action-type
Analyze the content and auto-detect which skill type fits better.
Knowledge-type skill (知识型) — The skill serves as a structured reference that Claude draws on during conversation.
Signals that suggest knowledge-type:
- Content is an article, opinion piece, analysis, or research paper
- Content explains concepts, frameworks, or theories
- Content compares options or evaluates alternatives
- No clear repeatable "do this then that" workflow
- The value is in the understanding, not the execution
What a knowledge-type skill looks like:
- Analysis frameworks with decision trees
- Comparison matrices and evaluation criteria
- Structured reference material organized by topic
- Trigger conditions tied to conversation topics
Action-type skill (动作型) — The skill drives Claude to execute a concrete workflow that produces tangible output.
Signals that suggest action-type:
- Content is a tutorial, how-to guide, or step-by-step process
- Content describes tools, commands, or APIs
- Content includes code examples or configuration files
- There's a clear input → process → output pattern
- The value is in the execution, not just the understanding
What an action-type skill looks like:
- Numbered executable steps with exact commands
- Scripts in
scripts/for deterministic tasks - Input/output specifications
- Verification steps to confirm success
Present the classification to the user:
📋 素材分析:
- 内容类型: [文章/教程/视频/笔记/...]
- 检测语言: [中文/English/...]
- 推荐模式: [知识型 / 动作型]
- 推荐理由: [一句话解释]
你可以:
1. 接受推荐 → 直接执行 /skill-generate
2. 切换模式 → /skill-knowledge 或 /skill-action
3. 补充指令 → /skill-generate [你的指令]If the user doesn't respond or says "go ahead", use the recommended mode.
Step 3: Determine Language
- Detect the primary language of the input content.
- Write the SKILL.md body in that same language.
- Exception: YAML frontmatter keys (
name,description) are always in English. - Exception: If the input language is not well-supported for technical writing, default to English.
- The
descriptionfield should be bilingual if the content is non-English: write the English description first, then append the native language version.
Step 4: Generate the Skill
Create a skill folder. The structure depends on the skill type and complexity:
<skill-name>/
├── SKILL.md # Main instructions (required)
├── references/ # (optional) Detailed docs, lookup tables
├── scripts/ # (optional) Helper scripts for deterministic tasks
├── commands/ # (optional) Slash commands for quick invocation
├── hooks/ # (optional) Auto-triggers on specific events
└── agents/ # (optional) Sub-agent definitions for complex workflowsWhen to generate each component for the OUTPUT skill
| Component | When to generate | Example |
| SKILL.md | Always | Every skill needs this |
| references/ | Content > 500 lines, or multiple sub-topics | Large tutorials, multi-chapter guides |
| scripts/ | Deterministic/repeatable tasks that benefit from code | Data processing, file conversion, API calls |
| commands/ | The generated skill has distinct sub-workflows users might invoke independently | A deploy skill with /deploy-staging and /deploy-prod |
| hooks/ | The generated skill should auto-trigger on file edits or tool use | A lint skill that runs on every file save |
| agents/ | The generated skill's workflow is complex enough for role separation | A review skill with separate architect + security agents |
Whether to generate these components depends on the content being converted. Most skills only need SKILL.md + references/. Scripts, commands, hooks, and agents are only added when the content clearly warrants them.
Use the appropriate template based on the classified type:
Template A: Knowledge-type Skill
---
name: <kebab-case-name>
description: >
<English description. Be pushy — list specific trigger phrases and contexts.>
<If non-English: Native language description here.>
# --- Optional fields (add only when needed) ---
# allowed-tools: Read Grep Glob # Tools this skill can use without asking permission
# paths: "*.md, docs/**" # Only activate when working with matching files
# disable-model-invocation: true # Set if skill should only be triggered manually via /name
---
# <Skill Title>
<Brief intro: what knowledge this skill gives Claude access to.>
## When to Use
<Explicit trigger conditions — what conversation topics, user phrases, or contexts activate this.>
## When NOT to Use
<Prevent false triggers.>
## Core Framework
<The main analytical framework, organized by dimension or theme.>
<Include decision trees, comparison matrices, evaluation criteria.>
## Key Concepts
<Define important terms and relationships.>
## Analysis Workflow
<When this skill triggers, how should Claude structure its response?>
<Step-by-step thinking process, not execution steps.>
## Output Template
<A structured template for Claude's response when using this skill.>
## Examples
<At least 1-2 concrete input→output examples.>
## Limitations & Caveats
<What this framework can't do, known biases, data freshness issues.>Template B: Action-type Skill
---
name: <kebab-case-name>
description: >
<English description. Be pushy — list specific trigger phrases and contexts.>
<If non-English: Native language description here.>
# --- Optional fields (add only when needed) ---
# allowed-tools: Read Bash Grep Glob Write # Tools this skill can use without asking permission
# context: fork # Run in isolated subagent (for heavy/risky workflows)
# paths: "src/**/*.py" # Only activate when working with matching files
# disable-model-invocation: true # Set if skill should only be triggered manually via /name
---
# <Skill Title>
<Brief intro: what this skill enables Claude to DO.>
## When to Use
<Explicit trigger conditions — what user requests, file types, or contexts activate this.>
## When NOT to Use
<Prevent false triggers.>
## Prerequisites
<Tools, libraries, APIs, permissions needed.>
## Step-by-Step Workflow
<Numbered, executable steps. Each step should be concrete enough to run.>
1. [Step with exact command or action]
2. [Step with exact command or action]
...
## Input/Output Spec
- **Input**: [What the user provides]
- **Output**: [What gets produced — file type, format, location]
## Scripts
<Reference any helper scripts via ${CLAUDE_SKILL_DIR}/scripts/ path.>
## Verification
<How to confirm the skill executed correctly.>
## Edge Cases & Error Handling
<What can go wrong and how to recover.>
## Examples
<At least 1-2 concrete input→output examples showing the full execution.>Writing Guidelines (both types)
- Be actionable: Even knowledge-type skills should tell Claude HOW to use the knowledge in responses.
- Be specific: Include exact trigger phrases, commands, file paths.
- Be structured: Use headers, numbered steps, decision trees.
- Keep SKILL.md under 500 lines. If content is too rich, split into
references/files. - Include "when NOT to use" to prevent false triggers.
- Include at least 2 examples — they massively improve skill reliability. Examples are not optional.
- Explain the why — don't just say "do X", explain why X matters.
- Make the name kebab-case — e.g.,
my-cool-skill, notMy Cool Skill. - Make the description pushy — include trigger phrases, file types, contexts. Err on over-triggering.
- Use
${CLAUDE_SKILL_DIR}to reference bundled files (scripts, references) so paths resolve correctly regardless of where the skill is installed. - Add
allowed-toolswhen the skill needs specific tools (Bash, Write, etc.) to reduce permission prompts. - Use
context: forkfor Action-type skills that run heavy or risky workflows — this runs the skill in an isolated subagent context.
Step 5: Quality Check
Before presenting the skill, verify every item. Do not skip any:
- YAML frontmatter has
name(kebab-case!) anddescription nameis kebab-case (lowercase, hyphens only)- Description is "pushy" — lists specific trigger phrases
- Description is bilingual if input content is non-English
- Skill type is appropriate (knowledge vs action)
- Knowledge-type: has framework, analysis workflow, output template
- Action-type: has executable steps, input/output spec, verification
- Language matches input content (with English frontmatter)
- Under 500 lines (or properly split into references)
- At least 2 examples included (input → output format)
- Edge cases / limitations covered
- "When NOT to Use" section present
The most commonly missed items are: examples, kebab-case naming, and bilingual descriptions. Double-check these three.
Step 6: Package & Deliver
- Write the skill folder to the appropriate output directory.
- If the
package_skill.pyscript is available, package it:cd /mnt/skills/examples/skill-creator && python -m scripts.package_skill /path/to/<skill-name> /output/path/ - Present the
.skillfile to the user. - Show a summary:
- Skill name & description
- Skill type: Knowledge / Action
- Number of files generated
- Key capabilities
- Suggested trigger phrases to test
Special Cases
Long-form Content (> 30 min video / > 5000 words)
- Put the core workflow in SKILL.md (under 500 lines)
- Create
references/files for detailed sub-topics - Add a "Reference Index" section in SKILL.md pointing to each reference file
Tutorial / Course Content → Usually Action-type
- Each major section → a step in the workflow
- Code examples → include inline or in
scripts/ - Exercises → convert to "verification steps" or examples
- Prerequisites → add to a "Dependencies" section
Article / Opinion / Analysis → Usually Knowledge-type
- Extract the core analytical framework
- Identify the author's key claims and evidence
- Convert opinions into conditional guidance: "When X, consider Y"
- Build decision trees from the author's reasoning
Conversational / Interview Content → Depends on content
- Extract the actionable insights — skip the chit-chat
- If it's "how I built X" → Action-type
- If it's "my view on the state of X" → Knowledge-type
- Attribute key ideas: "According to [speaker], ..."
- Organize by theme, not by chronological order
Presentation Slides (.pptx) → Usually Knowledge-type
- Extract text via
markitdownand visual structure viathumbnail.py - Treat each slide as a potential section or step
- Speaker notes often contain richer content than slide text — prioritize them
- Diagrams/charts → describe their meaning in text form
Spreadsheet Workflows (.xlsx) → Usually Action-type
- Extract column headers and their relationships
- Identify formulas — they encode the business logic
- Convert the formula chain into step-by-step instructions
- Note any conditional formatting rules as decision points
- Create the skill around the process the spreadsheet encodes, not the data
Mixed Content (素材 + 指令 combo)
When user provides content AND instructions:
- Use the content as the knowledge base / raw material
- Use the instructions to determine the skill's purpose and behavior
- Instructions override auto-classification
- The generated skill should serve the instruction's goal, drawing on the content
Example:
- Content: Ray Dalio article about Big Cycle
- Instruction: "每天帮我扫描新闻,用这个框架分析"
- Result: Action-type skill that monitors news and applies the Big Cycle framework
Batch Processing (多素材批量处理)
When user provides multiple pieces of content:
- Analyze each piece individually
- Determine if they should be:
- Merged into one skill (if same topic, complementary perspectives)
- Separate skills (if different topics)
- Present the grouping plan to the user before generating
Troubleshooting
| Problem | Solution |
| Whisper not installed | pip install openai-whisper --break-system-packages |
| ffmpeg not found | apt-get update && apt-get install -y ffmpeg |
| pypdf not installed | pip install pypdf --break-system-packages |
| pandoc not found | apt-get update && apt-get install -y pandoc |
| markitdown not installed | pip install markitdown --break-system-packages |
| openpyxl not installed | pip install openpyxl --break-system-packages |
| Audio too long (>1hr) | Split with: ffmpeg -i input.mp3 -f segment -segment_time 1800 -c copy chunk_%03d.mp3 |
| Content has no clear structure | Ask the user what they want to use it for, then impose structure around that goal |
| Mixed languages in content | Use the dominant language; note bilingual terms in a glossary section |
| URL blocked by network/safety | Try browser access; if still blocked, ask user to paste content |
| Can't determine knowledge vs action | Ask the user: "这个素材你想用来参考分析,还是自动执行某个流程?" |
| User instructions conflict with content | Instructions take priority; use content as supporting material |
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.

