agent-self-improvement
- Repo stars 25,042
- Author updated Live
- Author repo v8
- Domain
- AI
- Compatible agents
-
- Claude Code
- Cursor
- Cline
- Codex
- Windsurf
- Gemini CLI
- +20
- Trust score
- 88 / 100 · community maintained
- Author / version / license
- @v8 · no license declared
- Token usage
- Lean
- Setup complexity
- Guided setup
- External API key
- Not required
- Operating systems
- Unspecified (assume cross-platform)
- Runtime requirements
- No special requirements
- Permissions
-
- Read-only
- Write / modify
- Shell exec
- Network behavior
- Local-only
- Install commands
- 26 variants
Profile is derived at build time from SKILL.md and install vectors. Subject to drift from author intent.
Heads up: 未限定 allowed-tools,默认拥有全部工具权限。
---
name: agent-self-improvement
description: Workflow for agent self-improvement via isolated execution, evaluation, and process refinement.…
category: ai
runtime: no special runtime
---
# agent-self-improvement output preview
## PART A: Task fit
- Use case: Workflow for agent self-improvement via isolated execution, evaluation, and process refinement. Use when evaluating historical bugs or self-correcting skills. Do not use for new feature development..
- Inputs: target material, constraints, expected output, and acceptance criteria.
- Evidence boundary: follow “Activation Criteria / 1. Core Principles / 2. Workflow: Isolated Execution” and do not present inference as author intent.
## PART B: Execution result
- **01** The card summarizes the use case; runtime output centers on “Workflow for agent self-improvement via isolated execution, evaluation, and process refinement. Use when evaluating historical bugs or self-correcting skills. Do not use for new feature development.”.
- **02** When the source has headings, the agent prioritizes “Activation Criteria / 1. Core Principles / 2. Workflow: Isolated Execution” so the result follows the author’s structure.
- **03** Typical output includes task judgment, concrete steps, required commands or file edits, validation, and follow-up options.
- **04** Risk context follows the fingerprint: read files, write/modify files, run shell commands; mostly runs locally; usually needs no extra API key.
## Running Rules
- read files, write/modify files, run shell commands; mostly runs locally; usually needs no extra API key.
- Validate with a small sample before expanding scope.
- Return the result, validation criteria, and next iteration options. The source does not require a stable slash command. After installation, invoke the skill by name and describe the task.
Name target files or source material, expected output, forbidden changes, and whether network or shell access is allowed. Permission fingerprint: read files, write/modify files, run shell commands.
Start with a small task and check whether the result follows “Activation Criteria / 1. Core Principles / 2. Workflow: Isolated Execution”. Inspect diffs, logs, previews, or tests before expanding scope.
Confirm the final output includes a concrete result, evidence, and next action. If it stays generic, tighten inputs, boundaries, and acceptance criteria.
---
name: agent-self-improvement
description: Workflow for agent self-improvement via isolated execution, evaluation, and process refinement.…
category: ai
source: v8/v8
---
# agent-self-improvement
## When to use
- Workflow for agent self-improvement via isolated execution, evaluation, and process refinement. Use when evaluating hi…
- Use it when the task has clear inputs, repeatable steps, and validation criteria.
## What to provide
- Target material, scope, expected result, and forbidden changes.
- Whether network, commands, file writes, or external services are allowed.
## Execution rules
- Organize steps around “Activation Criteria / 1. Core Principles / 2. Workflow: Isolated Execution” and keep inference separate from source facts.
- read files, write/modify files, run shell commands; mostly runs locally; usually needs no extra API key.
- Validate with a small sample before expanding the task.
## Output requirements
- Return the deliverable, key evidence, validation method, and next action.
- Mark missing information as unknown; do not invent commands, platforms, or dependencies. The author source anchors workflow facts; repository files anchor sources and commands; Fluxly only adds fit, limitations, and quality judgment.
skill "agent-self-improvement" {
input -> user goal + target files + boundaries + acceptance criteria
context -> Activation Criteria / 1. Core Principles / 2. Workflow: Isolated Execution
rules -> SKILL.md triggers / order / output contract
runtime -> no special runtime | read files, write/modify files, run shell commands | mostly runs locally
guardrails -> usually needs no extra API key + small-sample validation + diff/log review
output -> copyable result + checklist + next iteration
} Agent Self-Improvement Workflow
Use this skill to orchestrate self-improvement sessions for agents. The workflow involves running debugging or implementation tasks in isolation, evaluating the results against known good solutions, and identifying improvements in the various layers of the system.
Activation Criteria
- The task involves analyzing agent behavior, evaluating agent performance on historical issues, or updating skills and rules based on past runs (meta-refinement).
- Agents should detect when they are performing self-evaluation (e.g., when asked to analyze logs of other agents or refine skills based on failures) and activate this skill.
1. Core Principles
- Isolation: Subagents must run in isolated environments (e.g., separate git worktrees) to prevent interference and ensure realistic testing. They MUST ignore any gathered knowledge (KIs) and session brains from the outside to ensure a self-contained test-run.
- Evaluation: A separate evaluation agent analyzes the work of the execution agent.
- Layered Improvement: The goal is to identify specific procedural or knowledge gaps across tools, skills, and prompts to get to a better solution.
- Anonymization & Generalization: When updating skills or rules based on self-evaluation, avoid recording anything specific to the user or the detailed user's installation (e.g., local paths).
- Process Abstraction: Keep principles and process improvements abstract and procedural. Avoid recording specific tests used, specific issue IDs debugged, or specific components affected in the general skill files.
2. Workflow: Isolated Execution
- Trigger: This workflow can be triggered by a new capability to test, a reported bug in agent behavior, or as a regular benchmark using existing CLs (Changelists).
- Setup Isolation:
- Create a separate worktree for the subagent using standard workspace tools.
- Example (Reimposition from CL): If starting from an existing CL:
- Check out the parent commit of the CL (without the fix).
- Extract the regression test or reproduction script from the CL.
- Place the test in the isolated worktree.
- Launch Subagent:
- Spawn a subagent with the specific task (e.g., "Fix the crash reproducer in
test/mjsunit/..."). - The subagent should follow the standard
workflow_debuggingor relevant skill. - The subagent operates independently and reports back its final result (code changes, analysis) when complete.
- Spawn a subagent with the specific task (e.g., "Fix the crash reproducer in
3. Workflow: Evaluation
- Trigger: Triggered automatically after the execution subagent completes its task.
- Launch Evaluation Agent:
- Spawn an evaluation agent (or the main agent takes this role).
- Provide the evaluation agent with:
- The execution subagent's logs and final result.
- The reference solution (e.g., the actual good fix from the original CL).
- Process & Result Assessment:
- The evaluation agent compares the subagent's result with the reference solution.
- Divergence Analysis:
- Did the subagent find the same root cause?
- Is the proposed fix equivalent, better, or worse?
- Did the subagent take unnecessary shortcuts or hallucinate complexity?
- Layered Improvement Analysis: The evaluation agent must analyze how the
process could be improved in the various layers to get to a better solution:
- Tool Layer: Did the agent lack necessary tools or misuse existing ones?
- Skill Layer: Did the agent fail to follow skill instructions, or are the skills missing critical advice?
- Prompt/Orchestration Layer: Was the initial prompt unclear, or did the orchestrator fail to coordinate effectively?
4. Actionable Outcomes
- Skill Updates: Propose specific diffs to existing skills based on the evaluation findings.
- Process Refinement: Document new best practices or anti-patterns discovered during the evaluation.
- Report: Send a synthesized report to the main agent detailing the execution, evaluation, and proposed improvements.
Decide Fit First
Design Intent
How To Use It
Boundaries And Review