rbin-task-flow 1.19.5 → 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.
Files changed (65) hide show
  1. package/.claude/skills/rbin-coding-standards/SKILL.md +29 -0
  2. package/.claude/skills/rbin-coding-standards/reference.md +42 -0
  3. package/.claude/skills/rbin-git/SKILL.md +39 -0
  4. package/.claude/skills/task-flow-audit/SKILL.md +15 -0
  5. package/.claude/skills/task-flow-check/SKILL.md +15 -0
  6. package/.claude/skills/task-flow-estimate/SKILL.md +15 -0
  7. package/.claude/skills/task-flow-generate-flow/SKILL.md +15 -0
  8. package/.claude/skills/task-flow-improve-changes/SKILL.md +15 -0
  9. package/.claude/skills/task-flow-refactor/SKILL.md +14 -0
  10. package/.claude/skills/task-flow-report/SKILL.md +15 -0
  11. package/.claude/skills/task-flow-review/SKILL.md +14 -0
  12. package/.claude/skills/task-flow-run/SKILL.md +28 -0
  13. package/.claude/skills/task-flow-run/workflow.md +59 -0
  14. package/.claude/skills/task-flow-status/SKILL.md +13 -0
  15. package/.claude/skills/task-flow-sync/SKILL.md +30 -0
  16. package/.claude/skills/task-flow-sync/workflow.md +57 -0
  17. package/.claude/skills/task-flow-think/SKILL.md +17 -0
  18. package/.codex/config.toml +10 -0
  19. package/.cursor/rules/code_comments.mdc +4 -4
  20. package/.cursor/rules/coding_standards.mdc +57 -810
  21. package/.cursor/rules/commit_practices.mdc +5 -138
  22. package/.cursor/rules/cursor_rules.mdc +4 -3
  23. package/.cursor/rules/git_control.mdc +5 -86
  24. package/.cursor/rules/graphify-task-flow.mdc +31 -0
  25. package/.cursor/rules/rbin-git-policy.mdc +47 -0
  26. package/.cursor/rules/self_improve.mdc +3 -3
  27. package/.cursor/rules/task-flow-cursor.mdc +51 -0
  28. package/.cursor/rules/task-flow-sync.mdc +46 -0
  29. package/.cursor/rules/task_analysis.mdc +31 -179
  30. package/.cursor/rules/task_audit.mdc +6 -5
  31. package/.cursor/rules/task_check.mdc +2 -3
  32. package/.cursor/rules/task_estimate.mdc +3 -4
  33. package/.cursor/rules/task_execution.mdc +26 -138
  34. package/.cursor/rules/task_generate_flow.mdc +2 -3
  35. package/.cursor/rules/task_generation.mdc +22 -140
  36. package/.cursor/rules/task_improve_changes.mdc +3 -4
  37. package/.cursor/rules/task_refactor.mdc +4 -5
  38. package/.cursor/rules/task_report.mdc +3 -4
  39. package/.cursor/rules/task_review.mdc +4 -5
  40. package/.cursor/rules/task_status.mdc +4 -4
  41. package/.cursor/rules/task_work.mdc +23 -210
  42. package/.task-flow/AI-PLATFORMS.md +104 -0
  43. package/.task-flow/CODEX.md +141 -0
  44. package/.task-flow/CURSOR.md +94 -0
  45. package/.task-flow/GRAPHIFY.md +112 -0
  46. package/.task-flow/OPTIMIZATION-IMPLEMENTATION-TASKS.md +365 -0
  47. package/.task-flow/OPTIMIZATION-PLAN.md +264 -0
  48. package/.task-flow/README.md +19 -4
  49. package/.task-flow/docs/coding-standards-full.md +851 -0
  50. package/.task-flow/platforms/claude-code.md +352 -0
  51. package/.task-flow/platforms/codex.md +379 -0
  52. package/.task-flow/platforms/cursor.md +333 -0
  53. package/AGENTS.md +69 -31
  54. package/CLAUDE.md +56 -48
  55. package/README.md +78 -10
  56. package/bin/cli.js +40 -25
  57. package/lib/codex.js +45 -0
  58. package/lib/cursor.js +41 -0
  59. package/lib/gitignore.js +101 -0
  60. package/lib/graphify.js +118 -0
  61. package/lib/install.js +83 -47
  62. package/lib/profiles.js +110 -0
  63. package/lib/skills.js +34 -0
  64. package/lib/utils.js +38 -2
  65. package/package.json +6 -2
