ace/cli/skills/kayba-pipeline/stage-7-fixer/SKILL.md
Implement the approved fixes from the action plan and log all changes. Trigger when the user says "run stage 7", "implement fixes", "apply action plan", or when invoked by the kayba-pipeline orchestrator. Requires eval/action_plan.md to exist.
npx skillsauth add kayba-ai/agentic-context-engine kayba-stage-7-fixerInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Implement every non-discarded fix from the approved action plan.
eval/action_plan.md -- the approved action plan from Stage 5 (possibly modified during HITL in Stage 6)eval/stage6_decision.md -- if it exists, the HITL decision record from Stage 6 (contains user modifications)eval/baseline_metrics.json -- the pre-fix baseline metrics from Stage 3 (for reference in changes log)Read the action plan and stage6 decision (if present) before starting.
Before making ANY changes to source files:
git status to confirm the working tree stategit stash push -m "pre-pipeline-fixes-$(date +%Y%m%d-%H%M%S)"
If there are no uncommitted changes to stash, create a lightweight tag instead:
git tag pre-pipeline-fixes-$(date +%Y%m%d-%H%M%S)
eval/changes_log.md under a "Rollback" section so the user can restore if neededThis ensures every fix is reversible with a single git stash pop or git checkout.
If eval/stage6_decision.md exists:
HITL_MODIFIED_IDS -- the insight/skill IDs that the user changed[HITL-MODIFIED] in the changes log so reviewers know which fixes reflect user judgment vs. the original pipeline outputIf the file does not exist, assume no HITL modifications were made.
Before implementing any fixes, scan the action plan for potential conflicts:
file_path -> [fix IDs that touch it]eval/changes_log.md under a "Conflict Notes" sectionWork through the action plan in priority order. For each non-discarded fix:
For code fixes:
For prompt fixes:
Append to eval/changes_log.md:
## Fix N: [skill/insight name] [HITL-MODIFIED if applicable]
**Type:** code fix | prompt fix
**Verdict from action plan:** [quote the recommendation]
**Files modified:**
- `path/to/file.py` -- [what changed and why]
**Before:**
\```
[relevant snippet before change]
\```
**After:**
\```
[relevant snippet after change]
\```
**Linked metrics:** [which metrics this should improve]
**Conflict notes:** [if this fix overlapped with another, note it here; otherwise "none"]
If a fix requires changes you are unsure about:
NEEDS REVIEW in the changes log with:
Do NOT re-run compute_baselines.py as part of this stage. The baseline metrics were computed against the original traces, which reflect old agent behavior. Re-running against the same traces will show zero movement for prompt-only fixes and is misleading.
Instead, after all fixes are applied, include a Next Steps section in the changes log that tells the user:
python eval/compute_baselines.py --traces-dir <new_traces_folder> --output eval/post_fix_metrics.json
eval/post_fix_metrics.json against eval/baseline_metrics.json to measure actual improvementeval/changes_log.md as the primary outputeval/compute_baselines.py -- baselines should only be re-computed after new traces are generated with the updated agentWrite eval/changes_log.md:
# Changes Log
## Rollback
- **Safety ref:** `git stash` ref or tag name
- **To undo all fixes:** `git stash pop` or `git checkout <tag>`
## Conflict Notes
- [any file/region conflicts detected, or "No conflicts detected"]
## Summary
- Code fixes applied: N
- Prompt fixes applied: M
- Skipped / needs review: K
- HITL-modified items: J
---
## Fix 1: [skill name]
...
## Fix 2: [skill name]
...
---
## Needs Review
[Collected list of all NEEDS REVIEW items with context, or "None -- all fixes applied successfully"]
For each NEEDS REVIEW item:
- **Fix N: [skill name]**
- **What is unclear:** [specific ambiguity]
- **What would resolve it:** [information needed]
- **Files examined:** [paths and lines]
---
## Next Steps
To measure actual improvement:
1. Generate new traces by running the agent with the updated prompts/code
2. Re-run baselines:
\```bash
python eval/compute_baselines.py --traces-dir <new_traces_folder> --output eval/post_fix_metrics.json
\```
3. Compare `eval/post_fix_metrics.json` against `eval/baseline_metrics.json` to measure metric deltas
eval/changes_log.md -- full log of all changes, conflicts, NEEDS REVIEW items, and next stepsdevelopment
# ACE — Learn from Traces This skill ships `learn_from_traces.py`, a script that reads OpenClaw session transcripts, feeds them through the ACE learning pipeline, and writes an updated skillbook to disk. ## Usage ```bash python learn_from_traces.py [OPTIONS] [FILES...] ``` The script auto-discovers new sessions from `~/.openclaw/agents/<agent>/sessions/` and only processes files that haven't been processed before. Processed filenames are tracked in `ace_processed.txt`. ## Options | Flag |
testing
Human-In-The-Loop gate that presents the action plan with full context, collects an informed approval/modification/rejection decision, and records the outcome. Trigger when the user says "run stage 6", "HITL review", "approve action plan", or when invoked by the kayba-pipeline orchestrator. Requires eval/action_plan.md and eval/baseline_metrics.md to exist.
development
Triage each insight into discard/code-fix/prompt-fix and produce a prioritized action plan with specific recommendations. Trigger when the user says "run stage 5", "make action plan", "triage skills", or when invoked by the kayba-pipeline orchestrator. Requires eval outputs from stages 1-4.
development
Organize computed metrics into a tiered evaluation rubric with leading, lagging, and quality indicators. Trigger when the user says "run stage 4", "build rubric", "tier metrics", or when invoked by the kayba-pipeline orchestrator. Requires eval/baseline_metrics.json and eval/compute_baselines.py to exist.