rbin-task-flow 1.19.4 → 1.23.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.claude/skills/rbin-coding-standards/SKILL.md +29 -0
- package/.claude/skills/rbin-coding-standards/reference.md +42 -0
- package/.claude/skills/rbin-git/SKILL.md +39 -0
- package/.claude/skills/task-flow-audit/SKILL.md +15 -0
- package/.claude/skills/task-flow-check/SKILL.md +15 -0
- package/.claude/skills/task-flow-estimate/SKILL.md +15 -0
- package/.claude/skills/task-flow-generate-flow/SKILL.md +15 -0
- package/.claude/skills/task-flow-improve-changes/SKILL.md +15 -0
- package/.claude/skills/task-flow-refactor/SKILL.md +14 -0
- package/.claude/skills/task-flow-report/SKILL.md +15 -0
- package/.claude/skills/task-flow-review/SKILL.md +14 -0
- package/.claude/skills/task-flow-run/SKILL.md +28 -0
- package/.claude/skills/task-flow-run/workflow.md +59 -0
- package/.claude/skills/task-flow-status/SKILL.md +13 -0
- package/.claude/skills/task-flow-sync/SKILL.md +30 -0
- package/.claude/skills/task-flow-sync/workflow.md +57 -0
- package/.claude/skills/task-flow-think/SKILL.md +17 -0
- package/.codex/config.toml +10 -0
- package/.cursor/rules/code_comments.mdc +4 -4
- package/.cursor/rules/coding_standards.mdc +57 -810
- package/.cursor/rules/commit_practices.mdc +5 -138
- package/.cursor/rules/cursor_rules.mdc +4 -3
- package/.cursor/rules/git_control.mdc +5 -86
- package/.cursor/rules/graphify-task-flow.mdc +31 -0
- package/.cursor/rules/rbin-git-policy.mdc +47 -0
- package/.cursor/rules/self_improve.mdc +3 -3
- package/.cursor/rules/task-flow-cursor.mdc +51 -0
- package/.cursor/rules/task-flow-sync.mdc +46 -0
- package/.cursor/rules/task_analysis.mdc +31 -179
- package/.cursor/rules/task_audit.mdc +6 -5
- package/.cursor/rules/task_check.mdc +2 -3
- package/.cursor/rules/task_estimate.mdc +3 -4
- package/.cursor/rules/task_execution.mdc +26 -138
- package/.cursor/rules/task_generate_flow.mdc +2 -3
- package/.cursor/rules/task_generation.mdc +22 -140
- package/.cursor/rules/task_improve_changes.mdc +3 -4
- package/.cursor/rules/task_refactor.mdc +4 -5
- package/.cursor/rules/task_report.mdc +3 -4
- package/.cursor/rules/task_review.mdc +4 -5
- package/.cursor/rules/task_status.mdc +4 -4
- package/.cursor/rules/task_work.mdc +23 -210
- package/.task-flow/AI-PLATFORMS.md +104 -0
- package/.task-flow/CODEX.md +141 -0
- package/.task-flow/CURSOR.md +94 -0
- package/.task-flow/GRAPHIFY.md +112 -0
- package/.task-flow/OPTIMIZATION-IMPLEMENTATION-TASKS.md +365 -0
- package/.task-flow/OPTIMIZATION-PLAN.md +264 -0
- package/.task-flow/README.md +19 -4
- package/.task-flow/docs/coding-standards-full.md +851 -0
- package/.task-flow/platforms/claude-code.md +352 -0
- package/.task-flow/platforms/codex.md +379 -0
- package/.task-flow/platforms/cursor.md +333 -0
- package/AGENTS.md +69 -31
- package/CLAUDE.md +56 -48
- package/README.md +86 -10
- package/bin/cli.js +41 -16
- package/lib/codex.js +45 -0
- package/lib/cursor.js +41 -0
- package/lib/gitignore.js +101 -0
- package/lib/graphify.js +118 -0
- package/lib/install.js +106 -52
- package/lib/profiles.js +110 -0
- package/lib/skills.js +34 -0
- package/lib/utils.js +38 -2
- package/package.json +6 -2
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
---
|
|
2
|
-
description:
|
|
3
|
-
|
|
4
|
-
alwaysApply: true
|
|
2
|
+
description: Audits uncommitted files only for task-flow improve changes. Use git diff against HEAD scope.
|
|
3
|
+
alwaysApply: false
|
|
5
4
|
---
|
|
6
5
|
|
|
7
6
|
# task-flow: improve changes
|
|
8
7
|
|
|
9
8
|
When the user runs `task-flow: improve changes`:
|
|
10
9
|
|
|
11
|
-
1. **Audit current changes only**: Do the **same as** [task-flow: audit](mdc:.cursor/rules/task_audit.mdc) (
|
|
10
|
+
1. **Audit current changes only**: Do the **same as** [task-flow: audit](mdc:.cursor/rules/task_audit.mdc) (score against the [coding_standards.mdc](mdc:.cursor/rules/coding_standards.mdc) checklist; [full doc](mdc:.task-flow/docs/coding-standards-full.md) only if needed), but **restricted to files that were changed and not yet committed**.
|
|
12
11
|
2. **Do not run project checks here**: Lint fix and build now belong to [task-flow: check](mdc:.cursor/rules/task_check.mdc).
|
|
13
12
|
|
|
14
13
|
---
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
---
|
|
2
|
-
description:
|
|
3
|
-
|
|
4
|
-
alwaysApply: true
|
|
2
|
+
description: Refactors task-flow task code without behavior change. Use for task-flow refactor X.
|
|
3
|
+
alwaysApply: false
|
|
5
4
|
---
|
|
6
5
|
|
|
7
6
|
- **Task Refactor - Improve Code Quality:**
|
|
@@ -88,8 +87,8 @@ alwaysApply: true
|
|
|
88
87
|
|
|
89
88
|
- **Integration:**
|
|
90
89
|
- Follows [code_comments.mdc](mdc:.cursor/rules/code_comments.mdc) - comment removal rules
|
|
91
|
-
- Works with [
|
|
92
|
-
- Respects [
|
|
90
|
+
- Works with [task-flow-cursor.mdc](mdc:.cursor/rules/task-flow-cursor.mdc) / `@task-flow-refactor`
|
|
91
|
+
- Respects [rbin-git-policy.mdc](mdc:.cursor/rules/rbin-git-policy.mdc) — never commit automatically
|
|
93
92
|
|
|
94
93
|
- **Principle:**
|
|
95
94
|
> **Refactor code to improve quality without changing behavior. Remove explanatory comments, keep only separation comments, improve structure and naming. Code must work exactly the same.**
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
---
|
|
2
|
-
description:
|
|
3
|
-
|
|
4
|
-
alwaysApply: true
|
|
2
|
+
description: Generates task-flow implementation report for completed task X. Use for task-flow report.
|
|
3
|
+
alwaysApply: false
|
|
5
4
|
---
|
|
6
5
|
|
|
7
6
|
- **Task Report - Generate Implementation Reports:**
|
|
@@ -104,7 +103,7 @@ alwaysApply: true
|
|
|
104
103
|
- If docs directory doesn't exist: Create it automatically
|
|
105
104
|
|
|
106
105
|
- **Integration:**
|
|
107
|
-
- Works with [
|
|
106
|
+
- Works with [task-flow-cursor.mdc](mdc:.cursor/rules/task-flow-cursor.mdc) / `@task-flow-report`
|
|
108
107
|
- Uses task data from `.task-flow/.internal/tasks.json` and `.task-flow/.internal/status.json`
|
|
109
108
|
- Reports are stored in `.task-flow/docs/` directory
|
|
110
109
|
- Can reference git history for implementation details
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
---
|
|
2
|
-
description:
|
|
3
|
-
|
|
4
|
-
alwaysApply: true
|
|
2
|
+
description: Verifies completed task-flow tasks are actually implemented. Use for task-flow review X or review all.
|
|
3
|
+
alwaysApply: false
|
|
5
4
|
---
|
|
6
5
|
|
|
7
6
|
- **Task Review - Verify Completed Tasks:**
|
|
@@ -81,8 +80,8 @@ alwaysApply: true
|
|
|
81
80
|
```
|
|
82
81
|
|
|
83
82
|
- **Integration:**
|
|
84
|
-
- Works with [
|
|
85
|
-
- Respects [
|
|
83
|
+
- Works with [task-flow-cursor.mdc](mdc:.cursor/rules/task-flow-cursor.mdc) / `@task-flow-review`
|
|
84
|
+
- Respects [rbin-git-policy.mdc](mdc:.cursor/rules/rbin-git-policy.mdc) — never commit automatically
|
|
86
85
|
|
|
87
86
|
- **Principle:**
|
|
88
87
|
> **Review completed tasks to ensure quality. Verify that "done" means actually done, not just marked. Help maintain accurate task status.**
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
|
-
description:
|
|
3
|
-
globs:
|
|
4
|
-
alwaysApply:
|
|
2
|
+
description: Shows RBIN Task Flow progress from tasks.status.md. Use for task-flow status or show task status.
|
|
3
|
+
globs: .task-flow/**
|
|
4
|
+
alwaysApply: false
|
|
5
5
|
---
|
|
6
6
|
|
|
7
7
|
- **Task Status - Show Current Status:**
|
|
@@ -38,7 +38,7 @@ alwaysApply: true
|
|
|
38
38
|
```
|
|
39
39
|
|
|
40
40
|
- **Integration:**
|
|
41
|
-
- Works with [
|
|
41
|
+
- Works with [task-flow-cursor.mdc](mdc:.cursor/rules/task-flow-cursor.mdc) / `@task-flow-status`
|
|
42
42
|
- Status is maintained in tasks.status.md file
|
|
43
43
|
|
|
44
44
|
- **Principle:**
|
|
@@ -1,223 +1,36 @@
|
|
|
1
1
|
---
|
|
2
|
-
description:
|
|
3
|
-
|
|
4
|
-
alwaysApply: true
|
|
2
|
+
description: Executes RBIN Task Flow subtasks — task-flow run, run next X, run task N, work on next subtasks. Prefer @task-flow-run skill; this rule is a short fallback only.
|
|
3
|
+
alwaysApply: false
|
|
5
4
|
---
|
|
6
5
|
|
|
7
|
-
|
|
8
|
-
- **FASTEST FORMAT**: `task-flow: run next X` (e.g., "task-flow: run next 4" → work on next 4 subtasks)
|
|
9
|
-
- **TASK SPECIFIC**: `task-flow: run X` or `task-flow: run X,Y` or `task-flow: run all` (e.g., "task-flow: run 1" → work on all subtasks of task 1)
|
|
10
|
-
- **SIMPLIFIED SYNTAX**: No need to say "task" - just use the number: `task-flow: run 1` instead of `task-flow: run task 1`
|
|
11
|
-
- When user says "task-flow: run next X" or "work on next X subtasks":
|
|
12
|
-
- **INTERPRET**: User wants to work on the next X pending subtasks from RBIN Task Flow
|
|
13
|
-
- **AUTOMATIC**: Read tasks, find next X pending, implement them sequentially
|
|
14
|
-
- **UPDATE**: Mark each subtask as done after completion
|
|
15
|
-
- **NO NEED**: To specify "task flow" explicitly - it's implied
|
|
16
|
-
- When user says "task-flow: run X" or "task-flow: run X,Y" or "task-flow: run all":
|
|
17
|
-
- **INTERPRET**: User wants to work on all pending subtasks of specific task(s) or all tasks
|
|
18
|
-
- **MULTIPLE TASKS**: Comma-separated IDs (e.g., "10,11") processes multiple tasks sequentially
|
|
19
|
-
- **ALL TASKS**: "all" processes all tasks in order
|
|
20
|
-
- **DEPENDENCY CHECK**: Before executing, verify that all tasks before X (1, 2, ..., X-1) are completely done
|
|
21
|
-
- **CONFLICT PREVENTION**: Only execute subtasks of task X if no previous tasks have pending subtasks (allows parallel work by multiple AIs)
|
|
22
|
-
- **PARTIAL EXECUTION**: If previous tasks have pending subtasks, inform user that task X cannot be fully executed until previous tasks are complete
|
|
23
|
-
- **AUTOMATIC**: If no conflicts, read tasks, find all pending subtasks of task X, implement them sequentially
|
|
24
|
-
- **UPDATE**: Mark each subtask as done after completion
|
|
25
|
-
- **COMPLETE**: If all subtasks are done, mark the task as done
|
|
6
|
+
# Task Flow — Run (fallback)
|
|
26
7
|
|
|
27
|
-
-
|
|
28
|
-
- **FAST FORMAT**: `task-flow: run next X` or `task-flow run next X` (e.g., "task-flow: run next 4")
|
|
29
|
-
- **TASK FORMAT**: `task-flow: run X` or `task-flow: run X,Y` or `task-flow: run all` (e.g., "task-flow: run 1" or "task-flow: run 10,11" or "task-flow: run all")
|
|
30
|
-
- "work on next 3 subtasks"
|
|
31
|
-
- "work on next 5 subtasks"
|
|
32
|
-
- "next 2 subtasks"
|
|
33
|
-
- "work on next subtasks"
|
|
34
|
-
- "implement next X subtasks"
|
|
35
|
-
- "work on next X subtasks"
|
|
36
|
-
- "execute all subtasks of task 1"
|
|
37
|
-
- "work on all subtasks of task 2"
|
|
38
|
-
- Any phrase with "next" + number + "subtasks"
|
|
39
|
-
- Any phrase with "task" + number + "subtasks" or "all subtasks" + "task" + number
|
|
40
|
-
|
|
41
|
-
- **Fast Command Format:**
|
|
42
|
-
- `task-flow: run next X` → Work on next X subtasks sequentially (fastest way)
|
|
43
|
-
- `task-flow run next X` → Same as above (without colon)
|
|
44
|
-
- `task-flow: run next` → Work on next 1 subtask (default)
|
|
45
|
-
- `task-flow: run X` → Work on all pending subtasks of task X (simplified - no "task" needed)
|
|
46
|
-
- `task-flow: run X,Y` → Work on all pending subtasks of tasks X and Y
|
|
47
|
-
- `task-flow: run all` → Work on all pending subtasks of all tasks
|
|
48
|
-
- `task-flow run X` → Same as above (without colon)
|
|
49
|
-
- Examples:
|
|
50
|
-
- "task-flow: run next 4" → Work on next 4 subtasks
|
|
51
|
-
- "task-flow run next 3" → Work on next 3 subtasks
|
|
52
|
-
- "task-flow: run next" → Work on next 1 subtask
|
|
53
|
-
- "task-flow: run 1" → Work on all pending subtasks of task 1
|
|
54
|
-
- "task-flow: run 10,11" → Work on all pending subtasks of tasks 10 and 11
|
|
55
|
-
- "task-flow: run all" → Work on all pending subtasks of all tasks
|
|
8
|
+
**Prefer:** `@task-flow-run` (Claude: `/task-flow-run`) — full steps in `.claude/skills/task-flow-run/workflow.md` (same under `.cursor/skills/` after install).
|
|
56
9
|
|
|
57
|
-
|
|
58
|
-
1. **Read task files**: `.task-flow/.internal/tasks.json` and `.task-flow/.internal/status.json`
|
|
59
|
-
2. **Find next X pending subtasks**:
|
|
60
|
-
- Sequential order: Task 1 → Subtask 1, 2, 3... → Task 2 → Subtask 1, 2, 3...
|
|
61
|
-
- Only count subtasks with status "pending"
|
|
62
|
-
- Skip "done" and "in_progress" subtasks
|
|
63
|
-
3. **For each subtask**:
|
|
64
|
-
- Read full instructions from `tasks.json`
|
|
65
|
-
- **CHECK**: If instructions mention context references (`.task-flow/contexts/...`), verify the context file exists
|
|
66
|
-
- **CONSULT**: Read and use context files from `.task-flow/contexts/` when implementing (images, .md, .txt, .json, etc. – any type that helps the task)
|
|
67
|
-
- Implement following step-by-step instructions
|
|
68
|
-
- Test/verify implementation
|
|
69
|
-
- Update `status.json` to mark as "done"
|
|
70
|
-
- Update `tasks.status.md` to reflect the new status
|
|
71
|
-
4. **After all X subtasks done**:
|
|
72
|
-
- Check if parent task is complete (all subtasks done)
|
|
73
|
-
- If complete, update task status to "done" in both `status.json` and `tasks.status.md`
|
|
74
|
-
- Show summary of what was completed
|
|
10
|
+
**Task flow** = RBIN Task Flow. Do not edit `.task-flow/.internal/` by hand.
|
|
75
11
|
|
|
76
|
-
|
|
77
|
-
1. **Read task files**: `.task-flow/.internal/tasks.json` and `.task-flow/.internal/status.json`
|
|
78
|
-
2. **Check dependencies (CRITICAL for parallel work)**:
|
|
79
|
-
- Check all tasks before X (tasks 1, 2, ..., X-1)
|
|
80
|
-
- Verify if any of these previous tasks have pending subtasks
|
|
81
|
-
- If ANY previous task has pending subtasks:
|
|
82
|
-
- **STOP**: Cannot execute task X subtasks (would conflict with sequential order)
|
|
83
|
-
- **INFORM**: Tell user which tasks need to be completed first
|
|
84
|
-
- **FORMAT**: "⚠️ Cannot execute task X: Tasks [list] must be completed first. Use 'task-flow: run task Y' to complete them."
|
|
85
|
-
- **DO NOT EXECUTE**: Do not execute any subtasks of task X
|
|
86
|
-
- If all previous tasks (1 to X-1) are completely done (all subtasks done):
|
|
87
|
-
- **PROCEED**: Safe to execute all subtasks of task X
|
|
88
|
-
3. **Find all pending subtasks of task X** (only if dependency check passed):
|
|
89
|
-
- Only subtasks of the specified task X
|
|
90
|
-
- Only count subtasks with status "pending"
|
|
91
|
-
- Skip "done" and "in_progress" subtasks
|
|
92
|
-
4. **For each subtask** (only if dependency check passed):
|
|
93
|
-
- Read full instructions from `tasks.json`
|
|
94
|
-
- **CHECK**: If instructions mention context references (`.task-flow/contexts/...`), verify the context file exists
|
|
95
|
-
- **CONSULT**: Read and use context files from `.task-flow/contexts/` when implementing (images, .md, .txt, .json, etc. – any type that helps the task)
|
|
96
|
-
- Implement following step-by-step instructions
|
|
97
|
-
- Test/verify implementation
|
|
98
|
-
- Update `status.json` to mark as "done"
|
|
99
|
-
- Update `tasks.status.md` to reflect the new status
|
|
100
|
-
5. **After all subtasks of task X are done**:
|
|
101
|
-
- Update task X status to "done" in both `status.json` and `tasks.status.md`
|
|
102
|
-
- Show summary of what was completed
|
|
12
|
+
## Commands
|
|
103
13
|
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
"status": "pending",
|
|
110
|
-
"subtasks": {
|
|
111
|
-
"1": "done",
|
|
112
|
-
"2": "done",
|
|
113
|
-
"3": "pending"
|
|
114
|
-
}
|
|
115
|
-
}
|
|
116
|
-
}
|
|
117
|
-
}
|
|
118
|
-
```
|
|
14
|
+
| User says | Action |
|
|
15
|
+
|-----------|--------|
|
|
16
|
+
| `task-flow: run next X` / `run next` | Next X pending subtasks in order (default X=1) |
|
|
17
|
+
| `task-flow: run X` | All pending subtasks of task X |
|
|
18
|
+
| `task-flow: run X,Y` / `run all` | As labeled |
|
|
119
19
|
|
|
120
|
-
|
|
121
|
-
- When marking a subtask as done:
|
|
122
|
-
1. Read `.task-flow/.internal/tasks.json` and `.task-flow/.internal/status.json`
|
|
123
|
-
2. Update `.task-flow/.internal/status.json` (set subtask status to "done")
|
|
124
|
-
3. Update `.task-flow/tasks.status.md`:
|
|
125
|
-
- Change `- [ ]` to `- [x]` for the subtask
|
|
126
|
-
- If all subtasks of a task are done, mark task as `- [x]`
|
|
127
|
-
- **REGENERATE SUMMARY**: Always update the "📊 Summary" section at the top with:
|
|
128
|
-
- Count of completed tasks (✅)
|
|
129
|
-
- Count of in-progress tasks (⏳)
|
|
130
|
-
- Total remaining subtasks (📝)
|
|
131
|
-
- List each task with status and remaining subtasks count
|
|
132
|
-
4. Format for `tasks.status.md`:
|
|
133
|
-
- Summary section at top (always regenerate)
|
|
134
|
-
- Tasks with `- [ ]` or `- [x]`, subtasks indented with ` - [ ]` or ` - [x]`
|
|
20
|
+
Natural language (`work on next 3 subtasks`, `execute all subtasks of task 2`) = same as above.
|
|
135
21
|
|
|
136
|
-
|
|
137
|
-
```
|
|
138
|
-
User: "task-flow: run next 4"
|
|
139
|
-
AI Action:
|
|
140
|
-
1. Read .task-flow/.internal/tasks.json
|
|
141
|
-
2. Read .task-flow/.internal/status.json
|
|
142
|
-
3. Find next 4 pending subtasks sequentially (e.g., 1.2, 1.3, 1.4, 2.1)
|
|
143
|
-
4. Work on each subtask sequentially
|
|
144
|
-
5. Mark each as "done" in status.json and update tasks.status.md
|
|
145
|
-
6. Show completion summary
|
|
146
|
-
|
|
147
|
-
User: "task-flow: run next"
|
|
148
|
-
AI Action: Same as above, but work on 1 subtask (default)
|
|
149
|
-
|
|
150
|
-
User: "task-flow: run task 1"
|
|
151
|
-
AI Action:
|
|
152
|
-
1. Read .task-flow/.internal/tasks.json
|
|
153
|
-
2. Read .task-flow/.internal/status.json
|
|
154
|
-
3. Check dependencies: No tasks before task 1, so proceed
|
|
155
|
-
4. Find all pending subtasks of task 1 (e.g., 1.1, 1.2, 1.3)
|
|
156
|
-
5. Work on each subtask sequentially
|
|
157
|
-
6. Mark each as "done" in status.json and update tasks.status.md
|
|
158
|
-
7. Mark task 1 as "done" if all subtasks completed
|
|
159
|
-
8. Show completion summary
|
|
160
|
-
|
|
161
|
-
User: "task-flow: run task 3"
|
|
162
|
-
AI Action (with task 2 incomplete):
|
|
163
|
-
1. Read .task-flow/.internal/tasks.json
|
|
164
|
-
2. Read .task-flow/.internal/status.json
|
|
165
|
-
3. Check dependencies: Task 2 has pending subtasks
|
|
166
|
-
4. STOP and inform: "⚠️ Cannot execute task 3: Task 2 must be completed first. Use 'task-flow: run task 2' to complete it."
|
|
167
|
-
5. Do not execute any subtasks of task 3
|
|
168
|
-
|
|
169
|
-
User: "task-flow: run task 3"
|
|
170
|
-
AI Action (with task 2 complete):
|
|
171
|
-
1. Read .task-flow/.internal/tasks.json
|
|
172
|
-
2. Read .task-flow/.internal/status.json
|
|
173
|
-
3. Check dependencies: All tasks before 3 (1, 2) are done, so proceed
|
|
174
|
-
4. Find all pending subtasks of task 3 (e.g., 3.1, 3.2)
|
|
175
|
-
5. Work on each subtask sequentially
|
|
176
|
-
6. Mark each as "done" in status.json and update tasks.status.md
|
|
177
|
-
7. Mark task 3 as "done" if all subtasks completed
|
|
178
|
-
8. Show completion summary
|
|
179
|
-
|
|
180
|
-
User: "work on next 3 subtasks"
|
|
181
|
-
AI Action: Same workflow as "run next 3", works with natural language too
|
|
182
|
-
|
|
183
|
-
User: "execute all subtasks of task 2"
|
|
184
|
-
AI Action: Same workflow as "run task 2", includes dependency check
|
|
185
|
-
```
|
|
22
|
+
## Critical flow (each subtask)
|
|
186
23
|
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
24
|
+
1. Read `status.json` first; load `tasks.json` by pending task ids only if **>50 subtasks** total (see `@task-flow-run` workflow).
|
|
25
|
+
2. **`run X`:** If tasks `1..X-1` have any pending subtask, **stop** and list blockers; do not run X.
|
|
26
|
+
3. Implement per `instructions`; read `.task-flow/contexts/` when referenced; optional `graphify query` if `graphify-out/` exists ([graphify-task-flow.mdc](mdc:.cursor/rules/graphify-task-flow.mdc)).
|
|
27
|
+
4. After each subtask: `status.json` → `done`; `tasks.status.md` → `- [x]` + regenerate 📊 Summary.
|
|
28
|
+
5. Parent task all done → mark task `done` in both files.
|
|
29
|
+
6. Suggest commit via [rbin-git-policy.mdc](mdc:.cursor/rules/rbin-git-policy.mdc) / `@rbin-git` — never write git.
|
|
192
30
|
|
|
193
|
-
|
|
194
|
-
After completing subtasks, show:
|
|
195
|
-
```
|
|
196
|
-
✅ Completed 3 subtasks:
|
|
197
|
-
- Task 1.2: [subtask title]
|
|
198
|
-
- Task 1.3: [subtask title]
|
|
199
|
-
- Task 2.1: [subtask title]
|
|
200
|
-
|
|
201
|
-
📝 Next pending subtask: Task 2.2
|
|
202
|
-
```
|
|
31
|
+
If blocked: subtask `in_progress` + explain.
|
|
203
32
|
|
|
204
|
-
|
|
205
|
-
- If subtask can't be completed → mark as "in_progress" and explain why
|
|
206
|
-
- If file doesn't exist → create it
|
|
207
|
-
- If instructions unclear → ask for clarification (but try to infer first)
|
|
33
|
+
## More detail
|
|
208
34
|
|
|
209
|
-
-
|
|
210
|
-
|
|
211
|
-
- **AUTOMATIC**: When implementing subtasks, check if instructions reference context files
|
|
212
|
-
- **CONSULT**: Read and use files from `.task-flow/contexts/` as needed (specs, mockups, examples, .md, .txt, .png, .json, etc.)
|
|
213
|
-
- **MATCHING**: Use the context files mentioned in subtask instructions; support any extension, not only images
|
|
214
|
-
- **NO NEED**: User doesn't need to explicitly mention context files - they're automatically considered
|
|
215
|
-
|
|
216
|
-
- **Integration:**
|
|
217
|
-
- Works with [task_execution.mdc](mdc:.cursor/rules/task_execution.mdc) - same workflow
|
|
218
|
-
- Follows [task_generation.mdc](mdc:.cursor/rules/task_generation.mdc) - context files are automatically referenced in generated subtasks
|
|
219
|
-
- Follows [commit_practices.mdc](mdc:.cursor/rules/commit_practices.mdc) - suggest commit after completion
|
|
220
|
-
- Respects [git_control.mdc](mdc:.cursor/rules/git_control.mdc) - never commit automatically
|
|
221
|
-
|
|
222
|
-
- **Principle:**
|
|
223
|
-
> **When user asks to work on next X subtasks, automatically find them, implement them, and update status. Make it seamless - user shouldn't need to specify task IDs or check status manually.**
|
|
35
|
+
- Skill workflow: `.claude/skills/task-flow-run/workflow.md`
|
|
36
|
+
- Command index: [task-flow-cursor.mdc](mdc:.cursor/rules/task-flow-cursor.mdc) · [task_execution.mdc](mdc:.cursor/rules/task_execution.mdc) (stub)
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
# RBIN Task Flow — Guia por plataforma de IA
|
|
2
|
+
|
|
3
|
+
Os comandos `task-flow: …` são **os mesmos** em Claude Code, Cursor e Codex. O que muda é **como cada ferramenta carrega instruções** — e como você extrai o melhor de cada uma.
|
|
4
|
+
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
## Escolha seu guia
|
|
8
|
+
|
|
9
|
+
| Plataforma | Guia | Mecanismo nativo | Otimização RBIN hoje |
|
|
10
|
+
|------------|------|------------------|----------------------|
|
|
11
|
+
| **Claude Code** | [platforms/claude-code.md](platforms/claude-code.md) | `CLAUDE.md` + `.claude/skills/*/SKILL.md` | **Skills no `init`** — `/task-flow-run`, etc. |
|
|
12
|
+
| **Cursor** | [platforms/cursor.md](platforms/cursor.md) | `task-flow-cursor.mdc` + `rbin-git-policy.mdc` + skills | **Otimizado v1.23** — 2 always-on + `@task-flow-*` |
|
|
13
|
+
| **OpenAI Codex** | [platforms/codex.md](platforms/codex.md) | `AGENTS.md` + `.task-flow/CODEX.md` + `.codex/config.toml` | **Otimizado v1.21** — sync/run no AGENTS.md |
|
|
14
|
+
|
|
15
|
+
---
|
|
16
|
+
|
|
17
|
+
## Visão em 30 segundos
|
|
18
|
+
|
|
19
|
+
```text
|
|
20
|
+
.task-flow/ ← dados (tasks, status, contexts) — IGUAL para todas
|
|
21
|
+
│
|
|
22
|
+
├── Claude → CLAUDE.md (fino) + Skills (workflows)
|
|
23
|
+
├── Cursor → task-flow-cursor (sempre) + @skills + rules inteligentes
|
|
24
|
+
└── Codex → AGENTS.md (compacto) + pedir .mdc no prompt
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
**Princípio:** Task Flow = **dados** em `.task-flow/` + **procedimentos** que a IA segue. Procedimentos devem viver no mecanismo nativo de cada ferramenta.
|
|
28
|
+
|
|
29
|
+
---
|
|
30
|
+
|
|
31
|
+
## Fluxo comum (todas as plataformas)
|
|
32
|
+
|
|
33
|
+
1. Editar `.task-flow/tasks.input.txt`
|
|
34
|
+
2. `task-flow: sync`
|
|
35
|
+
3. `task-flow: status`
|
|
36
|
+
4. `task-flow: run next X` ou `task-flow: run N`
|
|
37
|
+
5. `task-flow: check`
|
|
38
|
+
6. **Você** faz `git commit` (a IA só sugere)
|
|
39
|
+
|
|
40
|
+
Detalhes dos comandos: [README.md](README.md).
|
|
41
|
+
|
|
42
|
+
---
|
|
43
|
+
|
|
44
|
+
## O que o `rbin-task-flow init` instala
|
|
45
|
+
|
|
46
|
+
| Caminho | Claude | Cursor | Codex |
|
|
47
|
+
|---------|--------|--------|-------|
|
|
48
|
+
| `.task-flow/` | ✅ | ✅ | ✅ |
|
|
49
|
+
| `.cursor/rules/` | leitura manual | ✅ auto | leitura manual |
|
|
50
|
+
| `CLAUDE.md` | ✅ | — | — |
|
|
51
|
+
| `AGENTS.md` | — | — | ✅ |
|
|
52
|
+
| `.task-flow/CODEX.md` | — | — | ✅ |
|
|
53
|
+
| `.task-flow/CURSOR.md` | — | ✅ | — |
|
|
54
|
+
| `.task-flow/docs/coding-standards-full.md` | on demand | on demand (sections only) | on demand |
|
|
55
|
+
| [OPTIMIZATION-PLAN.md](OPTIMIZATION-PLAN.md) | — | token roadmap | — |
|
|
56
|
+
| `.codex/config.toml` | — | — | ✅ (opcional, preservado no update) |
|
|
57
|
+
| `task-flow-cursor.mdc` | — | ✅ always-on | — |
|
|
58
|
+
| `rbin-git-policy.mdc` | — | ✅ always-on | — |
|
|
59
|
+
| `.claude/skills/` | ✅ (14 skills) | — | — |
|
|
60
|
+
| `.cursor/skills/` | — | ✅ (espelho) | — |
|
|
61
|
+
|
|
62
|
+
Por padrão, `.claude/`, `.cursor/`, `.task-flow/`, `CLAUDE.md` e `AGENTS.md` entram no **`.gitignore`** do projeto cliente. Para versionar skills/regras com o time, ajuste o ignore — veja a seção “Versionamento” em cada guia.
|
|
63
|
+
|
|
64
|
+
---
|
|
65
|
+
|
|
66
|
+
## Graphify (opcional, sem competir)
|
|
67
|
+
|
|
68
|
+
Com o [Graphify](https://pypi.org/project/graphifyyy/) instalado (`rbin-install-dev`), o Task Flow inclui integração cooperativa:
|
|
69
|
+
|
|
70
|
+
- Regra **`.cursor/rules/graphify-task-flow.mdc`** — só quando `task-flow: run`, `think`, `review`, etc. precisam navegar o código (`alwaysApply: false`).
|
|
71
|
+
- **`graphify-out/`** no `.gitignore`.
|
|
72
|
+
- Rebaixa **`graphify.mdc`** upstream para `alwaysApply: false` se existir.
|
|
73
|
+
- **`rbin-task-flow init --graphify`** — roda `graphify extract .` após o init.
|
|
74
|
+
|
|
75
|
+
Guia completo: [GRAPHIFY.md](GRAPHIFY.md).
|
|
76
|
+
|
|
77
|
+
---
|
|
78
|
+
|
|
79
|
+
## Roadmap do pacote (alinhamento multi-IA)
|
|
80
|
+
|
|
81
|
+
1. ~~Gerar `.claude/skills/` e `.cursor/skills/`~~ ✅ v1.20.0
|
|
82
|
+
2. ~~`CLAUDE.md` índice curto~~ ✅
|
|
83
|
+
3. ~~Reduzir `alwaysApply` no Cursor~~ ✅ v1.23 **2 always-on** (`task-flow-cursor`, `rbin-git-policy`) + skills
|
|
84
|
+
4. ~~Opção de instalador `--share-ai-config`~~ → `rbin-task-flow init --share-ai-config` (P2.2)
|
|
85
|
+
|
|
86
|
+
---
|
|
87
|
+
|
|
88
|
+
## Referências cruzadas
|
|
89
|
+
|
|
90
|
+
| Arquivo | Papel |
|
|
91
|
+
|---------|--------|
|
|
92
|
+
| [platforms/claude-code.md](platforms/claude-code.md) | Skills, frontmatter, injeção `!`cmd``, monorepo |
|
|
93
|
+
| [platforms/cursor.md](platforms/cursor.md) | Modos de regra, inventário `.mdc`, Agent vs Chat |
|
|
94
|
+
| [platforms/codex.md](platforms/codex.md) | 32 KiB, AGENTS.override, prompts eficazes |
|
|
95
|
+
| [../CLAUDE.md](../CLAUDE.md) | Entrada Claude no template |
|
|
96
|
+
| [../AGENTS.md](../AGENTS.md) | Entrada Codex no template |
|
|
97
|
+
| [CURSOR.md](CURSOR.md) | Referência rápida Cursor |
|
|
98
|
+
| [OPTIMIZATION-PLAN.md](OPTIMIZATION-PLAN.md) | Plano de melhorias (tokens, P0–P2) |
|
|
99
|
+
| [OPTIMIZATION-IMPLEMENTATION-TASKS.md](OPTIMIZATION-IMPLEMENTATION-TASKS.md) | Subtarefas para IA implementar o plano |
|
|
100
|
+
| [../.cursor/rules/](../.cursor/rules/) | Fonte completa dos procedimentos |
|
|
101
|
+
|
|
102
|
+
---
|
|
103
|
+
|
|
104
|
+
*Índice central — detalhes nos três guias em `platforms/`.*
|
|
@@ -0,0 +1,141 @@
|
|
|
1
|
+
# RBIN Task Flow — Codex workflows
|
|
2
|
+
|
|
3
|
+
Codex loads **AGENTS.md** at session start (32 KiB default cap). This file holds **full procedures** — read it when the user runs a `task-flow:` command or when AGENTS.md points here.
|
|
4
|
+
|
|
5
|
+
**Do not paste this entire file into AGENTS.md.**
|
|
6
|
+
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
## task-flow: sync
|
|
10
|
+
|
|
11
|
+
1. Read `.task-flow/tasks.input.txt`, `.internal/tasks.json`, `.internal/status.json`.
|
|
12
|
+
2. Compare tasks by `originalRequest`.
|
|
13
|
+
3. New tasks: generate 3–8 subtasks, `createdAt` ISO, contexts from `.task-flow/contexts/`.
|
|
14
|
+
4. Write/update `tasks.json`, `status.json`, `tasks.status.md` with Summary.
|
|
15
|
+
5. Preserve status on modified tasks when subtasks still align.
|
|
16
|
+
6. Do not populate `tasks.flow.md`.
|
|
17
|
+
|
|
18
|
+
Sync: `.cursor/rules/task-flow-sync.mdc` · Think: `.cursor/rules/task_analysis.mdc`
|
|
19
|
+
|
|
20
|
+
---
|
|
21
|
+
|
|
22
|
+
## task-flow: run next X | run X | run all
|
|
23
|
+
|
|
24
|
+
See AGENTS.md **Run** section. Prefer `.claude/skills/task-flow-run/workflow.md`; fallback: `.cursor/rules/task_work.mdc`.
|
|
25
|
+
|
|
26
|
+
**Dependency:** `run N` only if tasks `1..N-1` fully done.
|
|
27
|
+
|
|
28
|
+
**Per subtask:** implement → `done` in `status.json` → refresh `tasks.status.md` → suggest commit.
|
|
29
|
+
|
|
30
|
+
**Blocked:** set `in_progress`, explain.
|
|
31
|
+
|
|
32
|
+
---
|
|
33
|
+
|
|
34
|
+
## task-flow: status
|
|
35
|
+
|
|
36
|
+
Display `.task-flow/tasks.status.md`. If missing, run sync first.
|
|
37
|
+
|
|
38
|
+
---
|
|
39
|
+
|
|
40
|
+
## task-flow: think
|
|
41
|
+
|
|
42
|
+
1. Read `tasks.input.txt`.
|
|
43
|
+
2. Scan repo for TODOs, gaps, tests, incomplete features.
|
|
44
|
+
3. Propose new `- task` lines.
|
|
45
|
+
4. **Ask** before appending to `tasks.input.txt`.
|
|
46
|
+
5. If confirmed, append and suggest `task-flow: sync`.
|
|
47
|
+
|
|
48
|
+
---
|
|
49
|
+
|
|
50
|
+
## task-flow: check
|
|
51
|
+
|
|
52
|
+
1. `package.json` scripts: lint fix variant, then `build`.
|
|
53
|
+
2. Fix until pass.
|
|
54
|
+
3. Does not edit task files.
|
|
55
|
+
|
|
56
|
+
Rule: `.cursor/rules/task_check.mdc`
|
|
57
|
+
|
|
58
|
+
---
|
|
59
|
+
|
|
60
|
+
## task-flow: audit
|
|
61
|
+
|
|
62
|
+
1. Score project vs the checklist in `.cursor/rules/coding_standards.mdc` (not the full doc unless user wants depth).
|
|
63
|
+
2. Present table; ask what to adopt.
|
|
64
|
+
3. Never impose wholesale refactors.
|
|
65
|
+
|
|
66
|
+
Rule: `.cursor/rules/task_audit.mdc`
|
|
67
|
+
|
|
68
|
+
---
|
|
69
|
+
|
|
70
|
+
## task-flow: improve changes
|
|
71
|
+
|
|
72
|
+
1. `git diff --name-only HEAD` (read-only).
|
|
73
|
+
2. If empty, stop.
|
|
74
|
+
3. Audit only those paths vs coding standards.
|
|
75
|
+
4. Ask before edits.
|
|
76
|
+
|
|
77
|
+
Rule: `.cursor/rules/task_improve_changes.mdc`
|
|
78
|
+
|
|
79
|
+
---
|
|
80
|
+
|
|
81
|
+
## task-flow: review X
|
|
82
|
+
|
|
83
|
+
1. Load done subtasks for task X from `status.json`.
|
|
84
|
+
2. Verify implementation in codebase.
|
|
85
|
+
3. Report false positives; ask to revert status if needed.
|
|
86
|
+
|
|
87
|
+
Rule: `.cursor/rules/task_review.mdc`
|
|
88
|
+
|
|
89
|
+
---
|
|
90
|
+
|
|
91
|
+
## task-flow: refactor X
|
|
92
|
+
|
|
93
|
+
Refactor task-related files: no behavior change, remove explanatory comments, keep section separators.
|
|
94
|
+
|
|
95
|
+
Rule: `.cursor/rules/task_refactor.mdc`
|
|
96
|
+
|
|
97
|
+
---
|
|
98
|
+
|
|
99
|
+
## task-flow: estimate X
|
|
100
|
+
|
|
101
|
+
Read `tasks.json`; one hour range; average developer, average pace, no AI acceleration.
|
|
102
|
+
|
|
103
|
+
Rule: `.cursor/rules/task_estimate.mdc`
|
|
104
|
+
|
|
105
|
+
---
|
|
106
|
+
|
|
107
|
+
## task-flow: report X
|
|
108
|
+
|
|
109
|
+
Verify task done; write `.task-flow/docs/task-X-implementation.md`.
|
|
110
|
+
|
|
111
|
+
Rule: `.cursor/rules/task_report.mdc`
|
|
112
|
+
|
|
113
|
+
---
|
|
114
|
+
|
|
115
|
+
## task-flow: generate flow
|
|
116
|
+
|
|
117
|
+
Populate `.task-flow/tasks.flow.md` with deps, hours, model hints (no Opus).
|
|
118
|
+
|
|
119
|
+
Rule: `.cursor/rules/task_generate_flow.mdc`
|
|
120
|
+
|
|
121
|
+
---
|
|
122
|
+
|
|
123
|
+
## Implementing code (any subtask)
|
|
124
|
+
|
|
125
|
+
Follow the checklist in `.cursor/rules/coding_standards.mdc`. For examples/Nest: read sections of `.task-flow/docs/coding-standards-full.md` only.
|
|
126
|
+
|
|
127
|
+
---
|
|
128
|
+
|
|
129
|
+
## Graphify (optional)
|
|
130
|
+
|
|
131
|
+
Only during `run` / `think` when `graphify-out/` exists. See `.task-flow/GRAPHIFY.md`. Does not replace status updates.
|
|
132
|
+
|
|
133
|
+
---
|
|
134
|
+
|
|
135
|
+
## Verify Codex instructions
|
|
136
|
+
|
|
137
|
+
```bash
|
|
138
|
+
codex --ask-for-approval never "Summarize the project instructions you follow for RBIN Task Flow."
|
|
139
|
+
```
|
|
140
|
+
|
|
141
|
+
If Task Flow rules missing, check `project_doc_max_bytes` in `.codex/config.toml` (template from `rbin-task-flow init`).
|