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
@@ -1,141 +1,8 @@
1
1
  ---
2
- description: Commit practices after task and subtask completion, including automatic message suggestions
3
- globs: **/*
4
- alwaysApply: true
2
+ description: Legacy commit examples prefer rbin-git-policy.mdc (always-on). Invoke @rbin-git for full suggestion flow.
3
+ alwaysApply: false
5
4
  ---
6
5
 
7
- - **Notification and Commit Suggestion After Tasks:**
8
- - **Always notify user** when a task or subtask is marked as `done`
9
- - **Suggest a commit message** based on changes made
10
- - **Include context** of task/subtask in commit suggestion
11
- - **CRITICAL: NEVER execute git commands** - only suggest, user executes
12
-
13
- - **When to Apply:**
14
- - After `set_task_status` with status `done` for any task or subtask
15
- - After complete implementation of a subtask
16
- - After completion of a parent task (when all subtasks are done)
17
-
18
- - **Commit Suggestion Format:**
19
- ```bash
20
- # ✅ DO: Recommended format
21
- git commit -m "feat(module): Short description of change
22
-
23
- - Implementation details
24
- - Task/Subtask ID: X.Y
25
- - Main changes made"
26
-
27
- # Real example:
28
- git commit -m "feat(auth): Implement user login validation
29
-
30
- - Add email format validation
31
- - Add password strength checks
32
- - Task ID: 3.2"
33
- ```
34
-
35
- - **Suggestion Process:**
36
- 1. **Analyze changes**: Use `git status` and `git diff` to identify modified files (read-only, never modify)
37
- 2. **Extract task context**: Include task/subtask ID and title/description
38
- 3. **Generate message**: Create message following conventional commits
39
- 4. **Present to user**: Show formatted suggestion ready to use
40
- 5. **NEVER execute**: Only suggest, user decides when and how to commit
41
-
42
- - **Commit Types (Conventional Commits):**
43
- - `feat`: New feature (complete task)
44
- - `fix`: Bug fix
45
- - `refactor`: Refactoring without behavior change
46
- - `docs`: Documentation changes
47
- - `style`: Formatting, semicolons, etc (no code change)
48
- - `test`: Test addition or fix
49
- - `chore`: Build, dependency changes, etc
50
-
51
- - **Suggested Message Structure:**
52
- ```bash
53
- <type>(<scope>): <short description>
54
-
55
- <optional body with details>
56
- - Task/Subtask: <ID>
57
- - Modified files: <summary list>
58
- ```
59
-
60
- - **Suggestion Examples:**
61
-
62
- **For implementation subtask:**
63
- ```bash
64
- git commit -m "feat(api): Add user authentication endpoint
65
-
66
- - Implement POST /api/auth/login
67
- - Add JWT token generation
68
- - Add input validation middleware
69
- - Subtask ID: 5.3"
70
- ```
71
-
72
- **For complete task:**
73
- ```bash
74
- git commit -m "feat(dashboard): Complete user analytics dashboard
75
-
76
- - Add real-time metrics display
77
- - Implement chart visualizations
78
- - Add data export functionality
79
- - Task ID: 7"
80
- ```
81
-
82
- **For fix:**
83
- ```bash
84
- git commit -m "fix(auth): Resolve token expiration issue
85
-
86
- - Fix JWT refresh logic
87
- - Update token validation
88
- - Subtask ID: 8.1"
89
- ```
90
-
91
- - **Useful Commands for Analysis:**
92
- - `git status --short` - List modified files compactly
93
- - `git diff --stat` - Change statistics
94
- - `git diff --name-only` - Only names of modified files
95
- - `git log --oneline -5` - Last commits for context
96
-
97
- - **When NOT to Suggest Commit:**
98
- - ❌ DON'T: If there are no git changes (no modified files)
99
- - ❌ DON'T: If user already committed recently (last 5 minutes)
100
- - ❌ DON'T: If there are unresolved merge conflicts
101
- - ❌ DON'T: If repository is not a git repo
102
-
103
- - **Suggestion Presentation:**
104
- - **Always notify user** when a task/subtask is completed with clear message and emoji ✅
105
- - **Show formatted suggestion** ready to copy/paste
106
- - **Include statistics** of changes (modified files, lines added/removed)
107
-
108
- **Presentation example:**
109
- ```markdown
110
- ✅ Task 3.2 completed!
111
-
112
- 📝 Commit suggestion:
113
- ```bash
114
- git commit -m "feat(module): Change description
115
-
116
- - Detail 1
117
- - Detail 2
118
- - Task ID: 3.2"
119
- ```
120
-
121
- 📊 Changes detected:
122
- - 3 files modified
123
- - 45 lines added, 12 removed
124
- ```
125
-
126
- - **Integration with RBIN Task Flow:**
127
- - After marking a task as completed, automatically:
128
- 1. Check if there are git changes
129
- 2. Analyze modified files
130
- 3. Generate commit suggestion based on task
131
- 4. Present to user clearly
132
-
133
- - **Git Control:**
134
- - **NEVER execute git commands** - only suggest
135
- - Follow [git_control.mdc](mdc:.cursor/rules/git_control.mdc) for complete user control over git
136
- - Present suggestions ready for user to copy and execute
137
-
138
- - **References:**
139
- - Follow [Conventional Commits](https://www.conventionalcommits.org/) patterns
140
- - Integrate with RBIN Task Flow workflow
141
- - Git control: [git_control.mdc](mdc:.cursor/rules/git_control.mdc)
6
+ - **Superseded by** [rbin-git-policy.mdc](mdc:.cursor/rules/rbin-git-policy.mdc) (always-on).
7
+ - **Skill:** `@rbin-git` for extended commit templates and Task Flow integration.
8
+ - **Principle:** Suggest commits after `done`; user runs `git add` / `git commit`.
@@ -1,9 +1,10 @@
1
1
  ---
2
- description: Guidelines for creating and maintaining Cursor rules to ensure consistency and effectiveness.
3
- globs: .cursor/rules/*.mdc
4
- alwaysApply: true
2
+ globs: .cursor/rules/**
3
+ alwaysApply: false
5
4
  ---
6
5
 
6
+ > **Invoke with `@cursor_rules` only** — manual `@` mention; no `description` (avoids broad Apply Intelligently matches).
7
+
7
8
  - **Required Rule Structure:**
8
9
  ```markdown
9
10
  ---
@@ -1,89 +1,8 @@
1
1
  ---
2
- description: Complete user control over Git commands - AI never executes git commands, but can execute any other command without asking
3
- globs: **/*
4
- alwaysApply: true
2
+ description: Legacy git detail prefer rbin-git-policy.mdc (always-on). Invoke @rbin-git for commit suggestions.
3
+ alwaysApply: false
5
4
  ---
