skill-harvester
Meta-skill for extracting and creating reusable Claude Code skills from past work sessions. Analyzes git history, code patterns, workflows, and documentation to identify harvestable skills, then generates comprehensive skill definitions with best practices, examples, and structured templates.
What this skill does
# Skill Harvester
Transform your past work into reusable Claude Code skills automatically.
## Overview
The Skill Harvester is a meta-skill that helps you systematically extract reusable patterns, workflows, and expertise from your Claude Code sessions and convert them into well-structured skills that can be shared and reused.
## When to Use
Use this skill when:
- Completing a significant project or work session
- Identifying repetitive patterns across multiple sessions
- Building organizational knowledge repositories
- Creating team-wide skill libraries
- Documenting complex workflows for future reuse
- Converting infrastructure/tooling expertise into skills
- After solving complex problems that could help future work
## Skill Harvesting Process
### 1. Reflection & Analysis
**Examine recent work:**
```bash
# Review recent git commits
git log --oneline -20
# Analyze file changes
git diff HEAD~10..HEAD --stat
# Check which files were most modified
git log --pretty=format: --name-only | sort | uniq -c | sort -rg | head -20
```
**Identify domains:**
- What technologies were used? (frameworks, languages, tools)
- What problems were solved? (deployment, testing, optimization)
- What patterns emerged? (error handling, API integration, workflow)
- What expertise was developed? (domain knowledge, best practices)
### 2. Skill Identification
**Questions to ask:**
1. **Reusability**: Could this help in future projects?
2. **Generalizability**: Does it apply beyond this specific context?
3. **Complexity**: Is it non-trivial enough to warrant a skill?
4. **Value**: Would others benefit from this pattern?
5. **Completeness**: Can it be documented as a standalone skill?
**Skill categories to consider:**
- **Infrastructure**: Docker, Kubernetes, cloud platforms, CI/CD
- **Backend**: API design, database optimization, authentication
- **Frontend**: Component patterns, state management, build optimization
- **DevOps**: Deployment strategies, monitoring, automation
- **Data Engineering**: ETL pipelines, data validation, transformation
- **Security**: Auth patterns, encryption, vulnerability scanning
- **Testing**: Test strategies, mocking, coverage analysis
- **Documentation**: API docs, architecture diagrams, runbooks
### 3. Skill Template Creation
**Essential components of a good skill:**
```markdown
---
name: skill-name (kebab-case)
description: Clear, concise 1-2 sentence description of what the skill does
license: MIT
tags: [relevant, searchable, tags]
---
# Skill Title
Brief overview paragraph explaining the skill's purpose and value.
## When to Use
- Specific scenario 1
- Specific scenario 2
- Specific scenario 3
## Core Concepts
Explain the fundamental ideas and principles.
## Workflow
Step-by-step process for using the skill.
### Step 1: [Action]
Detailed explanation with code examples.
### Step 2: [Action]
More details and examples.
## Common Patterns
### Pattern 1: [Name]
Description and example.
### Pattern 2: [Name]
Description and example.
## Best Practices
### ✅ DO
- Recommended approach 1
- Recommended approach 2
### ❌ DON'T
- Anti-pattern 1
- Anti-pattern 2
## Examples
### Example 1: [Scenario]
Full working example with explanation.
### Example 2: [Scenario]
Another complete example.
## Troubleshooting
### Issue 1: [Problem]
**Symptoms**: What you see
**Cause**: Why it happens
**Solution**: How to fix
## Reference
Quick reference table or cheat sheet.
## Additional Resources
- Links to relevant documentation
- Related skills
- External references
```
### 4. Content Extraction
**Extract from various sources:**
```bash
# From code files
# Look for:
# - Complex functions that solve specific problems
# - Utility scripts with general applicability
# - Configuration patterns that work well
# - Error handling strategies
# - Integration patterns
# From documentation
# Harvest:
# - README instructions
# - Setup guides
# - Troubleshooting notes
# - Architecture decisions
# - Lessons learned
# From git commits
git log --all --grep="fix\|feat\|refactor" --pretty=format:"%h %s" -20
# From issue trackers
# Extract:
# - Common problems and solutions
# - Debugging strategies
# - Workarounds and fixes
```
### 5. Skill Organization
**Directory structure:**
```
harvestable_skills/
├── automation/
│ ├── skill-name/
│ │ └── skill.md
├── backend/
├── devops/
├── frontend/
├── infrastructure/
├── testing/
└── documentation/
```
**Categorization guidelines:**
- **automation**: Workflow automation, scripting, batch operations
- **backend**: Server-side development, APIs, databases
- **cloud**: Cloud platforms, serverless, infrastructure
- **data-engineering**: Data processing, ETL, analytics
- **devops**: CI/CD, deployment, monitoring
- **documentation**: Documentation generation, diagrams
- **frontend**: UI development, client-side frameworks
- **infrastructure**: Container orchestration, VMs, networking
- **security**: Authentication, authorization, encryption
- **testing**: Test frameworks, strategies, automation
- **web-development**: Full-stack web development patterns
## Harvesting Strategies
### Strategy 1: Domain Expertise Extraction
When you've worked extensively with a specific tool or technology:
1. **Document the mental model**: How does it work? What are the key concepts?
2. **Capture common operations**: What do you do most often?
3. **Record gotchas**: What are the common pitfalls?
4. **Create quick reference**: What do you always look up?
**Example domains:**
- Database query optimization
- Docker multi-stage builds
- JWT authentication patterns
- GraphQL schema design
- Terraform module creation
### Strategy 2: Workflow Pattern Extraction
When you've developed an effective workflow:
1. **Map the steps**: What's the sequence of actions?
2. **Identify decision points**: Where are choices made?
3. **Document prerequisites**: What's needed to start?
4. **Capture success criteria**: How do you know it worked?
**Example workflows:**
- Blue-green deployments
- Feature branch review process
- Database migration strategies
- API versioning approaches
### Strategy 3: Problem-Solution Pattern Mining
When you've solved complex problems:
1. **Describe the problem**: What was broken/missing?
2. **Explain the diagnosis**: How did you identify it?
3. **Detail the solution**: What fixed it?
4. **Generalize the pattern**: How to prevent/solve similar issues?
**Example patterns:**
- Memory leak debugging
- Race condition resolution
- Performance bottleneck analysis
- Security vulnerability patching
### Strategy 4: Tool Mastery Documentation
When you've become proficient with a tool:
1. **Core operations**: What are the essential commands?
2. **Advanced features**: What are the power-user tricks?
3. **Integration patterns**: How does it work with other tools?
4. **Troubleshooting**: Common errors and fixes?
**Example tools:**
- kubectl for Kubernetes
- AWS CLI for cloud operations
- jq for JSON processing
- git for version control
## Automation Helpers
### Bulk Skill Generation
```bash
#!/bin/bash
# bulk-harvest.sh - Generate multiple skills from a list
SKILLS_FILE="$1"
OUTPUT_DIR="harvestable_skills"
while IFS='|' read -r category name description; do
# Skip header and empty lines
[[ "$category" == "Category" ]] && continue
[[ -z "$category" ]] && continue
SKILL_DIR="$OUTPUT_DIR/$category/$name"
mkdir -p "$SKILL_DIR"
cat > "$SKILL_DIR/skill.md" << EOF
---
name: $name
description: $description
license: MIT
---
# ${name//\-/ }
$description
## When to Use
TODO: Add specific scenarios
## Implementation
TODO: Add implementation details
## Examples
TODO: Add working examples
## Best Practices
TODO: Add recommendations
EOF
echo "✓ Created: $category/$name"
done < "$SKILLS_FILE"
```
**Usage:**
```bash
# Create skills-to-harvest.txt
cat > skills-to-harvest.txt << EOF
Category|Name|Description
devops|docker-layer-optimization|Optimize Docker image layers for faster buRelated in AI Agents
skill-development
IncludedComprehensive meta-skill for creating, managing, validating, auditing, and distributing Claude Code skills and slash commands (unified in v2.1.3+). Provides skill templates, creation workflows, validation patterns, audit checklists, naming conventions, YAML frontmatter guidance, progressive disclosure examples, and best practices lookup. Use when creating new skills, validating existing skills, auditing skill quality, understanding skill architecture, needing skill templates, learning about YAML frontmatter requirements, progressive disclosure patterns, tool restrictions (allowed-tools), skill composition, skill naming conventions, troubleshooting skill activation issues, creating custom slash commands, configuring command frontmatter, using command arguments ($ARGUMENTS, $1, $2), bash execution in commands, file references in commands, command namespacing, plugin commands, MCP slash commands, Skill tool configuration, or deciding between skills vs slash commands. Delegates to docs-management skill for official documentation.
reprompter
IncludedTransform messy prompts into well-structured, effective prompts — single or multi-agent. Use when: "reprompt", "reprompt this", "clean up this prompt", "structure my prompt", rough text needing XML tags and best practices, "reprompter teams", "repromptception", "run with quality", "smart run", "smart agents", multi-agent tasks, audits, parallel work, anything going to agent teams. Don't use when: simple Q&A, pure chat, immediate execution-only tasks. See "Don't Use When" section for details. Outputs: Structured XML/Markdown prompt, quality score (before/after), optional team brief + per-agent sub-prompts, agent team output files. Success criteria: Single mode quality score ≥ 7/10; Repromptception per-agent prompt quality score 8+/10; all required sections present, actionable and specific.
adaptive-compaction
IncludedAdaptive add-on policy and recovery layer that decides WHEN to compact, prune, snapshot, or fork -- replacing fixed-percent auto-compaction across Claude Code, Codex, and MCP-capable hosts. Trigger on auto-compact timing or damage: "when should I compact", "is it safe to compact now or start a fresh session", "auto-compact fires too early/mid-task", "switching to an unrelated task but the window still has space", "context rot", "answers get worse the longer the session runs", "the agent forgot the plan or my decisions after it summarized", "add a layer on top that manages context without changing the agent", raising autoCompactWindow to give the policy room, or installing/tuning a cross-tool compaction policy or PreCompact hook -- even when "compaction" is never said but the problem is context-window pressure or post-summarization memory loss. Do NOT use to summarize a conversation, build RAG, write a summarization prompt (decides WHEN not HOW), or answer max-context-length trivia.
agent-skill-creator
IncludedCreate cross-platform agent skills from workflow descriptions. Activates when users ask to create an agent, automate a repetitive workflow, create a custom skill, or need advanced agent creation. Triggers on phrases like create agent for, automate workflow, create skill for, every day I have to, daily I need to, turn process into agent, need to automate, create a cross-platform skill, validate this skill, export this skill, migrate this skill. Supports single skills, multi-agent suites, transcript processing, template-based creation, interactive configuration, cross-platform export, and spec validation.
llm-wiki
IncludedUse when building or maintaining a persistent personal knowledge base (second brain) in Obsidian where an LLM incrementally ingests sources, updates entity/concept pages, maintains cross-references, and keeps a synthesis current. Triggers include "second brain", "Obsidian wiki", "personal knowledge management", "ingest this paper/article/book", "build a research wiki", "compound knowledge", "Memex", or whenever the user wants knowledge to accumulate across sessions instead of being re-derived by RAG on every query.
skill-master
IncludedAgent Skills authoring, evaluation, and optimization. Create, edit, validate, benchmark, and improve skills following the agentskills.io specification. Use when designing SKILL.md files, structuring skill folders (references, scripts, assets), ingesting external documentation into skills, running trigger evals, benchmarking skill quality, optimizing descriptions, or performing blind A/B comparisons. Keywords: agentskills.io, SKILL.md, skill authoring, eval, benchmark, trigger optimization.