Communitygithub.com

継続学習スキル - 非推奨

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

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

このスキルは、Claude Code セッションの終了時に自動的に評価を行い、再利用可能なパターンを抽出して学習スキルとして保存するためのレガシー v1 スキルです(現在は非推奨)。Stop フックを使用してセッション全体のトランスクリプトを分析し、エラー解決、ユーザー訂正、回避策、デバッグ手法、プロジェクト固有のパターンなどを検出して、`~/.claude/skills/learned/` に保存します。ただし、v2 では PreToolUse/PostToolUse フックによる 100% 信頼性の高い観測、アトミックな「インスティンクト」単位の学習、プロジェクトスコープ対応とグローバルへの昇格機能、信頼度スコアリングなど、より高度な機能が提供されているため、新規インストールでは v2 の使用が推奨されます。本スキルは後方互換性とアーカイブ参照のためにのみ維持されています。

対応✓Claude Code~Codex CLI~Cursor
npx skills add https://github.com/affaan-m/ECC/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 が推奨パスです。単純な Stop フック抽出フローを明示的に使用したい場合や、古い学習済みスキルワークフローとの互換性が必要な場合は、v1 を維持してください。

仕組み

このスキルは各セッションの終了時に 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 フックを使用する理由

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

関連情報

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

比較ノート(研究:2025年1月)

vs 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. ドメインタグ付け - コードスタイル、テスト、git、デバッグなど
  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/content-engine

Create platform-native content systems for X, LinkedIn, TikTok, YouTube, newsletters, and repurposed multi-platform campaigns. Use when the user wants social posts, threads, scripts, content calendars, or one source asset adapted cleanly across platforms.

affaan-m/ECC

Multi-platform content distribution across X, LinkedIn, Threads, and Bluesky. Adapts content per platform using content-engine patterns. Never posts identical content cross-platform. Use when the user wants to distribute content across social platforms.

affaan-m/fal-ai-media

Unified media generation via fal.ai MCP — image, video, and audio. Covers text-to-image (Nano Banana), text/image-to-video (Seedance, Kling, Veo 3), text-to-speech (CSM-1B), and video-to-audio (ThinkSound). Use when the user wants to generate images, videos, or audio with AI.

affaan-m/manim-video

日本語翻訳:このファイルは manim-video 用の日本語翻訳が必要です

affaan-m/remotion-video-creation

Remotion のベストプラクティス - React で動画を作成する。3D、アニメーション、音声、字幕、チャート、トランジションなどをカバーするドメイン固有の29のルール。

affaan-m/video-editing

AI-assisted video editing workflows for cutting, structuring, and augmenting real footage. Covers the full pipeline from raw capture through FFmpeg, Remotion, ElevenLabs, fal.ai, and final polish in Descript or CapCut. Use when the user wants to edit video, cut footage, create vlogs, or build video content.

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.

agent-self-evaluation

Use after completing any non-trivial task. The agent self-rates its output on 5 axes — accuracy, completeness, clarity, actionability, conciseness — with concrete evidence per criterion. Produces a structured 1-5 scorecard with specific improvement suggestions.

agent-sort

Build an evidence-backed ECC install plan for a specific repo by sorting skills, commands, rules, hooks, and extras into DAILY vs LIBRARY buckets using parallel repo-aware review passes. Use when ECC should be trimmed to what a project actually needs instead of loading the full bundle.

ai-first-engineering

Engineering operating model for teams where AI agents generate a large share of implementation output. Use when setting team process, review gates, or ownership rules for a codebase largely written by agents.

ai-regression-testing

Regression testing strategies for AI-assisted development. Sandbox-mode API testing without database dependencies, automated bug-check workflows, and patterns to catch AI blind spots where the same model writes and reviews code. Use when adding regression coverage to AI-assisted code, or when the same model both wrote and reviewed a change.

android-clean-architecture

Clean Architecture patterns for Android and Kotlin Multiplatform projects — module structure, dependency rules, UseCases, Repositories, and data layer patterns. Use when structuring modules, layers, or data flow in an Android or KMP project.

angular-developer

Generates Angular code and provides architectural guidance. Trigger when creating projects, components, or services, or for best practices on reactivity (signals, linkedSignal, resource), forms, dependency injection, routing, SSR, accessibility (ARIA), animations, styling (component styles, Tailwind CSS), testing, or CLI tooling.

関連スキル