Capability extraction

From Vrooli/Vrooli · View interactive version

Capability extraction is an AI agent skill from the GitHub repository Vrooli/Vrooli. Audit agent files (SOUL.md, AGENTS.md, TOOLS.md) to **identify embedded methodologies that should be extracted into reusable skills**. This methodology covers the first half of the promotion pipeline:

How to use this skill

Skill file

Practice focus: Capability Extraction

Audit agent files (SOUL.md, AGENTS.md, TOOLS.md) to identify embedded methodologies that should be extracted into reusable skills. This methodology covers the first half of the promotion pipeline: Agent instructions → Skills. Once capabilities are extracted into skills, they enter the meta-optimization layer where leader-research-analyze-plan can identify CLI promotion opportunities (Skills → CLI capabilities).

Required reading:

Optional reading:


**1. When to Use This Methodology**

**Entry Decision Table**

| You have... | Use this? | Entry point |

|---|---|---|

| Agent AGENTS.md files that are long or contain inline workflows | Yes | Phase 1: Audit |

| Known duplication across multiple agents | Yes | Phase 2: Classify (skip broad audit) |

| Friction report showing agents re-inventing methodology | Yes | Use as input to Phase 1: Audit |

| Single skill needs improvement | No | Use skill-improvement-suggestions directly |

| Need to find CLI promotion candidates from existing skills | No | Use leader-research-analyze-plan |

| Agent identity/personality tuning | No | That's SOUL.md content, not extractable methodology |

| Agent TOOLS.md needs skill references added | No | That's a consequence of extraction, not a trigger for it |

**When NOT to use this methodology**

**2. The Process**

┌──────────────────────────────────────────────────────────────────────────────┐
│                    CAPABILITY EXTRACTION PROCESS                              │
├──────────────────────────────────────────────────────────────────────────────┤
│                                                                              │
│   ┌─────────┐     ┌──────────┐     ┌────────────┐     ┌──────────┐         │
│   │  AUDIT  │ ──▶ │ CLASSIFY │ ──▶ │ PRIORITIZE │ ──▶ │   PLAN   │         │
│   │         │     │          │     │            │     │EXTRACTION│         │
│   │(read    │     │(test +   │     │(compound   │     │          │         │
│   │ agent   │     │ type)    │     │ impact)    │     │(specs)   │         │
│   │ files)  │     │          │     │            │     │          │         │
│   └─────────┘     └──────────┘     └────────────┘     └──────────┘         │
│                                                                              │
│   Downstream:                                                                │
│   ┌──────────────────────┐     ┌───────────────────────────────────┐        │
│   │ skill-authoring-     │     │ leader-research-analyze-plan      │        │
│   │ practice             │     │ (for CLI promotion of new skills) │        │
│   │ (to create the skill)│     │                                   │        │
│   └──────────────────────┘     └───────────────────────────────────┘        │
│                                                                              │
└──────────────────────────────────────────────────────────────────────────────┘

**Phase 1: Audit**

Entry criteria: Agent file(s) need analysis for extractable patterns. Trigger may be: agent AGENTS.md is long, friction report identifies re-invented methodology, or periodic meta-optimization sweep.

Actions:

  1. Select audit scope using the Scope Sizing Table (Section 4)
  2. Read AGENTS.md for each target agent — focus on the Workflow section
  3. Read TOOLS.md for each target agent — note which skills are already referenced
  4. Scan SOUL.md briefly to understand the agent's identity (this is context, not extraction material)
  5. Identify embedded patterns — look for:
  1. Tag each candidate with: source agent, pattern type, approximate line count, descriptive label

Exit criteria:

Artifacts:


**Phase 2: Classify**

Entry criteria: Candidate inventory exists from Phase 1.

Actions:

  1. Apply the Extraction Test (Section 4) to each candidate — score each question yes/no
  2. Discard candidates scoring <3 — mark as "leave in agent file" with brief rationale
  3. For candidates scoring ≥3, classify using the Classification Table:

| Signal in AGENTS.md | Extraction Type | Skill Category |

|---|---|---|

| Multi-phase workflow with delegation points | Pipeline skill | practice (pipeline) |

| Decision framework with structured criteria | Practice skill | practice |

| Decision table mapping inputs to actions | Practice skill or CLI candidate | practice |

| Communication format used by multiple agents | Practice skill | practice |

| Single-agent methodology (no delegation) | Leaf practice skill | practice |

| Deterministic routing logic (no judgment needed) | CLI promotion candidate | n/a — route to leader-research-analyze-plan |

  1. Run the "Already Covered" Check (Section 4) for each extractable candidate
  2. Identify cross-agent patterns — same methodology embedded in 2+ agents means higher extraction value
  3. Group related candidates — patterns that would naturally combine into a single skill

Exit criteria:

Artifacts:


**Phase 3: Prioritize**

Entry criteria: Classified candidate register exists.

Actions:

  1. Score each extractable candidate using the compound impact formula:

