本文へ移動
cccskills
無料GitHub で公開

self-improving-agent

Patterns for AI agents that learn from their own execution, detect failure modes, and improve autonomously. Use when building agents that get better over time, managing auto- memory, or designing self-correcting feedback loops.

インストール方法を見る

含まれるファイル(16)

  • SKILL.md8.2 KB
  • references/feedback-loop-patterns.md9.2 KB
  • references/memory-curation-guide.md4.6 KB
  • references/meta-learning-architectures.md2.4 KB
  • references/self-improvement-methodology.md4.3 KB
  • scripts/feedback_analyzer.py18.5 KB
  • scripts/memory_health_checker.py11.1 KB
  • scripts/pattern_extractor.py10.8 KB
  • scripts/regression_detector.py17.0 KB
  • scripts/rule_manager.py12.0 KB
  • scripts/rule_promoter.py11.7 KB
  • skills/extract.md2.1 KB
  • skills/promote.md2.5 KB
  • skills/remember.md2.1 KB
  • skills/review.md2.3 KB
  • skills/status.md2.5 KB

SKILL.md(原文)

インストールする前に、エージェントに与えられる指示の中身を確認できます。

Self-Improving Agent - Autonomous Learning Patterns

Architectural patterns for AI agents that get better with use. Most agents are stateless -- they repeat mistakes because they cannot learn from their own execution. This skill closes that gap with patterns for feedback capture, memory curation, skill extraction, and regression detection. Key insight: auto-memory captures everything, but curation turns noise into knowledge.

Core Capabilities

  • Memory curation — a layered memory stack (CLAUDE.md → MEMORY.md → session), review protocol, and promotion criteria for graduating learnings into enforced rules.
  • Feedback loops — outcome classification, signal extraction, and a capture template that turn every task result into a structured learning.
  • Regression detection — metrics, thresholds, and a response protocol that flags performance degradation within a few sessions.
  • Skill extraction — criteria and a 4-step process to graduate proven patterns into standalone skill packages.
  • Meta-learning — adaptive capture strategy and anti-pattern detection so the agent learns what is worth learning.
  • Continuous calibration — confidence scoring and belief revision for resolving contradictions across learned knowledge.

When to Use

  • Building agents intended to improve over time rather than stay stateless.
  • Managing auto-memory (MEMORY.md) and deciding what to keep, promote, or retire.
  • Designing self-correcting feedback loops and regression alarms for agent behavior.
  • Graduating recurring solutions into reusable skill packages.

Clarify First

Before capturing or promoting learnings, confirm these inputs. If any is unknown or vague, ASK — do not assume:

  • Loop stage — remember / extract / promote / review (routes the sub-skill and the whole workflow)
  • Source data — which session logs, MEMORY.md, and rules dir to operate on (the subject the tools read and write)
  • Promotion bar — min occurrences / confidence threshold for graduating a learning into an enforced rule (--min-occurrences; decides what is kept vs discarded)

Stop rule: ask only the 2-3 that most change the output. If the user says "just draft it," proceed and list your assumptions at the top of the artifact.

Sub-Skills

Compound sub-skill architecture — each file in skills/ handles one step of the improvement loop:

Sub-SkillFilePurpose
Rememberskills/remember.mdCapture errors and learnings from current session
Extractskills/extract.mdExtract reusable patterns from completed work
Promoteskills/promote.mdGraduate proven patterns to permanent rules
Reviewskills/review.mdAudit memory health, prune stale entries
Statusskills/status.mdDashboard showing memory state and learning progress

Flow: Remember → Extract → Promote → Review, with Status providing visibility back into the cycle.

Tools

ToolPurposeCommand
pattern_extractor.pyExtract reusable patterns from session logspython scripts/pattern_extractor.py --input sessions.jsonl --min-occurrences 3
memory_health_checker.pyAudit memory for line counts, stale, and promotable entriespython scripts/memory_health_checker.py --memory ./MEMORY.md --rules ./.claude/rules/
rule_promoter.pyValidate and apply promotions from memory to rulespython scripts/rule_promoter.py --memory ./MEMORY.md --list-candidates
feedback_analyzer.pyAnalyze feedback logs for success rates and opportunitiespython scripts/feedback_analyzer.py analyze
regression_detector.pyCompare baseline vs current performance metricspython scripts/regression_detector.py compare
rule_manager.pyManage a learned rules knowledge base with CRUDpython scripts/rule_manager.py list

References

