---
name: skillify-examples
description: |
  Examples of skillify extraction and amplification patterns. Use this skill
  when learning how to use /skillify, when understanding extraction vs amplification,
  or when needing reference examples for modularizing files into skills.
  Triggers: "skillify example", "extraction example", "amplification example",
  "how does skillify work", "skill extraction patterns".
---

# Skillify Examples

Reference examples showing extraction and amplification patterns for the /skillify command.

## Example 1: Command Modularization

**Input:** `research-codebase.md` (182 lines)

**Identified Modules:**
1. Explore agent patterns (thoroughness levels, capabilities, prompts) - 50 lines
2. Research document template (YAML structure, sections) - 45 lines

**Workflow steps kept inline:**
- Initial setup prompt
- Decomposition instructions
- Spawn/synthesize/present steps

**Result:**
- Created: `explore-agent-patterns` skill (74 lines)
- Created: `research-document-template` skill (75 lines)
- Updated: `research-codebase.md` (182 → 87 lines, 52% reduction)
- Command now references both skills at relevant steps

## Example 2: CLAUDE.md Sections

**Input:** CLAUDE.md with these sections:
1. Git commit preferences (2 lines) - too small
2. MCP Server Development (60 lines) - extractable
3. Agent Development (120 lines) - extractable
4. Bash Scripting (80 lines) - extractable

**Result:**
- Keep inline: Git preferences (too small for skill)
- Created: `mcp-server-dev` skill
- Created: `agent-development` skill
- Created: `bash-scripting` skill
- CLAUDE.md now has brief summaries with skill references

## Example 3: Amplification (Terse → Comprehensive)

**Input:** Agent file with instruction:
```markdown
Use Chrome DevTools MCP to inspect the page and verify changes.
```

**Identified as amplification candidate:**
- Terse instruction (1 line)
- References MCP server without explaining available tools
- No guidance on when/how to use specific tools

**Research conducted:**
- Chrome DevTools MCP documentation
- Available tools: take_snapshot, take_screenshot, click, fill, navigate, etc.
- Best practices for UI verification workflows
- Common patterns for form testing, visual regression, etc.

**Result - Created `chrome-devtools-mcp` skill (150 lines):**
- Complete list of available tools with descriptions
- Decision guide: when to use snapshot vs screenshot
- Common workflows: page navigation, form filling, element inspection
- Examples for verification patterns
- Troubleshooting common issues

**Original file updated:**
```markdown
Use Chrome DevTools MCP to inspect the page and verify changes.
**See skill: `chrome-devtools-mcp`** for available tools and verification patterns.
```

**Value added:** 1 line instruction → 150 lines of actionable guidance

## Before/After Comparison

### Before (verbose in original file):
```markdown
## Document Template

### File Naming Convention
Location: `thoughts/shared/research/`
Format: `YYYY-MM-DD-description.md`
...
[45 more lines of template details]
```

### After (lean with skill reference):
```markdown
## Document Template

**See skill: `research-document-template`** for structure and metadata.

Write to `thoughts/shared/research/YYYY-MM-DD-description.md`
```

## Summary Report Format

After skillify completes, generate this report:

```
## Skillify Complete

### Extraction Summary
| Original File | Before | After | Reduction |
|---------------|--------|-------|-----------|
| [filename] | [X] lines | [Y] lines | [Z]% |

### Skills Extracted (from existing content)
| Skill Name | Lines | Purpose |
|------------|-------|---------|
| [name] | [N] | [brief purpose] |

### Skills Amplified (researched & expanded)
| Skill Name | Lines | Original Instruction | Value Added |
|------------|-------|---------------------|-------------|
| [name] | [N] | "[terse original]" | [what was added] |

### Skill References Added
- Step N: References `skill-name` for [purpose]

### Next Steps
1. Test the command to verify skill references work
2. Skills are now reusable by other commands/agents
3. Review amplified skills for accuracy (based on web research)
```
