rbin-task-flow 1.25.1 → 1.26.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.
Files changed (45) hide show
  1. package/.claude/skills/rbin-coding-standards/SKILL.md +1 -1
  2. package/.claude/skills/task-flow-estimate/SKILL.md +8 -5
  3. package/.claude/skills/task-flow-from-contexts/SKILL.md +16 -0
  4. package/.claude/skills/task-flow-run/SKILL.md +1 -1
  5. package/.claude/skills/task-flow-sync/SKILL.md +0 -1
  6. package/.claude/skills/task-flow-sync/workflow.md +1 -1
  7. package/.claude/skills/task-flow-validate/SKILL.md +2 -2
  8. package/.cursor/rules/graphify-task-flow.mdc +7 -8
  9. package/.cursor/rules/task-flow-cursor.mdc +3 -8
  10. package/.cursor/rules/task-flow-sync.mdc +1 -1
  11. package/.cursor/rules/task_execution.mdc +2 -7
  12. package/.cursor/rules/task_from_contexts.mdc +93 -0
  13. package/.cursor/rules/task_validate.mdc +1 -7
  14. package/.cursor/rules/task_work.mdc +1 -1
  15. package/.task-flow/README.md +70 -53
  16. package/.task-flow/guides/AI-PLATFORMS.md +6 -7
  17. package/.task-flow/guides/CODEX.md +16 -63
  18. package/.task-flow/guides/CURSOR.md +4 -5
  19. package/.task-flow/guides/GRAPHIFY.md +12 -13
  20. package/.task-flow/guides/platforms/claude-code.md +13 -23
  21. package/.task-flow/guides/platforms/codex.md +9 -22
  22. package/.task-flow/guides/platforms/cursor.md +14 -35
  23. package/.task-flow/tasks.input.txt +3 -4
  24. package/AGENTS.md +3 -13
  25. package/CLAUDE.md +3 -8
  26. package/README.md +14 -22
  27. package/bin/cli.js +3 -24
  28. package/lib/gitignore.js +0 -2
  29. package/lib/graphify.js +50 -18
  30. package/lib/install.js +1 -14
  31. package/package.json +1 -2
  32. package/.claude/skills/task-flow-check/SKILL.md +0 -15
  33. package/.claude/skills/task-flow-generate-flow/SKILL.md +0 -15
  34. package/.claude/skills/task-flow-improve-changes/SKILL.md +0 -15
  35. package/.claude/skills/task-flow-refactor/SKILL.md +0 -14
  36. package/.claude/skills/task-flow-review/SKILL.md +0 -14
  37. package/.claude/skills/task-flow-think/SKILL.md +0 -19
  38. package/.cursor/rules/task_analysis.mdc +0 -45
  39. package/.cursor/rules/task_check.mdc +0 -37
  40. package/.cursor/rules/task_generate_flow.mdc +0 -90
  41. package/.cursor/rules/task_improve_changes.mdc +0 -50
  42. package/.cursor/rules/task_refactor.mdc +0 -94
  43. package/.cursor/rules/task_review.mdc +0 -88
  44. package/lib/audit.js +0 -44
  45. package/lib/check.js +0 -113
@@ -13,9 +13,19 @@ Codex loads **AGENTS.md** at session start (32 KiB default cap). This file holds
13
13
  3. New tasks: generate 3–8 subtasks, `createdAt` ISO, contexts from `.task-flow/contexts/`.
14
14
  4. Write/update `tasks.json`, `status.json`, `tasks.status.md` with Summary.
15
15
  5. Preserve status on modified tasks when subtasks still align.
16
- 6. Do not populate `tasks.flow.md`.
17
16
 
18
- Sync: `.cursor/rules/task-flow-sync.mdc` · Think: `.cursor/rules/task_analysis.mdc`
17
+ Sync: `.cursor/rules/task-flow-sync.mdc`
18
+
19
+ ---
20
+
21
+ ## task-flow: from contexts
22
+
23
+ 1. List `.task-flow/contexts/` (or specific `file.png`, `a.md,b.png`).
24
+ 2. Read each file; skip already linked via `task-flow-screen` in `tasks.input.txt`.
25
+ 3. Append `- Description task-flow-screen filename.ext` under `## Tasks:`.
26
+ 4. Report added/skipped; suggest `task-flow: sync` — do not sync here.
27
+
28
+ Rule: `.cursor/rules/task_from_contexts.mdc`
19
29
 
20
30
  ---
21
31
 
@@ -37,26 +47,6 @@ Display `.task-flow/tasks.status.md`. If missing, run sync first.
37
47
 
38
48
  ---
39
49
 
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
50
  ## task-flow: audit
61
51
 
62
52
  1. Score project vs the checklist in `.cursor/rules/coding_standards.mdc` (not the full doc unless user wants depth).
@@ -67,27 +57,6 @@ Rule: `.cursor/rules/task_audit.mdc`
67
57
 
68
58
  ---
69
59
 
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
60
  ## task-flow: validate
92
61
 
93
62
  1. Read `tasks.input.txt`, `tasks.json`, `status.json` — scope `all` or task ID(s).
@@ -98,21 +67,13 @@ Rule: `.cursor/rules/task_review.mdc`
98
67
 
99
68
  Rule: `.cursor/rules/task_validate.mdc`
100
69
 
101
- Unlike `think` (asks before add) or `review` (done only, asks before revert).
102
-
103
- ---
104
-
105
- ## task-flow: refactor X
106
-
107
- Refactor task-related files: no behavior change, remove explanatory comments, keep section separators.
108
-
109
- Rule: `.cursor/rules/task_refactor.mdc`
110
-
111
70
  ---
112
71
 
113
72
  ## task-flow: estimate X
114
73
 
