Agent skill
learn
Extract learnings from current conversation and add to project's CLAUDE.md.
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/other/other/learn-yuvasee-samocode
SKILL.md
Learn
Extract learnings from the current conversation and add them to the project's CLAUDE.md.
Steps
-
Review current conversation for friction moments:
- Commands/approaches that failed before finding the right way
- Non-obvious solutions or workarounds discovered
- If nothing notable was learned: report "No new learnings to capture." and STOP.
-
Resolve project CLAUDE.md:
- If active session exists: read Working Dir from
_overview.md, use[Working Dir]/CLAUDE.md - Otherwise: use
git rev-parse --show-toplevelto find repo root, use[repo root]/CLAUDE.md - If CLAUDE.md doesn't exist: create it
- If active session exists: read Working Dir from
-
Append learnings:
- Find or create
## Learningssection in CLAUDE.md - Add one line per learning, format:
- When [situation], [do this / don't do that] - Generalize as much as possible. Never reference specific files, variables, or code locations. Extract only generic techniques, rules, and patterns that apply broadly across projects and sessions.
- Keep it terse — one line, no paragraphs
- Don't duplicate entries already present
- Find or create
-
Commit:
cd [repo root] && git add CLAUDE.md && git commit -m "docs: add learnings"
-
Report:
- List the learnings added
- Or: "No new learnings to capture."
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
Didn't find tool you were looking for?