/agent-skills:self-learningfrom agent-skills
After an implementation completes, capture reusable lessons into AGENTS.md, README.md, and non-caveman skills — conservative surgical edits only. Excludes all caveman* skills. Use when implementation finishes, Implementer marks work done, user says "capture learnings", "/self-learning", or when the post-implementation stop hook fires.
Ships in agent-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
After impl done: distill clear, reusable guidance into project instruction files + non-caveman skills. No spam. No invent. Preserve technical accuracy.
| Trigger | When |
|---|---|
Hook stop follow-up | Marker set after edits under agent-output/implementation/ then agent completes |
| Manual | User: /self-learning, "capture learnings", "update skills from impl" |
| Skill handoff | implementer / parent after successful impl before QA/review |
Best available auto signal: Cursor cannot perfectly detect "Implementer done". Repo uses: afterFileEdit on agent-output/implementation/** → write marker → stop hook (status completed, loop_count 0) → follow-up message that runs this skill. Manual fallback always valid.
Read when present (prefer current work chain ID):
agent-output/implementation/*.md (active, not only closed/)agent-output/planning/AGENTS.md, root README.md, relevant skills/*/SKILL.md| Target | Update when |
|---|---|
AGENTS.md | Repo-wide durable convention agents must follow next time |
Root README.md | Install/catalog/user-facing workflow change |
skills/<name>/SKILL.md + references | Domain skill gap or wrong guidance exposed by impl |
docs/ (optional) | Methodology note that does not belong in a skill yet |
Never auto-modify: any skills/caveman* path (caveman, caveman-commit, caveman-compress, caveman-review, …).
Self-learning: updated X, Y.Self-learning:
- [ ] Impl complete signal confirmed
- [ ] Lessons listed; one-offs discarded
- [ ] No caveman* paths in edit set
- [ ] AGENTS.md / README / skills updated only where applicable
- [ ] Edits surgical; technical claims verified against what was built
- [ ] User summary of changes (or explicit no-op)
Project hooks (see .cursor/hooks.json + docs/hooks-methodology.md):
.cursor/hooks/mark-implementation-edit.py — afterFileEdit when path matches agent-output/implementation.cursor/hooks/self-learning-stop.py — stop reads marker; if set and status=completed and loop_count=0, emit followup_message to run this skill + clear markerloop_limit: 1 on stop hook — avoid follow-up stormsManual fallback:
/self-learning
or: "Run self-learning skill on the work just completed."
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub gopalparashar421/agent-skills --plugin agent-skills25 skills in this plugin
/analysis-methodologySystematic approach to converting unknowns to knowns through structured investigation with confidence levels and gap tracking. Use when analyzing bugs, investigating systems, or reducing uncertainty in technical findings./architectMaintains architectural coherence, ADRs, and technical debt visibility. Reviews plans and systems for fit and long-term health. Use for architecture review, ADRs, health audits, or when planner/roadmap needs design authority.
/architecture-patternsCommon software architecture patterns, ADR templates, and anti-pattern detection. Supports architectural review, design decisions, and system documentation.Other plugins' skills for the same job