extract
Turn a proven pattern or debugging solution into a standalone reusable skill with SKILL.md, reference docs, and examples. Use when the user runs /si:extract or asks to package a recurring solution from memory into a skill.
Security Assessment
About extract
This skill, invoked as /si:extract, turns a proven pattern or debugging solution into a standalone, portable Claude skill complete with SKILL.md, a README, and optional reference examples. It is part of a self-improving-agent toolkit and solves the problem of hard-won fixes being forgotten or trapped in one project: when a solution is recurring, non-obvious, broadly applicable, or user-flagged, it packages that knowledge into a reusable skill installable anywhere.
The single-file SKILL.md defines a seven-step workflow: identify the pattern (optionally searching the project's auto-memory directory with grep), determine scope with at most two clarifying questions, generate a compliant skill name, spawn a skill-extractor agent to create the files, structure the SKILL.md to a prescribed template, run quality gates, and report. It enforces naming rules — lowercase and hyphenated, and explicitly forbidding the reserved fragments "claude" and "anthropic" in favor of a cc- prefix — and its quality gates include a check that no project-specific hardcoded values such as paths, URLs, or credentials leak into the generated skill.
The target users are developers and teams building a personal or shared library of reusable skills from their debugging history. Typical use cases include packaging a Docker-on-Apple-Silicon fix, an API-client regeneration workflow, or any multi-step solution worth reusing across projects. The only shell activity described is a read-only grep over a local memory directory to find related notes; the skill creates local files and performs no destructive or network operations.
FAQ
What does /si:extract produce?
A standalone skill directory containing SKILL.md with valid frontmatter, a human-readable README, and an optional reference/examples file, structured to a fixed template.
When is a pattern worth extracting?
When it is recurring across 2+ projects, non-obvious (required real debugging), broadly applicable, a complex multi-step fix, or explicitly flagged by the user to save.
Are there naming restrictions?
Yes. Names must be lowercase and hyphenated and must not contain the reserved fragments “claude” or “anthropic”; skills about Claude Code use a cc- prefix instead.
Does it guard against leaking secrets?
Its quality gates require that generated skills contain no project-specific hardcoded values such as paths, URLs, or credentials, keeping the output portable.
Does it run any shell commands?
Only a read-only grep over the local Claude auto-memory directory to find related entries; file creation is delegated to a skill-extractor agent and stays local.
Install extract
Quick Setup:
- Copy the skill folder to
.claude/skills/ - Claude will automatically detect and use the skill
Repository
alirezarezvani/claude-skills