rbin-task-flow 1.19.3 → 1.19.4

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.
@@ -1,5 +1,5 @@
1
1
  ---
2
- description: Task time estimation based on task complexity and developer experience level
2
+ description: Task time estimation based on real task complexity for an average developer pace
3
3
  globs: **/*
4
4
  alwaysApply: true
5
5
  ---
@@ -10,41 +10,36 @@ alwaysApply: true
10
10
  - **ALL TASKS**: `task-flow: estimate all` → Estimate all tasks
11
11
  - When user says "task-flow: estimate X", "estimate X", "estimate X,Y", "estimate all", or "how long will task X take":
12
12
  - **READ**: `.task-flow/.internal/tasks.json` to get task details
13
- - **CALCULATE**: Time estimate based on task level, complexity signals, and developer experience level
14
- - **DISPLAY**: Show time estimate with intervals for 3 experience levels (junior, mid, senior)
15
- - **FORMAT**: Show estimates in hours with ranges (e.g., "10-14 hours" for intermediate)
13
+ - **CALCULATE**: Time estimate based on task level, intrinsic complexity signals, and average development pace
14
+ - **DISPLAY**: Show a single estimate range for the majority of developers
15
+ - **FORMAT**: Show estimates in hours with ranges (e.g. "10-14 hours")
16
16
 
17
17
  - **Estimation Rules:**
18
- 1. **Base Analysis**: Evaluate the task title and subtasks to infer real task level
19
- 2. **Experience Levels** (use internally; display "Intermediate" not "Mid-level" to user):
20
- - **Junior** (0-2 years): Base time × 1.5 multiplier
21
- - **Intermediate** (3-5 years): Base time × 1.0 multiplier (baseline)
22
- - **Senior** (6+ years): Base time × 0.7 multiplier
18
+ 1. **Base Analysis**: Evaluate the task title, description, and subtasks to infer the real complexity of the task itself
19
+ 2. **Assumption**: Estimate for an average developer working at an average development pace, without AI acceleration
23
20
  3. **Task Level Heuristics**:
24
21
  - **Low**: localized change, clear requirement, low ambiguity, low regression risk
25
22
  - **Medium**: multi-file implementation, moderate ambiguity, moderate validation needs
26
23
  - **High**: architectural, cross-cutting, migration, security, performance, or high-risk change
27
- 4. **Subtask count is only one signal**: use it to inform scope, but never as the sole estimate driver
28
- 5. **Intermediate baseline per subtask**:
24
+ 4. **Intrinsic complexity matters first**: scope, ambiguity, dependencies, validation, integration points, and regression risk must outweigh raw subtask count
25
+ 5. **Subtask count is only one signal**: use it to inform scope, but never as the sole estimate driver
26
+ 6. **Baseline per subtask for average pace**:
29
27
  - Low-level task: 1.5-2.5 hours
30
28
  - Medium-level task: 2.5-4 hours
31
29
  - High-level task: 4-6.5 hours
32
- 6. **Risk and scope adjustment**:
30
+ 7. **Risk and scope adjustment**:
33
31
  - Increase estimate when the task mentions integrations, migrations, refactors, security, performance, billing, or architecture work
34
- 7. **Range Calculation**:
35
- - Lower bound: (subtasks × baseline lower) × risk factor × experience multiplier
36
- - Upper bound: (subtasks × baseline upper) × risk factor × experience multiplier
32
+ 8. **Range Calculation**:
33
+ - Lower bound: subtasks × baseline lower × risk factor
34
+ - Upper bound: subtasks × baseline upper × risk factor
37
35
  - Round to nearest hour
38
36
 
39
37
  - **Estimation Formula:**
40
38
  ```
41
39
  1. Infer task level: low, medium, or high
42
- 2. Choose intermediate baseline per subtask from task level
40
+ 2. Choose average-pace baseline per subtask from task level
43
41
  3. Apply risk/scope multiplier when complexity indicators exist
44
- 4. Apply experience multiplier:
45
- Junior: × 1.5
46
- Intermediate: × 1.0
47
- Senior: × 0.7
42
+ 4. Return one range that represents the majority of developers
48
43
  ```
49
44
 
50
45
  - **Display Format:**
@@ -52,10 +47,8 @@ alwaysApply: true
52
47
  📊 Time Estimation for Task X: [Task Title]
53
48
 
54
49
  Based on [N] subtasks and task-level analysis:
55
-
56
- 👶 Junior (0-2 years): [X-Y] hours
57
- 👨‍💼 Intermediate (3-5 years): [X-Y] hours
58
- 👴 Senior (6+ years): [X-Y] hours
50
+
51
+ Average developer, average pace, no AI acceleration: [X-Y] hours
59
52
  ```
60
53
 
61
54
  - **Natural Language Phrases:**
@@ -78,9 +71,7 @@ alwaysApply: true
78
71
 
79
72
  Based on 5 subtasks and task-level analysis:
80
73
 
81
- 👶 Junior (0-2 years): 15-23 hours
82
- 👨‍💼 Intermediate (3-5 years): 10-15 hours
83
- 👴 Senior (6+ years): 7-11 hours
74
+ Average developer, average pace, no AI acceleration: 10-15 hours
84
75
  ```
85
76
 
86
77
  - **Integration:**
@@ -89,4 +80,4 @@ alwaysApply: true
89
80
  - Estimates are informational only (not stored)
90
81
 
91
82
  - **Principle:**
92
- > **Provide realistic time estimates based on real task level, scope, ambiguity, and risk. Subtask count informs scope, but must not be the sole estimation criterion.**
83
+ > **Provide realistic time estimates for an average developer, based on the real complexity of the task itself. Subtask count informs scope, but must not be the sole estimation criterion, and estimates must not assume AI acceleration.**
@@ -95,10 +95,10 @@ Refactors code from specific task(s). Removes explanatory comments, improves cod
95
95
  - `task-flow: refactor all` → Refactors all tasks
96
96
 
97
97
  ### `task-flow: estimate X` (simplified syntax)
98
- Estimates time required to complete task(s) based on task level, scope, risk, and developer experience level. Subtask count informs scope, but is not the sole criterion.
98
+ Estimates time required to complete task(s) based on the real complexity of the task, assuming an average developer working at an average pace without AI acceleration. Subtask count informs scope, but is not the sole criterion.
99
99
 
100
100
  **Output includes:**
101
- - Time estimates for Junior (0-2 years), Intermediate (3-5 years), and Senior (6+ years) developers
101
+ - A single estimate range for the majority of developers
102
102
  - Estimates in hours and business days
103
103
  - Recommendation for management with buffer
104
104
 
package/bin/cli.js CHANGED
@@ -42,7 +42,7 @@ program
42
42
 
43
43
  program
44
44
  .command('estimate')
45
- .description('Estimate time for task(s) based on subtasks and experience level')
45
+ .description('Estimate time for task(s) based on real task complexity and average development pace')
46
46
  .argument('<taskIds>', 'Task ID(s) to estimate (comma-separated or "all")')
47
47
  .option('-p, --path <path>', 'Target directory (default: current directory)')
48
48
  .action(async (taskIds, options) => {
package/lib/estimate.js CHANGED
@@ -55,34 +55,22 @@ async function estimateTask(taskIdsInput, targetPath = process.cwd()) {
55
55
  console.log(chalk.blue(`Complexity: ${chalk.yellow(analysis.level)} (${subtaskCount} subtasks)\n`));
56
56
 
57
57
  console.log(chalk.cyan('─'.repeat(70)));
58
- console.log(chalk.magenta.bold('Time Estimates by Experience Level:\n'));
58
+ console.log(chalk.magenta.bold('Time Estimate for Average Development Pace:\n'));
59
59
 
60
60
  console.log(chalk.gray(`Signals: ${analysis.signals.join(', ')}\n`));
61
61
 
62
- const juniorDays = Math.ceil(estimates.junior.upper / 8);
63
- const midDays = Math.ceil(estimates.mid.upper / 8);
64
- const seniorDays = Math.ceil(estimates.senior.upper / 8);
62
+ const estimateDays = Math.ceil(estimates.upper / 8);
65
63
 
66
- console.log(chalk.gray('👶 Junior Developer (0-2 years):'));
67
- console.log(chalk.white(' Hours:'), chalk.yellow(`${estimates.junior.lower}-${estimates.junior.upper} hours`));
68
- console.log(chalk.white(' Days: '), chalk.yellow(`~${juniorDays} business day(s)`));
69
- console.log('');
70
-
71
- console.log(chalk.gray('👨‍💼 Intermediate (3-5 years):'));
72
- console.log(chalk.white(' Hours:'), chalk.yellow(`${estimates.mid.lower}-${estimates.mid.upper} hours`));
73
- console.log(chalk.white(' Days: '), chalk.yellow(`~${midDays} business day(s)`));
74
- console.log('');
75
-
76
- console.log(chalk.gray('👴 Senior Developer (6+ years):'));
77
- console.log(chalk.white(' Hours:'), chalk.yellow(`${estimates.senior.lower}-${estimates.senior.upper} hours`));
78
- console.log(chalk.white(' Days: '), chalk.yellow(`~${seniorDays} business day(s)`));
64
+ console.log(chalk.gray('Assumption: average developer, average delivery pace, without AI acceleration.'));
65
+ console.log(chalk.white(' Hours:'), chalk.yellow(`${estimates.lower}-${estimates.upper} hours`));
66
+ console.log(chalk.white(' Days: '), chalk.yellow(`~${estimateDays} business day(s)`));
79
67
  console.log('');
80
68
 
81
69
  console.log(chalk.cyan('─'.repeat(70)));
82
70
  console.log(chalk.magenta.bold('Recommendation for Management:\n'));
83
- console.log(chalk.white(' Recommended estimate:'), chalk.yellow(`${estimates.mid.lower}-${estimates.mid.upper} hours`), chalk.gray('(3-5 years baseline)'));
71
+ console.log(chalk.white(' Recommended estimate:'), chalk.yellow(`${estimates.lower}-${estimates.upper} hours`), chalk.gray('(average developer baseline)'));
84
72
  console.log(chalk.white(' Buffer recommended:'), chalk.yellow(`+20%`), chalk.gray('for unexpected issues'));
85
- console.log(chalk.white(' Total estimate:'), chalk.yellow(`${Math.round(estimates.mid.upper * 1.2)} hours`), chalk.gray(`(~${Math.ceil(estimates.mid.upper * 1.2 / 8)} business days)`));
73
+ console.log(chalk.white(' Total estimate:'), chalk.yellow(`${Math.round(estimates.upper * 1.2)} hours`), chalk.gray(`(~${Math.ceil(estimates.upper * 1.2 / 8)} business days)`));
86
74
  console.log('');
87
75
 
88
76
  successCount++;
@@ -109,18 +97,8 @@ function calculateEstimates(analysis) {
109
97
  const baseUpper = subtaskCount * baseRange.upper * riskMultiplier;
110
98
 
111
99
  return {
112
- junior: {
113
- lower: Math.round(baseLower * 1.5),
114
- upper: Math.round(baseUpper * 1.5)
115
- },
116
- mid: {
117
- lower: baseLower,
118
- upper: baseUpper
119
- },
120
- senior: {
121
- lower: Math.round(baseLower * 0.7),
122
- upper: Math.round(baseUpper * 0.7)
123
- }
100
+ lower: Math.round(baseLower),
101
+ upper: Math.round(baseUpper)
124
102
  };
125
103
  }
126
104
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rbin-task-flow",
3
- "version": "1.19.3",
3
+ "version": "1.19.4",
4
4
  "description": "AI-powered task management for Claude and Cursor",
5
5
  "main": "index.js",
6
6
  "bin": {