Token导航 LogoToken导航

Agent Skill · 前端设计

self-improving-agent(自我改进 Agent)

self-improving-agent 用于记录任务执行中的错误、用户纠正、经验和能力缺口,适合在 Codex、Claude、Cursor、Gemini CLI 中希望让 Agent 持续沉淀问题、修正和最佳实践时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

self-improving-agent 是前端设计类 Agent Skill,可用宿主为 Codex、Claude、Cursor、Gemini CLI,通过GitHub 仓库获取,权限为需要联网;许可证信息还不明确,第三方扫描已通过,按安装量在前端设计类的 10,216 个 Skill 里排第 2,110。

总安装 2,863周安装 123GitHub Stars 103下载 1,004核验 2026-05-01

安装说明

本站只整理中文说明,不托管安装包,也不代用户安装。
GitHub
许可证
unknown

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:self-improving-agent(自我改进 Agent)
来源仓库:https://github.com/borghei/claude-skills
仓库路径:skills/self-improving-agent
安装命令:
npx skills add https://github.com/borghei/claude-skills --skill self-improving-agent
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/borghei/claude-skills --skill self-improving-agent

这个 Skill 是做什么的

前端设计类 Skill 关注页面结构、视觉规范和组件写法,输出通常是可运行的界面代码。

self-improving-agent 为 Agent 提供自主学习与反馈闭环架构模式。支持错误捕获、经验沉淀与技能提取,减少重复问题发生。通过元学习机制实现性能跟踪与回归预防。部署后需设置监控与人工审核机制,确保学习方向可控。

适用宿主包括 Codex、Claude、Cursor、Gemini CLI,接入前应确认版本、权限和运行环境要求。

来源仓库内路径:skills/self-improving-agent

上手步骤

4 步
  1. 1

    确认自己的宿主工具

    公开资料标注支持 Codex、Claude、Cursor、Gemini CLI;先确认自己用的是其中之一,再按对应工具的 Skills 目录放置。

  2. 2

    拿到安装命令

    可以直接复制的命令是 npx skills add https://github.com/borghei/claude-skills --skill self-improving-a…;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

    命令执行完要完全退出宿主工具再打开,让新装的 Skill 被重新扫描到,否则列表里可能看不到。

  4. 4

    按最小权限试用

    它需要需要联网,先在测试目录或测试账号里跑,确认没问题再放到正式项目。

常见问题

6 条

self-improving-agent 怎么安装?

在终端执行 npx skills add https://github.com/borghei/claude-skills --skill self-improving-agent。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

self-improving-agent 支持哪些 AI 工具?

公开资料标注支持 Codex、Claude、Cursor、Gemini CLI。其他工具只要能读取本地 Skill 目录,一般也能手动放进去,但要自己确认触发方式是否一致。

self-improving-agent 需要什么权限?

权限级别是需要联网。该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

self-improving-agent 是免费的吗?

公开资料没有标注明确许可证,收费和商用限制都无法确认。正式使用前请到来源仓库核对授权说明。

self-improving-agent 用的人多吗?

公开数据是累计安装 2,863 次,近一周安装 123 次,下载 1,004 次,GitHub 103 星。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

self-improving-agent 安全吗?

第三方扫描结果为通过,但这只覆盖已知的静态检查项,不能替代自己读一遍源码和安装命令。

值得选的地方和要先想清楚的地方

值得选的地方

  • 同时适配 4 种工具,换客户端不用重新找替代品。
  • 第三方扫描已通过,常见的高风险行为没有命中。

先想清楚的地方

  • 许可证没有明确标注,能不能商用、能不能再分发都不确定。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 Codex,想直接扩展它能力的人。
  • 需要处理前端设计类任务、又不想每次都手写提示词的人。

不太适合

  • 需要明确授权才能用到公司项目里的场景。
  • 需要厂商级技术支持和 SLA 的生产系统。

前端设计类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
frontend-design

前端设计 · Codex、Claude

8,823,360126,072只读MIT通过
vercel-composition-patterns

Vercel 组合模式 · Codex、Claude

3,858,81625,893需要联网MIT通过
vercel-react-native-skills

Vercel React native skills 前端 · Codex、Claude

2,468,66425,878只读MIT通过
adapt

adapt 搜索 · Codex、Claude

2,027,04023,125操作浏览器未明确通过
bolder

