Agent skill

Continuous Learning

by xu-xiang in xu-xiang/everything-claude-code-zh

自动从 Claude Code 会话(Session)中提取可重用的模式(Pattern),并将其作为已学习的技能(Skill)保存以备将来使用。

MITAuto-check passed

Install Continuous Learning

skills CLI
$ npx skills add xu-xiang/everything-claude-code-zh --skill continuous-learning -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install xu-xiang/everything-claude-code-zh continuous-learning --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/xu-xiang/everything-claude-code-zh.git skills-src && mkdir -p .claude/skills && cp -r skills-src/docs/ja-JP/skills/continuous-learning .claude/skills/continuous-learning && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
continuous-learning
GitHub stars
2k
Token cost
~587 tokens
SKILL.md length
128 words
Files
1
Skills in repo
78
Repo updated
First seen
Licence
MIT

At a glance

自动从 Claude Code 会话(Session)中提取可重用的模式(Pattern),并将其作为已学习的技能(Skill)保存以备将来使用。

  • Works in 3 steps: 会话评估:检查会话是否有足够的消息(默认:10 条以上) → 模式检测:识别可从会话中提取的模式 → 技能提取:将有用的模式保存到 ~/.claude/skills/learned/
  • SKILL.md covers 工作原理(How it Works), 配置(Configuration), 模式类型(Pattern Types) and 钩子配置(Hook Configuration), plus 3 more sections
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

Continuous Learning is an agent skill from xu-xiang/everything-claude-code-zh. 自动从 Claude Code 会话(Session)中提取可重用的模式(Pattern),并将其作为已学习的技能(Skill)保存以备将来使用。

Its SKILL.md is about 590 tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

The repository describes itself as: everything-claude-code 中文翻译项目:完整的 Claude Code 配置集合(agents, skills, hooks, commands, rules, MCPs)。源自 Anthropic 黑客松获胜者的实战配置,助力中文工程师高效理解与使用 Claude Code。 The licence is MIT.

Example prompts

  • “/continuous-learning”

Workflow steps

3 steps, taken from the first numbered list in SKILL.md.

  1. 会话评估:检查会话是否有足够的消息(默认:10 条以上)
  2. 模式检测:识别可从会话中提取的模式
  3. 技能提取:将有用的模式保存到 ~/.claude/skills/learned/

What it can do on your machine

Read from SKILL.md and the folder at commit dfbf946. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md (its code samples are json).

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    Links to these hosts (documentation or services it may open):

    • x.com

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Continuous Learning loads about 587 tokens when it runs. Until then it costs about 23 tokens; SKILL.md has 128 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~23
When it runs · the whole SKILL.md, loaded when a task matches
~587

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from xu-xiang/everything-claude-code-zh at commit dfbf946, republished under its MIT licence (© xu-xiang). 128 words, ~587 tokens.