compound_impact = (agents_who_benefit × promotion_potential) - extraction_cost

| Factor | Scale | Guidance |

|---|---|---|

| agents_who_benefit | 1-8 | Count of agents with the same or similar embedded pattern |

| promotion_potential | 1 (Low), 2 (Medium), 3 (High) | How likely is this to eventually become a CLI capability? Deterministic patterns score High. |

| extraction_cost | 1 (Low), 2 (Medium), 3 (High) | How complex is the extraction? Single decision table = Low. Multi-phase pipeline = High. |

  1. Rank candidates by compound impact score (descending)
  2. Draw the extraction threshold — candidates above the line are worth extracting now; below are deferred
  1. For deferred candidates, record a revisit trigger (e.g., "re-evaluate when a third agent needs this pattern")

Exit criteria:

Artifacts:


**Phase 4: Plan Extraction**

Entry criteria: Prioritized extraction plan exists with candidates above threshold.

Actions:

  1. For each candidate above threshold:

a. Determine: new skill or extend existing? — Apply the skill-principles sprawl check:

b. Draft skill scope:

c. Define agent file changes:

d. Define verification using the Shrink Verification checklist (Section 4)

  1. Identify cross-cutting extractions — candidates that should combine into one skill rather than separate skills
  2. Sequence the extractions — extract leaf skills before pipeline skills that compose them

Exit criteria:

Artifacts:

Extraction Spec Template:

### Extraction: [Candidate Label]

**Source agents:** [list of agents containing this pattern]
**Extraction type:** [from Classification Table]
**Compound impact score:** [N]

**Skill action:** Create new / Extend [existing-skill-id]
**Proposed skill ID:** [kebab-case-id]
**Focus statement:** [1-2 sentences]

**Agent file changes:**
- [agent-id] AGENTS.md: Replace lines [N-M] (inline [pattern]) with skill reference
- [agent-id] TOOLS.md: Add [skill-id] to Primary Skills

**What stays in agent file:**
- [specific judgment, coordination points, identity-related content]

**Downstream:**
- Author skill using: `skill-authoring-practice`
- Validate with: `skill-validation`
- CLI promotion via: `leader-research-analyze-plan` (when applicable)

**3. Convergence Patterns**

**The Extraction Test**

Apply to each candidate identified during Audit. Score each question yes (1) or no (0).

Threshold: Score ≥3 = extractable. Score <3 = leave in agent file.

**The Shrink Verification**

Apply after an extraction is implemented to confirm it worked correctly.

**The "Already Covered" Check**

Apply before creating a new skill for a candidate.

**Scope Sizing Table**

| Audit Target | Typical Effort | When to Use |

|---|---|---|

| Single agent | Quick — 1 pass through all 4 phases | Specific agent identified as bloated |

| Single team's agents | Moderate — parallel audit, shared classification | Team effectiveness review |

| All leader agents | Full — all 4 phases, expect cross-cutting patterns | Periodic meta-optimization sweep |

| All agents | Large — delegate sub-audits per team to team members | Major ecosystem optimization initiative |


**4. Anti-Patterns**

| Anti-Pattern | Why It Fails | Better Approach |

|---|---|---|

| Extracting everything | Agent files become empty shells with no identity or judgment | Leave SOUL.md content and agent-specific judgment in the agent file |

| Extracting agent identity | Skills are methodology, not personality | SOUL.md defines who; skills define how. Keep them separate. |

| Creating one skill per agent | Defeats the reuse purpose; skill sprawl | Group by methodology, not by source agent. Cross-agent patterns → one skill. |

| Extracting without checking existing skills | Creates duplicates that diverge over time | Always run the "Already Covered" check before creating |

| Extracting deterministic logic into a skill | Skills are for judgment; deterministic logic belongs in CLI | Flag as CLI candidate, route to leader-research-analyze-plan |

| Not verifying after extraction | Agent may lose capabilities silently | Always run the Shrink Verification after implementation |

| Extracting too early | Pattern appears once, may not generalize | Wait until a pattern appears in ≥2 agents before extracting (unless the methodology is clearly general) |

| Skipping prioritization | Low-impact extractions consume effort that could improve high-impact ones | Always score compound impact; respect the threshold |


**5. Boundaries**

This methodology covers identifying and planning the extraction of embedded agent capabilities into reusable skills.

Does NOT cover:


**6. Output Expectations**

When applying Capability Extraction, you must produce:

  1. Candidate inventory — Raw list of embedded patterns with source agent, pattern type, and line count
  2. Classified candidate register — Each candidate scored, classified, and checked against existing skills
  3. Prioritized extraction plan — Ranked by compound impact with threshold and deferred items

You should also produce:

  1. Extraction specs — For each candidate above threshold: skill to create/extend, agent file changes, verification plan

Quality bar: Another agent should be able to create the extracted skills from the extraction specs alone, using skill-authoring-practice, without re-reading the original agent files.

You must NOT:

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.