bolder 分析 · Codex、Claude

2,004,28823,130只读未明确通过
self-improving-agent

自我改进 Agent · 本页

2,863103需要联网未明确通过

按安装量取同分类前几名;数字来自第三方目录统计,只作热度参考,不代表质量结论。

SKILL.md 原文

Self-Improving Agent - Autonomous Learning Patterns

Tier: POWERFUL Category: Engineering Tags: self-improvement, AI agents, feedback loops, auto-memory, meta-learning, performance tracking

Overview

Self-Improving Agent provides architectural patterns for AI agents that get better with use. Most agents are stateless -- they make the same mistakes repeatedly because they lack mechanisms to learn from their own execution. This skill addresses that gap with concrete patterns for feedback capture, memory curation, skill extraction, and regression detection.

The key insight: auto-memory captures everything, but curation is what turns noise into knowledge.

Sub-Skills

This skill uses compound sub-skill architecture. Each sub-skill in skills/ handles a specific 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

Sub-Skill Flow

Remember ──> Extract ──> Promote ──> Review
    ^                                  │
    └──────────── Status ◄─────────────┘

The improvement cycle: Remember captures events during work, Extract identifies patterns across sessions, Promote graduates proven patterns to rules, Review maintains memory health, and Status provides visibility into the entire system.

Scripts

ScriptPurpose
scripts/pattern_extractor.pyExtract reusable patterns from session logs
scripts/memory_health_checker.pyAudit memory for stale, duplicate, and promotable entries
scripts/rule_promoter.pyValidate and apply promotions from memory to rules
scripts/feedback_analyzer.pyAnalyze feedback logs for success rates and opportunities
scripts/regression_detector.pyCompare baseline vs current performance metrics
scripts/rule_manager.pyManage a learned rules knowledge base with CRUD

Core Architecture

The Improvement Loop

┌──────────────────────────────────────────────────────────┐
│                   SELF-IMPROVEMENT CYCLE                  │
│                                                          │
│  ┌─────────┐    ┌──────────┐    ┌─────────────┐        │
│  │ Execute  │───▶│ Evaluate │───▶│ Extract     │        │
│  │ Task     │    │ Outcome  │    │ Learnings   │        │
│  └─────────┘    └──────────┘    └─────────────┘        │
│       ▲                               │                  │
│       │                               ▼                  │
│  ┌─────────┐    ┌──────────┐    ┌─────────────┐        │
│  │ Apply   │◀───│ Promote  │◀───│ Validate    │        │
│  │ Rules   │    │ to Rules │    │ Learnings   │        │
│  └─────────┘    └──────────┘    └─────────────┘        │
│                                                          │
└──────────────────────────────────────────────────────────┘

Improvement Maturity Levels

LevelNameMechanismExample
0StatelessNo memory between sessionsDefault agent behavior
1RecordingCaptures observations, no actionAuto-memory logging
2CuratingOrganizes and deduplicates observationsMemory review + cleanup
3PromotingGraduates patterns to enforced rulesMEMORY.md entries become CLAUDE.md rules
4ExtractingCreates reusable skills from proven patternsRecurring solutions become skill packages
5Meta-LearningAdapts learning strategy itselfAdjusts what to capture based on what proved useful

Most agents operate at Level 0-1. This skill provides the machinery for Levels 2-5.

Core Capabilities

1. Memory Curation System

The Memory Stack
┌─────────────────────────────────────────────────┐
│  CLAUDE.md / .claude/rules/                      │
│  Highest authority. Enforced every session.       │
│  Capacity: Unlimited. Load: Full file.           │
├─────────────────────────────────────────────────┤
│  MEMORY.md (auto-memory)                         │
│  Project learnings. Auto-captured by Claude.     │
│  Capacity: First 200 lines loaded. Overflow to   │
│  topic files.                                    │
├─────────────────────────────────────────────────┤
│  Session Context                                  │
│  Current conversation. Ephemeral.                │
│  Capacity: Context window.                       │
└─────────────────────────────────────────────────┘
Memory Review Protocol

Run periodically (weekly or after every 10 sessions):

Step 1: Read MEMORY.md and all topic files
Step 2: Classify each entry

  Categories:
  - PROMOTE: Pattern proven 3+ times, should be a rule
  - CONSOLIDATE: Multiple entries saying the same thing
  - STALE: References deleted files, old patterns, resolved issues
  - KEEP: Still relevant, not yet proven enough to promote
  - EXTRACT: Recurring solution that should be a reusable skill

