fix

Solid

Plan-aware auto-fix loop after coding. Runs tests, lint, format, and graph checks. Updates plan task status. Use after execute/tdd.

Code & Development 22 stars 5 forks Updated 6 days ago MIT

Install

View on GitHub

Quality Score: 84/100

Stars 20%
45
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
80
License 10%
100
Description 5%
100

Skill Content

# /supergraph:fix Plan-aware auto-fix loop. Ensure tests pass, lint clean, format applied, graph risks handled. ## Usage `/supergraph:fix` | `/supergraph:fix plan auth-login` | `/supergraph:fix plan auth-login task 2` ## Steps ### 0. Announce "🔧 /supergraph:fix — starting auto-fix loop..." ### 1. Select Plan Context 0 plans → skip | 1 → use | >1 → ask | `plan <slug>` → match. Read `## Environment Context`, fix scoped task or all in-progress/stuck tasks. ### 2. Get Commands Read from plan `## Environment Context` or `.supergraph-env` (set by `/supergraph:scan`). Missing → STOP, run scan first. Missing command → skip phase, report as `SKIP`. ### 3. Get Changed Files `git diff --name-only && git diff --cached --name-only`. Reindex `CBM_PROJECT` if stale (`index_status`→`index_repository`, see `references/codebase-memory-contract.md`) via `codebase-memory-mcp`. ### 3b. Serena pre-loop (optional): See `serena/SKILL.md:Setup`. If scan not run, call `initial_instructions`; `get_diagnostics_for_file` per changed file to catch type errors early. Skip if `SERENA_ACTIVE=false` or unavailable. ### 4. Auto-Fix Loop (max 3 iterations) At iteration start: "🔧 Fix iteration N/3 — running tests..." | Phase | Action | |---|---| | Reproduce | Smallest failing cmd + expected vs actual | | Tests | Targeted tests else `$TEST_CMD`; fix source. **Dedup:** if same `HEAD_SHA` and last `PASS <120s` and `git diff` unchanged, reuse evidence; else rerun fresh (respects `verify` freshness gu...

Details

Author
datit309
Repository
datit309/supergraph
Created
4 months ago
Last Updated
6 days ago
Language
Shell
License
MIT

Similar Skills

Semantically similar based on skill content — not just same category