Communitygithub.com

継続学習スキル - 非推奨

【非推奨 - continuous-learning-v2 を使用】レガシー v1 停止フック スキル抽出ツール。v2 はインスティンクトベース、プロジェクトスコープ、フック信頼性の学習を含む厳密な上位互換です。v1 を呼び出さないでください。継続学習、セッション学習、パターン抽出が要求された場合は、代わりに continuous-learning-v2 にルーティングしてください。

継続学習スキル - 非推奨 とは?

このスキルは、非推奨となった Continuous Learning Skill v1 のアーカイブ版です。Claude Code セッションの終了時に Stop フックとして実行され、セッションから再利用可能なパターン(エラー解決、ユーザー修正、回避策など)を自動抽出し、~/.claude/skills/learned/ にスキルとして保存します。v2 はフックベースの100%信頼性観測、アトミックなインスティンクト、プロジェクトスコープの学習とグローバル昇格、信頼度スコアリングなどの強化を備えており、v1 の厳密な上位互換です。新規インストールでは continuous-learning-v2 を推奨し、v1 は後方互換性と単純な Stop フック抽出フローが必要な場合にのみ保持します。

対応✓Claude Code~Codex CLI~Cursor
npx skills add https://github.com/affaan-m/everything-claude-code/tree/main/skills/continuous-learning

お気に入りのAIに質問する

このエージェントスキルを事前に読み込んだ状態で新しいチャットを開きます。

ドキュメント

Continuous Learning Skill - 非推奨

2026-04-28 非推奨。 代わりに continuous-learning-v2 を使用してください。v2 は厳密な上位互換です。Stop フック観測は PreToolUse/PostToolUse 観測に、完全なスキルは信頼度スコア付きのアトミックなインスティンクトに、グローバル専用ストレージはプロジェクトスコープとグローバル昇格に変わります。

このファイルはアーカイブ参照と既存インストールとの後方互換性のために保持されています。


オリジナル v1 ドキュメント(アーカイブ)

Claude Code セッション終了時に自動評価を行い、再利用可能なパターンを抽出して学習スキルとして保存します。

アクティブ化のタイミング

  • Claude Code セッションからの自動パターン抽出を設定する場合
  • セッション評価用の Stop フックを構成する場合
  • ~/.claude/skills/learned/ に保存された学習スキルを確認または管理する場合
  • 抽出しきい値やパターンカテゴリを調整する場合
  • v1(これ)と v2(インスティンクトベース)のアプローチを比較する場合

ステータス

この v1 スキルは引き続きサポートされていますが、新規インストールでは continuous-learning-v2 が推奨パスです。v1 は、単純な Stop フック抽出フローを明示的に使用したい場合や、古い学習スキルワークフローとの互換性が必要な場合に保持してください。

仕組み

このスキルは各セッションの終了時に Stop フック として実行されます:

  1. セッション評価: セッションに十分なメッセージ数(デフォルト: 10 以上)があるかを確認
  2. パターン検出: セッションから抽出可能なパターンを識別
  3. スキル抽出: 有用なパターンを ~/.claude/skills/learned/ に保存

設定

config.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"
  ]
}

パターンタイプ

パターン説明
error_resolution特定のエラーがどのように解決されたか
user_correctionsユーザー修正からのパターン
workaroundsフレームワーク/ライブラリの癖に対する解決策
debugging_techniques効果的なデバッグアプローチ
project_specificプロジェクト固有の規約

フック設定

~/.claude/settings.json に追加:

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

Stop フックを使用する理由

  • 軽量: セッション終了時に1回だけ実行
  • 非ブロッキング: 各メッセージにレイテンシを追加しない
  • 完全なコンテキスト: セッション全体のトランスクリプトにアクセス可能

関連情報

  • The Longform Guide - 継続学習に関するセクション
  • /learn コマンド - セッション途中での手動パターン抽出

比較メモ(調査: 2025年1月)

Homunculus との比較

Homunculus v2 はより洗練されたアプローチを採用:

機能当アプローチHomunculus v2
観測Stop フック(セッション終了時)PreToolUse/PostToolUse フック(100%信頼性)
分析メインコンテキストバックグラウンドエージェント (Haiku)
粒度完全なスキルアトミックな「インスティンクト」
信頼度なし0.3~0.9 の重み付け
進化直接スキルへインスティンクト → クラスター → スキル/コマンド/エージェント
共有なしインスティンクトのエクスポート/インポート

Homunculus からの主要な洞察:

「v1 はスキルに観測を依存していました。スキルは確率的で、約50~80%の確率でしか発火しません。v2 はフックを使用して観測(100%信頼性)を行い、学習行動のアトミック単位としてインスティンクトを使用します。」

