|
| 1 | +# Hamster (Go ham!) Run Task Workflow |
| 2 | + |
| 3 | +This command initiates the HAM (Hamster Automated Management) workflow for task execution. |
| 4 | + |
| 5 | +## Usage |
| 6 | + |
| 7 | +``` |
| 8 | +/go:ham [task-id] |
| 9 | +``` |
| 10 | + |
| 11 | +- `task-id` (optional): Specific task identifier to work on (e.g., "1", "1.2", "2.3.1") |
| 12 | + - If provided, start working on that specific task immediately |
| 13 | + - If omitted, automatically identify the next available task |
| 14 | + |
| 15 | +## Process |
| 16 | + |
| 17 | +When the user invokes this command, follow these steps: |
| 18 | + |
| 19 | +### 1. Task Selection |
| 20 | + |
| 21 | +#### If task-id is provided ($ARGUMENTS is not empty): |
| 22 | +```bash |
| 23 | +tm show $ARGUMENTS |
| 24 | +``` |
| 25 | +Start working on the specified task immediately, skipping to step 3. |
| 26 | + |
| 27 | +#### If no task-id is provided ($ARGUMENTS is empty): |
| 28 | +```bash |
| 29 | +tm list |
| 30 | +``` |
| 31 | +Display all tasks with their current status to provide context. |
| 32 | + |
| 33 | +### 2. Identify Next Task (only if no task-id provided) |
| 34 | +Determine which task should be worked on next based on: |
| 35 | +- Dependencies |
| 36 | +- Priority |
| 37 | +- Current status (pending tasks only) |
| 38 | + |
| 39 | +### 3. Show Task Details (only if task wasn't specified in step 1) |
| 40 | +```bash |
| 41 | +tm show <task-id> |
| 42 | +``` |
| 43 | +Display the full details of the identified task including: |
| 44 | +- Title and description |
| 45 | +- Dependencies |
| 46 | +- Test strategy |
| 47 | +- Subtasks (if any) |
| 48 | + |
| 49 | +### 4. Kickoff Workflow |
| 50 | + |
| 51 | +Based on the task type, follow the appropriate workflow: |
| 52 | + |
| 53 | +#### For Main Tasks (e.g., "1", "2", "3") |
| 54 | +- Review the task's subtasks |
| 55 | +- If no subtasks exist, suggest expanding the task first |
| 56 | +- Identify the first pending subtask |
| 57 | +- Begin implementation following the subtask's requirements |
| 58 | + |
| 59 | +#### For Subtasks (e.g., "1.1", "2.3") |
| 60 | +- Mark the subtask as in-progress: |
| 61 | + ```bash |
| 62 | + tm set-status --id=<subtask-id> --status=in-progress |
| 63 | + ``` |
| 64 | +- Review the task details and requirements |
| 65 | +- Check for related code files or dependencies |
| 66 | +- Create an implementation plan |
| 67 | +- Begin implementation following project conventions |
| 68 | + |
| 69 | +### 5. Implementation Guidelines |
| 70 | + |
| 71 | +Follow these principles during implementation: |
| 72 | + |
| 73 | +1. **Understand First**: Read related files and understand the current architecture |
| 74 | +2. **Plan**: Create a mental model or brief plan before coding |
| 75 | +3. **Follow Conventions**: Adhere to project structure and coding standards |
| 76 | +4. **Test As You Go**: Validate changes incrementally |
| 77 | +5. **Stay Focused**: Complete the current subtask before moving to the next |
| 78 | + |
| 79 | +### 6. Task Completion |
| 80 | + |
| 81 | +When the subtask is complete: |
| 82 | +```bash |
| 83 | +tm set-status --id=<subtask-id> --status=done |
| 84 | +``` |
| 85 | + |
| 86 | +Then automatically check for the next available task by repeating from step 2. |
| 87 | + |
| 88 | +## Example Flows |
| 89 | + |
| 90 | +### With Specific Task ID |
| 91 | +``` |
| 92 | +User: "/go:ham 1.2" |
| 93 | +
|
| 94 | +1. Claude runs: tm show 1.2 |
| 95 | + → Displays full task details |
| 96 | +2. Claude analyzes the task and creates an implementation plan |
| 97 | +3. Claude marks task in-progress: tm set-status --id=1.2 --status=in-progress |
| 98 | +4. Claude begins implementation following the task requirements |
| 99 | +5. Upon completion, Claude runs: tm set-status --id=1.2 --status=done |
| 100 | +6. Claude automatically identifies next task with tm list |
| 101 | +``` |
| 102 | + |
| 103 | +### Without Specific Task ID (Auto-discovery) |
| 104 | +``` |
| 105 | +User: "/go:ham" |
| 106 | +
|
| 107 | +1. Claude runs: tm list |
| 108 | +2. Claude identifies next available task (e.g., 1.2) |
| 109 | +3. Claude runs: tm show 1.2 |
| 110 | + → Displays full task details |
| 111 | +4. Claude analyzes the task and creates an implementation plan |
| 112 | +5. Claude marks task in-progress: tm set-status --id=1.2 --status=in-progress |
| 113 | +6. Claude begins implementation following the task requirements |
| 114 | +7. Upon completion, Claude runs: tm set-status --id=1.2 --status=done |
| 115 | +8. Claude automatically identifies next task with tm list |
| 116 | +``` |
| 117 | + |
| 118 | +## Notes |
| 119 | + |
| 120 | +- Always verify task dependencies are complete before starting |
| 121 | +- If a task is blocked, mark it as such and move to the next available task |
| 122 | +- Keep the user informed of progress at each major step |
| 123 | +- Ask for clarification if task requirements are unclear |
| 124 | +- Follow the project's CLAUDE.md and .cursor/rules/* guidelines at all times |
| 125 | +- Unlike the usual Taskmaster process, do not bother using update-task nor update-subtask as they do not work with Hamster tasks yet. |
| 126 | + |
| 127 | +- Use only `tm list`, `tm show <sub/task id>` and `tm set status` - other commands don't yet work with it. |
| 128 | +- Do not use the MCP tools when connected with Hamster briefs - that is not yet up to date. |
| 129 | +- Use `.cursor/rules/git_workflow.mdc` as a guide for the workflow |
| 130 | +- When starting a task, mark it as in-progress. You can mark multiple task statuses at once with comma separation (i.e. `tm set-status -i 1,1.1 -s in-progress`) |
| 131 | +- Read the task, then if it has subtasks, begin implementing the subtasks one at a time. |
| 132 | +- When the subtask is done, run lint and typecheck, mark the task as done if it passes, and commit. |
| 133 | +- Continue until all subtasks are done, then run a final lint and typecheck (`npm lint` and `npm typecheck`) and create a PR using `gh` cli for that Task. |
| 134 | +- Keep committing to the same PR as long as the scope is maintained. An entire task list (brief) might fit into a single PR but not if it ends up being huge. It is preferred for everything to land in one PR if it is possible, otherwise commit to different PRs that build on top of the previous ones. Confirm with the human when doing this. |
| 135 | +- When the parent task is completed, ensure you mark is as done. |
| 136 | +- When the first task is done, repeat this process for all tasks until all tasks are done. |
| 137 | +- If you run into an issue where the JWT seems expired or commands don't work, ensure you use `tm auth refresh` to refresh the token and if that does not work, use `tm context <brief url>` to reconnect the context. If you do not have the brief url, ask the user for it (perhaps use it at the beginning) |
| 138 | + |
| 139 | +You're a fast hamster. Go go go. |
0 commit comments