self-augment
Run the self-augmentation loop for issueops or another repository: use GENIUS_THINK.md, repo evidence, and research-backed agent improvement patterns to choose a necessary feature, performance, qualit
Files3
View on GitHubSKILL.mdskills/self-augment/SKILL.md
GitHubSelf-augmentation loop
Goal
Autonomously identify, select, implement, and verify one improvement that makes the repository materially better. A report-only analysis or test-only run is not enough.
Required distinction
- Self-verification loop: verifies that the service/harness behaves as intended, including tests and QA. Deterministic gate:
./bin/issueops self-verify --seed=100 --target-score=95 --llm-eval=false --json; collect-all evidence pass: add--collect-all-steps --progress=jsonl. - Self-augmentation loop: directly implements one needed feature, performance improvement, quality improvement, or documentation improvement, then verifies it with the self-verification loop.
Exit criteria
Completion requires all goals below to exceed target_score. The default target is 95. If any score is 95 or below, keep improving or report the blocker.
- Improvement selection: use repo evidence and
GENIUS_THINK.mdto produce at least 10 candidates, then score value, feasibility, and risk. - Implementation: the selected candidate appears as an actual code, docs, or skill diff. Cosmetic-only changes do not count.
- Verification and QA: targeted tests, QA checks, and
self-verifypass. - Learning capture: record decisions, failure lessons, and next candidates in state or docs where appropriate.
Workflow
Baseline
- Read the nearest
AGENTS.md/CLAUDE.md,GENIUS_THINK.md, andskills/self-augment/SELF_AUGMENTATION.mdwhen present. - Run or inspect
./bin/issueops self-augment --jsonfor the current candidate curriculum. - Use
./bin/issueops self-augment --save-state --state-key self-augment-latest --jsonwhen the selected plan should become durable memory for the next cycle. - Use
./bin/issueops self-augment --cycles 3 --jsonto plan multiple improvement cycles at once (default 1). - Use
./bin/issueops self-augment lesson --lesson "..." --next-action "..." --jsonto store reusable Reflexion lessons. - Run a baseline self-verification loop when feasible; otherwise capture why it cannot run.
- Read the nearest
Candidate curriculum
- Generate at least 10 concrete improvement candidates.
- Use at least two
GENIUS_THINK.mdformulas, preferring problem reframing, innovative solution generation, thought evolution, and complexity resolution. - Score each candidate by impact, feasibility, novelty, risk, verification cost, and user value.
- Treat candidates marked
already_satisfiedby the planner as audit history only; select the highest-valueopencandidate so repeated cycles keep moving to the next necessary improvement. - Prefer high-value, low-risk, reversible improvements over broad rewrites.
Select and implement
- Choose one candidate whose expected score can exceed 95 after implementation.
- Make small, reviewable diffs. Do not add dependencies unless the user explicitly asked or evidence shows they are necessary.
- Preserve host-neutral core boundaries: shared behavior in Go contract/domain/application/ports, host-specific details in Codex/Claude/Omo/omp/opencode adapters.
Feedback and retry
- Convert every failing test, QA issue, or design concern into a short Reflexion-style lesson.
- Apply the lesson and retry until the goal scores exceed 95 or a hard blocker remains.
Verify
- Run targeted tests for the changed behavior.
- Run
go test ./... -count=1, relevant golden tests, risk-tier QA checks (go vet ./.../go test -race ./... -count=1when Go risk is present), skill validation, and build checks as applicable. - Finish with
./bin/issueops self-verify --seed=100 --target-score=95 --llm-eval=false --jsonwhen practical; add--collect-all-steps --progress=jsonlwhen every deterministic step must run after an earlier failure.
Capture
- Store durable lessons only when reusable:
issueops state,.issueops/; preferself-augment --save-statefor the selected candidate curriculum andself-augment lessonfor reusable failure/QA/design lessons. - Final report includes selected candidate, implemented diff, goal scores, verification evidence, and remaining risk.
- Store durable lessons only when reusable:
Reference
For the detailed loop contract and research rationale, read SELF_AUGMENTATION.md in this skill directory. The self-verification candidate catalog in skills/self-verify/CANDIDATES.md is the source of truth.