Agent skill
meta-optimize
The "Self-Refining" Engine. Analyzes failure patterns in other skills (e.g., `ci-autofix` failing repeatedly) and rewrites their prompts/logic to improve future performance.
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/other/other/coordination
SKILL.md
Meta-Optimize Skill
Goal
Enable the Agentic System to "Learn" from its mistakes by rewriting its own instructions (Skills and Prompts).
Flow
1. Failure Pattern Analysis
Input: metrics/analytics.jsonl or Task Failure Logs.
Trigger: A specific skill has failed > 3 times with the same error type.
Action: Retrieve the .skill.md file for the failing skill.
2. Diagnosis (The "Why")
Ask the Meta-Architect Persona:
- "Why did
ci-autofixfail to solveTS2322?" - Hypothesis: "The prompt didn't specify checking
tsconfig.jsonstrictness."
3. Optimization (The "Rewrite")
Action: Edit the target .skill.md file.
- Add Context: Insert a new "Tip" or "Strategy" block.
- Refine Prompt: Clarify the specific instruction causing ambiguity.
- Example:
- Before: "Fix the type error."
- After: "Fix the type error. CHECK
tsconfig.jsonfirst. Do not useanyunless absolutely necessary."
4. Validation
Action: Run a "Regression Test" (if available) or wait for next execution.
- Log the change in
meta-evolution.log: "Updated ci-autofix.skill.md: Added tsconfig check."
Safety Guardrails
- Backup: Always backup the original
.skill.mdbefore overwriting. - Limit: Max 1 optimization per skill per day (prevent "drift").
- Human Review: Flag the optimization for human review in
project/tasks.md.
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
Didn't find tool you were looking for?