continuous-learning-v2
Instinct-based learning system that observes sessions via hooks, creates atomic instincts with confidence scoring, and evolves them into skills/commands/agents.
npx skills add majiayu000/claude-skill-registry --skill continuous-learning-v2-ysyecust-everything-claude-co --agent claude-code
Same command for any agent — swap --agent for codex, cursor, copilot.
Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.
# 持續學習 v2 - 基於本能的架構 進階學習系統,透過原子「本能」(帶信心評分的小型學習行為)將你的 Claude Code 工作階段轉化為可重用知識。 ## v2 的新功能 | 功能 | v1 | v2 | |------|----|----| | 觀察 | Stop hook(工作階段結束) | PreToolUse/PostToolUse(100% 可靠) | | 分析 | 主要上下文 | 背景 agent(Haiku) | | 粒度 | 完整技能 | 原子「本能」 | | 信心 | 無 | 0.3-0.9 加權 | | 演化 | 直接到技能 | 本能 → 聚類 → 技能/指令/agent | | 分享 | 無 | 匯出/匯入本能 | ## 本能模型 本能是一個小型學習行為: ```yaml --- id: prefer-functional-style trigger: "when writing new functions" confidence: 0.7 domain: "code-style" source: "session-observation" --- # 偏好函式風格 ## 動作 適當時使用函式模式而非類別。 ## 證據 - 觀察到 5 次函式模式偏好 - 使用者在 2025-01-15 將基於類別的方法修正為函式 ``` **屬性:** - **原子性** — 一個觸發器,一個動作 - **信心加權** — 0.3 = 試探性,0.9 = 近乎確定 - **領域標記** — code-style、testing、git、debugging、workflow 等 - **證據支持** — 追蹤建立它的觀察 ## 運作方式 ``` 工作階段活動 │ │ Hooks 捕獲提示 + 工具使用(100% 可靠) ▼ ┌─────────────────────────────────────────┐ │ observations.jsonl │ │ (提示、工具呼叫、結果) │ └─────────────────────────────────────────┘ │ │ Observer agent 讀取(背景、Haiku) ▼ ┌─────────────────────────────────────────┐ │ 模式偵測 │ │ • 使用者修正 → 本能 │ │ • 錯誤解決 → 本能 │ │ • 重複工作流程 → 本能 │ └─────────────────────────────────────────┘ │ │ 建立/更新 ▼ ┌─────────────────────────────────────────┐ │ instincts/personal/ │ │ • prefer-functional.md (0.7
- v2 的新功能
- 本能模型
- 運作方式
- 快速開始
- 1. 啟用觀察 Hooks
- 2. 初始化目錄結構
- 3. 執行 Observer Agent(可選)
- 指令
- 設定
- 檔案結構
- 與 Skill Creator 整合
- 信心評分
- 為何 Hooks vs Skills 用於觀察?
- 向後相容性
mkdir -p ~/.claude/homunculus/{instincts/{personal,inherited},evolved/{agents,skills,commands}}
touch ~/.claude/homunculus/observations.jsonlWhat does the continuous-learning-v2 skill do?
Instinct-based learning system that observes sessions via hooks, creates atomic instincts with confidence scoring, and evolves them into skills/commands/agents.
How do I install it?
Run `npx skills add majiayu000/claude-skill-registry --skill continuous-learning-v2-ysyecust-everything-claude-co --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.
Where does this skill come from?
From majiayu000/claude-skill-registry, a repository with 534 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.
Is a popular skill a good skill?
Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.
