junfengran/dev-env/continual-learning
Claude Code and agent skill by junfengran/dev-env
- community
Checking that the SKILL.md file is still in the repository.
Incrementally extract recurring user corrections/preferences and durable workspace facts from transcript changes, then route them into categorized .cursor/rules/*.mdc files. Use when the user asks to mine previous chats, maintain learned rules, or build a self-learning preference loop.
Install
npx vskill@latest install junfengran/dev-env/continual-learningSKILL.md
The same SKILL.md was published earlier as junfengran/dev-env/continual-learning.
Continual Learning
Extract recurring user corrections/preferences and durable workspace facts from conversation transcripts, and route them into the appropriate .cursor/rules/*.mdc file.
Inputs
- Transcript root:
~/.cursor/projects/<workspace-slug>/agent-transcripts/ - Rules directory:
.cursor/rules/ - Incremental index:
.cursor/hooks/state/continual-learning-index.json
Workflow
- Scan existing rules — Read every
.mdcfile under.cursor/rules/(including subdirectories). For each file, note itsdescriptionfrontmatter and the topics it covers. - Load incremental index if present.
- Discover transcripts and process only:
- new files not in index, or
- files whose mtime is newer than indexed mtime.
- Extract high-signal items — Look for recurring user corrections/preferences and durable workspace facts. Apply the inclusion bar below.
- Route each item to the best-matching rule file:
- Match by topic against existing
.mdcfiles' descriptions and content. - If no file is a good fit, create a new
.mdcin the appropriate subdirectory (see Rule File Layout).
- Merge into target file:
- Update matching bullets in place (don't duplicate).
- Append net-new bullets under the most relevant section heading.
- Deduplicate semantically similar bullets.
- Write back the incremental index.
Rule File Layout
Organize rules by package, matching the monorepo structure:
Creating a new rule file
When an item doesn't fit any existing file, create one following this template:
Cursor loads rules in four ways (in order of reliability):
- Always Apply (
alwaysApply: true) — every session, guaranteed - Glob auto-attach (
globsset) — when matching files are in context - Agent-decided (
descriptionset, no globs) — Agent judges relevance from description - Manual (
@rule-name) — only when user explicitly mentions
Best practice: always set both `description` AND `globs`. This gives you glob-based auto-attach as the primary trigger, with description as a fallback so Agent can still pick up the rule when discussing related topics without opening specific files.
- Set
alwaysApply: trueonly for cross-cutting workflow rules. - Set
globsto the narrowest pattern that covers the relevant source files. - Place the file in the subdirectory matching the monorepo package (
web/,server/,desktop/,sdk/). If it spans multiple packages, put it at the rules root.
Inclusion Bar
Keep an item only if all are true:
- Non-obvious: not in official docs or standard language/framework behavior
- Actionable: directly usable in future sessions
- Durable: stable across sessions, not tied to a specific branch or commit
- Repeated or explicit: appeared in multiple transcripts, or user explicitly stated it as a broad rule
- Non-sensitive: no secrets, tokens, credentials, or private personal data
What qualifies
- API quirks, tool limitations, framework traps discovered by trial and error
- Problems that took multiple attempts to solve
- Upstream code paths that differ from what the surface API suggests
- Design principles agreed upon after discussion and correction
- Gotchas likely to recur during future maintenance
What does NOT qualify
- Facts already obvious from official documentation
- Standard language/framework behavior
- Content already present in an existing rule file (avoid redundancy)
- One-off task instructions or transient details (branch names, commit hashes, temporary errors)
Exclusions
Never store:
- secrets, tokens, credentials, private personal data
- one-off task instructions
- transient details (branch names, commit hashes, temporary errors)
Incremental Index Format
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/continual-learning/SKILL.md
Popularity
- Repository stars
- 1
- 7-day trend score
- 3
Stars and forks are for the whole GitHub repository, not this skill alone. 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/junfengran/dev-env/continual-learning)