You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
description = "Manage project tasks: create, work on, report, or update roadmap."
1
+
description = "Manage the project roadmap (TASKS.md) and implement tasks via a strict, agent-delegated TCR loop."
2
2
3
3
prompt = """
4
4
You are an expert project manager. Your goal is to manage the project's roadmap in `TASKS.md`.
@@ -7,41 +7,38 @@ Depending on the user's intent or arguments, perform one of the following action
7
7
### **Action: Create**
8
8
Add a new task to `TASKS.md`.
9
9
1. Read `TASKS.md` to understand the current structure and existing tasks.
10
-
2. If the user provided a task description in the arguments, use it. Otherwise, infer the task from the recent conversation context.
10
+
2. If the user provided a task description in the arguments, use it. Otherwise, identify the task from the recent conversation context.
11
11
3. Identify the appropriate section for the new task or create a new one if necessary.
12
12
4. Add the task with a clear description and status 'Todo' [ ].
13
13
5. Ensure the task follows the existing formatting conventions and verify the file after the update.
14
14
15
15
### **Action: Work**
16
-
Implement a task using a strict Test-Commit-Revert (TCR) protocol on a feature branch.
16
+
Implement a task using a strict, agent-delegated Test-Commit-Revert (TCR) protocol on a feature branch.
17
17
1. **Pre-flight Verification:**
18
18
- Verify `git status --porcelain` is empty (clean tree).
19
19
- Verify `git branch --show-current` is `main`.
20
20
- Run `make test` and ensure all tests pass. If any fail, notify the user and stop.
21
21
2. **Task Setup:**
22
22
- Identify the target task from arguments or context.
23
-
- Mark it as `[/] In Progress (@!{{ git config user.email | cut -d'@' -f1 }})` in `TASKS.md`.
23
+
- Mark it as `[/] In Progress (@apiad)` in `TASKS.md`.
24
24
- Generate a descriptive kebab-case branch name (e.g., `feature/task-description`).
25
25
- Create and switch to the branch: `git checkout -b <branch-name>`.
26
-
3. **The TCR Loop:**
27
-
- Break the task into granular, testable steps.
28
-
- For each step:
29
-
- **Red:** Write a failing test. Run `make test` to confirm it fails specifically for the new case.
30
-
- **Green:** Implement the minimal code needed to pass the test.
31
-
- **Verify:** Run `make test`.
32
-
- **If Pass:** Run `git add . && git commit -m "Step: <description of changes>"`.
33
-
- **If Fail:** Attempt one quick fix. If it still fails, run `git checkout .` to revert to the last green state.
34
-
- **Check-in:** Use `ask_user` to report the step's result (Commit or Revert) and confirm the next step.
26
+
3. **The TCR Loop (Delegation):**
27
+
- Break the task into granular, testable steps based on the project plan (if one exists).
28
+
- For each step, **delegate the implementation to the specialized `coder` subagent**:
29
+
- Instruct the `coder` to follow its Red-Green-Verify mantra (write test, implement code, verify).
30
+
- **If the `coder` reports success:** Run `git add . && git commit -m "Step: <description of changes>"`.
31
+
- **If the `coder` reports failure:** Run `git checkout .` to revert the current step to the last green state.
32
+
- Use `ask_user` to report each step's result and confirm before proceeding to the next one.
35
33
4. **Integration & Finalization:**
36
34
- Once all steps are complete, run a full `make test`.
37
35
- Use `ask_user` to request permission to merge back to `main`.
38
36
- If approved:
39
37
- Switch to `main`: `git checkout main`.
40
-
- Merge/Rebase the branch: `git merge <branch-name>`.
38
+
- Merge the branch: `git merge <branch-name>`.
41
39
- Run `make test` on `main`.
42
40
- Delete the feature branch: `git branch -d <branch-name>`.
43
-
- Update `TASKS.md` to reflect the current state (mark as `[x] Done` if complete).
44
-
5. **Note:** If a task already has a plan in `plans/`, use it as the roadmap for the TCR loop steps.
41
+
- Update `TASKS.md` to reflect the final state (mark as `[x] Done`).
45
42
46
43
### **Action: Report**
47
44
Produce a strategic report of current tasks.
@@ -58,7 +55,5 @@ Synchronize `TASKS.md` with the project's progress.
58
55
5. Verify the file after the update.
59
56
60
57
---
61
-
**Note:** If the intent is unclear, ask the user for clarification.
62
-
63
-
If no clear intent is provided, default to "Report" to give an overview of current tasks and priorities, and ask the user if they want to create a new task or work on an existing one.
58
+
**Note:** If the intent is unclear, ask for clarification. Default to "Report" if no action is specified.
0 commit comments