Load the reference that matches the task — keep this file lean and pull detail on demand:

  • references/memory-curation-guide.md — the memory stack, review protocol, promotion criteria/targets, the Weekly Memory Health Check workflow, and the continuous-calibration (confidence scoring + belief revision) machinery. Read when curating MEMORY.md or promoting learnings to rules.
  • references/feedback-loop-patterns.md — the core improvement-loop architecture and maturity levels, outcome classification + signal extraction, the capture template, regression metrics/response, the post-session and regression-investigation workflows, common pitfalls, troubleshooting, and the success-criteria bar. Read when designing feedback capture or diagnosing a regression.
  • references/meta-learning-architectures.md — skill-extraction criteria and process, the adaptive capture strategy, and anti-pattern detection. Read when the agent should adapt its own learning strategy or extract a proven pattern into a skill.
  • references/self-improvement-methodology.md — the five layers of agent learning, the confidence-scoring model, the promotion decision tree, the memory-curation checklist, anti-patterns, and the metrics/thresholds table. Read for the end-to-end methodology overview.

Scope & Limitations

This skill covers:

  • Architectural patterns for building agents that learn from execution history and user feedback.
  • Memory lifecycle management: capture, curation, promotion, and retirement of learned knowledge.
  • Performance regression detection frameworks and response protocols for agent systems.
  • Skill extraction methodology for graduating proven patterns into reusable, standalone packages.

This skill does NOT cover:

  • Runtime agent orchestration or multi-agent coordination -- see agent-workflow-designer and agent-protocol.
  • Prompt engineering, testing, or versioning of the prompts themselves -- see prompt-engineer-toolkit.
  • Infrastructure-level observability (logging, tracing, alerting dashboards) -- see observability-designer.
  • Initial agent architecture design, tool selection, or capability planning -- see agent-designer.

Integration Points

SkillIntegrationData Flow
context-engineControls what the agent sees per session; this skill decides what is worth remembering long-termPromoted rules and curated memory feed context retrieval; context relevance metrics flow back for regression tracking
agent-designerDefines the agent's architecture and capabilities; this skill layers learning infrastructure on topArchitecture constraints inform possible feedback loops; extracted skills feed back as new capabilities
prompt-engineer-toolkitPrompts degrade as codebases evolve; this skill detects prompt regression via outcome trackingPerformance metrics flag underperforming prompts; prompt updates feed back as CLAUDE.md rule changes
observability-designerProvides system-level metrics; this skill provides agent-behavior-level metricsSystem telemetry enriches regression diagnosis; agent metrics export to observability dashboards
tech-debt-trackerStale rules and bloated memory are technical debt this can surface alongside code debtMemory health metrics feed debt scoring; debt prioritization informs which stale rules to retire
agent-workflow-designerMulti-step workflows benefit from per-step feedback capture and cross-workflow pattern extractionPer-step outcome data flows into feedback loops; extracted optimizations update workflow definitions

レビュー

まだレビューはありません。使ってみた感想をお寄せください。

同じリポジトリのスキル

概要と使いどころ

This skill should be used when the user asks to "check accessibility", "audit WCAG compliance", "scan HTML for a11y issues", "check color contrast", or "find accessibility violations in web pages".

日本語の概要は準備中です。原文の説明を表示しています。

borghei/Claude-Skills8962026年10月7日 更新

Design and analyze A/B tests: sample size, test duration, and statistical significance for conversion experiments. Use when setting up an A/B test, calculating sample size, designing an experiment, or analyzing results.

日本語の概要は準備中です。原文の説明を表示しています。

borghei/Claude-Skills8962026年10月7日 更新

Design and run statistically rigorous A/B tests and experiments. Use when planning experiments, calculating sample sizes, designing test variants, selecting metrics, analyzing results, or when someone says "let's test that."

日本語の概要は準備中です。原文の説明を表示しています。

borghei/Claude-Skills8962026年10月7日 更新

Sales execution across pipeline, discovery, demos, negotiation, and closing. Use when qualifying opportunities, running MEDDIC discovery, building account plans, handling objections, structuring proposals, or forecasting pipeline.

日本語の概要は準備中です。原文の説明を表示しています。

borghei/Claude-Skills8962026年10月7日 更新

Design ad creative across Google, Meta, LinkedIn, Twitter/X, and TikTok with platform format specs, headline formulas, and A/B testing. Use when writing ad copy, generating headline variations, creating ad sets, or validating creative.

日本語の概要は準備中です。原文の説明を表示しています。

borghei/Claude-Skills8962026年10月7日 更新

aeo

無料

Answer Engine Optimization (AEO): optimize content to be cited by LLMs (ChatGPT, Claude, Perplexity, Gemini) in their answers. Use when designing content for LLM citation, auditing citability, or structuring Q&A schema.

日本語の概要は準備中です。原文の説明を表示しています。

borghei/Claude-Skills8962026年10月7日 更新

borghei のスキルをすべて見る

このスキルの問題を報告する