AgentSkillsCN

continuous-learning

在编码会话中自动提取可复用的模式。会在会话结束时或调用 /learn 命令时自动触发。识别出值得保留的优秀模式、调试方案以及具有借鉴价值的架构决策,以便在后续会话中加以应用。

SKILL.md
--- frontmatter
name: continuous-learning
description: |
  Auto-extract reusable patterns from coding sessions. Activates on session end
  or when /learn command is invoked. Identifies successful patterns, debugging
  solutions, and architectural decisions worth preserving for future sessions.

Continuous Learning Skill

Extract and preserve valuable patterns from development sessions.

When to Use

  • Session ending with significant work completed
  • User invokes /learn command mid-session
  • After successful debugging of complex issues
  • When discovering new architectural patterns

Pattern Categories

TypeDescription
codeReusable code patterns
debuggingDebug approaches
architectureDesign decisions
workflowProcess improvements

Extraction Workflow

  1. Session Analysis - Evaluate for extractable patterns
  2. Pattern Identification - Filter reusable, non-trivial solutions
  3. User Confirmation - Present for approval
  4. Storage - Save to .ai_state/experience/learned/
  5. Index Update - Add to experience index

Quality Criteria

Patterns worth extracting must:

  • ✅ Be reusable across projects
  • ✅ Save significant time/effort
  • ✅ Document non-obvious solutions
  • ❌ NOT be trivial or well-documented
  • ❌ NOT be too project-specific