潜在的な v2 の強化点

  1. インスティンクトベースの学習 - 信頼度スコア付きの小さなアトミックな振る舞い
  2. バックグラウンドオブザーバー - Haiku エージェントによる並行分析
  3. 信頼度減衰 - 矛盾した場合にインスティンクトの信頼度が低下
  4. ドメインタグ付け - code-style、testing、git、debugging など
  5. 進化パス - 関連インスティンクトをクラスター化してスキル/コマンドに

仕様の詳細は docs/continuous-learning-v2-spec.md を参照。

Individual skills in this repo

This repo contains 20 individual skills — each has its own dedicated page.

accessibility

Design, implement, and audit inclusive digital products using WCAG 2.2 Level AA. Use when building or auditing UI that must meet WCAG 2.2 Level AA, or when reviewing a change for keyboard, contrast, or screen-reader support.

affaan-m/claude-api

Anthropic Claude API patterns for Python and TypeScript. Covers Messages API, streaming, tool use, vision, extended thinking, batches, prompt caching, and Claude Agent SDK. Use when building applications with the Claude API or Anthropic SDKs.

affaan-m/everything-claude-code

End-to-end marketing campaign planning and execution. Covers audience research, positioning, campaign angle definition, landing page copy, email sequences, social posts, ad copy, short-form video scripts, and content calendars. Use as the orchestration layer for multi-channel product launches. Use when planning or executing a multi-channel product launch, or producing landing page, email, social, or ad copy.

affaan-m/everything-claude-code

Development conventions and patterns for everything-claude-code. JavaScript project with conventional commits.

affaan-m/everything-claude-code-conventions

Development conventions and patterns for everything-claude-code. JavaScript project with conventional commits.

affaan-m/frontend-design

Create distinctive, production-grade frontend interfaces with high design quality. Use when the user asks to build web components, pages, or applications and the visual direction matters as much as the code quality.

affaan-m/gget

gget CLI and Python workflow for quick genomic database queries, sequence lookup, BLAST-style searches, enrichment checks, and reproducible bioinformatics evidence logs.

affaan-m/literature-review

Systematic literature-review workflow for academic, biomedical, technical, and scientific topics, including search planning, source screening, synthesis, citation checks, and evidence logging.

affaan-m/motion-ui

Production-ready UI motion system for React/Next.js. Use when implementing animations, transitions, or motion patterns.

affaan-m/project-guidelines-example

Example project-specific skill template based on a real production application.

affaan-m/pubmed-database

Direct PubMed and NCBI E-utilities search workflows for biomedical literature, MeSH queries, PMID lookup, citation retrieval, and API-backed literature monitoring.

affaan-m/scholar-evaluation

Structured scholarly-work evaluation for papers, proposals, literature reviews, methods sections, evidence quality, citation support, and research-writing feedback.

affaan-m/uspto-database

USPTO patent and trademark data workflow for official record lookup, PatentSearch queries, TSDR checks, assignment data, and reproducible IP research logs.

agent-architecture-audit

Full-stack diagnostic for agent and LLM applications. Audits the 12-layer agent stack for wrapper regression, memory pollution, tool discipline failures, hidden repair loops, and rendering corruption. Produces severity-ranked findings with code-first fixes. Essential for developers building agent applications, autonomous loops, or any LLM-powered feature. Use when an agent or LLM feature misbehaves and the failing layer is unknown, or before shipping an agent stack.

agent-eval

Head-to-head comparison of coding agents (Claude Code, Aider, Codex, etc.) on custom tasks with pass rate, cost, time, and consistency metrics. Use when choosing between coding agents, or when a change to an agent setup needs measured pass rate, cost, and time rather than an impression.

agent-harness-construction

Design and optimize AI agent action spaces, tool definitions, and observation formatting for higher completion rates. Use when defining or revising an agent

agentic-engineering

Operate as an agentic engineer using eval-first execution, decomposition, and cost-aware model routing. Use when planning or executing engineering work that agents will carry out end to end.

agentic-os

Build persistent multi-agent operating systems on Claude Code. Covers kernel architecture, specialist agents, slash commands, file-based memory, scheduled automation, and state management without external databases. Use when building a persistent multi-agent system on Claude Code with its own memory, commands, and scheduling.

agent-introspection-debugging

Structured self-debugging workflow for AI agent failures using capture, diagnosis, contained recovery, and introspection reports. Use when an agent run fails and you need a reproducible diagnosis instead of a retry.

agent-payment-x402

Add x402 payment execution to AI agents with per-task budgets, spending controls, and non-custodial wallets. Supports Base through agentwallet-sdk and X Layer through OKX Payments / OKX Agent Payments Protocol. Use when an agent must pay for something itself and needs per-task budgets, spending controls, and a non-custodial wallet.

関連スキル