Step 3: Execute actions
  - PROMOTE entries → move to CLAUDE.md or .claude/rules/
  - CONSOLIDATE entries → merge into single clear entry
  - STALE entries → delete
  - EXTRACT entries → create skill package (see Skill Extraction)

Step 4: Verify MEMORY.md is under 200 lines
  - If over 200: move topic-specific entries to topic files
  - Topic files: ~/.claude/projects/<path>/memory/<topic>.md
Promotion Criteria

An entry is ready for promotion when:

CriterionThresholdWhy
RecurrenceSeen in 3+ sessionsNot a one-off
ConsistencySame solution every timeNot context-dependent
ImpactPrevented errors or saved significant timeWorth enforcing
StabilityUnderlying code/system unchangedWon't immediately become stale
ClarityCan be stated in 1-2 sentencesRules must be unambiguous
Promotion Targets
Pattern TypePromote ToExample
Coding convention.claude/rules/<area>.md"Always use type not interface for object shapes"
Project architectureCLAUDE.md"All API routes go through middleware chain"
Tool preferenceCLAUDE.md"Use pnpm, not npm"
Debugging pattern.claude/rules/debugging.md"When tests fail, check env vars first"
File-scoped rule.claude/rules/<scope>.md with paths:"In migrations/, always add down migration"

2. Feedback Loop Design

Outcome Classification

Every agent task produces an outcome. Classify it:

SUCCESS         - Task completed, user accepted result
PARTIAL         - Task completed but required corrections
FAILURE         - Task failed, user had to redo
REJECTION       - User explicitly rejected approach
TIMEOUT         - Task exceeded time/token budget
ERROR           - Technical error (tool failure, API error)
Signal Extraction from Outcomes
OutcomeSignalMemory Action
SUCCESS (first try)Approach works wellReinforce (increment confidence)
SUCCESS (after correction)Initial approach had gapLog the correction pattern
PARTIAL (user edited result)Output format or content gapLog what user changed
FAILUREApproach fundamentally wrongLog anti-pattern with context
REJECTIONMisunderstood requirementsLog clarification pattern
Repeated ERRORTool or environment issueLog workaround or fix
Feedback Capture Template
## Learning: [Short description]

**Context:** [What task was being performed]
**What happened:** [Outcome description]
**Root cause:** [Why the outcome occurred]
**Correct approach:** [What should have been done]
**Confidence:** [High/Medium/Low]
**Recurrence:** [First time / Seen N times]
**Action:** [KEEP / PROMOTE / EXTRACT]

3. Performance Regression Detection

Metrics to Track
MetricMeasurementRegression Signal
First-attempt success rateTasks accepted without correctionDropping below 70%
Correction count per taskUser edits after agent outputRising above 2 per task
Tool error rateFailed tool calls / total callsRising above 5%
Context relevanceRetrieved context actually usedDropping below 60%
Task completion timeTurns to complete taskRising trend over 5 sessions
Regression Response Protocol
1. DETECT: Metric crosses threshold
2. DIAGNOSE: Compare recent sessions vs baseline
   - What changed? (New code? New patterns? New tools?)
   - Which task types are affected?
   - Is it a memory issue or a capability issue?
3. RESPOND:
   - Memory issue → Review and curate MEMORY.md
   - Stale rules → Update CLAUDE.md
   - New code patterns → Add rules for new patterns
   - Capability gap → Extract as skill request
4. VERIFY: Track metric for next 3 sessions

4. Skill Extraction

When a solution pattern is proven and reusable, extract it into a standalone skill.

Extraction Criteria
A pattern is ready for extraction when:
- Used successfully 5+ times across different contexts
- Solution is generalizable (not project-specific)
- Takes more than trivial effort to recreate from scratch
- Would benefit other projects/users
Extraction Process
Step 1: Document the pattern
  - What problem does it solve?
  - What's the step-by-step approach?
  - What are the inputs and outputs?
  - What are the edge cases?

Step 2: Generalize
  - Remove project-specific details
  - Identify configurable parameters
  - Add handling for common variations

Step 3: Package as skill
  - Create SKILL.md with frontmatter
  - Add references/ for knowledge bases
  - Add scripts/ if automatable
  - Add assets/ for templates

