Token导航 LogoToken导航TokenDH.com
研究检索需要联网github未标认证来源可访问许可证需确认审计通过

auto-improvement自动改进

Agent Skill

auto-improvement 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

713

周安装

30

GitHub Stars

1

下载量

250
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

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

skills.shnpx skills
npx skills add https://github.com/pixel-process-ug/superkit-agents --skill auto-improvement

简介

auto-improvement 用于查找、检索和筛选相关信息,适合快速定位候选结果。

  • 适用于需要根据关键词或任务场景从来源线索中筛选信息的场景。
  • 通过 npx skills add 命令从指定 GitHub 仓库安装并使用该技能。
  • 安装前需确认权限范围和维护状态,注意可能触发联网或文件读写操作。
  • 适用宿主包括 Codex、Claude、Cursor、Gemini CLI,接入前应确认版本、权限和运行环境要求。

SKILL.md

Overview

The auto-improvement skill implements a self-improving feedback loop that tracks effectiveness metrics, learns from errors, identifies recurring failure patterns, and adapts workflows to prevent repeated mistakes. It enables the agent to become measurably better over time through structured self-assessment rather than ad-hoc adjustments. Without this skill, the same mistakes repeat across sessions — with it, every error becomes a permanent improvement.

This skill is ALWAYS active. It runs automatically on every session and cannot be disabled.


Phase 1: Metric Collection

At the start of every task, instrument key decision points:

  1. Record task start time and initial estimate
  2. Define expected outcome and success criteria
  3. Track each decision point (approach chosen, alternatives considered)
  4. Log revision count (how many times the output was revised)
  5. Track user corrections as improvement signals

Core Metrics

MetricFormulaTargetMeasurement Period
First-attempt success rateTasks without revision / Total tasks>80%Per session
Average revision countTotal revisions / Total tasks<1.5Per session
Error recurrence rateRepeated errors / Total errors<10%Rolling 10 sessions
Time-to-completion accuracyActual time / Estimated time0.8-1.2Per task
User correction rateUser corrections / Total outputs<5%Per session

Tracking Template

## Session Metrics -- [Date]

### Tasks
| Task | Estimated | Actual | Revisions | Success | Error Type |
|------|-----------|--------|-----------|---------|------------|
| ...  | 30m       | 45m    | 1         | Partial | Execution  |

### Summary
- Tasks completed: X
- First-attempt success: X/Y (Z%)
- Total revisions: N
- Errors by category: Comprehension(n), Execution(n), Process(n)
- Improvement actions taken: [list]
STOP: Complete metric collection setup before proceeding to error analysis. Do NOT skip instrumentation.

Phase 2: Error Analysis

When an error occurs, classify it immediately using the taxonomy:

Error Taxonomy

CategorySubcategoryExampleTypical Root Cause
ComprehensionMisread requirementBuilt feature X when Y was askedInsufficient clarification
ComprehensionWrong assumptionAssumed REST when GraphQL was usedMissing context discovery
ExecutionSyntax errorInvalid TypeScript type annotationUnfamiliar API surface
ExecutionLogic errorOff-by-one in paginationInsufficient test coverage
ExecutionIntegration errorWrong API endpoint or payload formatMissing documentation check
ProcessSkipped stepForgot to run tests before commitProcess not followed
ProcessWrong orderWrote code before understanding specEagerness over methodology
JudgmentOver-engineeringBuilt abstraction for single use casePremature optimization
JudgmentUnder-engineeringSkipped error handling for "simple" taskUnderestimated complexity
KnowledgeUnknown APIUsed deprecated methodOutdated training data
KnowledgeFramework gapWrong Next.js pattern for app routerNeed to check docs first

Severity Levels

LevelDefinitionResponse Required
CriticalTask must be completely redoneImmediate root cause analysis + add guardrail
MajorSignificant rework needed (>50% of task)Root cause analysis + add checklist item
MinorSmall fix needed (<30 minutes)Log pattern, review if recurring
CosmeticStyle or preference issueNote for future, no process change

Error Log Format

## Error Log Entry

**ID:** ERR-[YYYY]-[MMDD]-[NNN]
**Date:** [date]
**Task:** [what was being done]
**Severity:** [Critical / Major / Minor / Cosmetic]
**Category:** [Category > Subcategory]

### What Happened
[Description of the error and its observable impact]

### Root Cause
[Why this error occurred — the actual underlying reason]

### What Was Tried
1. [First attempt to resolve]
2. [Second attempt if applicable]
3. [Final resolution]

### Resolution
[What ultimately fixed the problem]

### Time Lost
[Estimated time wasted due to this error]

### Prevention
- **New checklist item:** [if applicable]
- **Memory update:** [what was persisted]
- **Guardrail added:** [if applicable]

