AgentStack
SKILL verified MIT Self-run

Continual Learning

skill-junfengran-dev-env-continual-learning · by JunfengRan

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.

No reviews yet
0 installs
1 views
0.0% view→install

Install

$ agentstack add skill-junfengran-dev-env-continual-learning

✓ scanned · ✓ verified — works with Claude Code, Cursor, and more.

Security review

✓ Passed

No issues found. Passed automated security review. · v0.1.0 How review works →

  • Prompt-injection patterns
  • Secret / credential exfiltration
  • Dangerous shell & filesystem operations
  • Untrusted network calls
  • Known-malicious package signatures

What it can access

  • Network access No
  • Filesystem access No
  • Shell / process execution No
  • Environment & secrets No
  • Dynamic code execution No

From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.

View the full security report →

Verified badge

Passed review? Show it. Paste this badge into your README — it links to the public security report.

AgentStack Verified badge Links to your public security report.
[![AgentStack Verified](https://agentstack.voostack.com/badges/verified.svg)](https://agentstack.voostack.com/security/report/skill-junfengran-dev-env-continual-learning)

Reliability & compatibility

Security review passed
0 installs to date
no reviews yet
today

Declared compatibility

Claude CodeClaude Desktop

Compatibility is declared by the source manifest. End-to-end runtime verification is coming — see below.

Preview Execution monitoring

We're building live execution health for every listing: tool-call success rate, median latency, uptime, and last-checked timestamps — measured, not self-reported. It isn't live yet, so we don't show numbers we can't stand behind.

How agent discovery & health will work →
Are you the author of Continual Learning? Claim this listing to set pricing, connect Stripe payouts, and keep 70% of every sale.
Sign up to claim

About

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//agent-transcripts/
  • Rules directory: .cursor/rules/
  • Incremental index: .cursor/hooks/state/continual-learning-index.json

Workflow

  1. Scan existing rules — Read every .mdc file under .cursor/rules/ (including subdirectories). For each file, note its description frontmatter and the topics it covers.
  2. Load incremental index if present.
  3. Discover transcripts and process only:
  • new files not in index, or
  • files whose mtime is newer than indexed mtime.
  1. Extract high-signal items — Look for recurring user corrections/preferences and durable workspace facts. Apply the inclusion bar below.
  2. Route each item to the best-matching rule file:
  • Match by topic against existing .mdc files' descriptions and content.
  • If no file is a good fit, create a new .mdc in the appropriate subdirectory (see Rule File Layout).
  1. 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.
  1. Write back the incremental index.

Rule File Layout

Organize rules by package, matching the monorepo structure:

.cursor/rules/
├── dev-workflow.mdc              # alwaysApply: true — global habits
├── web/
│   ├── ui-development.mdc        # globs: packages/web/**/*.{vue,ts,scss}
│   ├── state-management.mdc      # globs: packages/web/src/stores/**
│   └── ...
├── server/
│   └── api-patterns.mdc          # globs: packages/server/**/*.ts
├── desktop/
│   └── electron-ipc-patterns.mdc # globs: packages/desktop/**/*.ts
└── sdk/
    └── opencode-sdk-reference.mdc # globs: packages/sdk/**, packages/web/src/context/**

Creating a new rule file

When an item doesn't fit any existing file, create one following this template:

---
description: 
globs: 
alwaysApply: false
---

# 

Cursor loads rules in four ways (in order of reliability):

  1. Always Apply (alwaysApply: true) — every session, guaranteed
  2. Glob auto-attach (globs set) — when matching files are in context
  3. Agent-decided (description set, no globs) — Agent judges relevance from description
  4. 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: true only for cross-cutting workflow rules.
  • Set globs to 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

{
  "version": 1,
  "transcripts": {
    "/abs/path/to/file.jsonl": {
      "mtimeMs": 1730000000000,
      "lastProcessedAt": "2026-02-18T12:00:00.000Z"
    }
  }
}

Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

Install and usage instructions live in the source repository linked above.

Reviews

No reviews yet — be the first.

Versions

  • v0.1.0 Imported from the upstream source.