115
- Read `tasks.json`; one hour range; average developer, average pace, no AI acceleration.
74
+ 1. Parse: `estimate X` | `estimate X,Y` | `estimate all`.
75
+ 2. Read `tasks.json` for matching task ID(s).
76
+ 3. One hour range per task; average developer, average pace, no AI acceleration.
116
77
 
117
78
  Rule: `.cursor/rules/task_estimate.mdc`
118
79
 
@@ -126,14 +87,6 @@ Rule: `.cursor/rules/task_report.mdc`
126
87
 
127
88
  ---
128
89
 
129
- ## task-flow: generate flow
130
-
131
- Populate `.task-flow/tasks.flow.md` with deps, hours, model hints (no Opus).
132
-
133
- Rule: `.cursor/rules/task_generate_flow.mdc`
134
-
135
- ---
136
-
137
90
  ## Implementing code (any subtask)
138
91
 
139
92
  Follow the checklist in `.cursor/rules/coding_standards.mdc`. For examples/Nest: read sections of `.task-flow/guides/coding-standards-full.md` only.
@@ -142,7 +95,7 @@ Follow the checklist in `.cursor/rules/coding_standards.mdc`. For examples/Nest:
142
95
 
143
96
  ## Graphify (optional)
144
97
 
145
- Only during `run` / `think` when `graphify-out/` exists. See `.task-flow/guides/GRAPHIFY.md`. Does not replace status updates.
98
+ Only during `run` / `validate` when `.task-flow/guides/graphify-out/` exists. See `.task-flow/guides/GRAPHIFY.md`. Does not replace status updates.
146
99
 
147
100
  ---
148
101
 
@@ -21,11 +21,10 @@ Verify: `rg 'alwaysApply: true' .cursor/rules` → only the two files above.
21
21
 
22
22
  | Say in Agent / Chat | Best invoke |
23
23
  |---------------------|-------------|
24
+ | `task-flow: from contexts` | `@task-flow-from-contexts` |
24
25
  | `task-flow: sync` | `@task-flow-sync` |
25
26
  | `task-flow: run next 4` | `@task-flow-run` |
26
27
  | `task-flow: status` | `@task-flow-status` |
27
- | `task-flow: check` | `@task-flow-check` |
28
- | `task-flow: improve changes` | `@task-flow-improve-changes` |
29
28
  | `task-flow: validate` | `@task-flow-validate` |
30
29
  | Implement feature code | `@rbin-coding-standards` (explicit; checklist glob on `src/**`) |
31
30
 
@@ -39,7 +38,7 @@ Verify: `rg 'alwaysApply: true' .cursor/rules` → only the two files above.
39
38
  |-------|----------|-------------|
40
39
  | **Always** | `task-flow-cursor`, `rbin-git-policy` | Every chat (~0,9k tokens) |
41
40
  | **Skills** | `@task-flow-run`, `@task-flow-sync`, … | You invoke (recommended for run/sync/audit) |
42
- | **Intelligent** | `task_work`, `task_audit`, `task_analysis`, … | Agent matches `description` |
41
+ | **Intelligent** | `task_work`, `task_audit`, `task_validate`, … | Agent matches `description` |
43
42
  | **Glob** | `task-flow-sync`, `task_generation` (`.task-flow/**`), `coding_standards` (`src/**`, `app/**`), `code_comments` | Matching paths in chat |
44
43
  | **Manual** | `@cursor_rules`, `@self_improve`, `@task_report`, legacy `git_control` | You `@`-mention only (no `description` auto-match) |
45
44
 
@@ -54,7 +53,7 @@ If a command fails to trigger, use **`@task-flow-*`** explicitly.
54
53
  | Surface | Best for |
55
54
  |---------|----------|
56
55
  | **Agent** (Composer) | `@task-flow-run`, multi-file implementation |
57
- | **Chat** | `sync`, `status`, `think`, `estimate` |
56
+ | **Chat** | `sync`, `status`, `estimate` |
58
57
  | **@ files** | `@tasks.input.txt`, `@.task-flow/contexts/mockup.png` |
59
58
 
60
59
  ---
@@ -70,7 +69,7 @@ After each subtask:
70
69
 
71
70
  ## Graphify
72
71
 
73
- Only during `run` / `think` when `graphify-out/` exists. Does not replace Task Flow status. See [GRAPHIFY.md](GRAPHIFY.md).
72
+ Only during `run` / `validate` when `.task-flow/guides/graphify-out/` exists. Does not replace Task Flow status. See [GRAPHIFY.md](GRAPHIFY.md).
74
73
 
75
74
  ---
76
75
 