@@ -0,0 +1,29 @@
1
+ ---
2
+ name: rbin-coding-standards
3
+ description: Applies RBIN coding standards when implementing features. Use when the user invokes this skill, asks for coding standards, or is writing pages, components, services, use-cases, forms, or NestJS modules. Not auto-invoked — user or @mention required.
4
+ disable-model-invocation: true
5
+ paths: ["src/**", "app/**"]
6
+ ---
7
+
8
+ # RBIN coding standards
9
+
10
+ **Invoke only** (`/rbin-coding-standards` or `@rbin-coding-standards`). Do not load the full standards doc unless this skill runs or the user asks.
11
+
12
+ ## Steps
13
+
14
+ 1. Apply the **checklist** in `.cursor/rules/coding_standards.mdc` (default for all implementation). Do **not** read the entire `.mdc` or full markdown into context if the checklist already covers the task.
15
+ 2. Implement using checklist rules: `app/` thin, `features/`, `shared/`, service+use-case, RHF+zod+`Controller`, `cn()`, no `any`, no raw base UI.
16
+ 3. **Only if ambiguous** (Nest gateways, DataHandler, route groups, naming edge case): open **one or two sections** of `.task-flow/docs/coding-standards-full.md` — never paste or load the whole file.
17
+ 4. If `graphify-out/graph.json` exists, `graphify query` before choosing file paths for new code.
18
+ 5. No explanatory code comments; use `dev-logs/` for non-obvious design notes.
19
+
20
+ ## Token discipline
21
+
22
+ | Do | Don't |
23
+ |----|--------|
24
+ | Checklist + targeted full-doc sections | Load all 800+ lines of full reference |
25
+ | `@rbin-coding-standards` when coding | Rely on glob alone for complex architecture |
26
+
27
+ ## Quick reference
28
+
29
+ [reference.md](reference.md) — checklist table + full-doc section index.
@@ -0,0 +1,42 @@
1
+ # Coding standards — quick reference
2
+
3
+ ## Documents
4
+
5
+ | Doc | Path | When |
6
+ |-----|------|------|
7
+ | **Checklist** (default) | `.cursor/rules/coding_standards.mdc` | Every implementation; glob on `src/**`, `app/**` in Cursor |
8
+ | **Full reference** (sections only) | `.task-flow/docs/coding-standards-full.md` | Nest/Prisma detail, long examples, ESLint table, DataHandler, providers |
9
+
10
+ ## Checklist essentials
11
+
12
+ | Area | Rule |
13
+ |------|------|
14
+ | Routes | `app/` only imports feature page/screen |
15
+ | Pages | Orchestrators; short; compose components |
16
+ | API | use-case (pure) + service (react-query) |
17
+ | Forms | zod schema + `Controller` + `zodResolver` |
18
+ | Classes | Always `cn()` |
19
+ | Names | kebab-case + suffix (`.page.tsx`, `.use-case.ts`, …) |
20
+ | Shared | Flat folders under `shared/`; no subfolders (web/mobile) |
21
+ | Git | Never commit for user — `@rbin-git` suggests only |
22
+
23
+ ## Full doc — open by section (not whole file)
24
+
25
+ | Section in `coding-standards-full.md` | Use when |
26
+ |---------------------------------------|----------|
27
+ | Project Structure | Unsure where a file belongs |
28
+ | Tech Stack / ESLint | Stack or `@rbinflow/eslint-config` setup |
29
+ | app/ — Routes Only | Next route groups, Nest controllers |
30
+ | features/ — Feature Organization | Use-cases, repositories, page naming |
31
+ | shared/ | Shared folder layout |
32
+ | DataHandler | Loading/error UI pattern |
33
+ | Feature `platform` | AppProviders, shell |
34
+ | Providers Composition | Provider nesting |
35
+ | cn() | Class merging edge cases |
36
+ | React Query | Service + use-case examples |
37
+ | Forms | InputText / Controller examples |
38
+ | File Naming Conventions | Suffix disputes |
39
+ | TypeScript Types | `.api.type.ts` vs `.type.ts` |
40
+ | Context / Auth Hook | Auth provider pattern |
41
+ | Testing | E2E placement |
42
+ | Critical Rules | Final verification |
@@ -0,0 +1,39 @@
1
+ ---
2
+ name: rbin-git
3
+ description: Suggests Conventional Commit messages after RBIN Task Flow work. Use after completing a subtask or task, when the user asks for a commit message, or when uncommitted changes exist. Never executes git add, commit, push, or other write git commands.
4
+ disable-model-invocation: false
5
+ ---
6
+
7
+ # RBIN — Git (suggest only)
8
+
9
+ Complements `.cursor/rules/rbin-git-policy.mdc` (always-on).
10
+
11
+ ## Prohibited (never run)
12
+
13
+ `git add`, `git commit`, `git push`, `git pull`, `git merge`, `git checkout`, `git reset`, `git rebase`, `git tag`, or any git command that modifies the repo.
14
+
15
+ ## Allowed (read-only)
16
+
17
+ `git status`, `git diff`, `git log`, `git show`, `git branch` (list only).
18
+
19
+ ## After subtask/task done
20
+
21
+ 1. Run read-only: `git status --short`, `git diff --stat` (optional).
22
+ 2. Include Task/Subtask ID and title from Task Flow context.
23
+ 3. Use Conventional Commits: `feat`, `fix`, `refactor`, `docs`, `test`, `chore`.
24
+
25
+ ## Suggestion format
26
+
27
+ ```bash
28
+ git add .
29
+ git commit -m "feat(scope): Short description
30
+
31
+ - Detail 1
32
+ - Subtask ID: 3.2"
33
+ ```
34
+
35
+ Present ready to copy. User runs git manually.
36
+
37
+ ## Reference
38
+
39
+ Primary: `.cursor/rules/rbin-git-policy.mdc` · Extended: `git_control.mdc`, `commit_practices.mdc` (legacy)
@@ -0,0 +1,15 @@
1
+ ---
2
+ name: task-flow-audit
3
+ description: Audits the full codebase against RBIN coding standards with a score table and asks which improvements to adopt. Use when the user says task-flow audit or audit coding standards for the whole project.
4
+ disable-model-invocation: true
5
+ ---
6
+
7
+ # Task Flow — Audit
8
+
9
+ 1. Scan project structure and `package.json`.
10
+ 2. Score categories vs `.cursor/rules/coding_standards.mdc` checklist (Full / Partial / Missing). Use `.task-flow/docs/coding-standards-full.md` only for deep dives — not the whole file.
11
+ 3. Present table and incremental improvement options.
12
+ 4. **Ask** user what to adopt; never impose refactors.
13
+ 5. Generate task lines for selected items only if user confirms.
14
+
15
+ Non-destructive. Reference: `.cursor/rules/task_audit.mdc`
@@ -0,0 +1,15 @@
1
+ ---
2
+ name: task-flow-check
3
+ description: Runs project lint fix and build from package.json until passing. Use when the user says task-flow check, run lint and build, or validate project before commit.
4
+ disable-model-invocation: true
5
+ ---
6
+
7
+ # Task Flow — Check
8
+
9
+ 1. Read `package.json` scripts.
10
+ 2. Run lint with fix variant if present (`lint:fix`, `lint-fix`, or `lint -- --fix`); fix issues.
11
+ 3. Run `build` if defined; fix failures.
12
+ 4. Re-run until both pass.
13
+ 5. Report what ran and final status.
14
+
15
+ Does not change task files. Reference: `.cursor/rules/task_check.mdc`
@@ -0,0 +1,15 @@
1
+ ---
2
+ name: task-flow-estimate
3
+ description: Estimates hours for RBIN Task Flow tasks for an average developer at average pace without AI acceleration. Use when the user says task-flow estimate X, estimate task 1, or time estimate for tasks.
4
+ disable-model-invocation: true
5
+ paths: [".task-flow/**"]
6
+ ---
7
+
8
+ # Task Flow — Estimate
9
+
10
+ 1. Read `.task-flow/.internal/tasks.json` for task ID(s) or all.
11
+ 2. Infer complexity (low/medium/high) from title, description, subtasks, risk — not subtask count alone.
12
+ 3. Output single range in hours, e.g. `10-14 hours`.
13
+ 4. State assumption: average developer, average pace, no AI acceleration.
14
+
15
+ Reference: `.cursor/rules/task_estimate.mdc`
@@ -0,0 +1,15 @@
1
+ ---
2
+ name: task-flow-generate-flow
3
+ description: Populates tasks.flow.md with dependencies, billing hours, and model recommendations for RBIN Task Flow tasks. Use when the user says task-flow generate flow, gerar flow, or tasks flow dependencies.
4
+ disable-model-invocation: true
5
+ paths: [".task-flow/**"]
6
+ ---
7
+
8
+ # Task Flow — Generate flow
9
+
10
+ 1. Read `.task-flow/.internal/tasks.json` and optional `status.json`.
11
+ 2. For each task: dependencies, hour range (billing), 3 models (GPT-5.x, Composer, Claude Haiku/Sonnet only — **never Opus**).
12
+ 3. Write `.task-flow/tasks.flow.md` (overwrite populated sections).
13
+ 4. Use AI judgment for model order and effort per task.
14
+
15
+ Reference: `.cursor/rules/task_generate_flow.mdc`
@@ -0,0 +1,15 @@
1
+ ---
2
+ name: task-flow-improve-changes
3
+ description: Audits only uncommitted files against coding standards. Use when the user says task-flow improve changes, audit my diff, or check uncommitted changes against standards.
4
+ disable-model-invocation: true
5
+ ---
6
+
7
+ # Task Flow — Improve changes
8
+
9
+ 1. Run `git diff --name-only HEAD` (read-only git).
10
+ 2. If empty, stop — no uncommitted changes.
11
+ 3. Audit **only** those paths using the same checklist as audit (`.cursor/rules/coding_standards.mdc`). Full reference: `.task-flow/docs/coding-standards-full.md` — relevant sections only if a category needs depth.
12
+ 4. Present findings; ask what to fix.
13
+ 5. Does **not** run lint/build — use `/task-flow-check` separately.
14
+
15
+ Reference: `.cursor/rules/task_improve_changes.mdc`
@@ -0,0 +1,14 @@
1
+ ---
2
+ name: task-flow-refactor
3
+ description: Refactors code for task X without changing behavior; removes explanatory comments. Use when the user says task-flow refactor X or refactor completed task code.
4
+ disable-model-invocation: true
5
+ ---
6
+
7
+ # Task Flow — Refactor
8
+
9
+ 1. Identify files related to task X (from implementation scope).
10
+ 2. Remove explanatory comments; keep only `// ────────────────────────────────` section separators.
11
+ 3. Improve names/structure; **no** behavior change.
12
+ 4. Never run git write commands.
13
+
14
+ Reference: `.cursor/rules/task_refactor.mdc`, `.cursor/rules/code_comments.mdc`
@@ -0,0 +1,15 @@
1
+ ---
2
+ name: task-flow-report
3
+ description: Generates implementation markdown report for completed RBIN Task Flow tasks. Use when the user says task-flow report X or document completed task.
4
+ disable-model-invocation: true
5
+ paths: [".task-flow/**"]
6
+ ---
7
+
8
+ # Task Flow — Report
9
+
10
+ 1. Verify task X is fully `done` in `status.json` (warn if partial).
11
+ 2. Read `tasks.json`; analyze related code changes (read-only git ok).
12
+ 3. Write `.task-flow/docs/task-X-implementation.md` using project template.
13
+ 4. Create `.task-flow/docs/` if missing.
14
+
15
+ Reference: `.cursor/rules/task_report.mdc`
@@ -0,0 +1,14 @@
1
+ ---
2
+ name: task-flow-review
3
+ description: Verifies completed RBIN Task Flow tasks are actually implemented in the codebase. Use when the user says task-flow review X, review task 1, or verify done tasks.
4
+ disable-model-invocation: true
5
+ ---
6
+
7
+ # Task Flow — Review
8
+
9
+ 1. Read `tasks.json`, `status.json` for task ID(s) X or `all`.
10
+ 2. For each subtask marked `done`: verify files/code/tests exist and match requirements.
11
+ 3. Report ✅ correct vs ⚠️ falsely marked done.
12
+ 4. Ask if user wants status reverted to `pending` / `in_progress`.
13
+
14
+ Reference: `.cursor/rules/task_review.mdc`
@@ -0,0 +1,28 @@
1
+ ---
2
+ name: task-flow-run
3
+ description: Executes RBIN Task Flow subtasks from tasks.json and status.json. Use when the user says task-flow run, run next X subtasks, work on task N, execute pending subtasks, implement task flow, or trabalhar nas próximas subtarefas.
4
+ disable-model-invocation: true
5
+ paths: [".task-flow/**"]
6
+ ---
7
+
8
+ # Task Flow — Run
9
+
10
+ ## Status
11
+
12
+ !`head -40 .task-flow/tasks.status.md 2>/dev/null || echo "No tasks.status.md yet — run /task-flow-sync first"`
13
+
14
+ ## Steps
15
+
16
+ 1. Read `status.json` first; list **pending** task/subtask IDs only.
17
+ 2. **tasks.json (token discipline):** Count subtasks across all tasks. If **>50**, do **not** load the full file — read only the JSON slice for each active task id (pending subtasks you will run). If ≤50, full read is OK.
18
+ 3. Parse intent: `run next X` (default X=1) | `run X` | `run X,Y` | `run all`.
19
+ 4. **`run X` / `run X,Y`:** If any task before X has pending subtasks, **stop** and list blocking tasks.
20
+ 5. For each subtask: follow `instructions`; read `.task-flow/contexts/` files when referenced.
21
+ 6. If `graphify-out/graph.json` exists, prefer `graphify query "<module from subtask>"` before broad grep (summarized output only — see GRAPHIFY.md).
22
+ 7. After each subtask: update `status.json` and `tasks.status.md` (regenerate 📊 Summary).
23
+ 8. When parent task complete: mark task `done` in both files.
24
+ 9. Invoke `/rbin-git` logic to **suggest** commit only — never `git add`/`commit`/`push`.
25
+
26
+ ## Full workflow
27
+
28
+ See [workflow.md](workflow.md).
@@ -0,0 +1,59 @@
1
+ # task-flow-run — full workflow
2
+
3
+ ## Commands
4
+
5
+ | Input | Behavior |
6
+ |-------|----------|
7
+ | `task-flow: run next X` | Next X pending subtasks in order (task 1.1, 1.2, …, 2.1, …) |
8
+ | `task-flow: run next` | X = 1 |
9
+ | `task-flow: run X` | All pending subtasks of task X |
10
+ | `task-flow: run X,Y` | Tasks X then Y sequentially |
11
+ | `task-flow: run all` | All pending subtasks |
12
+
13
+ ## Dependency check (`run X`)
14
+
15
+ 1. For tasks `1 .. X-1`, verify every subtask is `done`.
16
+ 2. If any pending: stop with
17
+ `⚠️ Cannot execute task X: complete tasks [list] first. Use task-flow: run Y.`
18
+ 3. Do not execute any subtask of X until cleared.
19
+
20
+ ## tasks.json — partial read (>50 subtasks)
21
+
22
+ 1. From `status.json`, collect pending `(taskId, subtaskId)` for this run.
23
+ 2. Count total subtasks in `tasks.json` (quick parse or `jq '[.tasks[].subtasks | length] | add'`).
24
+ 3. If total **>50**: load **only** each `tasks[]` entry where `id` is in the pending set — not the full array.
25
+ 4. If **≤50**: loading the full `tasks.json` is acceptable.
26
+
27
+ ## Per subtask
28
+
29
+ 1. Load subtask from `tasks.json` (title, description, instructions) — slice for that task id only when using partial read.
30
+ 2. If instructions cite `.task-flow/contexts/...`, read those files.
31
+ 3. Implement; verify (tests/build as appropriate).
32
+ 4. Set subtask to `done` in `status.json`.
33
+ 5. Update `tasks.status.md`: `- [x]` on subtask; regenerate Summary (✅ / ⏳ / 📝 counts).
34
+ 6. If blocked: set `in_progress` and explain.
35
+
36
+ ## status.json shape
37
+
38
+ ```json
39
+ {
40
+ "tasks": {
41
+ "1": {
42
+ "status": "pending",
43
+ "subtasks": { "1": "done", "2": "pending" }
44
+ }
45
+ }
46
+ }
47
+ ```
48
+
49
+ ## Completion summary
50
+
51
+ ```
52
+ ✅ Completed N subtasks:
53
+ - Task 1.2: [title]
54
+ 📝 Next pending: Task 1.3
55
+ ```
56
+
57
+ ## Related rules
58
+
59
+ Cursor fallback (short): `.cursor/rules/task_work.mdc` — prefer `@task-flow-run` / this file.
@@ -0,0 +1,13 @@
1
+ ---
2
+ name: task-flow-status
3
+ description: Shows RBIN Task Flow progress from tasks.status.md. Use when the user says task-flow status, show task status, status das tasks, or ver progresso das tarefas.
4
+ disable-model-invocation: true
5
+ ---
6
+
7
+ # Task Flow — Status
8
+
9
+ 1. Read `.task-flow/tasks.status.md`.
10
+ 2. Display summary (✅ completed, ⏳ in progress, 📝 remaining) and task/subtask checkboxes.
11
+ 3. If file missing, suggest `/task-flow-sync`.
12
+
13
+ Reference: `.cursor/rules/task_status.mdc`
@@ -0,0 +1,30 @@
1
+ ---
2
+ name: task-flow-sync
3
+ description: Synchronizes RBIN Task Flow tasks.input.txt with tasks.json, status.json, and tasks.status.md. Use when the user says task-flow sync, sync tasks, sincronizar tasks, or after editing tasks.input.txt.
4
+ disable-model-invocation: true
5
+ paths: [".task-flow/**"]
6
+ ---
7
+
8
+ # Task Flow — Sync
9
+
10
+ ## Steps
11
+
12
+ 1. Read `.task-flow/tasks.input.txt` (only lines starting with `- `).
13
+ 2. Read `.task-flow/.internal/tasks.json` and `status.json` if they exist.
14
+ 3. Compare by `originalRequest`: new, removed, modified, unchanged tasks.
15
+ 4. **New:** generate subtasks (3–8 each), add pending status, update `tasks.status.md`. Subtask instructions: follow **checklist** in `.cursor/rules/coding_standards.mdc` only — not `.task-flow/docs/coding-standards-full.md`.
16
+ 5. **Removed:** delete from all three stores.
17
+ 6. **Modified:** update title/description, regenerate subtasks, **preserve** done/pending status where possible.
18
+ 7. **Unchanged:** leave task data and status as-is.
19
+ 8. Align `status.json` with `tasks.status.md` (`status.json` is source of truth).
20
+ 9. Regenerate 📊 Summary in `tasks.status.md`.
21
+ 10. Do **not** populate `tasks.flow.md` (only `task-flow: generate flow`).
22
+
23
+ ## Contexts
24
+
25
+ - List `.task-flow/contexts/` and match files to tasks by keywords.
26
+ - Honor `task-flow-screen filename.ext` → `.task-flow/contexts/filename.ext` in subtask instructions.
27
+
28
+ ## Full workflow
29
+
30
+ See [workflow.md](workflow.md). Primary rule: `.cursor/rules/task-flow-sync.mdc` · Subtask templates: `.cursor/rules/task_generation.mdc`.
@@ -0,0 +1,57 @@
1
+ # task-flow-sync — full workflow
2
+
3
+ **Primary rule:** `.cursor/rules/task-flow-sync.mdc` · Subtask templates: `task_generation.mdc`
4
+
5
+ ## New task generation
6
+
7
+ For each new line in `tasks.input.txt`:
8
+
9
+ - Assign sequential task id (order in file).
10
+ - `originalRequest`: exact input line text.
11
+ - `createdAt`: ISO 8601.
12
+ - 3–8 subtasks with title, description, instructions (3–5 steps).
13
+ - Reference contexts when relevant.
14
+
15
+ ## tasks.json (minimal)
16
+
17
+ ```json
18
+ {
19
+ "tasks": [
20
+ {
21
+ "id": 1,
22
+ "title": "Task Title",
23
+ "description": "Task description",
24
+ "originalRequest": "- Task from input",
25
+ "createdAt": "2026-01-01T00:00:00.000Z",
26
+ "subtasks": [
27
+ {
28
+ "id": 1,
29
+ "title": "Subtask",
30
+ "description": "What it does",
31
+ "instructions": "Step 1: ...\nStep 2: ..."
32
+ }
33
+ ]
34
+ }
35
+ ]
36
+ }
37
+ ```
38
+
39
+ ## status.json (new tasks)
40
+
41
+ All subtasks `pending`; task `pending`.
42
+
43
+ ## tasks.status.md
44
+
45
+ - Auto-generated banner warning (do not edit manually).
46
+ - Summary section with counts.
47
+ - `- [ ]` / `- [x]` for tasks and indented subtasks.
48
+
49
+ ## Sync-only rules
50
+
51
+ - Preserve status on modified tasks when subtasks still match.
52
+ - New subtasks after regen → `pending`; removed subtasks → drop from status.
53
+ - Never explore codebase during pure sync unless user asked `think` in same message.
54
+
55
+ ## After sync
56
+
57
+ Tell user: `task-flow: status` or `/task-flow-run run next X`.
@@ -0,0 +1,17 @@
1
+ ---
2
+ name: task-flow-think
3
+ description: Analyzes the codebase and suggests new lines for tasks.input.txt without adding them automatically. Use when the user says task-flow think, suggest tasks, analise tasks novas, or check for missing tasks.
4
+ disable-model-invocation: true
5
+ ---
6
+
7
+ # Task Flow — Think
8
+
9
+ 1. Read `.task-flow/tasks.input.txt` (existing plan).
10
+ 2. Scan codebase: TODOs, missing tests, half-done features, security/perf gaps.
11
+ 3. Propose new tasks as `- Description` lines (RBIN format).
12
+ 4. **Ask** user before writing to `tasks.input.txt`.
13
+ 5. If user confirms, append only new lines; then suggest `/task-flow-sync`.
14
+
15
+ Optional: `graphify query` on large repos before suggesting.
16
+
17
+ Reference: `.cursor/rules/task_analysis.mdc` · Sync after confirm: `@task-flow-sync`
@@ -0,0 +1,10 @@
1
+ # RBIN Task Flow — optional Codex project config
2
+ # Merged from repo root → cwd; see https://developers.openai.com/codex/config-advanced
3
+ #
4
+ # Installed by rbin-task-flow init. Edit as needed; preserved on update unless missing.
5
+
6
+ # Default Codex cap is 32 KiB for combined AGENTS.md chain — raise if instructions truncate silently.
7
+ project_doc_max_bytes = 65536
8
+
9
+ # Optional: extra instruction filenames per directory (uncomment if needed)
10
+ # project_doc_fallback_filenames = ["TEAM_AGENTS.md"]
@@ -1,7 +1,7 @@
1
1
  ---
