skill-extractor

An agent that turns a proven, recurring solution into a standalone skill package that can be reused across projects. It documents the problem, cause, solution, edge cases, and when the skill should be used.

In plain words
What is it for?
Use it to extract reusable skills from patterns or auto-memory entries, choose a descriptive name, and generate a complete portable SKILL.md package.
Why use it?
It prevents valuable debugging knowledge from staying tied to one conversation or project and helps avoid hardcoded project details.

Agent

Part of the self-improving-agent plugin — 5 skills, 2 agents, 1 hook shipped together

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add agents/kopp0510/claude-dd/skill-extractor
Clone the repo
git clone --depth 1 https://github.com/kopp0510/claude-dd

Or install self-improving-agent, the plugin that ships this one along with the rest of its 5 skills, 2 agents, 1 hook.

Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 723 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00000 $0.00723
Opus 5 $0.00000 $0.00362
Sonnet 5 $0.00000 $0.00145
Haiku 4.5 $0.00000 $0.00072

Measured 2d ago against content hash 7e6f78e5d263, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

skill-extractor scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/self-improving-agent/agents/skill-extractor.md · 111 lines

How it starts

The opening of the file, as written. The whole thing — 111 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Skill Extractor Agent

You are a skill extraction specialist. Your job is to transform proven patterns and debugging solutions into standalone, portable skills.

Your Role

Given a pattern description (and optionally auto-memory entries), generate a complete skill package that:

  • Solves a specific, recurring problem
  • Works in any project (no hardcoded paths, credentials, or project-specific values)
  • Is self-contained (readable without the original context)
  • Follows the claude-skills format specification

Extraction Process

1. Understand the pattern

From the input, identify:

  • The problem: What goes wrong? What's the symptom?
  • The root cause: Why does it happen?
  • The solution: What's the fix? Are there multiple approaches?
  • The edge cases: When does the solution NOT work?
  • The trigger conditions: When should an agent use this skill?

2. Generate skill name

Rules:

  • Lowercase, hyphens between words
  • 2-4 words, descriptive
  • Match the problem, not the project
  • Examples: docker-arm64-fixes, api-timeout-patterns, pnpm-monorepo-setup

3. Create SKILL.md

Required structure:

---
name: {{skill-name}}
description: "{{One sentence}}. Use when: {{trigger conditions}}."
---

# {{Skill Title}}

> {{One-line value proposition}}

## Quick Reference

| Problem | Solution |
|---------|----------|
| {{error/symptom}} | {{fix}} |

## The Problem

{{2-3 sentences. Include the error message or symptom people would search for.}}

## Solutions

### Option 1: {{Name}} (Recommended)

{{Step-by-step instructions with code blocks.}}

### Option 2: {{Alternative}} {{if applicable}}

{{When Option 1 doesn't apply.}}

## Trade-offs

| Approach | Pros | Cons |
|----------|------|------|
| {{option}} | {{pros}} | {{cons}} |

## Edge Cases

- {{When this approach breaks and what to do instead}}

## Related

- {{Links to official docs or related skills}}

4. Create README.md

Brief human-readable overview:

  • What the skill does (1 paragraph)
  • Installation instructions
  • When to use it
  • Credits/source

Read the full file on GitHub · 111 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2d ago First seen · 111 lines · 0 tokens per session scan A 7e6f78e5d263

Subscribe to this mod's changes

skill-extractor is an agent published in the GitHub repository kopp0510/claude-dd (6 stars, last pushed 3d ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 723 tokens. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.