njt2810/claude-code-framework/learn

Claude Code and agent skill by njt2810/claude-code-framework

Trust tier 2
  • community
LLM review pending
Source check pending

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/learn

SKILL.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:

  1. What was the task? (one sentence)
  2. What approach worked? (step-by-step, be specific)
  3. What pitfalls were encountered? (what went wrong or almost went wrong)
  4. What would you do differently next time? (improvements)
  5. 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:

  1. 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

  1. 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:

  1. The procedure has nothing project- or realm-specific in it (no project

paths, stack details, service names, client context, or realm-specific conventions)

  1. 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:

I'd like to {create / update} a learned skill:
Name: {descriptive-name}
Description: {what this skill does, when to use it}
Scope: {PROJECT (this project only) / REALM (all {realm-key} projects) / GLOBAL (all projects)} — {one-line reason}
Procedure:
1. {step from what worked}
2. {step}
3. {step}
Pitfalls:
- {what went wrong or could go wrong}
Verified on:
- {today's date}: {brief outcome description}
Save to {project-root}/.claude/skills/learned/{name}/SKILL.md?
(or <realm-root>/.realm-skills/{name}/SKILL.md if scope is REALM,
or ~/.claude/skills/learned/{name}/SKILL.md if scope is GLOBAL)

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:

yaml
---
name: {descriptive-name}
description: {What this skill does and when to use it. Be specific about trigger conditions.}
---

Then the skill body with: When to Use, Procedure, Pitfalls, Verified On sections.

Step 6 — Log the Learning

Append to wiki/learnings.md:

- {Date} | {Task} | {Skill created/updated} | {Key insight in one sentence}

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:

Updating: {skill name}
ADDING to procedure:
+ {new step or modification}
ADDING to pitfalls:
+ {new pitfall discovered}
ADDING to verified:
+ {today's date}: {outcome}
Approve this update? (yes/no)

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

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
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/njt2810/claude-code-framework/learn/badge)](https://verified-skill.com/skills/njt2810/claude-code-framework/learn)

Something wrong with this skill or its page? Tell us.