From claude-code-skills
This skill should be used when Claude discovers a bug pattern, anti-pattern, effective approach, or correction to an existing skill during work on a project. Activates when finding something noteworthy in code review, debugging, architecture, research validation, or any workflow. Guides when and how to capture learnings to .claude/learnings/ in the project.
How this skill is triggered — by the user, by Claude, or both
Slash command
/claude-code-skills:learning-captureThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Context: documenting insights discovered during work so they can improve the skills over time.
Context: documenting insights discovered during work so they can improve the skills over time.
Capture when you encounter any of the following:
| Trigger | Type | Example |
|---|---|---|
| Found a bug pattern not in the skill's pitfalls | pitfall | Data leakage via preprocessor fitted on all data |
| An approach worked particularly well | pattern | Using errgroup for bounded parallelism |
| Skill gave incorrect or incomplete advice | correction | Skill said X, but Y is correct here |
| Project-specific convention discovered | project-convention | This project uses X instead of Y |
| New technique or library worth noting | discovery | Found a cleaner way to do Z |
Do NOT capture:
Use /capture-learning [brief description] at the end of a relevant task, or inline when the discovery is fresh.
All learnings go to .claude/learnings/ in the project being worked on — not in the plugin repo.
project-root/
└── .claude/
└── learnings/
├── LEARNINGS.md ← index (newest first)
└── entries/
├── 2026-04-20_python-dev_data-leakage.md
└── 2026-04-20_golang-dev_goroutine-leak.md
Each entry in entries/YYYY-MM-DD_[skill]_[slug].md:
---
date: YYYY-MM-DD
skill: [python-dev|golang-dev|project-spec|model-routing|general]
type: [pitfall|pattern|correction|discovery|project-convention]
confidence: [high|medium]
tags: [tag1, tag2]
---
## Contexto
O que estava sendo feito quando este aprendizado foi descoberto.
## Aprendizado
O insight específico — concreto, com código se relevante.
## Regra derivada
A regra generalizável em uma frase.
## Melhoria de skill sugerida
O que deveria ser adicionado/modificado na skill — ou "nenhuma".
Use /review-learnings to:
references/entry-examples.md — Exemplos de entradas bem escritasnpx claudepluginhub josgomes/claude-code-skills --plugin claude-code-skillsGuides creation, editing, and verification of skills for AI coding agents using test-driven development with subagent scenarios. Use when authoring or debugging skills.