### Recurrence Check
- [ ] Similar error seen before? [Yes/No — reference previous ID]
- [ ] Guardrail added? [Yes/No]
STOP: Every error MUST be classified and logged before proceeding to fix it. Do NOT skip the log entry.

Phase 3: Pattern Recognition

After accumulating 3+ errors, analyze for patterns:

  1. Group related errors into failure categories
  2. Identify environmental triggers (specific file types, frameworks, patterns)
  3. Detect workflow bottlenecks causing consistent slowdowns
  4. Recognize successful patterns worth reinforcing
  5. Map anti-patterns to their corrective actions

Pattern Detection Decision Table

SignalPatternAction
Same error >2 timesRecurring failureCreate guardrail (mandatory)
Same category >3 timesSystemic weaknessAdd pre-flight checklist for that category
Time estimate off by >50% consistentlyEstimation blind spotAdjust estimation heuristics
User corrections in same areaKnowledge gapDeep-dive learning for that domain
Success rate >90% in specific areaStrength patternDocument and reinforce
Errors cluster around specific frameworkFramework knowledge gapRun context discovery for that framework

Positive Pattern Reinforcement

When a pattern consistently leads to success, document it:

## Positive Pattern: [Name]
OBSERVATION: [What was done and why it worked]
EVIDENCE: [Sessions/tasks where this pattern succeeded, with success rate]
REINFORCEMENT: [How to ensure this pattern continues to be applied]
STOP: Pattern recognition must be evidence-based. Do NOT create patterns from single occurrences.

Phase 4: Adaptation

Generate and implement improvements based on identified patterns:

Pre-Flight Checklists

Create checklists that run before high-risk operations:

## Pre-Flight: Before Writing [Framework] Code
- [ ] Identify the framework and version (check package.json / composer.json)
- [ ] Identify the routing pattern (pages/ vs app/, file-based vs code-based)
- [ ] Check for existing patterns in the codebase (find similar files)
- [ ] Verify the API surface in documentation (do not assume from memory)
- [ ] Check for project-specific conventions (linter config, type config)

Guardrail Rules

## Guardrail: [Operation Type]
BEFORE [specific operation]:
1. [Check 1]
2. [Check 2]
3. [Check 3]
4. [Check 4]

TRIGGERED BY: [keywords or conditions that activate this guardrail]
ADDED BECAUSE: [Error ID that caused this guardrail to be created]
EFFECTIVENESS: [Track whether this guardrail has prevented errors]

Adaptation Decision Table

Error PatternAdaptation TypeExample
Recurring comprehension errorsAdd clarification step to workflow"Before implementing, restate the requirement in your own words"
Recurring execution errorsAdd pre-flight checklist"Before writing framework code, check version and router type"
Recurring process errorsAdd hard checkpoint"STOP marker before commit: did you run tests?"
Recurring judgment errorsAdd decision criteria table"When to abstract vs. inline: frequency >3, complexity >medium"
Recurring knowledge errorsAdd context discovery step"Before using API, check current docs, not memory"
STOP: Every adaptation must be validated against historical data before being persisted.

Phase 5: Feedback Loop and Validation

Measure whether improvements actually work:

  1. Compare current error rates against baseline (pre-improvement)
  2. Track each guardrail's prevention count
  3. Archive improvements that demonstrably reduce errors
  4. Revert improvements that do not reduce errors or add overhead
  5. Share learnings across sessions via memory files

Retrospective Template

## Retrospective -- [Period]

### What Went Well
- [Pattern/approach that consistently succeeded]
- [New technique that improved outcomes]

### What Went Poorly
- [Recurring error pattern with frequency]
- [Process gap that caused rework]

### Error Trends
| Category | This Period | Last Period | Trend |
|----------|------------ |-------------|-------|
| Comprehension | 3 | 5 | Improving |
| Execution | 7 | 4 | Worsening -- investigate |
| Process | 1 | 3 | Improving |
| Knowledge | 4 | 4 | Stable |

### Root Cause Analysis (Top 3 Errors)
1. **[Error pattern]** -- Root cause: [analysis] -- Fix: [action]
2. **[Error pattern]** -- Root cause: [analysis] -- Fix: [action]
3. **[Error pattern]** -- Root cause: [analysis] -- Fix: [action]

### Improvement Actions
| Action | Priority | Status | Expected Impact | Actual Impact |
|--------|----------|--------|-----------------|---------------|
| Add pre-flight check for X | High | Done | -30% execution errors | [measured] |
| Update memory with Y pattern | Medium | Done | -20% knowledge errors | [measured] |
| Create guardrail for Z | High | In Progress | Prevent critical error class | [pending] |

### Metrics vs. Targets
| Metric | Target | Actual | Status |
|--------|--------|--------|--------|
| First-attempt success | >80% | 75% | Below target |
| Revision count | <1.5 | 1.8 | Below target |
| Error recurrence | <10% | 8% | On target |