Step 4: Validate
  - Test on a different project
  - Have another person/agent use it
  - Iterate on unclear instructions

5. Meta-Learning Patterns

Adaptive Capture Strategy

Not all observations are equally valuable. Adjust what gets captured based on what proved useful:

Initial strategy: Capture everything
After 10 sessions: Analyze which captured items led to promotions
After 20 sessions: Adjust capture to focus on high-value categories

High-value categories (typically):
  - Error resolutions (80% promotion rate)
  - User corrections (70% promotion rate)
  - Tool preferences (60% promotion rate)

Low-value categories (typically):
  - File structure observations (10% promotion rate)
  - One-off workarounds (5% promotion rate)
Anti-Pattern Detection

Beyond capturing what works, actively detect what fails:

Anti-PatternDetection SignalResponse
Repeated wrong import pathSame correction 3+ timesAdd to CLAUDE.md as rule
Wrong test framework usedUser always changes test approachAdd testing rules
Incorrect API usageSame API error patternAdd API usage notes
Style guide violationsUser reformats same patternsAdd style rules
Wrong branch workflowUser corrects git operationsAdd git workflow rules

6. Continuous Calibration

Confidence Scoring

Every piece of learned knowledge carries a confidence score:

Confidence = base_score * recency_factor * consistency_factor

base_score:
  - User explicitly stated: 1.0
  - Observed from successful outcome: 0.8
  - Inferred from pattern: 0.6
  - Guessed from context: 0.3

recency_factor:
  - Last 7 days: 1.0
  - 7-30 days: 0.9
  - 30-90 days: 0.7
  - 90+ days: 0.5

consistency_factor:
  - Never contradicted: 1.0
  - Contradicted once, reaffirmed: 0.9
  - Contradicted, not reaffirmed: 0.5
  - Actively contradicted: 0.0 (delete)
Belief Revision

When new information contradicts existing knowledge:

1. Compare confidence scores
2. If new info higher confidence → update knowledge
3. If roughly equal → flag for user confirmation
4. If new info lower confidence → keep existing, note conflict
5. Always log the conflict for review

Workflows

Workflow 1: Weekly Memory Health Check

1. Read all memory files (MEMORY.md + topic files)
2. Count total entries and lines
3. For each entry, classify: PROMOTE / CONSOLIDATE / STALE / KEEP / EXTRACT
4. Execute promotions (with user confirmation)
5. Execute consolidations
6. Delete stale entries
7. Verify under 200-line limit
8. Report: entries promoted, consolidated, deleted, remaining

Workflow 2: Post-Session Learning Capture

1. Review session outcomes (successes, corrections, failures)
2. For each correction: log what was wrong and what was right
3. For each failure: log root cause and correct approach
4. Check existing memory for related entries
5. If related entry exists: increment recurrence count
6. If new: add entry with context
7. If recurrence threshold met: flag for promotion

Workflow 3: Regression Investigation

1. Identify the degraded metric
2. Pull last 5 sessions' outcomes for that task type
3. Compare against baseline (first 5 sessions)
4. Identify what changed: memory, code, rules, environment
5. Propose fix: update rule, add rule, retrain pattern
6. Apply fix
7. Monitor next 3 sessions

Common Pitfalls

PitfallWhy It HappensFix
Memory bloatAuto-capture without curationWeekly review, enforce 200-line limit
Stale rulesCode changes, rules don't updateTimestamp rules, periodic re-verification
Over-promotionPromoting one-off patterns as rulesRequire 3+ recurrences before promotion
Silent regressionNo metrics trackingImplement outcome classification
Cargo cult rulesCopying rules without understandingEach rule must have a "why" annotation
Contradiction spiralsNew rules conflict with old rulesBelief revision protocol

Integration Points

SkillIntegration
context-engineContext Engine manages what the agent sees; Self-Improving Agent manages what the agent remembers
agent-designerAgent Designer defines agent architecture; Self-Improving Agent adds the learning layer
prompt-engineer-toolkitPrompts that degrade over time are a regression; track and test them
observability-designerMonitor agent performance metrics alongside system metrics

References

  • references/feedback-loop-patterns.md - Detailed feedback capture and analysis patterns
  • references/memory-curation-guide.md - Step-by-step memory review and promotion procedures
  • references/meta-learning-architectures.md - Advanced patterns for agents that learn how to learn

