convert-as-skill
Skill0 starsChanged 57 days agoMITView on GitHub
Convert existing material into a skill, or merge existing skills into one. Use when asked to convert a rule, command or agent to a skill, save a conversation as a skill, turn a PDF or docs folder into a skill, or merge two skills into one. Not for writing a skill from scratch (`create-skill`).
In this repository40 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- .cursor/rules/comments.mdcCursor rule
- .cursor/rules/commit-messages.mdcCursor rule
- .cursor/rules/git-workflow.mdcCursor rule
- .cursor/rules/manage-stack.mdcCursor rule
- .cursor/rules/no-worktrees.mdcCursor rule
- manage-stackSkill
- create-agentSkill
- create-agents-mdSkill
- create-commandSkill
- create-hookSkill
- create-ruleSkill
- create-skillSkill
- super-architectureSkill
- super-cachingSkill
- super-nodejsSkill
- super-protobufSkill
- super-tech-blueprintSkill
- atomic-semantic-commitSkill
- create-bruno-collectionSkill
- create-jira-storySkill
- glab-code-reviewSkill
- write-mr-descriptionSkill
- output-saversSkill
- polyglot-copywriterSkill
- super-designSkill
- super-elixirSkill
- super-noslopSkill
- super-refactorSkill
- super-tddSkill
- super-verifySkill
- one-next-actionSkill
- parking-lotSkill
- super-challenge-meSkill
- super-codebase-learnerSkill
- writing-plansSkill
- find-skillsSkill
- handoffSkill
- standupSkill
The file
We split this skill into the rules it gives an agent
6 rules. About 0 are common, 4 are distinctive, and 2 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.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 14
Classify first: Run scripts/classify.mjs before opening a GUIDE.
- Distinctive: line 18
Third-party books stay private: Do not commit a generated book skill to this catalog.
- Distinctive: line 49
Treat "verbatim" as a use case.
- Distinctive: line 50
Default "convert this" with no files to a conversation.
- Very specific: line 51
Run convert.mjs on a PDF or a skill folder, or extract_document.py on rules/ / commands/ / agents/.
- Distinctive: line 52
Delete sources, or commit a third-party book dump to this catalog.
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 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
Convert as skill
One skill, five use cases. A classifier picks exactly one, or asks. Load only that use case's GUIDE. Copy, extract, distill and compose are different jobs.
For a new skill with no source file use create-skill. For a new rule, command or agent use create-rule, create-command or create-agent.
Principles
- Classify first. Run
scripts/classify.mjsbefore opening a GUIDE. File layout beats wording. Never default to conversation. - One use case per input. A PDF is never copied as a rule. Mixed kinds are sequential jobs, or
ask— not one blended skill. - Copy vs extract vs distill vs compose. Rules and agents copy the body. A conversation extracts what worked. A document distills structure. Merge composes a new skill and leaves the sources.
- Preview, then write. Never delete on your own. Dry-run first. Remove originals only after the user has reviewed the result and asked.
- Third-party books stay private. Do not commit a generated book skill to this catalog.
Step 0 — classify
node scripts/classify.mjs [--text "<user request>"] [--json] [path...]| Status | Do |
ok | State the kind and reason. Load only that GUIDE. |
ask | Ask the printed question. Load no GUIDE. |
reject | Stop. Use the named create-* skill instead. |
from-command uses the from-rule GUIDE; the kind stays distinct in logs.
Use cases
| Kind | Source | What happens | GUIDE |
from-rule / from-command | .mdc, rules/, commands/ | Copy the body | from-rule |
from-agent | agents/*.md | Keep / wrap / convert, then copy | from-agent |
from-conversation | Chat / transcript, no files | Extract what worked | from-conversation |
from-document | PDF, docs folder, HTML, URL | Distill structure | from-document |
merge-skills | Two or more skill folders | Compose one new skill | merge-skills |
Scripts: scripts/classify.mjs, scripts/convert.mjs (rules/agents only), scripts/extract_document.py, scripts/merge.mjs. Document parsers live in scripts/extractor/ (pdf.py, html.py, docx.py, epub.py, text.py, rtf.py, sanitize.py, dependencies.py, config.py, exceptions.py, scan_generated_skill.py). Templates: harvest.md, merge-outline.md.
Do not
- Open a GUIDE before classify, or load two GUIDEs for one input.
- Treat "verbatim" as a use case. It is only how from-rule / from-agent copy the body.
- Default "convert this" with no files to a conversation.
- Run
convert.mjson a PDF or a skill folder, orextract_document.pyonrules//commands//agents/. - Delete sources, or commit a third-party book dump to this catalog.
Done when
- Classify printed one kind (or asked / redirected) and only that GUIDE ran.
- The new skill lints clean. Skipped or refused inputs have a stated reason.
- The user knows which originals remain and how to remove or restore them.
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.

