Structured workflow to transform vague todos into implemented features using git worktrees and VS Code handoff. Supports task isolation, resumption, and clean commit history.
Executes structured workflow to transform vague todos into implemented features using git worktrees and VS Code handoff.
/plugin marketplace add rafaelkamimura/claude-tools/plugin install rafaelkamimura-claude-tools@rafaelkamimura/claude-toolsStructured workflow to transform vague todos into implemented features using git worktrees and VS Code handoff. Supports task isolation, resumption, and clean commit history.
CRITICAL
Check for task resume: If task.md exists in current directory:
task.md and todos/project-description.md in full in parallel**Agent PID:** [Bash(echo $PPID)] in task.mdAdd /todos/worktrees/ to .gitignore: rg -q "/todos/worktrees/" .gitignore || echo -e "\n/todos/worktrees/" >> .gitignore
Read todos/project-description.md in full
# Project: [Name]
[Concise description]
## Features
[List of key features and purpose]
## Tech Stack
[Languages, frameworks, build tools, etc.]
## Structure
[Key directories, entry points, important files]
## Architecture
[How components interact, main modules]
## Commands
- Build: [command]
- Test: [command]
- Lint: [command]
- Dev/Run: [command if applicable]
## Testing
[How to create and run tests]
## Editor
- Open folder: [command]
todos/project-description.mdCheck for orphaned tasks: mkdir -p todos/worktrees todos/done && orphaned_count=0 && for d in todos/worktrees/*/task.md; do [ -f "$d" ] || continue; pid=$(grep "^**Agent PID:" "$d" | cut -d' ' -f3); [ -n "$pid" ] && ps -p "$pid" >/dev/null 2>&1 && continue; orphaned_count=$((orphaned_count + 1)); task_name=$(basename $(dirname "$d")); task_title=$(head -1 "$d" | sed 's/^# //'); echo "$orphaned_count. $task_name: $task_title"; done
[editor-command] /absolute/path/to/todos/worktrees/[task-name]/claude "/todo" in worktree"todos/todos.md in fulltodos/todos.md and commit: git commit -am "Remove todo: [task-title]"git worktree add -b [task-title-slug] todos/worktrees/$(date +%Y-%m-%d-%H-%M-%S)-[task-title-slug]/ HEADcd todos/worktrees/[timestamp]-[task-title-slug]/task.md from template in worktree root:
# [Task Title]
**Status:** Refining
**Agent PID:** [Bash(echo $PPID)]
## Original Todo
[raw todo text from todos/todos.md]
## Description
[what we're building]
*Read [analysis.md](./analysis.md) in full for detailed codebase research and context*
## Implementation Plan
[how we are building it]
- [ ] Code change with location(s) if applicable (src/file.ts:45-93)
- [ ] Automated test: ...
- [ ] User test: ...
## Notes
[Implementation notes]
git add . && git commit -m "[task-title]: Initialization" && git push -u origin [task-title-slug]analysis.mdtask.md with fully refined content and set **Status**: InProgressgit add -A && git commit -m "[task-title]: Refined plan"[editor-command] /absolute/path/to/todos/worktrees/[timestamp]-[task-title-slug]/claude "/todo" in worktree to start implementation"task.md before proceedingtask.mdgit add -A && git commit -m "[text of checkbox]"task.mdIMPLEMENT.todos/project-description.mdtodos/project-description.md**Status**: AwaitingCommit in task.mdgit add -A && git commit -m "Complete implementation"**Status**: Done in task.mdgit mv task.md todos/done/[timestamp]-[task-title-slug].mdgit mv analysis.md todos/done/[timestamp]-[task-title-slug]-analysis.mdgit add -A && git commit -m "Complete"git -C "$(git rev-parse --show-toplevel)" worktree remove todos/worktrees/[timestamp]-[task-title-slug]