This skill should be used when analyzing development sessions to extract learnings, determining what constitutes valuable knowledge to capture, creating skills from session insights, or evaluating whether patterns are worth codifying for reuse.
/plugin marketplace add griffnb/claude-plugins/plugin install backend@claude-pluginsThis skill inherits all available tools. When active, it can use any tool Claude has access to.
examples/bad-skill-example.mdexamples/good-skill-example.mdreferences/learning-examples.mdMeta-learning is the practice of extracting reusable knowledge from development sessions and codifying it into skills. Not every session contains valuable learnings—this skill provides criteria for identifying what's worth capturing and how to transform insights into effective skills.
Key principle: Capture patterns and insights that will genuinely help future work. Quality over quantity.
Valuable learnings have these characteristics:
Debugging Patterns:
Architecture Decisions:
Framework/Library Patterns:
Testing Strategies:
Domain Knowledge:
Don't capture these:
Apply these filters to sessions before capturing:
Minimum Activity Level:
Substantive Content:
Clarity:
Follow skill-development best practices:
Frontmatter (required):
---
name: skill-topic-name
description: This skill should be used when [specific trigger conditions]. Be concrete with trigger phrases.
version: 1.0.0
---
Body structure:
Target length: 1,500-2,000 words for body
Writing style: Imperative form (verb-first instructions), not second person
Use kebab-case with descriptive names:
Good names:
api-authentication-debuggingreact-hooks-dependency-patternspostgres-query-optimizationgo-error-handling-patternsBad names:
debugging (too generic)stuff-learned (not descriptive)session-notes (not focused)Determine whether to create new or update existing:
60% overlap → Update existing skill
When updating existing skills:
When creating new skills:
Every generated skill must meet these standards:
Description Quality:
Content Quality:
Structure Quality:
Version Tracking:
Follow this process when invoked to capture learnings:
.claude/session-learner.local.md for settingsgit add modified skillsFor detailed examples showing what to capture and what to skip, see:
references/learning-examples.md - Extensive examples with commentaryexamples/good-skill-example.md - Complete skill created from sessionexamples/bad-skill-example.md - What NOT to createThis skill is used by the learning-analyzer agent, which is invoked by:
/capture-learning command - Manually with optional focus hint/review-session command - Preview mode without writing filesThe agent references this skill to understand what makes good learnings and how to create quality skills.
DO:
DON'T:
For detailed patterns and examples:
references/learning-examples.md - Good vs bad learning examples with detailed commentaryWorking examples in examples/:
good-skill-example.md - Complete skill showing best practicesbad-skill-example.md - Anti-pattern showing what to avoidRemember: The goal is compounding knowledge—each captured learning should make future sessions easier. Be selective and focus on truly valuable patterns that warrant codification.
This skill should be used when the user asks to "create a slash command", "add a command", "write a custom command", "define command arguments", "use command frontmatter", "organize commands", "create command with file references", "interactive command", "use AskUserQuestion in command", or needs guidance on slash command structure, YAML frontmatter fields, dynamic arguments, bash execution in commands, user interaction patterns, or command development best practices for Claude Code.
This skill should be used when the user asks to "create an agent", "add an agent", "write a subagent", "agent frontmatter", "when to use description", "agent examples", "agent tools", "agent colors", "autonomous agent", or needs guidance on agent structure, system prompts, triggering conditions, or agent development best practices for Claude Code plugins.
This skill should be used when the user asks to "create a hook", "add a PreToolUse/PostToolUse/Stop hook", "validate tool use", "implement prompt-based hooks", "use ${CLAUDE_PLUGIN_ROOT}", "set up event-driven automation", "block dangerous commands", or mentions hook events (PreToolUse, PostToolUse, Stop, SubagentStop, SessionStart, SessionEnd, UserPromptSubmit, PreCompact, Notification). Provides comprehensive guidance for creating and implementing Claude Code plugin hooks with focus on advanced prompt-based hooks API.