Download SKILL.mdSave it as .claude/skills/continuous-learning/SKILL.md (or your agent's skills folder).
name
continuous-learning
description
自动从 Claude Code 会话(Session)中提取可重用的模式(Pattern),并将其作为已学习的技能(Skill)保存以备将来使用。

持续学习技能(Continuous Learning Skill)

Claude Code 会话结束时自动进行评估,提取可作为已学习技能保存的可重用模式(Pattern)。

工作原理(How it Works)

此技能在每个会话结束时作为 Stop 钩子(Hook) 执行:

  1. 会话评估:检查会话是否有足够的消息(默认:10 条以上)
  2. 模式检测:识别可从会话中提取的模式
  3. 技能提取:将有用的模式保存到 ~/.claude/skills/learned/

配置(Configuration)

通过编辑 config.json 进行自定义:

json
{
  "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)

模式描述
error_resolution特定错误的解决方法
user_corrections来自用户修正的模式
workarounds针对框架/库特性的解决方案
debugging_techniques有效的调试方法(Debugging Approaches)
project_specific项目特定的约定

钩子配置(Hook Configuration)

添加到 ~/.claude/settings.json:

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

为什么使用 Stop 钩子

  • 轻量:仅在会话(Session)结束时执行一次
  • 非阻塞:不会给每条消息增加延迟(Latency)
  • 完整上下文:可以访问整个会话的转录内容

相关项目

  • The Longform Guide - 关于持续学习的部分
  • /learn 命令 - 会话中的手动模式提取

对比笔记(调查:2025年1月)

vs Homunculus

Homunculus v2 采用了更精细的方法:

功能当前方法Homunculus v2
观察Stop 钩子 (会话结束时)PreToolUse/PostToolUse 钩子 (100% 可靠性)
分析主上下文 (Main Context)后台智能体 (Background Agent, Haiku)
粒度完整的技能原子级的“本能 (Instinct)”
置信度无0.3-0.9 的权重分配
演进直接转换为技能本能 → 集群 → 技能/命令/智能体
共享无本能的导出/导入

homunculus 的重要洞察:

"v1 依赖技能进行观察。技能是概率性的,触发率约为 50-80%。v2 使用钩子(100% 可靠性)进行观察,并使用本能作为学习行为的原子单位。"

v2 的潜在改进
  1. 基于本能的学习 - 具有置信度评分的更小、原子级的行为
  2. 后台观察者 - 并行分析的 Haiku 智能体
  3. 置信度衰减 - 在发生冲突时降低本能的置信度
  4. 领域标签 - 代码风格、测试、git、调试等
  5. 演进路径 - 将相关的本能聚类为技能/命令/智能体

详细信息:请参阅 /Users/affoon/Documents/tasks/12-continuous-learning-v2.md。

© xu-xiang, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in docs/ja-JP/skills/continuous-learning of xu-xiang/everything-claude-code-zh.

Open the folder on GitHubat commit dfbf946

Compare with similar skills

Continuous Learning next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Continuous Learning compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Continuous Learning this skillxu-xiang/everything-claude-code-zh2k—~587Automated safety check: PassMIT
Golang Patternsaffaan-m/ECC275k—~1.1kAutomated safety check: PassMIT
Kotlin Exposed Patternsaffaan-m/ECC275k4 repos~5.5kAutomated safety check: PassMIT
Dotnet Patternsaffaan-m/ECC275k1 repos~2.3kAutomated safety check: PassMIT
Fastapi Patternsaffaan-m/ECC275k—~2.3kAutomated safety check: PassMIT
Python Patternsaffaan-m/ECC275k—~2.3kAutomated safety check: PassMIT

Similar skills

  • Golang Patterns

    affaan-m/ECC

    Go-specific design patterns and best practices including functional options, small interfaces, dependency injection, concurrency patterns, error handling, and package organization.

    275k GitHub stars~1.1k tokensUpdated 3 days ago
    DevelopmentAuto-check passed
  • JetBrains Exposed ORM patterns including DSL queries, DAO pattern, transactions, HikariCP connection pooling, Flyway migrations, and repository pattern.

    275k GitHub starsUsed in 4 repos~5.5k tokens
    DatabasesAuto-check passed
  • Dotnet Patterns

    affaan-m/ECC

    Idiomatic C and .NET patterns, conventions, dependency injection, async/await, and best practices for building robust, maintainable .NET applications.

    275k GitHub starsUsed in 1 repo~2.3k tokens
    DevelopmentAuto-check passed
  • Fastapi Patterns

    affaan-m/ECC

    FastAPI patterns for async APIs, dependency injection, Pydantic request and response models, OpenAPI docs, tests, security, and production readiness.

    275k GitHub stars~2.3k tokensUpdated 3 days ago
    Backend & APIsAuto-check passed
  • Python Patterns

    affaan-m/ECC

    Python-specific design patterns and best practices including protocols, dataclasses, context managers, decorators, async/await, type hints, and package organization.

    275k GitHub stars~2.3k tokensUpdated 3 days ago
    DevelopmentAuto-check passed
  • Patterns

    sickn33/agentic-awesome-skills

    Reference document for monopoly patterns. An agent skill from sickn33/agentic-awesome-skills.

    47k GitHub starsUsed in 1 repo~2.6k tokens
    Backend & APIsAuto-check passed

More from xu-xiang/everything-claude-code-zh

All 78 skills in this repo
  • Configure Ecc

    xu-xiang/everything-claude-code-zh

    Everything Claude Code 的交互式安装程序 — 引导用户选择并安装技能和规则到用户级或项目级目录,验证路径,并可选择优化已安装文件。

    2k GitHub starsUsed in 1 repo~2.1k tokens
    Auto-check passed
  • Continuous Learning V2

    xu-xiang/everything-claude-code-zh

    基于本能(Instinct)的学习系统,通过钩子(hooks)观察会话,创建带有置信度评分的原子本能,并将其演化为技能(Skills)、命令(Commands)或智能体(Agents)。v2.1 版本增加了项目作用域(project-scoped)的本能,以防止跨项目污染。

    2k GitHub stars~2.1k tokensUpdated 7 mo ago
    Auto-check passed
  • API Design

    xu-xiang/everything-claude-code-zh

    生产级 API 的 REST API 设计模式,包括资源命名、状态码、分页、过滤、错误响应、版本控制和速率限制. An agent skill from xu-xiang/everything-claude-code-zh.

    2k GitHub stars~2.7k tokensUpdated 7 mo ago
    Auto-check passed
  • Backend Patterns

    xu-xiang/everything-claude-code-zh

    后端架构模式、API 设计、数据库优化以及适用于 Node.js、Express 和 Next.js API 路由的服务端最佳实践。

    2k GitHub stars~3.2k tokensUpdated 7 mo ago
    Auto-check passed
  • Backend Patterns

    xu-xiang/everything-claude-code-zh

    后端架构模式、API 设计、数据库优化以及 Node.js、Express 和 Next.js API 路由的服务端最佳实践。

    2k GitHub stars~3.1k tokensUpdated 7 mo ago
    Auto-check passed
  • Backend Patterns

    xu-xiang/everything-claude-code-zh

    后端架构模式、API 设计、数据库优化以及针对 Node.js、Express 和 Next.js API 路由的服务端最佳实践。

    2k GitHub stars~3.2k tokensUpdated 7 mo ago
    Auto-check passed

Questions about Continuous Learning

What does Continuous Learning do?

自动从 Claude Code 会话(Session)中提取可重用的模式(Pattern),并将其作为已学习的技能(Skill)保存以备将来使用。. Continuous Learning is an agent skill from xu-xiang/everything-claude-code-zh.

How do I install Continuous Learning in Claude Code?

Run `npx skills add xu-xiang/everything-claude-code-zh --skill continuous-learning -a claude-code`. Or copy the skill folder (docs/ja-JP/skills/continuous-learning in xu-xiang/everything-claude-code-zh) into .claude/skills/continuous-learning in your project. Claude Code loads it when a task matches its description.

How do I install Continuous Learning in Codex?

Run `npx skills add xu-xiang/everything-claude-code-zh --skill continuous-learning -a codex`. Or copy the skill folder (docs/ja-JP/skills/continuous-learning in xu-xiang/everything-claude-code-zh) into .agents/skills/continuous-learning in your project. Codex loads it when a task matches its description.

Can I use Continuous Learning in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add xu-xiang/everything-claude-code-zh --skill continuous-learning -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/continuous-learning, .gemini/skills/continuous-learning, .github/skills/continuous-learning and .opencode/skills/continuous-learning in your project.

What does Continuous Learning need to run?

SKILL.md names no scripts, command-line tools or credentials: Continuous Learning is instructions for the agent only.

Does Continuous Learning access the network?

SKILL.md names 1 domain. As links in the text: x.com. This is read from the text; nothing was executed.

Is Continuous Learning safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Continuous Learning use?

Continuous Learning is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Continuous Learning use?

About 587 tokens (SKILL.md is roughly 2.3k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Continuous Learning?

Skills that share tags, products or a category with Continuous Learning: Golang Patterns (affaan-m/ECC, 275k stars), Kotlin Exposed Patterns (affaan-m/ECC, 275k stars), Dotnet Patterns (affaan-m/ECC, 275k stars) and Fastapi Patterns (affaan-m/ECC, 275k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Continuous Learning?

xu-xiang (a GitHub user) maintains it in xu-xiang/everything-claude-code-zh, which has 1,973 GitHub stars. The repository holds 78 skills in this directory. The repository was last updated on March 5, 2026.

Source: xu-xiang/everything-claude-code-zh on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.