{"data":{"slug":"discovered-65bcc1097b5f8607ea00f76306919289053969737f5ccb39","title":"Auto Dev: Autonomous Development Workflow","summary":"Implement code changes for bugs, features, or issues by understanding the problem, planning changes, and running an iterative verify-fix loop until passing. The user receives a branch setup recommendation, issue analysis, and verification strategy before proceeding.","url":"https:\/\/skillshunter.net\/skills\/discovered-65bcc1097b5f8607ea00f76306919289053969737f5ccb39","json_url":"https:\/\/skillshunter.net\/api\/public\/v1\/skills\/discovered-65bcc1097b5f8607ea00f76306919289053969737f5ccb39","markdown_url":"https:\/\/skillshunter.net\/skills\/discovered-65bcc1097b5f8607ea00f76306919289053969737f5ccb39.md","download_url":"https:\/\/skillshunter.net\/skills\/discovered-65bcc1097b5f8607ea00f76306919289053969737f5ccb39\/download","category":{"slug":"software-development","name":"Software & Development"},"editor_note":"Create a working branch using `git checkout -b <prefix>\/<short-description>` before making any changes. Use `fix\/`, `feat\/`, `refactor\/`, or `chore\/` as the prefix based on the issue type. Branch names should be lowercase with hyphens and under 60 characters. If there's an issue key, include it in the branch name (e.g., `fix\/ISSUE-123-timeout-handling`).","instructions":"---\nname: auto-dev\ndescription: Autonomous development workflow - understand an issue, plan changes, implement with change notes, and run an iterative verify-fix loop until passing. Use this skill when the user mentions auto dev, fix a bug, implement a feature, develop a fix, autonomous development, work on an issue, debug this, make it work, implement this change, help me fix this test, or wants an end-to-end code-change workflow. Do NOT trigger for code explanation or review requests where no code changes are needed.\nallowed-tools:\n  - Read\n  - Write\n  - Edit\n  - Glob\n  - Grep\n  - Bash\n  - Agent\n  - AskUserQuestion\n  - Skill\n---\n\n# AutoDev: Autonomous Development Workflow\n\nYou are an autonomous developer. Understand the issue, plan minimal changes, implement them, then iterate in a verify-fix loop until everything passes. You drive the implementation; the human stays in the loop only for verification strategy and when you're stuck.\n\n```\nUnderstand & Plan  \u2192  Branch  \u2192  Implement & Verify-Fix Loop \u21bb  (per sub-problem)\n```\n\n---\n\n## Phase 1: Understand & Plan\n\nBuild a clear mental model and plan before writing any code.\n\n### Gather Context\n\n1. **Identify the issue** \u2014 the user may provide an issue tracker key, a URL, or a verbal description. Use the appropriate skill\/tool to fetch details.\n2. **Extract essentials**: type (bug\/feature), what's broken or needed, acceptance criteria, affected components.\n3. **Explore the codebase** \u2014 use Glob\/Grep to locate relevant files, read the implementation, trace execution paths, find existing tests.\n\n### Break Down & Plan\n\n1. **Split into sub-problems** \u2014 if the task involves multiple independent changes, break it into sub-problems. Each sub-problem should be a self-contained, verifiable unit of work. Simple tasks may have just one sub-problem.\n2. **Order sub-problems** \u2014 dependencies first, then consumers. Later sub-problems can build on commits from earlier ones.\n3. **For each sub-problem**, identify: affected files, what changes are needed, and how to verify.\n4. **Keep it minimal** \u2014 only change what's necessary.\n\n### Present Analysis\n\nPresent a brief analysis, then wait for user confirmation. Use an available question tool or ask in chat; do not proceed without confirmation:\n\n```\n## Issue Analysis\n\n**Issue**: [type] \u2014 [title\/key]\n**Root Cause \/ Scope**: [what's causing the bug \/ what the feature entails]\n**Sub-problems**:\n  1. [description] \u2014 files: [list] \u2014 verify: [how]\n  2. [description] \u2014 files: [list] \u2014 verify: [how]\n**Approach**: [high-level plan]\n**Risk**: [what could go wrong]\n```\n\n### Determine Verification Strategy\n\nAsk the user:\n> \"How would you like to verify these changes? For example: run unit tests, run integration tests, run E2E tests, build the project, or something else?\"\n\nIf different sub-problems need different verification methods, note that in the plan. The user only needs to confirm once \u2014 you can adapt the verification command per sub-problem.\n\n---\n\n## Phase 2: Branch Setup\n\nCreate a working branch before making any changes:\n\n```bash\ngit checkout -b <prefix>\/<short-description>\n```\n\n- Use `fix\/`, `feat\/`, `refactor\/`, or `chore\/` prefix based on the issue type\n- Keep branch name lowercase with hyphens, under 60 chars\n- If there's an issue key, include it (e.g., `fix\/ISSUE-123-timeout-handling`)\n\nThis isolates your changes from the main branch and makes revert safer.\n\n---\n\n## Phase 3: Implement & Verify-Fix Loop\n\nExecute each sub-problem in order. For each sub-problem:\n\n### Step 1: Implement\n\n1. Make changes according to the plan\n2. Follow existing code patterns and conventions\n3. Run formatting if available (e.g., `make fmt`)\n4. Write the initial entry in `CHANGE_NOTES.md` (see Change Notes below)\n\n### Step 2: Verify-Fix Loop\n\n```\n\u250c\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2510\n\u2502                 VERIFY-FIX LOOP                     \u2502\n\u2502                                                     \u2502\n\u2502  Verify \u2500\u2500Pass\u2500\u2500\u2192 Commit \u2500\u2500\u2192 Next sub-problem \/ Done\u2502\n\u2502    \u2502 Fail                                           \u2502\n\u2502    \u25bc                                                \u2502\n\u2502  Analyze failure (read CHANGE_NOTES.md + errors)    \u2502\n\u2502    \u2502                                                \u2502\n\u2502    \u251c\u2500 within 5 tries \u2500\u2500\u2192 Fix & loop back            \u2502\n\u2502    \u2502                                                \u2502\n\u2502    \u2514\u2500 5 tries exhausted \u2500\u2500\u2192 Revert, switch approach \u2502\n\u2502                              & loop back            \u2502\n\u2514\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2518\n```\n\n**For each iteration:**\n\n1. **Run verification** \u2014 redirect output to avoid flooding context:\n   ```bash\n   <verify-command> > verify.log 2>&1\n   ```\n2. **Check results** \u2014 grep for pass\/fail signals, read only the relevant tail on failure\n3. **If all pass** \u2192 commit and move on (see Commit below)\n4. **If partial pass** (some tests pass, some fail) \u2192 this is progress, not failure. Keep the current approach. Focus fixes on the remaining failures. Record the pass rate in `CHANGE_NOTES.md` (e.g., \"8\/10 tests passing\"). As long as pass rate is improving, do NOT count toward the \"switch approach\" threshold.\n5. **If all fail or no improvement** \u2192 analyze, fix, update `CHANGE_NOTES.md`, loop back. Distinguish between:\n   - **Build\/compile errors** \u2014 usually syntax or type issues with a clear fix. Fix immediately. These do NOT count toward the \"switch approach\" threshold since they indicate implementation mistakes, not a wrong approach.\n   - **Test\/runtime failures** \u2014 the approach itself may be wrong. These count toward the switch threshold.\n\n---\n\n## Change Notes\n\nEach sub-problem gets its own change notes file under `.autodev\/` to avoid race conditions when multiple sub-problems run in parallel (e.g., via subagents). The naming convention is:\n\n```\n.autodev\/\n\u251c\u2500\u2500 sub-1-<short-name>.md\n\u251c\u2500\u2500 sub-2-<short-name>.md\n\u2514\u2500\u2500 ...\n```\n\nAt the start of the task, create the `.autodev\/` directory and add `.autodev\/` to `.gitignore` if not already present.\n\n**Do NOT commit these files.** They are working documents. Do NOT delete them on your own \u2014 only clean up after the user explicitly confirms.\n\n**When to write:**\n- **After initial implementation** \u2014 record what you changed and why\n- **After each failed iteration** \u2014 append what failed, root cause, and what you fixed\n- **When switching approaches** \u2014 append a summary of the failed approach before starting fresh\n\n**Before each fix**, re-read your sub-problem's change notes file to ensure you're not repeating a failed approach. If your sub-problem depends on another, also read that sub-problem's file to understand what changed.\n\n**When the file gets large** (after ~10 approach switches), compress older entries: replace each failed approach's per-iteration details with a one-line summary (e.g., `### Approach 3: increase timeout \u2014 FAILED (3 iterations, root cause: race condition not timeout)`). Keep the last 2-3 approaches in full detail.\n\n**Format** (each file):\n\n```markdown\n# Sub-problem: [description]\n\n### Approach 1: [brief description of the idea]\n\n#### Iteration 1\n- **Changed**: [file:line]: [description]\n- **Result**: fail \u2014 [error summary]\n- **Analysis**: [root cause, what to try next]\n\n#### Iteration 2\n- **Changed**: [file:line]: [description]\n- **Result**: fail \u2014 [error summary]\n- **Analysis**: switching approach \u2014 [why this direction is exhausted]\n\n### Approach 2: [brief description of the new idea]\n\n#### Iteration 1\n...\n\n### Approach N \u2014 PASS \u2713\n- **Changed**: [file:line]: [description]\n- **Result**: pass\n- **Committed**: [short commit hash]\n```\n\n### Parallel Execution\n\nIf sub-problems are independent (no shared files), they can run in parallel via subagents. Each subagent writes to its own change notes file \u2014 no coordination needed. However:\n- **If sub-problems modify the same files** \u2192 run them sequentially. Parallel edits to the same file will conflict.\n- **If sub-problems have dependencies** \u2192 run the dependency first, commit it, then start the dependent one.\n- **Verification** must account for all parallel changes \u2014 run the full test suite after all sub-problems complete, not just per sub-problem tests.\n\n---\n\n## Commit\n\n**When to commit:** Only when verification passes. Never commit broken code.\n\n**What to commit:** All code changes for the current sub-problem in a single commit. Stage specific files \u2014 never `git add .`.\n\n**After commit:** The commit becomes the new \"last known good state\" for subsequent sub-problems.\n\n---\n\n## Revert\n\nWhen switching approaches (after 3\u20135 consecutive failures on the same idea), revert to the last known good state:\n\n- **For existing files (modified):** `git checkout -- <files>` to discard uncommitted changes.\n- **For new files (created by your approach):** `rm <files>` to delete them \u2014 `git checkout` won't remove untracked files.\n- **Never use `git reset --hard` or `git clean -fd`** \u2014 they may destroy unrelated work. Only revert the specific files you changed.\n\nAfter reverting, verify you're back to a clean state with `git status`, then start the new approach.\n\n---\n\n## Loop Guardrails\n\n- **Do NOT stop on your own.** Keep iterating autonomously until tests pass. The user may be away and expects you to keep working.\n- **Same approach: 3\u20135 consecutive failures** \u2192 the current approach is not working. Revert to the last known good state and try a fundamentally different approach.\n  - **3 failures** if the same error keeps repeating \u2014 you're clearly stuck in a loop.\n  - **5 failures** if errors are different each time \u2014 you're making progress but the approach may still be viable. Check if test pass rate is improving before switching.\n- **Switching approaches: up to 50 times per sub-problem** \u2192 you can switch approaches up to 50 times on a single sub-problem before pausing to ask the user. This means up to **250 iterations per sub-problem** (5 per approach \u00d7 50 approaches). Each sub-problem gets its own independent counter.\n- **Progress summary**: log a brief progress note in `CHANGE_NOTES.md` each time you switch approaches.\n- If a failure is **unrelated to your changes** (pre-existing failure, infra issue) \u2192 note it and continue working around it.\n\n---\n\n## Exit Checklist\n\nBefore declaring a sub-problem done:\n- [ ] Code compiles\/builds without errors\n- [ ] Formatting passes\n- [ ] Relevant tests pass\n- [ ] No unintended side effects\n- [ ] The change addresses the original issue\n- [ ] Changes are committed\n\nAfter all sub-problems are done:\n- [ ] Ask the user whether to clean up `.autodev\/` directory \u2014 do NOT delete on your own\n\n---\n\n## Key Principles\n\n1. **Understand before coding** \u2014 Phase 1 prevents wrong-direction work\n2. **Minimal changes** \u2014 only change what's needed for this specific issue\n3. **Change notes are your memory** \u2014 persist in file, not context; re-read before each fix\n4. **Iterate until verified** \u2014 the loop ensures code works before you stop\n5. **Don't stop on your own** \u2014 keep iterating until tests pass or guardrails trigger\n","use_cases":["Fix a bug in the codebase","Implement a new feature","Develop a fix for an issue","Debug an existing problem","Run an end-to-end code-change workflow"],"limitations":[],"compatibility":[],"setup_tip":null,"sample_input":null,"sample_output":null,"source_url":"https:\/\/github.com\/yanmxa\/skills\/blob\/70106f3e2d6d370f1b285da422235e15663bafac\/skills\/dev\/auto-dev\/SKILL.md","source_commit":"70106f3e2d6d370f1b285da422235e15663bafac","license":null,"version":null,"listing_approved_at":"2026-12-02","created_at":"2026-11-30T08:49:36.000000Z","updated_at":"2026-12-02T09:15:00.000000Z","seo_title":"Auto Dev: Autonomous Development Workflow","seo_description":"Implement code changes for bugs, features, or issues with an autonomous development workflow. Understand the issue, plan changes, and run an iterative verify-fix loop to","seo_keywords":["autonomous development","auto dev","bug fix","feature implementation","code change workflow","verify-fix loop","git branch setup","software development"]}}