Memory File Integration

What to Persist

FileUpdate WhenContent
memory/learned-patterns.mdNew pattern discovered or error pattern identifiedCoding conventions, framework patterns, anti-patterns
memory/user-preferences.mdUser corrects style, format, or approachCommunication preferences, code style, tool choices
memory/decisions-log.mdSignificant architectural or approach decisionDecision, rationale, alternatives considered
memory/project-context.mdNew project context discoveredTech stack, architecture, dependencies

Update Protocol

  1. Identify the learning from the error or success
  2. Check if it conflicts with existing memory entries
  3. If conflict: update the existing entry with new information and date
  4. If new: add entry with context, evidence, and date
  5. Remove entries that are no longer valid (tech changed, project evolved)
Do NOT persist gut feelings as patterns. Evidence required: 2+ occurrences minimum.

Continuous Improvement Cycle

Execute Tasks -> Collect Metrics -> Analyze Errors -> Identify Patterns
      ^                                                       |
      |                                                       v
      +-- Persist to Memory <-- Validate Impact <-- Implement Improvements
                                      |
                                      +-- Did not work? -> Revert, try different approach

Anti-Patterns / Common Mistakes

What NOT to DoWhy It FailsWhat to Do Instead
Same mistake 3 times without guardrailErrors keep recurring with no preventionCreate guardrail after 2nd occurrence
Track metrics without acting on themMeasurement theater — effort without outcomeEvery metric must have an action threshold
Over-correct from single errorOne bad experience does not justify avoiding a tool foreverRequire 2+ occurrences before creating a pattern
Treat all errors equallyWastes effort on cosmetic issuesPrioritize by frequency x impact
Update memory without evidencePoisons future sessions with wrong patternsRequire 2+ examples before persisting
Create so many checklists they become overheadChecklist fatigue leads to skipping all of themMax 5 items per checklist, retire unused ones
Blame external factors onlyMisses internal process improvementsAlways examine what YOU could have done differently
Skip validation of improvementsNo way to know if improvements actually workCompare error rates before and after
Persist outdated patternsStale advice causes new errorsReview and prune memory periodically
Never do retrospectivesLose the big picture, focus only on individual errorsSchedule retrospective after every 10 tasks

Anti-Rationalization Guards

ThoughtReality
"This error is a one-off"Log it anyway. If it happens again, you have the data.
"Metrics collection slows me down"Not collecting metrics means repeating the same mistakes.
"The checklist is overkill for this task"The checklist exists because a similar task failed before. Use it.
"I will remember this lesson"You will not. Sessions are independent. Persist to memory.
"The error was not my fault"External or internal, log the pattern. Prevention is your job.
"Retrospectives are a waste of time"Without retrospectives, you cannot see trends. Do them.
"My success rate is good enough"Good enough stagnates. The target is continuous improvement.
Do NOT skip error logging. Do NOT skip metric collection. These are mandatory.

Integration Points

SkillRelationship
self-learningProvides project context that prevents knowledge errors
resilient-executionFailed retries feed into error analysis
circuit-breakerStagnation events are major error signals
verification-before-completionVerification failures trigger error logging
planningImprovement actions inform future plan quality
code-reviewReview findings feed into pattern recognition

Concrete Examples

Guardrail Created from Error Pattern

Error: ERR-2026-0212-003 — Dropped production table during migration
Error: ERR-2026-0301-007 — Applied migration without rollback plan

Pattern: Database operations without safety checks (2 occurrences)

Guardrail Created:
## Guardrail: Database Operations
BEFORE any database migration or schema change:
1. Check if there is an existing migration framework
2. Verify the current schema state
3. Create a rollback plan
4. Test migration on a copy first

TRIGGERED BY: any task involving database, schema, migration, model
ADDED BECAUSE: ERR-2026-0212-003, ERR-2026-0301-007
EFFECTIVENESS: 0 errors in 5 subsequent database tasks

Positive Pattern Documentation

## Positive Pattern: Context Discovery First
OBSERVATION: Tasks where project context was gathered first had
a 92% first-attempt success rate vs. 64% without.
EVIDENCE: Sessions 2026-02-01 through 2026-03-15 (47 tasks)
REINFORCEMENT: Always run context discovery before implementation.
Minimum: check package.json, read existing code in same domain,
identify conventions.

Skill Type

RIGID — Error tracking, classification, and the improvement cycle must be followed consistently. Every recurring error (2+ occurrences) must result in a concrete preventive action. Memory files must be updated with evidence-based patterns only. Metric collection and error logging are mandatory on every session. Do not skip retrospectives.

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

34.11%
按下载量换算85

Claude

30.35%
按下载量换算76

Cursor

20.05%
按下载量换算50

Gemini CLI

9.19%
按下载量换算23

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

需要联网

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

安装前确认

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

来源信息

继续浏览同类 Skills