njt2810/claude-code-framework/learn
Claude Code and agent skill by njt2810/claude-code-framework
- community
Checking that the SKILL.md file is still in the repository.
TRIGGER when: the user says /learn, wants to capture a reusable pattern, or the session monitor nudges about learning. Also trigger when the user says "save this pattern", "remember how we did this", or "we should capture this". DO NOT TRIGGER when: the user wants documentation (/document-all), project setup (/init-project), or session wrap-up (/wrap-up — which has its own skill refinement step).
Install
npx vskill@latest install njt2810/claude-code-framework/learnSKILL.md
The same SKILL.md was published earlier as njt2810/claude-code-framework/learn.
Learning Capture
When to Use
When a reusable pattern emerges from the current session — a debugging technique, a workflow that worked well, a configuration trick. Also triggered by the session monitor nudge after ~20 turns.
Procedure
Extract what worked and preserve it for future sessions.
Step 1 — Analyze the Session
Review what just happened and answer:
- What was the task? (one sentence)
- What approach worked? (step-by-step, be specific)
- What pitfalls were encountered? (what went wrong or almost went wrong)
- What would you do differently next time? (improvements)
- Is this task likely to recur? (yes/no and why)
Step 2 — Decide the Scope (project vs realm vs global)
Default scope is PROJECT-LOCAL: <project-root>/.claude/skills/learned/ — the .claude folder INSIDE the current project, NEVER ~/.claude/skills/.
A skill goes REALM (<realm-root>/.realm-skills/, v2) only if BOTH are true:
- The procedure is specific to how this realm's projects work (a shared
convention, service, or pattern across the realm) but NOT specific to this one project alone
- The current project is resolved under a realm (check `~/.claude/
realms.json, same resolution /adopt` uses) — there's no realm tier to promote into otherwise
A skill goes GLOBAL (~/.claude/skills/learned/) only if BOTH are true:
- The procedure has nothing project- or realm-specific in it (no project
paths, stack details, service names, client context, or realm-specific conventions)
- The user explicitly confirms it is useful across all their projects,
regardless of realm
When in doubt, stay at the narrowest tier. A project skill leaking to realm or global clutters every other project/realm; a global-worthy skill stuck narrower costs nothing. This is the same reasoning the framework's own B1 backlog cleanup applied when relocating skills that had drifted global by default with no realm concept to place them in at the time.
Step 3 — Check for Existing Skill
Search the PROJECT's .claude/skills/learned/ first, then (if a realm resolved) <realm-root>/.realm-skills/, then ~/.claude/skills/learned/:
- If a related skill exists → propose UPDATING it with new learnings (in its current location)
- If nothing similar exists → propose CREATING a new skill
Step 4 — Propose the Skill (wait for approval)
Present the proposed skill to the user:
Wait for approval. Do NOT create or modify files without explicit "yes." The user may override the proposed scope — their choice wins.
Step 5 — Write the Skill (after approval)
Create the SKILL.md at the approved scope's path:
Then the skill body with: When to Use, Procedure, Pitfalls, Verified On sections.
Step 6 — Log the Learning
Append to wiki/learnings.md:
Step 7 — Update Team Knowledge
After creating or updating a skill, check if TEAM.md should be updated:
- Does this skill relate to an existing agent's capabilities?
- Does this skill introduce a new capability?
All TEAM.md modifications follow the skill-evolution protocol — approval required.
Step 8 — Cross-Project Check
If a PROJECT-scoped skill later seems broadly useful within its realm: "This learning could be useful across other {realm-key} projects. Want me to promote it to the realm's skill folder (<realm-root>/.realm-skills/)?"
If a PROJECT- or REALM-scoped skill later seems useful everywhere, regardless of realm: "This learning could be useful across all your projects, not just {realm-key}. Want me to promote it to the global learned folder (~/.claude/skills/learned/)?"
Moving scope is always an explicit user decision — never silent, and never skips a tier without asking (a project skill can go straight to global if that's genuinely where it belongs, but say so rather than defaulting past realm silently).
For Skill Updates (existing skill)
When updating an existing skill, show the diff:
Pitfalls
- Saving a project-specific skill to the REALM or GLOBAL folder — this clutters
every other project (in the realm, or everywhere) over time. Default is always the project's own .claude/skills/learned/
- Creating a skill that's too specific to one project — check if it's broadly useful
- Not populating Pitfalls and Verification sections — every new skill needs all 4 sections
- Modifying TEAM.md without approval — always follow skill-evolution protocol
- Auto-generated skills should NOT have user_locked: true — the Curator may improve them
Verification
- New skill has all 4 required sections (When to Use, Procedure, Pitfalls, Verification)
- Skill was approved by the user before creation
- wiki/learnings.md was updated
- Learned skills do NOT have user_locked set (unlocked by default for curation)
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/learn/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/njt2810/claude-code-framework/learn)