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
|
@@ -0,0 +1,333 @@
|
|
|
1
|
+
# Task Flow no Cursor
|
|
2
|
+
|
|
3
|
+
Guia para extrair o máximo do **RBIN Task Flow** no [Cursor](https://cursor.com/) (Agent, Chat, CLI). O pacote RBIN já está **otimizado para Cursor** via `.cursor/rules/*.mdc`; este documento explica **como aproveitar cada recurso do Cursor** sem desperdiçar contexto.
|
|
4
|
+
|
|
5
|
+
**Índice geral:** [AI-PLATFORMS.md](../AI-PLATFORMS.md) · **Outras plataformas:** [claude-code.md](claude-code.md) · [codex.md](codex.md)
|
|
6
|
+
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
## 1. Por que o Task Flow “nasce” bem no Cursor
|
|
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)):
|
|
12
|
+
|
|
13
|
+
| Camada | O que carrega | Tokens (~) |
|
|
14
|
+
|--------|----------------|------------|
|
|
15
|
+
| **Always-on (2)** | `task-flow-cursor.mdc`, `rbin-git-policy.mdc` | ~0,9k / turno |
|
|
16
|
+
| **Skills** | `@task-flow-run`, `@task-flow-sync`, … | sob demanda |
|
|
17
|
+
| **Intelligent** | `task_work`, `task_audit`, `task_analysis` (think), … | quando o Agent casa `description` |
|
|
18
|
+
| **Glob** | `task-flow-sync`, `task_generation` (`.task-flow/**`), `coding_standards` (`src/**`, `app/**`) | arquivos no contexto |
|
|
19
|
+
|
|
20
|
+
Isso significa:
|
|
21
|
+
|
|
22
|
+
- Comandos `task-flow: …` são reconhecidos via **bootstrap** always-on
|
|
23
|
+
- **Não** carrega coding standards, run workflow nem audit em **toda** conversa — só com glob, skill ou `@`
|
|
24
|
+
- Para `run`: prefira **`@task-flow-run`**; evite `@task_work` (stub)
|
|
25
|
+
|
|
26
|
+
Documentação: [Cursor Rules](https://cursor.com/docs/context/rules) · Referência rápida: [CURSOR.md](../CURSOR.md).
|
|
27
|
+
|
|
28
|
+
### Perfis de instalação (CLI)
|
|
29
|
+
|
|
30
|
+
| Profile | Comando | O que copia |
|
|
31
|
+
|---------|---------|-------------|
|
|
32
|
+
| **standard** (padrão) | `rbin-task-flow init` | Todas as `.cursor/rules/*.mdc` + skills |
|
|
33
|
+
| **minimal** | `rbin-task-flow init --profile minimal` | Só `task-flow-cursor.mdc` + `rbin-git-policy.mdc` + skills |
|
|
34
|
+
|
|
35
|
+
- **minimal:** ≤2 always-on; workflows só via `@task-flow-*` (sem glob `coding_standards`, `task_work`, etc.).
|
|
36
|
+
- **update** sem `--profile` reaplica o profile salvo em `.task-flow/install-meta.json`.
|
|
37
|
+
- Migrar para regras completas: `rbin-task-flow update --profile standard`.
|
|
38
|
+
|
|
39
|
+
---
|
|
40
|
+
|
|
41
|
+
## 2. Os quatro modos de regra (use a favor do Task Flow)
|
|
42
|
+
|
|
43
|
+
| Modo | Frontmatter | Quando usar no Task Flow |
|
|
44
|
+
|------|-------------|-------------------------|
|
|
45
|
+
| **Always Apply** | `alwaysApply: true` | `task-flow-cursor`, `rbin-git-policy` only |
|
|
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 |
|
|
48
|
+
| **Apply Manually** | sem description/globs, `alwaysApply: false` | Rascunhos, regras experimentais — `@nome-da-regra` |
|
|
49
|
+
|
|
50
|
+
### Matriz frontmatter (oficial Cursor)
|
|
51
|
+
|
|
52
|
+
| `alwaysApply` | `description` | `globs` | Comportamento |
|
|
53
|
+
|---------------|---------------|---------|---------------|
|
|
54
|
+
| `true` | — | — | Sempre incluída (globs/description ignorados) |
|
|
55
|
+
| `false` | — | definido | Anexa quando arquivo do glob está **no chat** (mencionado/anexado) |
|
|
56
|
+
| `false` | definido | omitido | Agent decide pela description |
|
|
57
|
+
| `false` | omitido | omitido | Só com `@regra` no chat |
|
|
58
|
+
|
|
59
|
+
**Dica importante (comunidade Cursor):** não misture `globs` + `description` na mesma regra se o objetivo é “Apply Intelligently” — aumenta ruído na lista que o Agent avalia.
|
|
60
|
+
|
|
61
|
+
---
|
|
62
|
+
|
|
63
|
+
## 3. Inventário das regras RBIN (v1.23 — estado real)
|
|
64
|
+
|
|
65
|
+
Confirme no projeto: `rg 'alwaysApply: true' .cursor/rules` → deve listar **apenas** `task-flow-cursor.mdc` e `rbin-git-policy.mdc`.
|
|
66
|
+
|
|
67
|
+
| Arquivo | Papel | Modo atual |
|
|
68
|
+
|---------|--------|------------|
|
|
69
|
+
| `task-flow-cursor.mdc` | bootstrap + tabela de skills | **Always** |
|
|
70
|
+
| `rbin-git-policy.mdc` | git write proibido + sugestão de commit | **Always** |
|
|
71
|
+
| `task_work.mdc` | fallback curto de `run` | Intelligent — use `@task-flow-run` |
|
|
72
|
+
| `task_execution.mdc` | índice stub → skills | Intelligent / `@` manual |
|
|
73
|
+
| `task-flow-sync.mdc` | `sync` completo | **Glob** `.task-flow/**` · prefer `@task-flow-sync` |
|
|
74
|
+
| `task_generation.mdc` | templates de subtarefas | **Glob** `.task-flow/**` |
|
|
75
|
+
| `task_analysis.mdc` | `think` apenas | Intelligent |
|
|
76
|
+
| `task_status.mdc` | `status` | **Glob** `.task-flow/**` |
|
|
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
|
+
| `task_estimate.mdc` | estimativas | Intelligent / `@` |
|
|
83
|
+
| `task_report.mdc` | relatórios | Intelligent / `@task-flow-report` |
|
|
84
|
+
| `task_generate_flow.mdc` | `tasks.flow.md` | Intelligent / `@` |
|
|
85
|
+
| `coding_standards.mdc` | checklist (~100 linhas) | **Glob** `src/**`, `app/**` |
|
|
86
|
+
| `code_comments.mdc` | sem comentários explicativos | **Glob** `**/*.{ts,tsx,js,jsx}` |
|
|
87
|
+
| `graphify-task-flow.mdc` | Graphify + Task Flow | Intelligent |
|
|
88
|
+
| `git_control.mdc` / `commit_practices.mdc` | legado | Manual / `@` |
|
|
89
|
+
| `cursor_rules.mdc` | formato `.mdc` | **Glob** `.cursor/rules/**` |
|
|
90
|
+
| `self_improve.mdc` | evoluir regras | Manual `@self_improve` |
|
|
91
|
+
|
|
92
|
+
**Doc (não é regra):** `.task-flow/docs/coding-standards-full.md` — seções sob demanda; nunca colar inteiro no chat.
|
|
93
|
+
|
|
94
|
+
### Otimização P0 — implementada
|
|
95
|
+
|
|
96
|
+
- [x] 2 always-on (`task-flow-cursor`, `rbin-git-policy`) — antes eram 3+ com git/commit separados
|
|
97
|
+
- [x] `coding_standards` checklist + full doc separado
|
|
98
|
+
- [x] `task_work` / `task_execution` stubs; workflows em skills
|
|
99
|
+
- [x] `rbin-coding-standards` com `disable-model-invocation: true`
|
|
100
|
+
|
|
101
|
+
Próximas melhorias: [OPTIMIZATION-PLAN.md](../OPTIMIZATION-PLAN.md) (P1–P2).
|
|
102
|
+
|
|
103
|
+
---
|
|
104
|
+
|
|
105
|
+
## 4. Cursor Skills (`.cursor/skills/`)
|
|
106
|
+
|
|
107
|
+
Cursor suporta o mesmo formato que Claude Code: `.cursor/skills/<nome>/SKILL.md` ([Agent Skills](https://agentskills.io/)).
|
|
108
|
+
|
|
109
|
+
| Cenário | Rules `.mdc` | Skills |
|
|
110
|
+
|---------|--------------|--------|
|
|
111
|
+
| Comportamento **sempre** (nunca commitar git) | ✅ Always | ❌ |
|
|
112
|
+
| Workflow **pesado** (`run`, `sync`, audit completo) | ⚠️ Caro se Always | ✅ Sob demanda |
|
|
113
|
+
| Mesmo workflow em Claude + Cursor | Skills em **ambas** pastas | ✅ |
|
|
114
|
+
| Referência enorme (coding standards) | checklist glob (~1k tokens) | `@rbin-coding-standards` + full doc por seção |
|
|
115
|
+
|
|
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.
|
|
117
|
+
|
|
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).
|
|
119
|
+
|
|
120
|
+
---
|
|
121
|
+
|
|
122
|
+
## 5. Agent vs Chat vs CLI
|
|
123
|
+
|
|
124
|
+
| Superfície | Task Flow | Dica |
|
|
125
|
+
|------------|-----------|------|
|
|
126
|
+
| **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: …` |
|
|
128
|
+
| **Cursor CLI** | Mesmas regras do projeto se `.cursor/rules` presente | Útil em CI local com agent |
|
|
129
|
+
|
|
130
|
+
**MCP:** regras não substituem MCP (DB, APIs). Task Flow não conflita — subtarefas podem dizer “usar MCP X” em `tasks.json`.
|
|
131
|
+
|
|
132
|
+
---
|
|
133
|
+
|
|
134
|
+
## 6. Fluxos de trabalho otimizados
|
|
135
|
+
|
|
136
|
+
### 6.1 Setup inicial no projeto cliente
|
|
137
|
+
|
|
138
|
+
```bash
|
|
139
|
+
cd seu-projeto
|
|
140
|
+
rbin-task-flow init
|
|
141
|
+
# Edite .task-flow/tasks.input.txt
|
|
142
|
+
```
|
|
143
|
+
|
|
144
|
+
No Agent:
|
|
145
|
+
|
|
146
|
+
```text
|
|
147
|
+
task-flow: sync
|
|
148
|
+
task-flow: status
|
|
149
|
+
```
|
|
150
|
+
|
|
151
|
+
### 6.2 Sprint diário
|
|
152
|
+
|
|
153
|
+
```text
|
|
154
|
+
task-flow: run next 4
|
|
155
|
+
```
|
|
156
|
+
|
|
157
|
+
Ao terminar cada subtarefa, o Agent deve atualizar `status.json` + `tasks.status.md` (`@task-flow-run` / `task_work` stub).
|
|
158
|
+
|
|
159
|
+
```text
|
|
160
|
+
task-flow: check
|
|
161
|
+
```
|
|
162
|
+
|
|
163
|
+
Commit **manual** (regra `rbin-git-policy`).
|
|
164
|
+
|
|
165
|
+
### 6.3 Qualidade antes do merge
|
|
166
|
+
|
|
167
|
+
```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
|
|
178
|
+
```
|
|
179
|
+
|
|
180
|
+
Remove comentários explicativos; mantém separadores `// ───`.
|
|
181
|
+
|
|
182
|
+
### 6.5 Paralelismo (vários devs / agentes)
|
|
183
|
+
|
|
184
|
+
- `task-flow: run 3` **bloqueia** se tasks 1–2 tiverem subtarefas pendentes
|
|
185
|
+
- Dois Agents em tasks diferentes da mesma faixa: use tasks distintas (ex.: 10 e 11) ou `run next` em fila única
|
|
186
|
+
|
|
187
|
+
### 6.6 Contextos visuais
|
|
188
|
+
|
|
189
|
+
Coloque PNG/PDF/MD em `.task-flow/contexts/`. Nas subtarefas geradas, instruções já referenciam o path — no Cursor, **@** o arquivo de contexto no primeiro prompt da subtarefa.
|
|
190
|
+
|
|
191
|
+
---
|
|
192
|
+
|
|
193
|
+
## 7. Prompts de alta eficácia
|
|
194
|
+
|
|
195
|
+
| Objetivo | Prompt |
|
|
196
|
+
|----------|--------|
|
|
197
|
+
| Execução clara | `task-flow: run next 3` |
|
|
198
|
+
| Task específica | `task-flow: run 2` |
|
|
199
|
+
| Sincronizar após editar input | `task-flow: sync` |
|
|
200
|
+
| Auditoria focada | `task-flow: improve changes` (não `audit` no repo inteiro) |
|
|
201
|
+
| Padrões ao codificar | `@rbin-coding-standards` ou arquivo em `src/` (checklist glob) |
|
|
202
|
+
| Regra sob demanda | `@task-flow-audit` ou `@task_audit` + `task-flow: audit` |
|
|
203
|
+
| Run explícito | `@task-flow-run` + `task-flow: run next 2` |
|
|
204
|
+
| Natural | `trabalhe nas próximas 2 subtarefas do task flow` (bootstrap always-on) |
|
|
205
|
+
|
|
206
|
+
**Evite:** “continua” sem número; “marca como feito” sem atualizar JSON + MD.
|
|
207
|
+
|
|
208
|
+
---
|
|
209
|
+
|
|
210
|
+
## 8. Otimização de contexto (avançado)
|
|
211
|
+
|
|
212
|
+
### 8.1 Economizar tokens (P0 já aplicado no pacote)
|
|
213
|
+
|
|
214
|
+
| Ação | Status |
|
|
215
|
+
|------|--------|
|
|
216
|
+
| 2 regras always-on | ✅ `task-flow-cursor`, `rbin-git-policy` |
|
|
217
|
+
| Skills para `run`, `sync`, audit, … | ✅ `@task-flow-*` |
|
|
218
|
+
| `coding_standards` checklist + full doc | ✅ glob ~1k tokens; full sob demanda |
|
|
219
|
+
| Stubs `task_work` / `task_execution` | ✅ |
|
|
220
|
+
| Unificar git em `rbin-git-policy` | ✅ |
|
|
221
|
+
|
|
222
|
+
**No seu projeto:** `rbin-task-flow update` reaplica o template. Evite reativar `alwaysApply: true` em `graphify.mdc` upstream.
|
|
223
|
+
|
|
224
|
+
**Roadmap:** [OPTIMIZATION-PLAN.md](../OPTIMIZATION-PLAN.md) · tarefas: [OPTIMIZATION-IMPLEMENTATION-TASKS.md](../OPTIMIZATION-IMPLEMENTATION-TASKS.md).
|
|
225
|
+
|
|
226
|
+
### 8.2 Hábitos no dia a dia
|
|
227
|
+
|
|
228
|
+
1. `task-flow: run` → **`@task-flow-run`** (não `@task_work`).
|
|
229
|
+
2. Implementar código → **`@rbin-coding-standards`** (não carregar full doc inteiro).
|
|
230
|
+
3. Audit → checklist; full doc só se pedir profundidade.
|
|
231
|
+
4. Não abrir dezenas de arquivos `src/` no chat antes de pedir só `sync`/`status`.
|
|
232
|
+
|
|
233
|
+
### 8.3 User Rules (Settings → Rules for AI)
|
|
234
|
+
|
|
235
|
+
Use para preferências **pessoais** (idioma, tom). **Não** duplique Task Flow — fica no projeto em `.cursor/rules`.
|
|
236
|
+
|
|
237
|
+
### 8.4 `AGENTS.md` na raiz
|
|
238
|
+
|
|
239
|
+
Cursor também pode ler `AGENTS.md` em alguns fluxos; no RBIN ele é focado em **Codex**. Para Cursor, priorize `.cursor/rules`.
|
|
240
|
+
|
|
241
|
+
---
|
|
242
|
+
|
|
243
|
+
## 9. Integração com features Cursor
|
|
244
|
+
|
|
245
|
+
| Feature | + Task Flow |
|
|
246
|
+
|---------|-------------|
|
|
247
|
+
| **@-mentions** | `@tasks.input.txt`, `@contexts/dashboard.png`, `@task-flow-run` |
|
|
248
|
+
| **Notepads / Docs** | Links para `.task-flow/README.md` |
|
|
249
|
+
| **Bugbot / PR** | `task-flow: review X` antes de merge |
|
|
250
|
+
| **Background Agent** | `run next 1` por job; cuidado com conflito de `status.json` |
|
|
251
|
+
| **Plan mode** | `think` + `sync` para gerar tasks antes de `run` |
|
|
252
|
+
|
|
253
|
+
---
|
|
254
|
+
|
|
255
|
+
## 10. CLI `rbin-task-flow` + Cursor
|
|
256
|
+
|
|
257
|
+
| Comando CLI | Uso com Cursor |
|
|
258
|
+
|-------------|----------------|
|
|
259
|
+
| `rbin-task-flow init` | Copia rules + task-flow |
|
|
260
|
+
| `rbin-task-flow update` | Atualiza rules; preserva `.internal/` |
|
|
261
|
+
| `rbin-task-flow reset` | Recria `.task-flow` do zero |
|
|
262
|
+
| `rbin-task-flow reset --graphify` | Reset + `graphify extract .` |
|
|
263
|
+
| `rbin-task-flow audit` | Lista arquivos **unstaged** (não substitui `task-flow: improve changes`) |
|
|
264
|
+
|
|
265
|
+
O Agent executa o workflow; o CLI prepara arquivos.
|
|
266
|
+
|
|
267
|
+
---
|
|
268
|
+
|
|
269
|
+
## 11. `.gitignore` discreto vs time
|
|
270
|
+
|
|
271
|
+
**Padrão:** `rbin-task-flow init` ignora `.cursor/` inteiro (skills e rules ficam locais).
|
|
272
|
+
|
|
273
|
+
**Time:** `rbin-task-flow init --share-ai-config` — **não** ignora `.cursor/skills/` nem `.cursor/rules/`; ignora só `.cursor/settings.json` e `*.local.mdc`. O bloco no `.gitignore` explica o trade-off **tokens vs consistência do time**.
|
|
274
|
+
|
|
275
|
+
| Estratégia | Comando | Prós | Contras |
|
|
276
|
+
|------------|---------|------|---------|
|
|
277
|
+
| Local (padrão) | `init` | Repo limpo; cada dev com setup próprio | Sem sync de rules/skills |
|
|
278
|
+
| Time | `init --share-ai-config` | Mesmo Task Flow para todos | Mais arquivos de IA no git; tokens por dev ao usar rules |
|
|
279
|
+
|
|
280
|
+
`update` sem flag reaplica a opção salva em `.task-flow/install-meta.json` (`shareAiConfig`).
|
|
281
|
+
|
|
282
|
+
Para open source: documente no README — contribuidores podem usar `--share-ai-config` ou `init` local.
|
|
283
|
+
|
|
284
|
+
---
|
|
285
|
+
|
|
286
|
+
## 12. Troubleshooting
|
|
287
|
+
|
|
288
|
+
| Problema | Causa provável | Ação |
|
|
289
|
+
|----------|----------------|------|
|
|
290
|
+
| Agent ignora `task-flow:` | Rules não instaladas / projeto errado | `rbin-task-flow update` |
|
|
291
|
+
| Não atualiza `tasks.status.md` | Só mexeu em `status.json` | `@task-flow-run` — regenerar Summary |
|
|
292
|
+
| `run 3` não roda | Tasks 1–2 incompletas | `task-flow: status` |
|
|
293
|
+
| Coding standards ignorados | Checklist não no contexto | `@rbin-coding-standards` ou abrir arquivo em `src/` |
|
|
294
|
+
| Run não segue deps/status | Usou stub sem skill | `@task-flow-run` |
|
|
295
|
+
| Carregou standards inteiro | Audit/run com full doc | Usar checklist; seções do full doc só se necessário |
|
|
296
|
+
| Regra “nunca aplica” | Intelligent + description vaga | `@task-flow-*` explícito |
|
|
297
|
+
| Contexto cheio | Muitos arquivos `src/` + rules | Menos arquivos no chat; skills explícitas |
|
|
298
|
+
|
|
299
|
+
---
|
|
300
|
+
|
|
301
|
+
## 13. Checklist de maturidade Cursor + Task Flow
|
|
302
|
+
|
|
303
|
+
- [x] `task-flow-cursor.mdc` + `rbin-git-policy.mdc` (2 always-on, v1.23)
|
|
304
|
+
- [x] 14 skills em `.cursor/skills/` após `init`
|
|
305
|
+
- [x] Otimização P0 de tokens (ver §3)
|
|
306
|
+
- [ ] `task-flow: sync` após cada edição em `tasks.input.txt`
|
|
307
|
+
- [ ] `@task-flow-run` (não `@task_work`) para implementar
|
|
308
|
+
- [ ] Contextos em `.task-flow/contexts/` para tasks de UI
|
|
309
|
+
- [ ] `improve changes` antes de commit
|
|
310
|
+
- [ ] `task-flow: check` antes de push
|
|
311
|
+
- [ ] Time alinhado: git manual sempre
|
|
312
|
+
|
|
313
|
+
---
|
|
314
|
+
|
|
315
|
+
## 14. Graphify (opcional, sem competir)
|
|
316
|
+
|
|
317
|
+
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
|
+
|
|
319
|
+
- **`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).
|
|
321
|
+
|
|
322
|
+
---
|
|
323
|
+
|
|
324
|
+
## 15. Referências
|
|
325
|
+
|
|
326
|
+
- [Cursor — Rules](https://cursor.com/docs/context/rules)
|
|
327
|
+
- [Agent Skills standard](https://agentskills.io/)
|
|
328
|
+
- Comandos: [../README.md](../README.md)
|
|
329
|
+
- Claude (skills espelhadas): [claude-code.md](claude-code.md)
|
|
330
|
+
|
|
331
|
+
---
|
|
332
|
+
|
|
333
|
+
*RBIN Task Flow no Cursor: 2 regras always-on + skills `@task-flow-*`. Guia de otimização: [OPTIMIZATION-PLAN.md](../OPTIMIZATION-PLAN.md).*
|
package/AGENTS.md
CHANGED
|
@@ -1,44 +1,82 @@
|
|
|
1
|
-
#
|
|
1
|
+
# Codex — RBIN Task Flow
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
**Task flow** always means **RBIN Task Flow**. Codex does not load `.cursor/rules/*.mdc` automatically — use this file plus **read on demand** files below.
|
|
4
|
+
|
|
5
|
+
**Full Codex guide:** `.task-flow/platforms/codex.md` · **Workflows (read when executing a command):** `.task-flow/CODEX.md`
|
|
6
|
+
|
|
7
|
+
## Paths
|
|
8
|
+
|
|
9
|
+
| Path | Use |
|
|
10
|
+
|------|-----|
|
|
11
|
+
| `.task-flow/tasks.input.txt` | Tasks (`- description`) |
|
|
12
|
+
| `.task-flow/tasks.status.md` | Human status (do not edit) |
|
|
13
|
+
| `.task-flow/.internal/tasks.json` | Task definitions |
|
|
14
|
+
| `.task-flow/.internal/status.json` | Status source of truth |
|
|
15
|
+
| `.task-flow/contexts/` | Specs/mockups for subtasks |
|
|
4
16
|
|
|
5
17
|
## Git
|
|
6
18
|
|
|
7
|
-
|
|
8
|
-
-
|
|
9
|
-
|
|
19
|
+
Never run: `git add`, `commit`, `push`, `pull`, `merge`, `checkout`, `reset`, `rebase`.
|
|
20
|
+
Read-only OK: `git status`, `git diff`, `git log`, `git show`, `git branch`.
|
|
21
|
+
After subtasks: suggest Conventional Commit with Task/Subtask ID — user runs git.
|
|
22
|
+
|
|
23
|
+
## Code comments
|
|
24
|
+
|
|
25
|
+
No explanatory comments. Complex topics → `dev-logs/*.md`. Allowed: `// ────────────────────────────────` section separators only.
|
|
26
|
+
|
|
27
|
+
## Commands → read before executing
|
|
28
|
+
|
|
29
|
+
| Command | Read first |
|
|
30
|
+
|---------|------------|
|
|
31
|
+
| `task-flow: sync` | Section **Sync** below; details `.task-flow/CODEX.md` |
|
|
32
|
+
| `task-flow: run …` | Section **Run** below; details `.task-flow/CODEX.md` |
|
|
33
|
+
| `task-flow: status` | `.task-flow/tasks.status.md` |
|
|
34
|
+
| `task-flow: think` | `.task-flow/CODEX.md` · optional codebase scan |
|
|
35
|
+
| `task-flow: check` | `.cursor/rules/task_check.mdc` · `package.json` |
|
|
36
|
+
| `task-flow: improve changes` | `git diff --name-only HEAD` · `.cursor/rules/task_improve_changes.mdc` |
|
|
37
|
+
| `task-flow: audit` | `.cursor/rules/task_audit.mdc` · checklist `coding_standards.mdc` (full: `.task-flow/docs/coding-standards-full.md` if needed) |
|
|
38
|
+
| `task-flow: review X` | `.task-flow/CODEX.md` |
|
|
39
|
+
| `task-flow: refactor X` | `.cursor/rules/task_refactor.mdc` |
|
|
40
|
+
| `task-flow: estimate X` | `.task-flow/CODEX.md` |
|
|
41
|
+
| `task-flow: report X` | `.task-flow/CODEX.md` |
|
|
42
|
+
| `task-flow: generate flow` | `.cursor/rules/task_generate_flow.mdc` |
|
|
43
|
+
| Implementing code | Checklist `.cursor/rules/coding_standards.mdc` · depth: `.task-flow/docs/coding-standards-full.md` (sections only) |
|
|
44
|
+
|
|
45
|
+
## Sync (embedded)
|
|
10
46
|
|
|
11
|
-
|
|
47
|
+
1. Read `tasks.input.txt` (lines `- ` only), `tasks.json`, `status.json`.
|
|
48
|
+
2. Diff by `originalRequest`: new / removed / modified / unchanged.
|
|
49
|
+
3. **New:** 3–8 subtasks each, pending status, update `tasks.status.md`.
|
|
50
|
+
4. **Removed:** drop from json + status + md.
|
|
51
|
+
5. **Modified:** regen subtasks, **preserve** done/pending where possible.
|
|
52
|
+
6. List `.task-flow/contexts/`; match to tasks; honor `task-flow-screen file.ext`.
|
|
53
|
+
7. `status.json` = truth; sync `tasks.status.md` checkboxes + 📊 Summary.
|
|
54
|
+
8. Do not fill `tasks.flow.md` (only `generate flow`).
|
|
12
55
|
|
|
13
|
-
|
|
14
|
-
- Include task/subtask ID when relevant, e.g. `Task ID: 3.2`.
|
|
56
|
+
## Run (embedded)
|
|
15
57
|
|
|
16
|
-
|
|
58
|
+
1. Read `tasks.json` + `status.json`.
|
|
59
|
+
2. `run next X` (default X=1): next X **pending** subtasks in order 1.1, 1.2, …, 2.1…
|
|
60
|
+
3. `run X` / `X,Y` / `all`: all pending for task(s); for `run X`, block if tasks `1..X-1` have any pending subtask.
|
|
61
|
+
4. Per subtask: follow `instructions`; read `contexts/` if cited; implement + verify.
|
|
62
|
+
5. If `graphify-out/graph.json` exists, prefer `graphify query` before repo-wide grep.
|
|
63
|
+
6. Mark subtask `done` in `status.json`; update `tasks.status.md` Summary.
|
|
64
|
+
7. Parent task `done` when all subtasks done. Suggest commit; never git write.
|
|
17
65
|
|
|
18
|
-
|
|
19
|
-
- **Document non-obvious or complex topics** in `dev-logs/` (markdown).
|
|
20
|
-
- **Allowed comments**: only section separators in this form:
|
|
21
|
-
```text
|
|
22
|
-
// ────────────────────────────────
|
|
23
|
-
// Section Name
|
|
24
|
-
// ────────────────────────────────
|
|
25
|
-
```
|
|
66
|
+
## Prompt templates (copy)
|
|
26
67
|
|
|
27
|
-
|
|
68
|
+
```
|
|
69
|
+
Leia AGENTS.md. Execute task-flow: sync.
|
|
70
|
+
```
|
|
28
71
|
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
- **Commands** to support: `task-flow: sync`, `task-flow: think`, `task-flow: audit`, `task-flow: check`, `task-flow: improve changes`, `task-flow: status`, `task-flow: run next X`, `task-flow: run X` (or `X,Y` / `all`), `task-flow: review X`, `task-flow: refactor X`, `task-flow: estimate X`, `task-flow: report X`, `task-flow: generate flow`.
|
|
33
|
-
- When running `task-flow: audit`: scan the codebase, score it against `.cursor/rules/coding_standards.mdc`, present a report, and ask the user which improvements to adopt — never impose changes.
|
|
34
|
-
- When running `task-flow: check`: run lint fix if present and fix lint warnings/errors; run build and fix until it passes.
|
|
35
|
-
- When running `task-flow: improve changes`: same as audit but only for files changed and not yet committed (obtain list via `git diff --name-only HEAD`, then audit only those paths).
|
|
36
|
-
- When running subtasks: read `.task-flow/.internal/tasks.json` and `status.json`, implement, then update `status.json` and `tasks.status.md` (mark done, refresh summary).
|
|
37
|
-
- Use context from `.task-flow/contexts/` when subtask instructions reference it.
|
|
72
|
+
```
|
|
73
|
+
Leia AGENTS.md e .task-flow/CODEX.md (Run). task-flow: run next 3.
|
|
74
|
+
```
|
|
38
75
|
|
|
39
|
-
|
|
76
|
+
```
|
|
77
|
+
task-flow: improve changes — git diff --name-only HEAD, audite só esses arquivos.
|
|
78
|
+
```
|
|
40
79
|
|
|
41
|
-
|
|
80
|
+
## Other platforms
|
|
42
81
|
|
|
43
|
-
|
|
44
|
-
- `.cursor/rules/` – all rules (git, commits, comments, task-flow, etc.)
|
|
82
|
+
Claude: `CLAUDE.md` + `.claude/skills/`. Cursor: `.cursor/rules/`. Index: `.task-flow/AI-PLATFORMS.md`.
|
package/CLAUDE.md
CHANGED
|
@@ -1,51 +1,59 @@
|
|
|
1
|
-
# Claude Code
|
|
1
|
+
# Claude Code — RBIN Task Flow
|
|
2
|
+
|
|
3
|
+
## Task flow = RBIN Task Flow
|
|
4
|
+
|
|
5
|
+
| Path | Purpose |
|
|
6
|
+
|------|---------|
|
|
7
|
+
| `.task-flow/tasks.input.txt` | Define tasks (`- description`) |
|
|
8
|
+
| `.task-flow/tasks.status.md` | Progress (auto; do not edit) |
|
|
9
|
+
| `.task-flow/.internal/` | `tasks.json`, `status.json` (system) |
|
|
10
|
+
| `.task-flow/contexts/` | Mockups, specs |
|
|
11
|
+
|
|
12
|
+
## Skills (prefer `/` commands)
|
|
13
|
+
|
|
14
|
+
| Action | Skill |
|
|
15
|
+
|--------|--------|
|
|
16
|
+
| Sync input → system | `/task-flow-sync` |
|
|
17
|
+
| Run subtasks | `/task-flow-run` |
|
|
18
|
+
| Status | `/task-flow-status` |
|
|
19
|
+
| Suggest new tasks | `/task-flow-think` |
|
|
20
|
+
| Lint + build | `/task-flow-check` |
|
|
21
|
+
| Audit repo | `/task-flow-audit` |
|
|
22
|
+
| Audit diff only | `/task-flow-improve-changes` |
|
|
23
|
+
| Verify done | `/task-flow-review` |
|
|
24
|
+
| Refactor task code | `/task-flow-refactor` |
|
|
25
|
+
| Estimate hours | `/task-flow-estimate` |
|
|
26
|
+
| Implementation report | `/task-flow-report` |
|
|
27
|
+
| tasks.flow.md | `/task-flow-generate-flow` |
|
|
28
|
+
| Implement code | `/rbin-coding-standards` (invoke explicitly; checklist first, full doc sections only if needed) |
|
|
29
|
+
| Commit suggestion | `/rbin-git` |
|
|
30
|
+
|
|
31
|
+
Natural language `task-flow: …` works the same. Details: [.task-flow/README.md](.task-flow/README.md).
|
|
32
|
+
|
|
33
|
+
## Anti-patterns (save context)
|
|
34
|
+
|
|
35
|
+
- Prefer **`/task-flow-run`** (or `@task-flow-run`) for executing subtasks — avoid `@task_work` plus duplicate `.cursor/rules/task_work.mdc` in the same turn.
|
|
36
|
+
- Do **not** load `.task-flow/docs/coding-standards-full.md` unless the user asks for depth; use `/rbin-coding-standards` checklist or `coding_standards.mdc` for normal implementation.
|
|
37
|
+
- Cursor users: see [.task-flow/CURSOR.md](.task-flow/CURSOR.md) for always-on vs skills (`@task-flow-*`).
|
|
38
|
+
|
|
39
|
+
## Git
|
|
40
|
+
|
|
41
|
+
**Never** run `git add`, `commit`, `push`, `pull`, `merge`, `checkout`, `reset`, or `rebase`. Read-only git is OK. After work, use `/rbin-git` to suggest a Conventional Commit message.
|
|
42
|
+
|
|
43
|
+
## Graphify (optional)
|
|
44
|
+
|
|
45
|
+
During `/task-flow-run`, if `graphify-out/` exists, use `graphify query` before broad search. See [.task-flow/GRAPHIFY.md](.task-flow/GRAPHIFY.md).
|
|
46
|
+
|
|
47
|
+
## Cursor rules (reference)
|
|
48
|
+
|
|
49
|
+
Full procedures also live in `.cursor/rules/` (shared with Cursor). Claude Code should use **skills first** to save context.
|
|
50
|
+
|
|
51
|
+
## Other platforms
|
|
52
|
+
|
|
53
|
+
- Index: [.task-flow/AI-PLATFORMS.md](.task-flow/AI-PLATFORMS.md)
|
|
54
|
+
- Claude: [.task-flow/platforms/claude-code.md](.task-flow/platforms/claude-code.md)
|
|
55
|
+
- Codex: [AGENTS.md](AGENTS.md) · [.task-flow/CODEX.md](.task-flow/CODEX.md)
|
|
2
56
|
|
|
3
57
|
## Models
|
|
4
58
|
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
## Development Rules
|
|
8
|
-
|
|
9
|
-
All development rules are automatically loaded from `.cursor/rules/` directory. These rules include:
|
|
10
|
-
- Cursor rules formatting guidelines
|
|
11
|
-
- Self-improvement processes
|
|
12
|
-
- Code commenting standards
|
|
13
|
-
- Commit practices
|
|
14
|
-
- Git command control
|
|
15
|
-
- Task execution management with RBIN Task Flow
|
|
16
|
-
|
|
17
|
-
## RBIN Task Flow
|
|
18
|
-
|
|
19
|
-
This project uses RBIN Task Flow for task management:
|
|
20
|
-
- **Task Definition**: Edit `.task-flow/tasks.input.txt` using simple format: `- Task description`
|
|
21
|
-
- **AI Commands**: Use AI-powered commands for task management:
|
|
22
|
-
- `task-flow: sync` - Synchronize tasks from tasks.input.txt
|
|
23
|
-
- `task-flow: think` - Analyze code and suggest new tasks
|
|
24
|
-
- `task-flow: audit` - Audit codebase against coding standards and suggest incremental improvements
|
|
25
|
-
- `task-flow: check` - Run lint fix when available, then build the current project
|
|
26
|
-
- `task-flow: improve changes` - Audit only files changed in the current diff against `HEAD`
|
|
27
|
-
- `task-flow: status` - View current task status
|
|
28
|
-
- `task-flow: run next X` - Work on next X subtasks
|
|
29
|
-
- `task-flow: run X` - Execute all pending subtasks of task X (simplified - no "task" needed)
|
|
30
|
-
- `task-flow: run X,Y` - Execute multiple tasks (comma-separated)
|
|
31
|
-
- `task-flow: run all` - Execute all tasks
|
|
32
|
-
- `task-flow: review X` - Review specific task(s) (comma-separated or "all")
|
|
33
|
-
- `task-flow: refactor X` - Refactor specific task(s) (comma-separated or "all")
|
|
34
|
-
- `task-flow: estimate X` - Estimate time for task X (simplified - no "task" needed)
|
|
35
|
-
- `task-flow: estimate X,Y` - Estimate multiple tasks (comma-separated)
|
|
36
|
-
- `task-flow: estimate all` - Estimate all tasks
|
|
37
|
-
- `task-flow: report X` - Generate implementation report for task X (simplified - no "task" needed)
|
|
38
|
-
- `task-flow: report X,Y` - Generate reports for multiple tasks (comma-separated)
|
|
39
|
-
- `task-flow: report all` - Generate reports for all tasks
|
|
40
|
-
- `task-flow: generate flow` - Populate tasks.flow.md with dependencies, estimated hours, and AI model recommendations
|
|
41
|
-
- **Files**:
|
|
42
|
-
- `.task-flow/tasks.input.txt` - Define your tasks here
|
|
43
|
-
- `.task-flow/tasks.status.md` - Auto-generated status (DO NOT EDIT manually)
|
|
44
|
-
- `.task-flow/tasks.flow.md` - Dependencies, estimated hours, and model recommendations (populated by `task-flow: generate flow`)
|
|
45
|
-
- `.task-flow/.internal/` - Internal system files (ignore)
|
|
46
|
-
|
|
47
|
-
Follow all rules defined in `.cursor/rules/` for consistent development practices.
|
|
48
|
-
|
|
49
|
-
## Codex
|
|
50
|
-
|
|
51
|
-
When using OpenAI Codex in this repo, it reads **AGENTS.md** at the project root. That file summarizes the same norms (git, commits, comments, RBIN Task Flow) so Codex follows the same conventions as Cursor/Claude. Full details remain in `.cursor/rules/` and this file.
|
|
59
|
+
Use the default model of this environment; do not require a specific model name.
|