Skip to content
continuous-learning-v2 logo

Continuous Learning v2 - Instinct System

continuous-learning-v2

Instinct-based learning system with confidence scoring. Automatically learns patterns from sessions and evolves them into skills. Supports import/export for team sharing.

WenJunDuan/Rlues0installs188stars

SKILL.md

Full skill instructions

Continuous Learning v2 - Instinct System

Overview

Instincts are micro-patterns learned from coding sessions. Unlike full skills, instincts are:

  • Lightweight - Single pattern, minimal context
  • Confidence-scored - Track success rate
  • Evolvable - Cluster into skills when mature

Instinct Structure

{
  "id": "inst_abc123",
  "pattern": "When encountering CORS errors in Next.js API routes...",
  "solution": "Add headers object with Access-Control-Allow-* fields",
  "confidence": 0.85,
  "uses": 12,
  "successes": 10,
  "created": "2026-01-15T10:30:00Z",
  "lastUsed": "2026-01-28T14:20:00Z",
  "tags": ["nextjs", "api", "cors", "debugging"],
  "context": {
    "framework": "next.js",
    "version": "15.x",
    "category": "debugging"
  }
}

Commands

/​instinct-status

View learned instincts with confidence scores:

📊 Instinct Status

Total: 47 instincts | Avg Confidence: 0.78

High Confidence (>0.8):
  ✅ CORS handling in Next.js API [0.92] - 15 uses
  ✅ Prisma transaction patterns [0.88] - 8 uses
  ✅ React useEffect cleanup [0.85] - 23 uses

Medium Confidence (0.5-0.8):
  ⚡ Supabase RLS policies [0.72] - 5 uses
  ⚡ Tailwind responsive patterns [0.68] - 7 uses

Low Confidence (<0.5):
  ❓ Edge function cold starts [0.45] - 2 uses

/​instinct-export

Export instincts for sharing:

# Export all instincts
/​instinct-export

# Export by tag
/​instinct-export --tags=nextjs,react

# Export high confidence only
/​instinct-export --min-confidence=0.8

Output: .ai_state/​instincts/​export-2026-01-28.json

/​instinct-import <file>

Import instincts from team:

/​instinct-import shared-instincts.json

Imported instincts start with 0.5 confidence and adjust based on local use.

/​evolve

Cluster related instincts into a skill:

# Interactive evolution
/​evolve

# Target specific tags
/​evolve --tags=authentication

Learning Triggers

Instincts are captured when:

  1. Successful Debugging - Problem → Solution pattern
  2. Pattern Recognition - Repeated similar solutions
  3. User Confirmation - Explicit "remember this" signals
  4. Code Review Feedback - Accepted improvements

Confidence Scoring

confidence = successes / uses * decay_factor

where:
  decay_factor = 0.95^(days_since_last_use / 30)

Confidence increases with successful uses, decreases with failures or time.

Storage

.ai_state/​instincts/
├── instincts.json      # Main instinct database
├── index.md            # Human-readable index
├── exports/            # Export history
│   └── export-*.json
└── evolved/            # Evolved skills
    └── skill-*.md

Evolution Process

When instincts cluster around a topic:

1. Identify Related Instincts
   - Same tags (>3 instincts)
   - Similar patterns
   - High combined confidence

2. Generate Skill Draft
   - Merge patterns
   - Synthesize solutions
   - Create SKILL.md

3. User Review
   - Present draft
   - Cunzhi confirmation
   - Install or iterate

4. Deprecate Instincts
   - Mark as "evolved"
   - Link to new skill

Integration

With Experience Skill

Instincts → lightweight, auto-captured
Experience → heavyweight, manually curated

Workflow:
1. Instinct captured automatically
2. High-confidence instincts → candidate for experience
3. User confirms → promote to experience

With /​learn Command

/​learn               # Capture to instincts (default)
/​learn --experience  # Capture to experience (manual)
/​learn --dry-run     # Preview without saving

Quality Filters

Instincts must meet criteria:

  • Non-trivial - Not basic language features
  • Reusable - Applies to multiple contexts
  • Specific - Clear trigger and solution
  • Tested - At least one successful use

