بنقرة واحدة
auto-fix
Automated error diagnosis and fix loop — catches failures, diagnoses root cause, applies fix, verifies
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
القائمة
Automated error diagnosis and fix loop — catches failures, diagnoses root cause, applies fix, verifies
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
Spawn recursive agent armies — swarms that spawn swarms, sandbox armadas, full lifecycle assault
Full rebuild — tear down broken service, scaffold fresh, migrate data, deploy, verify
Dynamic swarm orchestration — decompose any task into parallel agent waves, execute, merge results
One-command deployment — detect stack, build, ship, verify, report URL
Production incident response — triage, diagnose, fix, restore, document
Generate complete runnable projects from a description — API, CLI, MCP server, full-stack app
استنادا إلى تصنيف SOC المهني
| name | auto-fix |
| description | Automated error diagnosis and fix loop — catches failures, diagnoses root cause, applies fix, verifies |
| level | 4 |
| triggers | ["autofix","fix-loop"] |
| user-invocable | true |
| pipeline | ["debugger (diagnose) → executor (fix) → verifier (confirm)"] |
When a build, test, or tool execution fails, automatically diagnose the root cause, apply a targeted fix, and verify the fix works — without manual intervention. This is the "error hook" turned into a full workflow.
Receive error context:
- Error message (full stderr/stdout)
- Command that failed
- File(s) involved
- Stack trace (if available)
- Recent changes (git diff)
Spawn debugger agent with error context:
tracer for deeper analysisOutput: Root cause + proposed fix (as a diff)
git stash (if not already stashed)If 3 attempts fail:
git stash pop to restore original state)architect agent with full diagnostic context:
| Error Type | Diagnosis Strategy | Typical Fix |
|---|---|---|
| Import/Module not found | Check package.json/requirements.txt, check file paths | Install dep or fix import path |
| Type error | Read type definitions, check recent signature changes | Fix type annotation or cast |
| Syntax error | Parse error location, check for typos | Fix syntax at exact line |
| Test assertion failure | Read test + implementation, check expected vs actual | Fix implementation or update test |
| Runtime error | Read stack trace, trace data flow | Fix logic at root cause |
| Config error | Validate config schema, check env vars | Fix config value or schema |
| Permission error | Check file permissions, check auth config | Fix permissions or auth |
Error: ModuleNotFoundError: No module named 'requests'
Diagnosis: Missing dependency, not in requirements.txt
Fix: pip install requests && echo "requests" >> requirements.txt
Verify: Original command passes ✓
Attempt 1: Fix type error at line 42 → new error at line 58
Attempt 2: Fix cascading type error at line 58 → original error returns (wrong fix)
Attempt 3: Try different approach at line 42 → still fails
→ Circuit breaker: Revert all, escalate to architect
→ Architect: "The real issue is the interface changed in commit abc123, need to update 3 consumers"
Error: Unused import warning
Fix: Remove unused import AND refactor the whole file AND add type hints
→ WRONG. Just remove the unused import.