Create Skills from Patterns

This skill transforms a recurring pattern or debugging solution into a standalone, reusable skill with SKILL.md, reference docs, and examples. It guides the user through identifying the pattern, naming the skill, generating files, and ensuring quality.

✨ What it does

  • Evaluates whether a pattern qualifies for extraction based on criteria like recurrence and non-obviousness.
  • Generates a skill name following naming rules and avoiding reserved fragments like 'claude' or 'anthropic'.
  • Spawns a skill-extractor agent to create the skill directory with SKILL.md, README.md, and optional reference/examples.m
  • Enforces a structured SKILL.md template with quick reference, problem, solutions, trade-offs, and edge cases.
  • Runs quality gates to ensure valid frontmatter, self-contained solutions, and no project-specific hardcoded values.
  • Provides a report summarizing created files and source memory entries.

🎯 When to use it

  • When the user runs /si:extract or asks to package a recurring solution into a skill.
  • When a solution has been used across multiple projects and is non-obvious.
  • When the user wants to save a complex multi-step fix for future reuse.
  • When the user explicitly says 'Save this as a skill' or 'I want to reuse this'.

🚀 How to use

Trigger: /si:extract

Trigger with the slash command /si:extract followed by a pattern description. Optionally specify --name, --output, or --dry-run. The skill expects a description of the recurring problem or solution. It may ask up to two clarifying questions. Example prompts:

/si:extract "Fix for Docker builds failing on Apple Silicon with platform mismatch"
/si:extract "Always regenerate TypeScript API client after modifying OpenAPI spec" --name api-client-regen

📄 Output: A new skill directory containing SKILL.md, README.md, and optional reference/examples.md, plus a report of created files.

📦 Add this skill to Claude Code

# 1. Get the skills repo
git clone --depth 1 https://github.com/alirezarezvani/claude-skills /tmp/claude-skills

# 2. Copy this skill into your project (or ~/.claude/skills for all projects)
mkdir -p .claude/skills
cp -r /tmp/claude-skills/engineering-team/self-improving-agent/skills/extract .claude/skills/extract

Skill source: engineering-team/self-improving-agent/skills/extract/SKILL.md

⚠️ Good to know

Requires the user to provide a clear pattern description; if not found in auto-memory, the skill relies solely on the user's input.

❓ FAQ

What should I do if the skill name contains 'claude'?

Replace the 'claude' prefix with 'cc-' (e.g., claude-code-settings becomes cc-settings).

Can I preview the skill before creating files?

Yes, use the --dry-run flag to preview without creating files.

What criteria determine if a pattern should be extracted?

A pattern qualifies if it is recurring, non-obvious, broadly applicable, complex, or user-flagged.

🤖 Overview, features, install steps and FAQ were generated from the project's SKILL.md on Sep 4, 2026. Always check the original source before running commands.