Team Sharing Best Practices

# Export team-relevant instincts
/​instinct-export --min-confidence=0.7 --tags=our-stack

# Import with namespace
/​instinct-import team-patterns.json --namespace=team

# Review imported before trusting
/​instinct-status --namespace=team

More skills from WenJunDuan

session-manager logo
WenJunDuan/Rlues

session-manager

会话状态管理,保证工作流跨会话持久化

188 0
View
Plugin Settings logo
WenJunDuan/Rlues

Plugin Settings

This skill should be used when the user asks about "plugin settings", "store plugin configuration", "user-configurable plugin", ".local.md files", "plugin state files", "read YAML frontmatter", "per-project plugin settings", or wants to make plugin behavior configurable. Documents the .claude/plu...

188 0
View
lifecycle logo
WenJunDuan/Rlues

lifecycle

指令生命周期管理,钩子函数,中断恢复,持续学习

188 0
View
xlsx logo
WenJunDuan/Rlues

xlsx

Use this skill any time a spreadsheet file is the primary input or output. This means any task where the user wants to: open, read, edit, or fix an existing .xlsx, .xlsm, .csv, or .tsv file (e.g., adding columns, computing formulas, formatting, charting, cleaning messy data); create a new spreads...

188 0
View
Command Development logo
WenJunDuan/Rlues

Command Development

This skill should be used when the user asks to "create a slash command", "add a command", "write a custom command", "define command arguments", "use command frontmatter", "organize commands", "create command with file references", "interactive command", "use AskUserQuestion in command", or needs...

188 0
View
error-learning logo
WenJunDuan/Rlues

error-learning

错误学习系统,从Bug和错误中学习并记忆

188 0
View
mcp-builder logo
WenJunDuan/Rlues

mcp-builder

Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when building MCP servers to integrate external APIs or services, whether in Python (FastMCP) or Node/TypeScript (MCP SDK).

188 0
View
skill-installer logo
WenJunDuan/Rlues

skill-installer

Install Codex skills into $CODEX_HOME/skills from a curated list or a GitHub repo path. Use when a user asks to list installable skills, install a curated skill, or install a skill from another repo (including private repos).

188 0
View
git-workflow logo
WenJunDuan/Rlues

git-workflow

Git工作流规范,分支策略和提交规范

188 0
View
gemini logo
WenJunDuan/Rlues

gemini

Gemini AI执行引擎,备选技能(未来扩展)

188 0
View
pptx logo
WenJunDuan/Rlues

pptx

Use this skill any time a .pptx file is involved in any way — as input, output, or both. This includes: creating slide decks, pitch decks, or presentations; reading, parsing, or extracting text from any .pptx file (even if the extracted content will be used elsewhere, like in an email or summary)...

188 0
View

Migrate prompts and code from Claude Sonnet 4.0, Sonnet 4.5, or Opus 4.1 to Opus 4.5. Use when the user wants to update their codebase, prompts, or API calls to use Opus 4.5. Handles model string updates and prompt adjustments for known Opus 4.5 behavioral differences. Does NOT migrate Haiku 4.5.

188 0
View

Popular AI tools

Kaiber logo
Video

Kaiber

Generate, edit, and beat-sync AI video with leading models in one workspace.

Paid
View
Vimcal logo
Productivity

Vimcal

The world's fastest calendar for remote work

Free
View

Transform Your Design with AI Designer by ImgCreator.ai

Freemium
View
Akool AI logo
Content & writing

Akool AI

Revolutionizing Video Production with AI-Powered Creativity

Paid
View

Extend an image past the frame and let AI fill the new aspect ratio.

Freemium
View
StarByFace logo
Security

StarByFace

Discover your celebrity doppelgänger with StarByFace!

Free
View
C

ChainClarity explains 700+ crypto whitepapers in plain English, with layered summaries, comparisons, research tools, alerts, and a $4.99 Pro plan.

Freemium
View
Opus Clip logo
Coding & apps

Opus Clip

Opus.ai: Revolutionize Your Web Experience

Free
View