@@ -9,7 +9,7 @@ Graphify ([graphifyy](https://pypi.org/project/graphifyyy/)) cria um **grafo de
9
9
  ## Token discipline
10
10
 
11
11
  - Use **summarized** `graphify query` output (symbols, paths, short lists) — not full graph dumps in chat.
12
- - **Do not paste** `graphify-out/GRAPH_REPORT.md` (or entire report files) into the model context unless the user **explicitly** `@`-mentions that file.
12
+ - **Do not paste** `.task-flow/guides/graphify-out/GRAPH_REPORT.md` (or entire report files) into the model context unless the user **explicitly** `@`-mentions that file.
13
13
  - Prefer one targeted query per subtask over loading `graph.json` or large exports.
14
14
  - Task Flow status files (`.task-flow/`) always win over Graphify for workflow and git.
15
15
 
@@ -20,7 +20,7 @@ Graphify ([graphifyy](https://pypi.org/project/graphifyyy/)) cria um **grafo de
20
20
  | | Task Flow | Graphify |
21
21
  |---|-----------|----------|
22
22
  | **Pergunta** | O que fazer agora? | Onde está X no código? |
23
- | **Dados** | `.task-flow/` | `graphify-out/` |
23
+ | **Dados** | `.task-flow/` | `.task-flow/guides/graphify-out/` |
24
24
  | **Comandos** | `task-flow: sync`, `run`, `status`, … | `graphify extract`, `query`, `affected` |
25
25
  | **Regra Cursor** | Várias `.mdc` (workflow) | `graphify-task-flow.mdc` (**sob demanda**) |
26
26
 
@@ -29,9 +29,9 @@ Graphify ([graphifyy](https://pypi.org/project/graphifyyy/)) cria um **grafo de
29
29
  ## O que o `rbin-task-flow init` já faz por você
30
30
 
31
31
  1. Copia **`.cursor/rules/graphify-task-flow.mdc`** — `alwaysApply: false` (não compete com `task_work`, etc.).
32
- 2. Adiciona **`graphify-out/`** ao `.gitignore`.
32
+ 2. Grafo em **`.task-flow/guides/graphify-out/`** (já coberto pelo `.task-flow/` no `.gitignore`; remove entrada legada `graphify-out/` na raiz).
33
33
  3. Se existir **`.cursor/rules/graphify.mdc`** do `graphify cursor install` (upstream com `alwaysApply: true`), o instalador **desativa** `alwaysApply` para economizar contexto.
34
- 4. Com **`--graphify`** em `init`, `update` ou **`reset`**, roda `graphify extract . --backend claude-cli` se o CLI estiver no PATH (usa assinatura Claude Code — sem API key separada).
34
+ 4. Com **`--graphify`** em `init`, `update` ou **`reset`**, roda `graphify extract . --backend claude-cli --out .task-flow/guides` se o CLI estiver no PATH (usa assinatura Claude Code — sem API key separada).
35
35
 
36
36
  **Não** rodamos `graphify claude install` / `graphify cursor install` automaticamente — o install upstream força `graphify.mdc` always-on e incham `CLAUDE.md` / `AGENTS.md`.
37
37
 
@@ -44,7 +44,6 @@ cd seu-projeto
44
44
  rbin-task-flow reset --graphify # ou init/update --graphify; recria .task-flow + grafo
45
45
  task-flow: sync
46
46
  task-flow: run next 3 # IA usa grafo só ao implementar
47
- task-flow: check
48
47
  # você: git commit
49
48
  ```
50
49
 
@@ -52,16 +51,16 @@ task-flow: check
52
51
 
53
52
  | Comando Task Flow | Usar Graphify? |
54
53
  |-------------------|----------------|
55
- | `sync`, `status`, `estimate`, `report`, `generate flow` | Não |
56
- | `run next X`, `run N` | Sim, se `graphify-out/` existir |
57
- | `think`, `review`, `validate` | Opcional |
58
- | `audit`, `improve changes` | Opcional (estrutura); padrões = checklist `coding_standards.mdc` |
54
+ | `sync`, `status`, `estimate`, `report` | Não |
55
+ | `run next X`, `run N` | Sim, se `.task-flow/guides/graphify-out/` existir |
56
+ | `validate` | Opcional |
57
+ | `audit` | Opcional (estrutura); padrões = checklist `coding_standards.mdc` |
59
58
  | `check` | Não |
60
59
 
61
60
  **Prompt exemplo:**
62
61
 
63
62
  ```text
64
- task-flow: run next 2 — se graphify-out existir, graphify query "<módulo da subtarefa>" antes de editar arquivos.
63
+ task-flow: run next 2 — se .task-flow/guides/graphify-out/ existir, graphify query "<módulo>" --graph .task-flow/guides/graphify-out/graph.json antes de editar.
65
64
  ```
66
65
 
67
66
  ---
@@ -87,9 +86,9 @@ task-flow: run next 2 — se graphify-out existir, graphify query "<módulo da s
87
86
 
88
87
  | Evento | Ação |
89
88
  |--------|------|
90
- | Primeiro setup | `rbin-task-flow init --graphify` ou `graphify extract . --backend claude-cli` |
89
+ | Primeiro setup | `rbin-task-flow init --graphify` ou `graphify extract . --backend claude-cli --out .task-flow/guides` |
91
90
  | Reset completo (tasks + template + grafo) | `rbin-task-flow reset --graphify` |
92
- | Refactor grande após vários `run` | `graphify update .` ou `graphify extract . --backend claude-cli` |
91
+ | Refactor grande após vários `run` | `graphify update .` ou `graphify extract . --backend claude-cli --out .task-flow/guides` |
93
92
  | `task-flow: update` | Reaplica `graphify-task-flow.mdc` e pode rebaixar `graphify.mdc` |
94
93
 
95
94
  ---
@@ -102,7 +101,7 @@ task-flow: run next 2 — se graphify-out existir, graphify query "<módulo da s
102
101
  | Contexto cheio no Cursor | Confirme `graphify.mdc` não está `alwaysApply: true` |
103
102
  | `graphify: command not found` | Rode `rbin-install-dev` (módulo Graphify) |
104
103
  | `no LLM API key found` ao rodar `graphify extract .` manual | Use `rbin-task-flow init --graphify` (roda `--backend claude-cli`) ou exporte uma API key / `--backend ollama` |
105
- | Grafo desatualizado | `graphify extract . --backend claude-cli` de novo |
104
+ | Grafo desatualizado | `graphify extract . --backend claude-cli --out .task-flow/guides` de novo |
106
105
 
107
106
  ---
108
107
 
@@ -29,7 +29,7 @@ projeto/
29
29
  ├── CLAUDE.md # Índice enxuto + tabela de skills
30
30
  ├── .claude/
31
31
  │ ├── settings.json
32
- │ └── skills/ # 14 skills (task-flow-*, rbin-*)
32
+ │ └── skills/ # 10 skills (task-flow-*, rbin-*)
33
33
  ├── .cursor/
34
34
  │ ├── rules/ # Referência + Cursor alwaysApply
35
35
  │ └── skills/ # Espelho das mesmas skills
@@ -53,9 +53,7 @@ CLAUDE.md # ≤ 150 linhas: índice + invariantes
53
53
  ├── task-flow-run/
54
54
  │ ├── SKILL.md
55
55
  │ └── workflow.md
56
- ├── task-flow-check/
57
56
  ├── task-flow-audit/
58
- ├── task-flow-improve-changes/
59
57
  └── rbin-git/
60
58
  .task-flow/ # tasks, status, contexts (inalterado)
61
59
  ```
@@ -89,7 +87,7 @@ task-flow-run/
89
87
  |-------|-------------------|
90
88
  | `description` | **Obrigatório para descoberta.** Terceira pessoa, WHAT + WHEN, termos `task-flow`, `run next`, `sync`, `RBIN`. Limite ~1536 caracteres na listagem. |
91
89
  | `name` | Opcional; comando `/` vem do **nome da pasta** (`task-flow-run` → `/task-flow-run`). |
92
- | `disable-model-invocation: true` | Workflows com efeito colateral: `run`, `sync`, `check`, deploy. Você dispara; Claude não “decide” sozinho. |
90
+ | `disable-model-invocation: true` | Workflows com efeito colateral: `run`, `sync`, deploy. Você dispara; Claude não “decide” sozinho. |
93
91
  | `user-invocable: false` | Conhecimento de fundo (ex.: legado) — raro no Task Flow. |
94
92
  | `allowed-tools` | Restringir ferramentas em skills sensíveis (ex.: só `Read`, `Grep` para audit read-only). |
95
93
  | `paths` | Ex.: `[".task-flow/**"]` — auto-carregar skill ao editar arquivos de task. |
@@ -122,7 +120,7 @@ Inclua estado real **antes** das instruções:
122
120
  1. ...
123
121
  ```
124
122
 
125
- O prefixo `` !`comando` `` executa o comando e substitui a linha pelo output. Ideal para `run`, `review` e `improve changes` (diff).
123
+ O prefixo `` !`comando` `` executa o comando e substitui a linha pelo output. Ideal para `run` e `validate`.
126
124
 
127
125
  ### 4.5 Descoberta e monorepos
128
126
 
@@ -142,18 +140,13 @@ Para Task Flow em equipe: prefira **skills de projeto** versionadas (ajuste o `.
142
140
 
143
141
  | Comando usuário | Skill sugerida | `/` | Regra fonte |
144
142
  |-----------------|----------------|-----|-------------|
143
+ | `task-flow: from contexts` | `task-flow-from-contexts` | `/task-flow-from-contexts` | `task_from_contexts.mdc` |
145
144
  | `task-flow: sync` | `task-flow-sync` | `/task-flow-sync` | `task-flow-sync.mdc` · `task_generation.mdc` (subtasks) |
146
145
  | `task-flow: run next X` / `run X` | `task-flow-run` | `/task-flow-run` | `workflow.md` · stub `task_work.mdc` |
147
146
  | `task-flow: status` | `task-flow-status` | `/task-flow-status` | `task_status.mdc` |
148
- | `task-flow: think` | `task-flow-think` | `/task-flow-think` | `task_analysis.mdc` |
149
147
  | `task-flow: audit` | `task-flow-audit` | `/task-flow-audit` | `task_audit.mdc` |
150
- | `task-flow: improve changes` | `task-flow-improve-changes` | `/task-flow-improve-changes` | `task_improve_changes.mdc` |
151
- | `task-flow: check` | `task-flow-check` | `/task-flow-check` | `task_check.mdc` |
152
- | `task-flow: review X` | `task-flow-review` | `/task-flow-review` | `task_review.mdc` |
153
- | `task-flow: refactor X` | `task-flow-refactor` | `/task-flow-refactor` | `task_refactor.mdc` |
154
- | `task-flow: estimate X` | `task-flow-estimate` | `/task-flow-estimate` | `task_estimate.mdc` |
148
+ | `task-flow: estimate X` / `X,Y` / `all` | `task-flow-estimate` | `/task-flow-estimate` | `task_estimate.mdc` |
155
149
  | `task-flow: report X` | `task-flow-report` | `/task-flow-report` | `task_report.mdc` |
156
- | `task-flow: generate flow` | `task-flow-generate-flow` | `/task-flow-generate-flow` | `task_generate_flow.mdc` |
157
150
  | Implementar código | `rbin-coding-standards` | `/rbin-coding-standards` | checklist `coding_standards.mdc` + `docs/coding-standards-full.md` on demand |
158
151
  | Após concluir subtarefa | `rbin-git` | `/rbin-git` | `rbin-git-policy.mdc` (always) |
159
152
 
@@ -205,23 +198,21 @@ Copie o corpo longo de `.cursor/rules/task_work.mdc` para `workflow.md`.
205
198
  2. /task-flow-sync (ou: task-flow: sync)
206
199
  3. /task-flow-status
207
200
  4. /task-flow-run run next 3
208
- 5. /task-flow-check
209
- 6. Você: git add && git commit (mensagem sugerida pela IA)
201
+ 5. Você: git add && git commit (mensagem sugerida pela IA)
210
202
  ```
211
203
 
212
204
  ### 7.2 Antes do PR
213
205
 
214
206
  ```text
215
- /task-flow-improve-changes
216
- /task-flow-check
217
- /task-flow-review 1,2
207
+ /task-flow-validate
218
208
  ```
219
209
 
220
210
  ### 7.3 Planejamento / cobrança
221
211
 
222
212
  ```text
223
- /task-flow-generate-flow
224
213
  /task-flow-estimate 3
214
+ /task-flow-estimate 1,2,3
215
+ /task-flow-estimate all
225
216
  ```
226
217
 
227
218
  ### 7.4 Múltiplos agentes no mesmo repo
@@ -239,11 +230,11 @@ Skills nativas úteis **junto** com Task Flow ([docs](https://code.claude.com/do
239
230
  |-------|-------------------|
240
231
  | `/code-review` | Após `task-flow: run`, antes do commit |
241
232
  | `/debug` | Subtarefa travada em bug |
242
- | `/verify` | Validar app rodando (além de `task-flow: check`) |
233
+ | `/verify` | Validar app rodando em runtime |
243
234
  | `/run` | Subir app para testar UI de subtarefa |
244
235
  | `/run-skill-generator` | Uma vez por repo — grava receita de build em `.claude/skills/run-*/` |
245
236
 
246
- `task-flow: check` cobre lint/build; `/verify` cobre comportamento em runtime quando testes não bastam.
237
+ `/verify` cobre comportamento em runtime quando testes não bastam.
247
238
 
248
239
  ---
249
240
 
@@ -268,7 +259,6 @@ Stack: …
268
259
  | Sync | `/task-flow-sync` |
269
260
  | Executar | `/task-flow-run` |
270
261
  | Status | `/task-flow-status` |
271
- | Lint/build | `/task-flow-check` |
272
262
  | Padrões de código | `/rbin-coding-standards` |
273
263
 
274
264
  Comandos naturais `task-flow: …` também valem.
@@ -325,8 +315,8 @@ Ou use `AGENTS.override.md` / settings locais fora do git e commite `.claude/ski
325
315
  ## 13. Checklist de maturidade Claude + Task Flow
326
316
 
327
317
  - [x] `CLAUDE.md` enxuto com índice de skills
328
- - [x] Skills instaladas via `rbin-task-flow init` (14 skills)
329
- - [x] `paths: [".task-flow/**"]` em `task-flow-run`, `sync`, `estimate`, `report`, `generate-flow`
318
+ - [x] Skills instaladas via `rbin-task-flow init` (10 skills)
319
+ - [x] `paths: [".task-flow/**"]` em `task-flow-run`, `sync`, `estimate`, `report`
330
320
  - [x] Injeção `` !`head tasks.status.md` `` em `task-flow-run`
331
321
  - [ ] `.claude/skills/` versionado no git (ajustar `.gitignore` se o time quiser)
332
322
  - [ ] `.task-flow/contexts/` populado para tasks de UI
@@ -119,8 +119,6 @@ src/AGENTS.md # Opcional: só para subtree (monorepo)
119
119
  | `task-flow: sync` | `.cursor/rules/task-flow-sync.mdc` |
120
120
  | `task-flow: run next X` / `run N` | `.claude/skills/task-flow-run/workflow.md` (fallback: `task_work.mdc`) |
121
121
  | `task-flow: status` | `.task-flow/tasks.status.md` |
122
- | `task-flow: improve changes` | `.cursor/rules/task_improve_changes.mdc` + `git diff --name-only HEAD` |
123
- | `task-flow: check` | `.cursor/rules/task_check.mdc` + `package.json` scripts |
124
122
  | `task-flow: audit` | `.cursor/rules/task_audit.mdc` + checklist `coding_standards.mdc` (full doc seções se necessário) |
125
123
 
126
124
  Após cada subtarefa: atualizar `status.json` e `tasks.status.md` (resumo no topo).
@@ -155,18 +153,16 @@ Codex prefere `AGENTS.override.md` sobre `AGENTS.md` **no mesmo nível**.
155
153
 
156
154
  | Comando | Prompt mínimo eficaz |
157
155
  |---------|---------------------|
156
+ | `task-flow: from contexts` | `task_from_contexts.mdc — leia contexts/, append tasks em tasks.input.txt` |
158
157
  | `task-flow: sync` | `Leia AGENTS.md e task-flow-sync.mdc. Execute task-flow: sync em tasks.input.txt.` |
159
158
  | `task-flow: run next 3` | `Siga task-flow-run workflow.md. task-flow: run next 3. Atualize status.json e tasks.status.md.` |
160
159
  | `task-flow: run 2` | Idem + respeitar dependências tasks 1..X-1 |
161
160
  | `task-flow: status` | `Mostre o conteúdo de .task-flow/tasks.status.md` |
162
- | `task-flow: think` | `task-flow: think — sugira tasks; pergunte antes de gravar em tasks.input.txt` |
163
- | `task-flow: improve changes` | `git diff --name-only HEAD` · checklist `coding_standards.mdc` nos paths alterados |
164
- | `task-flow: check` | `Rode lint:fix e build do package.json; corrija até passar` |
165
- | `task-flow: review 1` | `task_review.mdc — verifique se task 1 done está realmente implementada` |
166
161
  | `task-flow: validate` | `task_validate.mdc — valide todas as tasks, reverta false done, adicione lacunas em tasks.input.txt e sync` |
167
162
  | `task-flow: estimate 1` | `task_estimate.mdc para task 1` |
163
+ | `task-flow: estimate 1,2` | `task_estimate.mdc para tasks 1 e 2` |
164
+ | `task-flow: estimate all` | `task_estimate.mdc para todas as tasks` |
168
165
  | `task-flow: report 1` | `task_report.mdc — task 1 deve estar done` |
169
- | `task-flow: generate flow` | `task_generate_flow.mdc — preencher tasks.flow.md` |
170
166
 
171
167
  **Padrão universal:**
172
168
 
@@ -193,10 +189,6 @@ Leia AGENTS.md. task-flow: sync.
193
189
  task-flow: run next 2 — leia .claude/skills/task-flow-run/workflow.md e .task-flow/.internal/tasks.json.
194
190
  ```
195
191
 
196
- ```text
197
- task-flow: check
198
- ```
199
-
200
192
  Você executa git manualmente.
201
193
 
202
194
  ### 6.2 Codex em subpasta (monorepo)
@@ -213,11 +205,7 @@ Codex mescla: `AGENTS.md` (raiz) + `packages/frontend/AGENTS.md` se existir.
213
205
  ### 6.3 Antes do PR
214
206
 
215
207
  ```text
216
- task-flow: improve changes
217
- ```
218
-
219
- ```text
220
- task-flow: review 2,3
208
+ task-flow: validate
221
209
  ```
222
210
 
223
211
  ### 6.4 Sem project doc (debug)
@@ -290,8 +278,7 @@ Config mais específica (perto do CWD) **sobrescreve** a da raiz.
290
278
  | Ferramenta | Papel |
291
279
  |------------|-------|
292
280
  | `rbin-task-flow init` | Instala `AGENTS.md` + `.task-flow/` + `.cursor/rules/` |
293
- | `rbin-task-flow audit` | Lista unstaged (útil antes de `improve changes`) |
294
- | Codex | Executa lógica descrita nas regras |
281
+ | Codex | Executa lógica descrita nas regras (`task-flow: audit`, `task-flow: run`, etc.) |
295
282
 
296
283
  Codex **não** substitui `task-flow: sync` — isso é trabalho do agente lendo as regras.
297
284
 
@@ -303,7 +290,7 @@ Codex **não** substitui `task-flow: sync` — isso é trabalho do agente lendo
303
290
  |-------|---------|
304
291
  | AGENTS.md com 40 KiB de standards | Truncamento silencioso |
305
292
  | Assumir que Codex “sabe” task-flow | Sem `.mdc` no prompt, comportamento genérico |
306
- | `task-flow: audit` em todo commit pequeno | Use `improve changes` |
293
+ | `task-flow: audit` em todo commit pequeno | Use `task-flow: validate` ou escopo manual nos paths alterados |
307
294
  | Duplicar git rules em 3 arquivos sem necessidade | Desperdício do orçamento 32 KiB |
308
295
  | `CODEX_DISABLE_PROJECT_DOC=1` esquecido no env | AGENTS.md ignorado |
309
296
 
@@ -316,7 +303,7 @@ Codex **não** substitui `task-flow: sync` — isso é trabalho do agente lendo
316
303
  | Ignora “nunca commit” | AGENTS truncado ou não carregado | `Summarize current instructions`; reduzir AGENTS |
317
304
  | Não atualiza status | Procedimento não no prompt | Citir `task-flow-run/workflow.md` ou resumo embutido |
318
305
  | Comportamento diferente na subpasta | AGENTS local sobrescreve | Revisar `packages/*/AGENTS.md` |
319
- | Muito contexto em standards | audit puxou arquivo inteiro | Escopo `improve changes` + paths |
306
+ | Muito contexto em standards | audit puxou arquivo inteiro | Limite paths no prompt ou use checklist só nos arquivos alterados |
320
307
  | Conflito global vs repo | `~/.codex/AGENTS.md` | Simplificar global; detalhe no repo |
321
308
 
322
309
  ---
@@ -328,7 +315,7 @@ Codex **não** substitui `task-flow: sync` — isso é trabalho do agente lendo
328
315
  - [x] `.codex/config.toml` com `project_doc_max_bytes = 65536`
329
316
  - [ ] Tamanho `AGENTS.md` < ~28 KiB se não usar config.toml
330
317
  - [ ] Prompts citam `AGENTS.md` + `.task-flow/guides/CODEX.md` para `run`
331
- - [ ] `improve changes` + `check` antes de PR
318
+ - [ ] `task-flow: validate` antes de PR quando relevante
332
319
  - [ ] `AGENTS.md` em subpastas de monorepo se necessário
333
320
 
334
321
  ---
@@ -362,7 +349,7 @@ Ao implementar código, seguir o checklist em `.cursor/rules/coding_standards.md
362
349
 
363
350
  ## 15. Graphify (opcional)
364
351
 
365
- Não adicionamos Graphify ao `AGENTS.md` (limite 32 KiB). Em **`task-flow: run`**, peça no prompt: `graphify query "…"` se `graphify-out/` existir. Ver [GRAPHIFY.md](../GRAPHIFY.md).
352
+ Não adicionamos Graphify ao `AGENTS.md` (limite 32 KiB). Em **`task-flow: run`**, peça no prompt: `graphify query "…"` se `.task-flow/guides/graphify-out/` existir. Ver [GRAPHIFY.md](../GRAPHIFY.md).
366
353
 
367
354
  ---
368
355
 
@@ -8,13 +8,13 @@ Guia para extrair o máximo do **RBIN Task Flow** no [Cursor](https://cursor.com
8
8
 
9
9
  ## 1. Por que o Task Flow “nasce” bem no Cursor
10
10
 
11
- O instalador copia regras para `.cursor/rules/` e **14 skills** para `.cursor/skills/`. Desde **v1.23** (otimização P0 — ver [OPTIMIZATION-PLAN.md](../OPTIMIZATION-PLAN.md)):
11
+ O instalador copia regras para `.cursor/rules/` e **10 skills** para `.cursor/skills/`. Desde **v1.23** (otimização P0 — ver [OPTIMIZATION-PLAN.md](../OPTIMIZATION-PLAN.md)):
12
12
 
13
13
  | Camada | O que carrega | Tokens (~) |
14
14
  |--------|----------------|------------|
15
15
  | **Always-on (2)** | `task-flow-cursor.mdc`, `rbin-git-policy.mdc` | ~0,9k / turno |
16
16
  | **Skills** | `@task-flow-run`, `@task-flow-sync`, … | sob demanda |
17
- | **Intelligent** | `task_work`, `task_audit`, `task_analysis` (think), … | quando o Agent casa `description` |
17
+ | **Intelligent** | `task_work`, `task_audit`, `task_validate`, … | quando o Agent casa `description` |
18
18
  | **Glob** | `task-flow-sync`, `task_generation` (`.task-flow/**`), `coding_standards` (`src/**`, `app/**`) | arquivos no contexto |
19
19
 
20
20
  Isso significa:
@@ -44,7 +44,7 @@ Documentação: [Cursor Rules](https://cursor.com/docs/context/rules) · Referê
44
44
  |------|-------------|-------------------------|
45
45
  | **Always Apply** | `alwaysApply: true` | `task-flow-cursor`, `rbin-git-policy` only |
46
46
  | **Apply to Specific Files** | `globs: "**/.task-flow/**"` | Regras só ao editar tasks/status/contexts |
47
- | **Apply Intelligently** | `description` rica, `alwaysApply: false`, sem globs | `task_audit`, `task_refactor` — quando o assunto é auditoria/refactor |
47
+ | **Apply Intelligently** | `description` rica, `alwaysApply: false`, sem globs | `task_audit`, `task_validate` — quando o assunto é auditoria/validação |
48
48
  | **Apply Manually** | sem description/globs, `alwaysApply: false` | Rascunhos, regras experimentais — `@nome-da-regra` |
49
49
 
50
50
  ### Matriz frontmatter (oficial Cursor)
@@ -70,18 +70,13 @@ Confirme no projeto: `rg 'alwaysApply: true' .cursor/rules` → deve listar **ap
70
70
  | `rbin-git-policy.mdc` | git write proibido + sugestão de commit | **Always** |
71
71
  | `task_work.mdc` | fallback curto de `run` | Intelligent — use `@task-flow-run` |
72
72
  | `task_execution.mdc` | índice stub → skills | Intelligent / `@` manual |
73
+ | `task_from_contexts.mdc` | draft tasks de `contexts/` | Intelligent |
73
74
  | `task-flow-sync.mdc` | `sync` completo | **Glob** `.task-flow/**` · prefer `@task-flow-sync` |
74
75
  | `task_generation.mdc` | templates de subtarefas | **Glob** `.task-flow/**` |
75
- | `task_analysis.mdc` | `think` apenas | Intelligent |
76
76
  | `task_status.mdc` | `status` | **Glob** `.task-flow/**` |
77
77
  | `task_audit.mdc` | audit vs checklist standards | Intelligent |
78
- | `task_improve_changes.mdc` | audit só no diff | Intelligent |
79
- | `task_check.mdc` | lint + build | Intelligent |
80
- | `task_review.mdc` | verificar “done” | Intelligent |
81
- | `task_refactor.mdc` | refactor sem mudar comportamento | Intelligent |
82
78
  | `task_estimate.mdc` | estimativas | Intelligent / `@` |
83
79
  | `task_report.mdc` | relatórios | Intelligent / `@task-flow-report` |
84
- | `task_generate_flow.mdc` | `tasks.flow.md` | Intelligent / `@` |
85
80
  | `coding_standards.mdc` | checklist (~100 linhas) | **Glob** `src/**`, `app/**` |
86
81
  | `code_comments.mdc` | sem comentários explicativos | **Glob** `**/*.{ts,tsx,js,jsx}` |
87
82
  | `graphify-task-flow.mdc` | Graphify + Task Flow | Intelligent |
@@ -113,9 +108,9 @@ Cursor suporta o mesmo formato que Claude Code: `.cursor/skills/<nome>/SKILL.md`
113
108
  | Mesmo workflow em Claude + Cursor | Skills em **ambas** pastas | ✅ |
114
109
  | Referência enorme (coding standards) | checklist glob (~1k tokens) | `@rbin-coding-standards` + full doc por seção |
115
110
 
116
- O `rbin-task-flow init` copia **14 skills** para `.cursor/skills/` (mesmo conteúdo que `.claude/skills/`). No Agent, use `@task-flow-run`, `@task-flow-sync`, etc.
111
+ O `rbin-task-flow init` copia **10 skills** para `.cursor/skills/` (mesmo conteúdo que `.claude/skills/`). No Agent, use `@task-flow-run`, `@task-flow-sync`, etc.
117
112
 
118
- Após `rbin-task-flow init` ou `update`, use `@task-flow-*` no Agent. Para sync: `@task-flow-sync` (não `task_generation` / `task_analysis` isolados).
113
+ Após `rbin-task-flow init` ou `update`, use `@task-flow-*` no Agent. Para sync: `@task-flow-sync` (não `task_generation` isolado).
119
114
 
120
115
  ---
121
116
 
@@ -124,7 +119,7 @@ Após `rbin-task-flow init` ou `update`, use `@task-flow-*` no Agent. Para sync:
124
119
  | Superfície | Task Flow | Dica |
125
120
  |------------|-----------|------|
126
121
  | **Agent** (Ctrl+I / Composer) | Melhor para `run next X`, implementação multi-arquivo | Abra arquivos de `contexts/` no chat se UI |
127
- | **Chat** | `sync`, `think`, `status`, `estimate` | Peça explicitamente `task-flow: …` |
122
+ | **Chat** | `sync`, `status`, `estimate` | Peça explicitamente `task-flow: …` |
128
123
  | **Cursor CLI** | Mesmas regras do projeto se `.cursor/rules` presente | Útil em CI local com agent |
129
124
 
130
125
  **MCP:** regras não substituem MCP (DB, APIs). Task Flow não conflita — subtarefas podem dizer “usar MCP X” em `tasks.json`.
@@ -156,25 +151,12 @@ task-flow: run next 4
156
151
 
157
152
  Ao terminar cada subtarefa, o Agent deve atualizar `status.json` + `tasks.status.md` (`@task-flow-run` / `task_work` stub).
158
153
 
159
- ```text
160
- task-flow: check
161
- ```
162
-
163
154
  Commit **manual** (regra `rbin-git-policy`).
164
155
 
165
156
  ### 6.3 Qualidade antes do merge
166
157
 
167
158
  ```text
168
- task-flow: improve changes
169
- task-flow: review 2
170
- ```
171
-
172
- `improve changes` usa `git diff --name-only HEAD` — só arquivos alterados.
173
-
174
- ### 6.4 Refactor pós-task
175
-
176
- ```text
177
- task-flow: refactor 1
159
+ task-flow: validate
178
160
  ```
179
161
 
180
162
  Remove comentários explicativos; mantém separadores `// ───`.
@@ -197,7 +179,6 @@ Coloque PNG/PDF/MD em `.task-flow/contexts/`. Nas subtarefas geradas, instruçõ
197
179
  | Execução clara | `task-flow: run next 3` |
198
180
  | Task específica | `task-flow: run 2` |
199
181
  | Sincronizar após editar input | `task-flow: sync` |
200
- | Auditoria focada | `task-flow: improve changes` (não `audit` no repo inteiro) |
201
182
  | Padrões ao codificar | `@rbin-coding-standards` ou arquivo em `src/` (checklist glob) |
202
183
  | Regra sob demanda | `@task-flow-audit` ou `@task_audit` + `task-flow: audit` |
203
184
  | Run explícito | `@task-flow-run` + `task-flow: run next 2` |
@@ -246,9 +227,9 @@ Cursor também pode ler `AGENTS.md` em alguns fluxos; no RBIN ele é focado em *
246
227
  |---------|-------------|
247
228
  | **@-mentions** | `@tasks.input.txt`, `@contexts/dashboard.png`, `@task-flow-run` |
248
229
  | **Notepads / Docs** | Links para `.task-flow/README.md` |
249
- | **Bugbot / PR** | `task-flow: review X` antes de merge |
230
+ | **Bugbot / PR** | `task-flow: validate` antes de merge |
250
231
  | **Background Agent** | `run next 1` por job; cuidado com conflito de `status.json` |
251
- | **Plan mode** | `think` + `sync` para gerar tasks antes de `run` |
232
+ | **Plan mode** | Edite `tasks.input.txt` + `sync` antes de `run` |
252
233
 
253
234
  ---
254
235
 
@@ -260,9 +241,8 @@ Cursor também pode ler `AGENTS.md` em alguns fluxos; no RBIN ele é focado em *
260
241
  | `rbin-task-flow update` | Atualiza rules; preserva `.internal/` |
261
242
  | `rbin-task-flow reset` | Recria `.task-flow` do zero |
262
243
  | `rbin-task-flow reset --graphify` | Reset + `graphify extract . --backend claude-cli` |
263
- | `rbin-task-flow audit` | Lista arquivos **unstaged** (não substitui `task-flow: improve changes`) |
264
244
 
265
- O Agent executa o workflow; o CLI prepara arquivos.
245
+ O Agent executa o workflow (`task-flow: audit`, `task-flow: run`, etc.); o CLI prepara arquivos.
266
246
 
267
247
  ---
268
248
 
@@ -301,13 +281,12 @@ Para open source: documente no README — contribuidores podem usar `--share-ai-
301
281
  ## 13. Checklist de maturidade Cursor + Task Flow
302
282
 
303
283
  - [x] `task-flow-cursor.mdc` + `rbin-git-policy.mdc` (2 always-on, v1.23)
304
- - [x] 14 skills em `.cursor/skills/` após `init`
284
+ - [x] 10 skills em `.cursor/skills/` após `init`
305
285
  - [x] Otimização P0 de tokens (ver §3)
306
286
  - [ ] `task-flow: sync` após cada edição em `tasks.input.txt`
307
287
  - [ ] `@task-flow-run` (não `@task_work`) para implementar
308
288
  - [ ] Contextos em `.task-flow/contexts/` para tasks de UI
309
- - [ ] `improve changes` antes de commit
310
- - [ ] `task-flow: check` antes de push
289
+ - [ ] `task-flow: validate` antes de merge quando relevante
311
290
  - [ ] Time alinhado: git manual sempre
312
291
 
313
292
  ---
@@ -317,7 +296,7 @@ Para open source: documente no README — contribuidores podem usar `--share-ai-
317
296
  Com Graphify instalado (`rbin-install-dev`), o Task Flow traz **`graphify-task-flow.mdc`** (`alwaysApply: false`) em vez de depender do `graphify.mdc` always-on do `graphify cursor install`.
318
297
 
319
298
  - **`rbin-task-flow init`** rebaixa `graphify.mdc` upstream se existir.
320
- - Use Graphify só em **`task-flow: run`**, `think`, `review` — ver [GRAPHIFY.md](../GRAPHIFY.md).
299
+ - Use Graphify só em **`task-flow: run`**, `validate` — ver [GRAPHIFY.md](../GRAPHIFY.md).
321
300
 
322
301
  ---
323
302
 
@@ -9,10 +9,9 @@
9
9
 
10
10
  ## Contexts:
11
11
 
12
- - The `.task-flow/contexts/` folder is for AIs to consult when working on tasks (different file types: .md, .txt, .png, .jpg, .json, etc.)
13
- - Add specs, mockups, requirements, examples, or any reference file to this folder
14
- - RBIN Task Flow detects and references them when generating and implementing subtasks
15
- - To reference a specific context in a task: `task-flow-screen filename.ext`
12
+ - The `.task-flow/contexts/` folder is for specs, mockups, requirements (`.md`, `.txt`, `.png`, `.jpg`, `.pdf`, `.json`, etc.)
13
+ - **`task-flow: from contexts`** reads new files in `contexts/` and appends `- tasks` here (then run `task-flow: sync`)
14
+ - Manual reference in a task: `task-flow-screen filename.ext`
16
15
  - Example: `- Create login screen task-flow-screen login-mockup.png`
17
16
 
18
17
  ## Tasks: