rbin-task-flow 1.0.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.
@@ -0,0 +1,205 @@
1
+ ---
2
+ description: Work on next X subtasks from RBIN Task Flow - simplified commands
3
+ globs: **/*
4
+ alwaysApply: true
5
+ ---
6
+
7
+ - **Task Work - Simplified Commands:**
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 task X` (e.g., "task-flow: run task 1" → work on all subtasks of task 1)
10
+ - When user says "task-flow: run next X", "faça as próximas X subtasks", or "work on next X subtasks":
11
+ - **INTERPRET**: User wants to work on the next X pending subtasks from RBIN Task Flow
12
+ - **AUTOMATIC**: Read tasks, find next X pending, implement them sequentially
13
+ - **UPDATE**: Mark each subtask as done after completion
14
+ - **NO NEED**: To specify "task flow" explicitly - it's implied
15
+ - When user says "task-flow: run task X", "execute todas as subtasks da task X", or "work on task X":
16
+ - **INTERPRET**: User wants to work on all pending subtasks of a specific task
17
+ - **DEPENDENCY CHECK**: Before executing, verify that all tasks before X (1, 2, ..., X-1) are completely done
18
+ - **CONFLICT PREVENTION**: Only execute subtasks of task X if no previous tasks have pending subtasks (allows parallel work by multiple AIs)
19
+ - **PARTIAL EXECUTION**: If previous tasks have pending subtasks, inform user that task X cannot be fully executed until previous tasks are complete
20
+ - **AUTOMATIC**: If no conflicts, read tasks, find all pending subtasks of task X, implement them sequentially
21
+ - **UPDATE**: Mark each subtask as done after completion
22
+ - **COMPLETE**: If all subtasks are done, mark the task as done
23
+
24
+ - **Natural Language Phrases:**
25
+ - **FAST FORMAT**: `task-flow: run next X` or `task-flow run next X` (e.g., "task-flow: run next 4")
26
+ - **TASK FORMAT**: `task-flow: run task X` or `task-flow run task X` (e.g., "task-flow: run task 1")
27
+ - "faça as próximas 3 subtasks"
28
+ - "work on next 5 subtasks"
29
+ - "próximas 2 subtasks"
30
+ - "faça próximas subtasks"
31
+ - "implement next X subtasks"
32
+ - "trabalhe nas próximas X subtasks"
33
+ - "execute todas as subtasks da task 1"
34
+ - "work on all subtasks of task 2"
35
+ - Any phrase with "próximas" + number + "subtasks" or "next" + number + "subtasks"
36
+ - Any phrase with "task" + number + "subtasks" or "all subtasks" + "task" + number
37
+
38
+ - **Fast Command Format:**
39
+ - `task-flow: run next X` → Work on next X subtasks sequentially (fastest way)
40
+ - `task-flow run next X` → Same as above (without colon)
41
+ - `task-flow: run next` → Work on next 1 subtask (default)
42
+ - `task-flow: run task X` → Work on all pending subtasks of task X
43
+ - `task-flow run task X` → Same as above (without colon)
44
+ - Examples:
45
+ - "task-flow: run next 4" → Work on next 4 subtasks
46
+ - "task-flow run next 3" → Work on next 3 subtasks
47
+ - "task-flow: run next" → Work on next 1 subtask
48
+ - "task-flow: run task 1" → Work on all pending subtasks of task 1
49
+ - "task-flow run task 2" → Work on all pending subtasks of task 2
50
+
51
+ - **Required Actions for `task-flow: run next X`:**
52
+ 1. **Read task files**: `.task-flow/.internal/tasks.json` and `.task-flow/.internal/status.json`
53
+ 2. **Find next X pending subtasks**:
54
+ - Sequential order: Task 1 → Subtask 1, 2, 3... → Task 2 → Subtask 1, 2, 3...
55
+ - Only count subtasks with status "pending"
56
+ - Skip "done" and "in_progress" subtasks
57
+ 3. **For each subtask**:
58
+ - Read full instructions from `tasks.json`
59
+ - Implement following step-by-step instructions
60
+ - Test/verify implementation
61
+ - Update `status.json` to mark as "done"
62
+ - Update `tasks.status.md` to reflect the new status
63
+ 4. **After all X subtasks done**:
64
+ - Check if parent task is complete (all subtasks done)
65
+ - If complete, update task status to "done" in both `status.json` and `tasks.status.md`
66
+ - Show summary of what was completed
67
+
68
+ - **Required Actions for `task-flow: run task X`:**
69
+ 1. **Read task files**: `.task-flow/.internal/tasks.json` and `.task-flow/.internal/status.json`
70
+ 2. **Check dependencies (CRITICAL for parallel work)**:
71
+ - Check all tasks before X (tasks 1, 2, ..., X-1)
72
+ - Verify if any of these previous tasks have pending subtasks
73
+ - If ANY previous task has pending subtasks:
74
+ - **STOP**: Cannot execute task X subtasks (would conflict with sequential order)
75
+ - **INFORM**: Tell user which tasks need to be completed first
76
+ - **FORMAT**: "⚠️ Cannot execute task X: Tasks [list] must be completed first. Use 'task-flow: run task Y' to complete them."
77
+ - **DO NOT EXECUTE**: Do not execute any subtasks of task X
78
+ - If all previous tasks (1 to X-1) are completely done (all subtasks done):
79
+ - **PROCEED**: Safe to execute all subtasks of task X
80
+ 3. **Find all pending subtasks of task X** (only if dependency check passed):
81
+ - Only subtasks of the specified task X
82
+ - Only count subtasks with status "pending"
83
+ - Skip "done" and "in_progress" subtasks
84
+ 4. **For each subtask** (only if dependency check passed):
85
+ - Read full instructions from `tasks.json`
86
+ - Implement following step-by-step instructions
87
+ - Test/verify implementation
88
+ - Update `status.json` to mark as "done"
89
+ - Update `tasks.status.md` to reflect the new status
90
+ 5. **After all subtasks of task X are done**:
91
+ - Update task X status to "done" in both `status.json` and `tasks.status.md`
92
+ - Show summary of what was completed
93
+
94
+ - **Status Update Format:**
95
+ ```json
96
+ {
97
+ "tasks": {
98
+ "1": {
99
+ "status": "pending",
100
+ "subtasks": {
101
+ "1": "done",
102
+ "2": "done",
103
+ "3": "pending"
104
+ }
105
+ }
106
+ }
107
+ }
108
+ ```
109
+
110
+ - **Status Update Process:**
111
+ - When marking a subtask as done:
112
+ 1. Read `.task-flow/.internal/tasks.json` and `.task-flow/.internal/status.json`
113
+ 2. Update `.task-flow/.internal/status.json` (set subtask status to "done")
114
+ 3. Update `.task-flow/tasks.status.md`:
115
+ - Change `- [ ]` to `- [x]` for the subtask
116
+ - If all subtasks of a task are done, mark task as `- [x]`
117
+ - **REGENERATE SUMMARY**: Always update the "📊 Resumo" section at the top with:
118
+ - Count of completed tasks (✅)
119
+ - Count of in-progress tasks (⏳)
120
+ - Total remaining subtasks (📝)
121
+ - List each task with status and remaining subtasks count
122
+ 4. Format for `tasks.status.md`:
123
+ - Summary section at top (always regenerate)
124
+ - Tasks with `- [ ]` or `- [x]`, subtasks indented with ` - [ ]` or ` - [x]`
125
+
126
+ - **Examples:**
127
+ ```
128
+ User: "task-flow: run next 4"
129
+ AI Action:
130
+ 1. Read .task-flow/.internal/tasks.json
131
+ 2. Read .task-flow/.internal/status.json
132
+ 3. Find next 4 pending subtasks sequentially (e.g., 1.2, 1.3, 1.4, 2.1)
133
+ 4. Work on each subtask sequentially
134
+ 5. Mark each as "done" in status.json and update tasks.status.md
135
+ 6. Show completion summary
136
+
137
+ User: "task-flow: run next"
138
+ AI Action: Same as above, but work on 1 subtask (default)
139
+
140
+ User: "task-flow: run task 1"
141
+ AI Action:
142
+ 1. Read .task-flow/.internal/tasks.json
143
+ 2. Read .task-flow/.internal/status.json
144
+ 3. Check dependencies: No tasks before task 1, so proceed
145
+ 4. Find all pending subtasks of task 1 (e.g., 1.1, 1.2, 1.3)
146
+ 5. Work on each subtask sequentially
147
+ 6. Mark each as "done" in status.json and update tasks.status.md
148
+ 7. Mark task 1 as "done" if all subtasks completed
149
+ 8. Show completion summary
150
+
151
+ User: "task-flow: run task 3"
152
+ AI Action (with task 2 incomplete):
153
+ 1. Read .task-flow/.internal/tasks.json
154
+ 2. Read .task-flow/.internal/status.json
155
+ 3. Check dependencies: Task 2 has pending subtasks
156
+ 4. STOP and inform: "⚠️ Cannot execute task 3: Task 2 must be completed first. Use 'task-flow: run task 2' to complete it."
157
+ 5. Do not execute any subtasks of task 3
158
+
159
+ User: "task-flow: run task 3"
160
+ AI Action (with task 2 complete):
161
+ 1. Read .task-flow/.internal/tasks.json
162
+ 2. Read .task-flow/.internal/status.json
163
+ 3. Check dependencies: All tasks before 3 (1, 2) are done, so proceed
164
+ 4. Find all pending subtasks of task 3 (e.g., 3.1, 3.2)
165
+ 5. Work on each subtask sequentially
166
+ 6. Mark each as "done" in status.json and update tasks.status.md
167
+ 7. Mark task 3 as "done" if all subtasks completed
168
+ 8. Show completion summary
169
+
170
+ User: "faça as próximas 3 subtasks"
171
+ AI Action: Same workflow as "run next 3", works with natural language too
172
+
173
+ User: "execute todas as subtasks da task 2"
174
+ AI Action: Same workflow as "run task 2", includes dependency check
175
+ ```
176
+
177
+ - **Default Behavior:**
178
+ - If user says "próximas subtasks" without number → assume 1 subtask
179
+ - If user says "próximas X subtasks" → work on exactly X subtasks
180
+ - If user says "task X" without "next" → interpret as "run task X" (all subtasks of that task)
181
+ - Always work sequentially (don't skip or reorder)
182
+
183
+ - **Completion Summary:**
184
+ After completing subtasks, show:
185
+ ```
186
+ ✅ Completed 3 subtasks:
187
+ - Task 1.2: [subtask title]
188
+ - Task 1.3: [subtask title]
189
+ - Task 2.1: [subtask title]
190
+
191
+ 📝 Next pending subtask: Task 2.2
192
+ ```
193
+
194
+ - **Error Handling:**
195
+ - If subtask can't be completed → mark as "in_progress" and explain why
196
+ - If file doesn't exist → create it
197
+ - If instructions unclear → ask for clarification (but try to infer first)
198
+
199
+ - **Integration:**
200
+ - Works with [task_execution.mdc](mdc:.cursor/rules/task_execution.mdc) - same workflow
201
+ - Follows [commit_practices.mdc](mdc:.cursor/rules/commit_practices.mdc) - suggest commit after completion
202
+ - Respects [git_control.mdc](mdc:.cursor/rules/git_control.mdc) - never commit automatically
203
+
204
+ - **Principle:**
205
+ > **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.**
@@ -0,0 +1,3 @@
1
+ {
2
+ "model": "claude-sonnet-4-5-20250929"
3
+ }
@@ -0,0 +1,5 @@
1
+ {
2
+ "model": {
3
+ "name": "gemini-3-flash"
4
+ }
5
+ }
@@ -0,0 +1,17 @@
1
+ {
2
+ "claude": {
3
+ "current": "claude-sonnet-4-5-20250929",
4
+ "latest": "claude-sonnet-4-5-20250929",
5
+ "checkUrl": "https://docs.anthropic.com/claude/docs/models-overview"
6
+ },
7
+ "cursor": {
8
+ "current": "claude-sonnet-4-5-20250929",
9
+ "latest": "claude-sonnet-4-5-20250929",
10
+ "checkUrl": "https://docs.cursor.com/models"
11
+ },
12
+ "gemini": {
13
+ "current": "gemini-3-flash",
14
+ "latest": "gemini-3-flash",
15
+ "checkUrl": "https://ai.google.dev/models/gemini"
16
+ }
17
+ }
@@ -0,0 +1,66 @@
1
+ # RBIN Task Flow - Comandos Rápidos
2
+
3
+ ## 🚀 Comandos Rápidos
4
+
5
+ | Comando | Descrição |
6
+ |---------|-----------|
7
+ | `task-flow: sync` | Sincronização completa: adiciona novas, remove removidas, atualiza modificadas, preserva status |
8
+ | `task-flow: think` | Analisa código e sugere novas tasks |
9
+ | `task-flow: run next X` | Trabalha nas próximas X subtasks (ex: `task-flow: run next 4`) |
10
+ | `task-flow: run task X` | Executa todas as subtasks pendentes da task X (ex: `task-flow: run task 1`) |
11
+ | `task-flow: status` | Mostra status atual das tasks |
12
+ | `task-flow: review` | Revisa tasks marcadas como "done" |
13
+ | `task-flow: refactor` | Refatora código do commit atual |
14
+
15
+ **Veja detalhes completos abaixo ↓**
16
+
17
+ ---
18
+
19
+ ## Comandos Detalhados
20
+
21
+ ### `task-flow: sync`
22
+ Sincronização completa entre `tasks.input.txt` e o sistema:
23
+ - ✅ Adiciona novas tasks do `tasks.input.txt`
24
+ - ✅ Remove tasks que foram removidas do `tasks.input.txt`
25
+ - ✅ Atualiza tasks que foram modificadas no `tasks.input.txt`
26
+ - ✅ Preserva o status (done/pending) das tasks existentes
27
+ - ✅ Sincroniza status entre `status.json` e `tasks.status.md` (garante que estão sempre alinhados)
28
+
29
+ ### `task-flow: think`
30
+ Analisa código e sugere novas tasks. Pergunta antes de adicionar ao `tasks.input.txt`.
31
+
32
+ ### `task-flow: run next X`
33
+ Trabalha nas próximas X subtasks pendentes em ordem sequencial. Implementa e marca como "done".
34
+
35
+ **Exemplos:**
36
+ - `task-flow: run next 4` → Próximas 4 subtasks
37
+ - `task-flow: run next` → Próxima 1 subtask
38
+
39
+ ### `task-flow: run task X`
40
+ Executa todas as subtasks pendentes de uma task específica. Implementa e marca como "done".
41
+
42
+ **⚠️ Verificação de Dependências:**
43
+ - Só executa se todas as tasks anteriores (1, 2, ..., X-1) estiverem completamente concluídas
44
+ - Permite trabalho paralelo por múltiplas IAs sem conflitos
45
+ - Se houver tasks anteriores pendentes, avisa quais precisam ser concluídas primeiro
46
+
47
+ **Exemplos:**
48
+ - `task-flow: run task 1` → Todas as subtasks pendentes da task 1 (sempre pode executar)
49
+ - `task-flow: run task 3` → Só executa se tasks 1 e 2 estiverem completas
50
+
51
+ ### `task-flow: status`
52
+ Mostra o status atual das tasks e subtasks do arquivo `tasks.status.md`.
53
+
54
+ ### `task-flow: review`
55
+ Revisa tasks marcadas como "done" para verificar se estão realmente concluídas.
56
+
57
+ ### `task-flow: refactor`
58
+ Refatora código do commit atual. Remove comentários explicativos, melhora código sem mudar funcionalidade.
59
+
60
+ ---
61
+
62
+ ## Arquivos
63
+
64
+ - `.task-flow/tasks.input.txt` - Edite tasks aqui (formato: `- Task description`)
65
+ - `.task-flow/tasks.status.md` - ⚠️ **NÃO EDITE** - Atualizado automaticamente pela IA
66
+ - `.task-flow/.internal/` - ⚠️ **IGNORE** - Arquivos internos do sistema (não precisa ler nem editar)
@@ -0,0 +1,14 @@
1
+ # RBIN Task Flow - Task Definitions
2
+
3
+ ## How to use this file:
4
+
5
+ 1. Write your tasks below in natural language
6
+ 2. Use the format: `- Task description` (no [ ] needed)
7
+ 3. Use `task-flow: sync` to generate subtasks from your tasks
8
+ 4. Use `task-flow: status` to view task progress
9
+
10
+ ## Tasks:
11
+
12
+ - First task
13
+ - Second task
14
+
@@ -0,0 +1,21 @@
1
+ # Task Status
2
+
3
+ <!-- ⚠️ AVISO: Este arquivo é atualizado automaticamente pela IA. NÃO edite manualmente. -->
4
+
5
+ ## 📊 Resumo
6
+
7
+ - ✅ **Tasks Completas**: 0
8
+ - ⏳ **Tasks em Andamento**: 0
9
+ - 📝 **Subtasks Restantes**: 0
10
+
11
+ **Tasks:**
12
+ - ⏳ Task 1: First task (0 subtasks restantes de 0)
13
+ - ⏳ Task 2: Second task (0 subtasks restantes de 0)
14
+
15
+ ---
16
+
17
+ ## Tasks
18
+
19
+ - [ ] First task
20
+
21
+ - [ ] Second task
package/CLAUDE.md ADDED
@@ -0,0 +1,30 @@
1
+ # Claude Code Instructions
2
+
3
+ ## Development Rules
4
+
5
+ All development rules are automatically loaded from `.cursor/rules/` directory. These rules include:
6
+ - Cursor rules formatting guidelines
7
+ - Self-improvement processes
8
+ - Code commenting standards
9
+ - Commit practices
10
+ - Git command control
11
+ - Task execution management with RBIN Task Flow
12
+
13
+ ## RBIN Task Flow
14
+
15
+ This project uses RBIN Task Flow for task management:
16
+ - **Task Definition**: Edit `.task-flow/tasks.input.txt` using simple format: `- Task description`
17
+ - **AI Commands**: Use AI-powered commands for task management:
18
+ - `task-flow: sync` - Synchronize tasks from tasks.input.txt
19
+ - `task-flow: run next X` - Work on next X subtasks
20
+ - `task-flow: run task X` - Execute all pending subtasks of task X
21
+ - `task-flow: status` - View current task status
22
+ - `task-flow: review` - Review completed tasks
23
+ - `task-flow: think` - Analyze code and suggest new tasks
24
+ - `task-flow: refactor` - Refactor code from current commit
25
+ - **Files**:
26
+ - `.task-flow/tasks.input.txt` - Define your tasks here
27
+ - `.task-flow/tasks.status.md` - Auto-generated status (DO NOT EDIT manually)
28
+ - `.task-flow/.internal/` - Internal system files (ignore)
29
+
30
+ Follow all rules defined in `.cursor/rules/` for consistent development practices.
package/GEMINI.md ADDED
@@ -0,0 +1,30 @@
1
+ # Gemini Instructions
2
+
3
+ ## Development Rules
4
+
5
+ All development rules are automatically loaded from `.cursor/rules/` directory. These rules include:
6
+ - Cursor rules formatting guidelines
7
+ - Self-improvement processes
8
+ - Code commenting standards
9
+ - Commit practices
10
+ - Git command control
11
+ - Task execution management with RBIN Task Flow
12
+
13
+ ## RBIN Task Flow
14
+
15
+ This project uses RBIN Task Flow for task management:
16
+ - **Task Definition**: Edit `.task-flow/tasks.input.txt` using simple format: `- Task description`
17
+ - **AI Commands**: Use AI-powered commands for task management:
18
+ - `task-flow: sync` - Synchronize tasks from tasks.input.txt
19
+ - `task-flow: run next X` - Work on next X subtasks
20
+ - `task-flow: run task X` - Execute all pending subtasks of task X
21
+ - `task-flow: status` - View current task status
22
+ - `task-flow: review` - Review completed tasks
23
+ - `task-flow: think` - Analyze code and suggest new tasks
24
+ - `task-flow: refactor` - Refactor code from current commit
25
+ - **Files**:
26
+ - `.task-flow/tasks.input.txt` - Define your tasks here
27
+ - `.task-flow/tasks.status.md` - Auto-generated status (DO NOT EDIT manually)
28
+ - `.task-flow/.internal/` - Internal system files (ignore)
29
+
30
+ Follow all rules defined in `.cursor/rules/` for consistent development practices.