跳到正文
cccskills
免费在 GitHub 公开

continuous-learning

Automatically extract reusable patterns from Claude Code sessions and save them as learned skills for future use.

中文简介正在准备中。当前显示原文说明。

查看安装方法

包含的文件(3)

  • SKILL.md2.0 KB
  • config.json391 B
  • evaluate-session.sh2.0 KB

SKILL.md(原文)

安装前可以查看交给 AI 代理的指令内容。

Continuous Learning Skill

Automatically evaluates Claude Code sessions on end to extract reusable patterns that can be saved as learned skills.

How It Works

This skill runs as a Stop hook at the end of each session:

  1. Session Evaluation: Checks if session has enough messages (default: 10+)
  2. Pattern Detection: Identifies extractable patterns from the session
  3. Skill Extraction: Saves useful patterns to ~/.claude/skills/learned/

Configuration

Edit config.json to customize:

{
  "min_session_length": 10,
  "extraction_threshold": "medium",
  "auto_approve": false,
  "learned_skills_path": "~/.claude/skills/learned/",
  "patterns_to_detect": [
    "error_resolution",
    "user_corrections",
    "workarounds",
    "debugging_techniques",
    "project_specific"
  ],
  "ignore_patterns": [
    "simple_typos",
    "one_time_fixes",
    "external_api_issues"
  ]
}

Pattern Types

PatternDescription
error_resolutionHow specific errors were resolved
user_correctionsPatterns from user corrections
workaroundsSolutions to framework/library quirks
debugging_techniquesEffective debugging approaches
project_specificProject-specific conventions

Hook Setup

Add to your ~/.claude/settings.json:

{
  "hooks": {
    "Stop": [{
      "matcher": "*",
      "hooks": [{
        "type": "command",
        "command": "~/.claude/skills/continuous-learning/evaluate-session.sh"
      }]
    }]
  }
}

Why Stop Hook?

  • Lightweight: Runs once at session end
  • Non-blocking: Doesn't add latency to every message
  • Complete context: Has access to full session transcript

Related

  • The Longform Guide - Section on continuous learning
  • /learn command - Manual pattern extraction mid-session

评价

还没有评价。欢迎分享你的使用感受。

评论

无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。

还没有评论。来写第一条吧。

提交后会立即公开。请勿填写邮箱、电话等个人信息。URL 最多 2 个。

0 / 1000 字

此表单受 reCAPTCHA 保护,适用 Google 的隐私权政策和服务条款。

同一仓库的技能

Backend architecture patterns, API design, database optimization, and server-side best practices for Node.js, Express, and Next.js API routes.

中文简介正在准备中。当前显示原文说明。

WorldFlowAI/everything-claude-code49852026年1月23日 更新

ClickHouse database patterns, query optimization, analytics, and data engineering best practices for high-performance analytical workloads.

中文简介正在准备中。当前显示原文说明。

WorldFlowAI/everything-claude-code49852026年1月23日 更新

Universal coding standards, best practices, and patterns for TypeScript, JavaScript, React, and Node.js development.

中文简介正在准备中。当前显示原文说明。

WorldFlowAI/everything-claude-code49852026年1月23日 更新

Frontend development patterns for React, Next.js, state management, performance optimization, and UI best practices.

中文简介正在准备中。当前显示原文说明。

WorldFlowAI/everything-claude-code49852026年1月23日 更新

Use this skill when adding authentication, handling user input, working with secrets, creating API endpoints, or implementing payment/sensitive features. Provides comprehensive security checklist and patterns.

中文简介正在准备中。当前显示原文说明。

WorldFlowAI/everything-claude-code49852026年1月23日 更新

Suggests manual context compaction at logical intervals to preserve context through task phases rather than arbitrary auto-compaction.

中文简介正在准备中。当前显示原文说明。

WorldFlowAI/everything-claude-code49852026年1月23日 更新

查看 WorldFlowAI 的全部技能

报告此技能的问题