mracal/vibe-engineering/gap-closure-loop
Claude Code and agent skill by mracal/vibe-engineering
- community
Checking that the SKILL.md file is still in the repository.
Closes production readiness gaps from a gap analysis document. Autonomously loops dependency analysis, parallel agent dispatch, test gate, re-audit, and repeats until target dimensions reach target score.
Install
npx vskill@latest install mracal/vibe-engineering/gap-closure-loopSKILL.md
The same SKILL.md was published earlier as mracal/vibe-engineering/gap-closure-loop.
vibe-gap-closure-loop
Autonomous loop that closes gap analysis findings to a target score. Dispatches parallel agents per work stream, runs test gates, re-audits, and repeats. Designed for YOLO mode — no confirmation between phases.
When to Use This Skill
- After running
vibe-gap-analysisand receiving a gap report - When you have 10+ findings to close systematically
- When findings span multiple system areas that can be parallelized
- Production readiness sprints
When NOT to Use This Skill
- Fewer than 5 findings (just fix them directly)
- Findings that require architectural redesign (needs
vibe-research-before-designfirst) - When you don't have a gap analysis document yet (run
vibe-gap-analysisfirst)
Arguments
dimensions: Which dimensions to close (default:1-12)--target: Target score per dimension (default:95)--gap-file: Path to gap analysis (default: latestgap-analysis-*.md)
Loop Flow
Step 1: Dependency Analysis
Read the gap analysis document. For each finding in target dimensions, build a dependency graph:
Dependency rules:
- Security findings block everything — fix first
- Schema/migration changes block feature work that touches those tables
- A finding that says "Add X to Y" depends on Y existing
- Test infrastructure changes block test-dependent findings
- Frontend findings are independent of backend findings (parallel)
- Trivial fixes (< 30min) have no dependencies — batch them
Output: Ordered list of work streams with dependencies between streams.
Step 2: Group into Work Streams
Group findings into max 5 parallel streams per iteration:
- 3-7 related findings per stream (same system area or dependency chain)
- No dependencies between streams in the same iteration
- Sized for one agent session (< 2 hours of work)
Example grouping:
Defer any stream that depends on another stream's output to the next iteration.
Step 3: Dispatch Execution Agents
For EACH stream, dispatch a subagent (model: sonnet) using the Agent tool:
All agents dispatch in parallel. Wait for all to complete.
Step 4: Test Gate
After all agents return:
- Run the full test suite
- If failures: fix directly (likely merge conflicts between streams)
- Run linters
- Commit any remaining fixes
Step 5: Iteration Summary
Write docs/plans/closure/iteration-N-summary.md with:
- Table of streams, findings closed, commit hashes
- Cumulative progress (running total across iterations)
- Remaining open findings
- Test results
Step 6: Check Target
Compare progress against target:
- If all target dimensions have their findings closed: DONE
- If not: extract remaining open findings, go back to Step 1
Iteration Limits
- Max iterations: 5 per invocation (prevent infinite loops)
- Max agents per iteration: 5 streams (prevent resource explosion)
- Max findings per stream: 7 (keep agent context focused)
- Escalation: If a finding fails to close after 2 iterations, flag for human review
Conflict Resolution
When two agents edit the same file:
- The second agent's commit may have conflicts
- Resolve by reading both changes and merging manually
- Run tests after resolution
To minimize conflicts, step 2 (grouping) should avoid placing findings that touch the same files in different streams.
Output
Each iteration produces:
docs/plans/closure/iteration-N-summary.md— what closed, what remains- Git commits per stream with finding IDs in message
Final output: comprehensive closure status document with all findings accounted for.
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/gap-closure-loop/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/mracal/vibe-engineering/gap-closure-loop)