6
5
 
7
- - **General Command Permission:**
8
- - **✅ CAN execute** any system command without asking (Claude may run commands without asking for approval)
9
- - **✅ CAN execute** npm, yarn, pnpm, docker, scripts, tests, linters, formatters without confirmation
10
- - **✅ DON'T need to ask** before executing simple or common commands
11
- - **❌ EXCEPTIONS** (do not execute without user approval):
12
- - **Git**: `git` commands that modify the repository (add, commit, push, pull, merge, checkout, etc.)
13
- - **Cloud/remote resources**: Commands that run or connect to cloud/remote resources (e.g. database connections, cloud CLI that provisions resources, migrations against remote DB, deploying to production)
14
-
15
- - **Read Commands - Automatic Execution:**
16
- - **✅ ALWAYS execute without asking** commands that only read information:
17
- - `cat`, `head`, `tail`, `less`, `more` - File viewing
18
- - `grep`, `find`, `ls`, `tree` - Search and listing
19
- - `wc`, `stat`, `file` - File information
20
- - `read_file` (tool) - File reading
21
- - Any command that **does not modify** files or system
22
- - **✅ NEVER ask** before executing read commands
23
- - **✅ Execute immediately** without waiting for user confirmation
24
-
25
- - **Absolute Prohibition of Executing Git Commands:**
26
- - **❌ NEVER execute** `git` commands automatically
27
- - **❌ NEVER do** `git add`, `git commit`, `git push`, `git pull`, `git merge`, etc
28
- - **❌ NEVER modify** git repository state
29
- - **✅ ONLY suggest** git commands when appropriate
30
- - **✅ ONLY read** git information (git status, git diff, git log) for analysis
31
-
32
- - **Allowed Git Commands (Read Only):**
33
- - ✅ `git status` - To check repository state
34
- - ✅ `git diff` - To analyze changes
35
- - ✅ `git log` - To view history
36
- - ✅ `git show` - To view commit details
37
- - ✅ `git branch` - To list branches (without creating/modifying)
38
- - ✅ Any git command that **only reads** information
39
-
40
- - **Prohibited Git Commands (Never Execute):**
41
- - ❌ `git add` - User adds files
42
- - ❌ `git commit` - User makes commits
43
- - ❌ `git push` - User pushes
44
- - ❌ `git pull` - User pulls
45
- - ❌ `git merge` - User merges
46
- - ❌ `git checkout` - User switches branches
47
- - ❌ `git branch -d` or `-D` - User deletes branches
48
- - ❌ `git reset` - User resets
49
- - ❌ `git rebase` - User rebases
50
- - ❌ `git tag` - User creates tags
51
- - ❌ Any command that **modifies** the repository
52
-
53
- - **When to Suggest Git Commands:**
54
- - ✅ After task/subtask completion - suggest commit message
55
- - ✅ When there are uncommitted changes - suggest commit
56
- - ✅ When there are conflicts - suggest resolution (but don't execute)
57
- - ✅ When update is needed - suggest pull (but don't execute)
58
- - ✅ Always present as **suggestion**, never execute
59
-
60
- - **Suggestion Format:**
61
- ```markdown
62
- ✅ Task completed!
63
-
64
- 📝 Commit suggestion (you execute):
65
- ```bash
66
- git add .
67
- git commit -m "feat(module): Description"
68
- ```
69
- ```
70
-
71
- **NEVER do:**
72
- ```bash
73
- # ❌ DON'T: Execute automatically
74
- git add .
75
- git commit -m "..."
76
- ```
77
-
78
- - **Exceptions and Special Cases:**
79
- - **NO EXCEPTION for git**: This rule is absolute for git commands
80
- - **For non-git commands**: Execute directly without asking
81
- - **For git commands**: Even if user explicitly asks, **always suggest** instead of executing
82
- - If in doubt about whether a command is git or not, check if it starts with `git` before executing
83
-
84
- - **Integration with Other Rules:**
85
- - [commit_practices.mdc](mdc:.cursor/rules/commit_practices.mdc) - Suggest commits, never execute
86
- - RBIN Task Flow workflow should not include automatic git execution
87
-
88
- - **Fundamental Principle:**
89
- > **Claude may execute commands without asking, except: (1) git commands that modify the repository, and (2) commands that run cloud/remote resources (e.g. database, cloud provisioning). For those, only suggest or ask for approval.**
6
+ - **Superseded by** [rbin-git-policy.mdc](mdc:.cursor/rules/rbin-git-policy.mdc) (always-on).
7
+ - **Skill:** `@rbin-git` for Conventional Commit suggestions after subtasks.
8
+ - **Principle:** Never execute git write commands; read-only git is OK.
@@ -0,0 +1,31 @@
1
+ ---
2
+ description: Use Graphify knowledge graph only when executing RBIN Task Flow commands that need codebase navigation (task-flow run, think, review, audit). Prefer graphify query over blind grep when graphify-out exists. Never override task-flow status updates or git rules.
3
+ alwaysApply: false
4
+ ---
5
+
6
+ - **Graphify + RBIN Task Flow (coexistence):**
7
+ - **Graphify** maps repo structure (`graphify-out/graph.json`, `GRAPH_REPORT.md`). **Task Flow** owns tasks (`.task-flow/`), status, and commands `task-flow: …`.
8
+ - **Do not compete:** Task Flow rules (`task_work`, `task-flow-sync`, `rbin-git-policy`, etc.) always win for workflow, git, and status files.
9
+
10
+ - **When to use Graphify:**
11
+ - **`task-flow: run` / `run next X`:** Before implementing a subtask in a non-trivial codebase, if `graphify-out/graph.json` exists, use `graphify query "<feature or module from subtask>"` or read `graphify-out/GRAPH_REPORT.md` god nodes — then implement. If no graph exists, proceed with normal search or suggest `graphify extract .`.
12
+ - **`task-flow: think`:** Optional `graphify query` for gap analysis on large repos.
13
+ - **`task-flow: review X`:** Optional `graphify affected "<symbol>"` to verify impact surface.
14
+ - **`task-flow: audit`:** Graphify is structural only; scoring uses [coding_standards.mdc](mdc:.cursor/rules/coding_standards.mdc) checklist. Deep dive: sections of [coding-standards-full.md](mdc:.task-flow/docs/coding-standards-full.md) only if user asks for depth.
15
+
16
+ - **When NOT to use Graphify:**
17
+ - `task-flow: sync`, `status`, `estimate`, `report`, `generate flow` — only `.task-flow/` files.
18
+ - Updating `status.json` / `tasks.status.md` — never defer to Graphify.
19
+ - Git write operations — [rbin-git-policy.mdc](mdc:.cursor/rules/rbin-git-policy.mdc) only suggests commits.
20
+
21
+ - **If `.cursor/rules/graphify.mdc` exists with upstream Graphify install:**
22
+ - Prefer this rule (`graphify-task-flow`) for Task Flow sessions; avoid duplicating full `GRAPH_REPORT.md` into context unless needed.
23
+ - RBIN Task Flow init sets upstream `graphify.mdc` to `alwaysApply: false` to save context.
24
+
25
+ - **CLI (project root):**
26
+ - Build graph: `graphify extract .` (re-run after large refactors).
27
+ - Query: `graphify query "question"` · `graphify affected "node"`.
28
+ - Guide: [.task-flow/GRAPHIFY.md](mdc:.task-flow/GRAPHIFY.md)
29
+
30
+ - **Principle:**
31
+ > **Task Flow decides what to do; Graphify helps find where in the code — only during implementation and exploration commands.**
@@ -0,0 +1,47 @@
1
+ ---
2
+ description: RBIN git policy — never write git; suggest Conventional Commits after Task Flow work. User runs all git write commands.
3
+ alwaysApply: true
4
+ ---
5
+
6
+ # RBIN — Git policy (always)
7
+
8
+ ## Non-git commands
9
+
10
+ - **May run without asking:** npm, tests, linters, docker, scripts, read-only shell (`cat`, `grep`, `ls`, `read_file`), etc.
11
+ - **Do not run without approval:** cloud/remote provisioning, DB migrations against remote DB, production deploy.
12
+
13
+ ## Git write — never execute
14
+
15
+ Never run: `git add`, `commit`, `push`, `pull`, `merge`, `checkout`, `reset`, `rebase`, `tag`, `branch -d`/`-D`, or any command that modifies the repo.
16
+
17
+ Even if the user asks to commit — **suggest** the command; they execute it.
18
+
19
+ ## Git read — allowed
20
+
21
+ `git status`, `git diff`, `git log`, `git show`, `git branch` (list only) — use to analyze changes before suggesting a commit.
22
+
23
+ ## After Task Flow subtask or task `done`
24
+
25
+ 1. Notify completion (clear message).
26
+ 2. If there are uncommitted changes: suggest commit (never run it).
27
+ 3. Read-only: `git status --short`, `git diff --stat` (optional).
28
+ 4. Include Task/Subtask ID and title in the message.
29
+
30
+ **Do not suggest commit** if: no changes, merge conflicts, or not a git repo.
31
+
32
+ ## Conventional Commits
33
+
34
+ Types: `feat`, `fix`, `refactor`, `docs`, `style`, `test`, `chore`.
35
+
36
+ ```bash
37
+ git commit -m "feat(scope): Short description
38
+
39
+ - Detail
40
+ - Subtask ID: 3.2"
41
+ ```
42
+
43
+ ## On demand
44
+
45
+ Extended examples and presentation: `@rbin-git` skill · legacy [commit_practices.mdc](mdc:.cursor/rules/commit_practices.mdc), [git_control.mdc](mdc:.cursor/rules/git_control.mdc).
46
+
47
+ **Principle:** AI may act freely except git writes and risky remote ops — user owns git history.
@@ -1,9 +1,9 @@
1
1
  ---
2
- description: Guidelines for continuously improving Cursor rules based on emerging code patterns and best practices.
3
- globs: **/*
4
- alwaysApply: true
2
+ alwaysApply: false
5
3
  ---
6
4
 
5
+ > **Invoke with `@self_improve` only** — manual `@` mention; not Apply Intelligently.
6
+
7
7
  - **Rule Improvement Triggers:**
8
8
  - New code patterns not covered by existing rules
9
9
  - Repeated similar implementations across files
@@ -0,0 +1,51 @@
1
+ ---
2
+ description: RBIN Task Flow entry point for Cursor. When the user says task flow, task-flow, or any task-flow colon command, follow Task Flow paths and invoke the matching skill or rule below.
3
+ alwaysApply: true
4
+ ---
5
+
6
+ # RBIN Task Flow (Cursor)
7
+
8
+ **Task flow** = **RBIN Task Flow**. Data lives in `.task-flow/` — never edit `.internal/` by hand.
9
+
10
+ | Path | Purpose |
11
+ |------|---------|
12
+ | `.task-flow/tasks.input.txt` | Define tasks (`- description`) |
13
+ | `.task-flow/tasks.status.md` | Progress (auto) |
14
+ | `.task-flow/.internal/tasks.json` | Definitions |
15
+ | `.task-flow/.internal/status.json` | Status source of truth |
16
+ | `.task-flow/contexts/` | Specs / mockups |
17
+
18
+ ## Prefer skills (`.cursor/skills/`)
19
+
20
+ | User intent | Invoke |
21
+ |-------------|--------|
22
+ | `task-flow: sync` | `@task-flow-sync` or [task-flow-sync.mdc](mdc:.cursor/rules/task-flow-sync.mdc) |
23
+ | `task-flow: run next X`, `run N` | `@task-flow-run` |
24
+ | `task-flow: status` | `@task-flow-status` |
25
+ | `task-flow: think` | `@task-flow-think` |
26
+ | `task-flow: check` | `@task-flow-check` |
27
+ | `task-flow: audit` | `@task-flow-audit` |
28
+ | `task-flow: improve changes` | `@task-flow-improve-changes` |
29
+ | `task-flow: review X` | `@task-flow-review` |
30
+ | `task-flow: refactor X` | `@task-flow-refactor` |
31
+ | `task-flow: estimate X` | `@task-flow-estimate` |
32
+ | `task-flow: report X` | `@task-flow-report` |
33
+ | `task-flow: generate flow` | `@task-flow-generate-flow` |
34
+ | Implementing code | `@rbin-coding-standards` |
35
+ | Suggest commit | `@rbin-git` |
36
+
37
+ Natural language (`work on next 3 subtasks`) = same as `task-flow: run next 3`.
38
+
39
+ ## Git (always)
40
+
41
+ Never write git — user runs all commits. Policy: [rbin-git-policy.mdc](mdc:.cursor/rules/rbin-git-policy.mdc). Suggest via `@rbin-git`.
42
+
43
+ ## Graphify (optional)
44
+
45
+ On `run` / `think`, if `graphify-out/` exists: `graphify query` before repo-wide grep. Rule: `graphify-task-flow`. Guide: `.task-flow/GRAPHIFY.md`.
46
+
47
+ ## More detail
48
+
49
+ - Workflows: `.task-flow/CURSOR.md`
50
+ - Full guide: `.task-flow/platforms/cursor.md`
51
+ - Codex parity: `.task-flow/CODEX.md`
@@ -0,0 +1,46 @@
1
+ ---
2
+ description: Full task-flow sync — reconciles tasks.input.txt with tasks.json, status.json, and tasks.status.md. Use for task-flow sync, sync tasks, or sincronizar tasks. Prefer @task-flow-sync skill.
3
+ globs: .task-flow/**
4
+ alwaysApply: false
5
+ ---
6
+
7
+ # task-flow: sync
8
+
9
+ **Prefer:** `@task-flow-sync` · Skill workflow: `.claude/skills/task-flow-sync/workflow.md`
10
+
11
+ ## 1. Read
12
+
13
+ - `.task-flow/tasks.input.txt` (lines starting with `- ` only)
14
+ - `.task-flow/.internal/tasks.json`, `status.json` if they exist
15
+ - List `.task-flow/contexts/` for matching references
16
+
17
+ ## 2. Diff by `originalRequest`
18
+
19
+ | Change | Action |
20
+ |--------|--------|
21
+ | **New** | Generate task + 3–8 subtasks; all `pending` |
22
+ | **Removed** | Drop from `tasks.json`, `status.json`, `tasks.status.md` |
23
+ | **Modified** | Update title/description; regen subtasks; **preserve** done/pending status where possible |
24
+ | **Unchanged** | Leave task data and status as-is |
25
+
26
+ Task IDs stay sequential (1, 2, 3…) matching `tasks.input.txt` order.
27
+
28
+ ## 3. New / regenerated subtasks
29
+
30
+ - `originalRequest`: exact input line; `createdAt`: ISO 8601 for new tasks
31
+ - 3–8 subtasks: title, description, instructions (3–5 steps)
32
+ - Contexts: keyword match or `task-flow-screen file.ext` → `.task-flow/contexts/file.ext`
33
+ - Subtask instructions: **checklist** in [coding_standards.mdc](mdc:.cursor/rules/coding_standards.mdc) only — not [coding-standards-full.md](mdc:.task-flow/docs/coding-standards-full.md)
34
+ - More templates: [task_generation.mdc](mdc:.cursor/rules/task_generation.mdc)
35
+
36
+ **Sync rules:** no codebase exploration; no questions; do not fill `tasks.flow.md` (only `generate flow`).
37
+
38
+ ## 4. Align status
39
+
40
+ - `status.json` = source of truth
41
+ - Rebuild `tasks.status.md` checkboxes to match; **regenerate 📊 Summary** (completed / in progress / remaining counts)
42
+ - After regen: new subtasks → `pending`; keep `done` on matched subtasks when possible
43
+
44
+ ## 5. Principles
45
+
46
+ > Preserve progress when possible. Fast: read → diff → write. User runs `task-flow: status` or `@task-flow-run` next.