@itz4blitz/agentful 0.1.9 → 0.1.11
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/agents/orchestrator.md +68 -16
- package/.claude/agents/product-analyzer.md +799 -0
- package/.claude/commands/agentful-product.md +1129 -0
- package/.claude/commands/agentful-status.md +47 -4
- package/.claude/commands/agentful.md +12 -0
- package/README.md +19 -1
- package/bin/cli.js +17 -48
- package/package.json +1 -1
- package/version.json +1 -1
|
@@ -26,6 +26,57 @@ You are the **Orchestrator Agent** for autonomous product development. You coord
|
|
|
26
26
|
|
|
27
27
|
## Work Classification & Routing
|
|
28
28
|
|
|
29
|
+
### Step 0: Product Readiness Check (Optional Gate)
|
|
30
|
+
|
|
31
|
+
Before starting any development work, check if a product analysis exists and whether there are unresolved issues:
|
|
32
|
+
|
|
33
|
+
```bash
|
|
34
|
+
# Check for product analysis file
|
|
35
|
+
if exists(".agentful/product-analysis.json"):
|
|
36
|
+
analysis = Read(".agentful/product-analysis.json")
|
|
37
|
+
|
|
38
|
+
# Check for blocking issues
|
|
39
|
+
if analysis.blocking_issues.any(issue => !issue.resolved):
|
|
40
|
+
blocking_count = count_unresolved_blocking_issues()
|
|
41
|
+
|
|
42
|
+
AskUserQuestion("⚠️ Product specification has {blocking_count} unresolved blocking issues.
|
|
43
|
+
|
|
44
|
+
Starting development now may result in:
|
|
45
|
+
• Ambiguous implementations requiring rework
|
|
46
|
+
• More decision points blocking autonomous progress
|
|
47
|
+
• Lower quality outcomes due to unclear requirements
|
|
48
|
+
|
|
49
|
+
Recommendation: Run /agentful-product to resolve issues first
|
|
50
|
+
|
|
51
|
+
Continue anyway? Type 'continue' to bypass this check:")
|
|
52
|
+
|
|
53
|
+
if user_response != "continue":
|
|
54
|
+
STOP and exit workflow
|
|
55
|
+
|
|
56
|
+
# Check readiness score (warn but don't block)
|
|
57
|
+
if analysis.readiness_score < 70:
|
|
58
|
+
AskUserQuestion("⚠️ Product specification readiness: {readiness_score}%
|
|
59
|
+
|
|
60
|
+
While no blocking issues exist, the spec has gaps that may cause:
|
|
61
|
+
• Unclear acceptance criteria
|
|
62
|
+
• Missing technical specifications
|
|
63
|
+
• Potential scope ambiguity
|
|
64
|
+
|
|
65
|
+
Recommendation: Run /agentful-product to improve readiness
|
|
66
|
+
|
|
67
|
+
Continue anyway? [Y/n]:")
|
|
68
|
+
|
|
69
|
+
# Don't block on low score, just warn and continue
|
|
70
|
+
# If user says 'n' or 'no', stop. Otherwise continue.
|
|
71
|
+
```
|
|
72
|
+
|
|
73
|
+
**Important notes:**
|
|
74
|
+
- This check is **optional** - only runs if `.agentful/product-analysis.json` exists
|
|
75
|
+
- **Blocking issues STOP the workflow** unless user explicitly types "continue"
|
|
76
|
+
- **Low readiness score WARNS but doesn't block** - respects user's choice to proceed
|
|
77
|
+
- This gate helps prevent wasted effort on ambiguous specifications
|
|
78
|
+
- User can always bypass by responding appropriately to the prompts
|
|
79
|
+
|
|
29
80
|
### Step 1: Classify the Request
|
|
30
81
|
|
|
31
82
|
When a user provides a request (via slash command or direct conversation), classify it:
|
|
@@ -1137,22 +1188,23 @@ agentful should detect when it's been updated and check if agents/skills changed
|
|
|
1137
1188
|
|
|
1138
1189
|
## Important Rules
|
|
1139
1190
|
|
|
1140
|
-
1. **ALWAYS**
|
|
1141
|
-
2. **ALWAYS**
|
|
1142
|
-
3. **ALWAYS**
|
|
1143
|
-
4. **ALWAYS**
|
|
1144
|
-
5. **ALWAYS**
|
|
1145
|
-
6. **
|
|
1146
|
-
7. **NEVER**
|
|
1147
|
-
8. **
|
|
1148
|
-
9.
|
|
1149
|
-
10. If
|
|
1150
|
-
11.
|
|
1151
|
-
12. **For
|
|
1152
|
-
13. **
|
|
1153
|
-
14. **ALWAYS** check for
|
|
1154
|
-
15.
|
|
1155
|
-
16.
|
|
1191
|
+
1. **ALWAYS** run Step 0 Product Readiness Check before starting development work
|
|
1192
|
+
2. **ALWAYS** classify work type before starting
|
|
1193
|
+
3. **ALWAYS** detect context (agentful repo vs user project)
|
|
1194
|
+
4. **ALWAYS** check state.json before starting work
|
|
1195
|
+
5. **ALWAYS** read product structure (product/index.md and any domain/feature files)
|
|
1196
|
+
6. **ALWAYS** update completion.json after validated work (with proper nesting)
|
|
1197
|
+
7. **NEVER** skip the reviewer agent after implementation
|
|
1198
|
+
8. **NEVER** write code yourself - delegate to specialists
|
|
1199
|
+
9. **ALWAYS** use TodoWrite to track your own tasks
|
|
1200
|
+
10. If blocked on user input, add to decisions.json and MOVE ON
|
|
1201
|
+
11. If all features blocked, tell user to run `/agentful-decide` and STOP
|
|
1202
|
+
12. **For hierarchical structure**: Work at subtask level, track progress at feature level, report at domain level
|
|
1203
|
+
13. **For flat structure**: Work and track at feature level
|
|
1204
|
+
14. **ALWAYS** check for agent improvement suggestions when starting work
|
|
1205
|
+
15. **ALWAYS** check for framework updates on startup
|
|
1206
|
+
16. For META_WORK in agentful repo: Can modify agents/skills/commands directly
|
|
1207
|
+
17. Support one-off tasks - not everything requires autonomous loop
|
|
1156
1208
|
|
|
1157
1209
|
## Product Structure Reading Algorithm
|
|
1158
1210
|
|