Skip to main content
skill CX Codex

skill-extractor — Claude Code skill: what it does, how to install

skill-extractor turns a finished session into a reusable Claude skill: the cause of a failure, a workaround, the symptom that points to it.

CC-BY-SA-4.0 ★ 540 updated 2026-07-14

Install into Claude Code · Plugin marketplace All methods and platforms ↓
/plugin marketplace add trailofbits/skills-curated
/plugin install skill-extractor@skills-curated
Open on GitHub

What skill-extractor does

Point it at the session you just finished and it pulls out what deserves a second life: the cause behind a non-obvious failure, a workaround found by trial and error, the symptom that leads to either. Output is a SKILL.md file. It lands in ~/.claude/skills/[name]/SKILL.md by default, or in .claude/skills/[name]/SKILL.md when you pass --project, which means it ships with the repo.

The process is ordered. First it looks through both skill directories with ls and grep for an existing skill that already covers the topic, because updating beats piling up duplicates. Then it names the problem, the insight and the trigger conditions, scores the candidate against a criteria table and asks you to confirm. A kebab-case name and a scope come next. Research through web search or Context7 MCP is optional and only for library or framework topics. Template, validation, save.

Nothing fires by itself: there are no hooks or automatic triggers, and /skill-extractor is the only way in. Tool access stops at Read, Write, Glob, Grep, WebSearch and AskUserQuestion. It also declines thin material — trivial fixes, one-off project config, anything already covered elsewhere, and fixes that have not been shown to work.

What it helps with

  • capture a hard-won bug fix as a reusable skill
  • document a workaround that took trial and error
  • record the exact error text that should trigger the knowledge next time
  • update an existing skill with a new edge case instead of adding a duplicate
  • filter candidates through a quality checklist before saving

Example prompts for the agent

  • /skill-extractor — turn the AST recursion crash we just fixed into a skill
  • /skill-extractor --project — keep this one in the repo next to the code
  • /skill-extractor — check whether a retry skill already exists and update that one

How to install skill-extractor

1Plugin marketplace

/plugin marketplace add trailofbits/skills-curated
/plugin install skill-extractor@skills-curated

This installs the whole skill-extractor plugin with all its skills

2Skills CLI (Vercel)

npx skills add trailofbits/skills-curated --skill skill-extractor -a claude-code

3Manually: put the files in place

~/.claude/skills/skill-extractor/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/skill-extractor/

Step by step, with commands for each platform: How to install skills in Claude Code: five ways

Questions about skill-extractor

How do I install skill-extractor in Claude Code?

From the marketplace: run /plugin marketplace add trailofbits/skills-curated, then /plugin install skill-extractor@skills-curated.

What does skill-extractor do?

It reads the current session, finds the part worth keeping and writes it to SKILL.md along with the trigger conditions and the reasoning behind the fix.

Can I keep the generated skill in the project?

Yes. The default path is ~/.claude/skills/[name]/SKILL.md; add --project and it goes to .claude/skills/[name]/SKILL.md inside the repository.

Similar skills

All skills for Agent setup: memory, context, orchestration →

From the same set51

The whole set →
openai-cloudflare-deploy openai-cloudflare-deploy is a Claude Code skill that automates deploying apps and infrastructure to Cloudflare. It activates for requests to deploy, host, publish, or set up a Cloudflare project. CX Codex +1 ★ 540repo stars scv-scan scv-scan is a Claude Code skill that scans Solidity projects for contract vulnerabilities. It runs for pre-release security checks or reviews after code changes. CX Codex +1 ★ 540repo stars review-plugin review-plugin audits a plugin directory for script flaws and project standard violations, automatically fixing detected issues. CX Codex +1 ★ 540repo stars x-research The x-research skill for Claude Code searches recent X discussions, opens threads, and gathers sources to check developer reactions to a release or API change. CX Codex +1 ★ 540repo stars openai-screenshot openai-screenshot captures desktop screenshots, active windows, or pixel regions directly from Claude Code. Built for OS-level interface inspection. CX Codex +1 ★ 540repo stars openai-develop-web-game openai-develop-web-game guides an agent through building HTML and JavaScript browser games with incremental changes and Playwright-based tests. CX Codex +1 ★ 540repo stars writing-great-skills Use this skill to shape, review, or trim SKILL.md files. It helps when a skill behaves inconsistently or its instructions have grown unwieldy. CX Codex +1 ★ 540repo stars import-skill Imports external skills from GitHub into a curated Claude Code plugin repository, rewriting paths and generating required manifests. CX Codex +1 ★ 540repo stars

Project sponsors

Companies that keep this analytics open