Troubleshooting

ProblemCauseSolution
MEMORY.md exceeds 200 lines and keeps growingAuto-capture enabled without scheduled curationRun the Weekly Memory Health Check workflow; split topic-specific entries into memory/<topic>.md files
Promoted rules contradict each otherTwo conflicting patterns both crossed the 3-recurrence thresholdApply the Belief Revision protocol -- compare confidence scores, resolve the conflict, delete the weaker rule
Agent performance degrades after a promotion batchNewly promoted rules interact badly or are overly prescriptiveRoll back the most recent promotions, re-validate each rule in isolation, and promote incrementally
Skill extraction produces a package that only works on the original projectGeneralization step was skipped or rushedRevisit Extraction Process Step 2 -- strip project-specific details, parameterize hardcoded values, test on a second project before packaging
Feedback loop captures noise (trivial observations dominate)Capture strategy has not been calibrated with the Adaptive Capture StrategyAfter 10 sessions, analyze promotion rates by category and restrict capture to high-value categories (error resolutions, user corrections, tool preferences)
Regression Detection flags false positivesThresholds set too aggressively for early-stage projectsWiden thresholds during the first 20 sessions (e.g., first-attempt success 60% instead of 70%), then tighten once a stable baseline exists
Confidence scores decay too fast on valid long-term rulesRecency factor penalizes rules that are infrequently encountered but still correctFor rules explicitly confirmed by the user, override the recency factor to 1.0 regardless of age

Success Criteria

  • First-attempt success rate above 80% after 20 sessions of active self-improvement, measured as tasks accepted without user correction.
  • Memory size stays under 200 lines in MEMORY.md at all times, with overflow correctly routed to topic files.
  • Promotion rate of 15-25% of captured observations within 30 days, indicating the capture strategy targets high-value signals.
  • Zero stale rules remaining after each Weekly Memory Health Check -- every rule references current code, tools, and workflows.
  • Regression detection latency under 3 sessions -- performance degradation is flagged within 3 sessions of onset, not discovered weeks later.
  • Extracted skills reusable across 2+ projects without modification, validating that the generalization step produces genuinely portable packages.
  • Contradiction resolution within 1 session -- conflicting rules are detected and resolved via the Belief Revision protocol before they cause downstream errors.

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 for those patterns.
  • Prompt engineering, testing, or versioning of the prompts themselves -- see prompt-engineer-toolkit for prompt lifecycle management.
  • Infrastructure-level observability (logging, tracing, alerting dashboards) -- see observability-designer for system-level monitoring.
  • Initial agent architecture design, tool selection, or capability planning -- see agent-designer for foundational agent design decisions.

Integration Points

SkillIntegrationData Flow
context-engineContext Engine controls what the agent sees per session; Self-Improving Agent decides what is worth remembering long-termPromoted rules and curated memory flow into context retrieval; context relevance metrics flow back for regression tracking
agent-designerAgent Designer defines the agent's architecture and capabilities; Self-Improving Agent layers learning infrastructure on topArchitecture constraints inform what feedback loops are possible; extracted skills feed back as new agent capabilities
prompt-engineer-toolkitPrompts degrade over time as codebases evolve; Self-Improving Agent detects prompt regression via outcome trackingPerformance metrics flag underperforming prompts; prompt updates feed back as rule changes in CLAUDE.md
observability-designerObservability provides system-level metrics; Self-Improving Agent provides agent-behavior-level metricsSystem telemetry enriches regression diagnosis; agent performance metrics can be exported to observability dashboards
tech-debt-trackerStale rules and bloated memory are a form of technical debt; Tech Debt Tracker can surface them alongside code debtMemory health metrics feed into debt scoring; debt prioritization informs which stale rules to retire first
agent-workflow-designerMulti-step agent workflows benefit from per-step feedback capture and cross-workflow pattern extractionPer-step outcome data flows into feedback loops; extracted workflow optimizations flow back as updated workflow definitions

平台分布

Codex

34.52%
按下载量换算347

Claude

32.75%
按下载量换算329

Cursor

19.48%
按下载量换算196

Gemini CLI

9.36%
按下载量换算94

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。目前只有一个公开来源,建议同时核对源仓库。

继续浏览同类 Skills