2
- description: Rules about code comments - prohibition of explanatory comments, use of dev-logs for documentation, and pattern for separation comments
3
- globs: **/*
4
- alwaysApply: true
2
+ description: No explanatory code comments; use dev-logs. Applies when editing TypeScript or JavaScript source files.
3
+ globs: **/*.{ts,tsx,js,jsx}
4
+ alwaysApply: false
5
5
  ---
6
6
 
7
7
  - **Prohibition of Explanatory Comments:**
@@ -132,7 +132,7 @@ alwaysApply: true
132
132
  - **Integration with Other Rules:**
133
133
  - [cursor_rules.mdc](mdc:.cursor/rules/cursor_rules.mdc) - Rule formatting
134
134
  - [self_improve.mdc](mdc:.cursor/rules/self_improve.mdc) - Continuous improvement
135
- - [commit_practices.mdc](mdc:.cursor/rules/commit_practices.mdc) - Commits can reference dev-logs
135
+ - [rbin-git-policy.mdc](mdc:.cursor/rules/rbin-git-policy.mdc) commits can reference dev-logs in message body
136
136
 
137
137
  - **Fundamental Principle:**
138
138
  > **Code must be self-explanatory. If something needs explanation, document it in dev-logs/, not in code. Use comments only for visual organization following the exact pattern.**