@itz4blitz/agentful 0.1.11 → 0.2.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/agents/architect.md +30 -527
- package/.claude/agents/orchestrator.md +104 -622
- package/.claude/agents/product-analyzer.md +4 -4
- package/.claude/commands/agentful-agents.md +668 -0
- package/.claude/commands/agentful-analyze.md +564 -0
- package/.claude/commands/agentful-product.md +59 -674
- package/.claude/commands/agentful-skills.md +635 -0
- package/.claude/commands/agentful-start.md +4 -4
- package/.claude/commands/agentful-status.md +2 -2
- package/.claude/commands/agentful.md +222 -13
- package/.claude/settings.json +25 -1
- package/.claude/skills/conversation/SKILL.md +292 -15
- package/README.md +24 -7
- package/bin/cli.js +5 -5
- package/bin/hooks/README.md +120 -0
- package/bin/hooks/analyze-trigger.sh +57 -0
- package/bin/hooks/health-check.sh +36 -0
- package/package.json +10 -5
- package/template/CLAUDE.md +72 -192
- package/version.json +1 -1
package/template/CLAUDE.md
CHANGED
|
@@ -1,19 +1,14 @@
|
|
|
1
|
-
# agentful
|
|
1
|
+
# agentful
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
**agentful** is an autonomous product development framework that uses specialized AI agents to build software from a product specification. It coordinates architecture, development, testing, and validation through human-in-the-loop checkpoints, ensuring quality while maintaining 24/7 development velocity.
|
|
4
4
|
|
|
5
5
|
## Quick Start
|
|
6
6
|
|
|
7
|
-
1. Edit
|
|
8
|
-
- **Flat structure** (recommended for beginners): Edit `PRODUCT.md` at project root
|
|
9
|
-
- **Hierarchical structure** (for larger projects): Edit files in `.claude/product/`
|
|
7
|
+
1. Edit `PRODUCT.md` (or `.claude/product/` for larger projects)
|
|
10
8
|
2. Run: `claude`
|
|
11
9
|
3. Type: `/agentful-start`
|
|
12
10
|
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
## For 24/7 Development
|
|
16
|
-
|
|
11
|
+
For extended sessions:
|
|
17
12
|
```bash
|
|
18
13
|
claude --dangerously-skip-permissions
|
|
19
14
|
/ralph-loop "/agentful-start" --max-iterations 50 --completion-promise "AGENTFUL_COMPLETE"
|
|
@@ -23,215 +18,100 @@ claude --dangerously-skip-permissions
|
|
|
23
18
|
|
|
24
19
|
| Command | Description |
|
|
25
20
|
|---------|-------------|
|
|
26
|
-
| `/agentful-start` | Begin or resume
|
|
27
|
-
| `/agentful-status` | Check current progress |
|
|
28
|
-
| `/agentful-decide` | Answer pending decisions |
|
|
29
|
-
| `/agentful-validate` | Run all quality checks |
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
agentful uses specialized agents that work together:
|
|
34
|
-
|
|
35
|
-
| Agent | Purpose |
|
|
36
|
-
|-------|---------|
|
|
37
|
-
| `orchestrator` | Coordinates all work, never codes directly |
|
|
38
|
-
| `architect` | Analyzes tech stack and generates specialized agents |
|
|
39
|
-
| `backend` | Services, repositories, controllers, APIs |
|
|
40
|
-
| `frontend` | Components, pages, hooks, styling |
|
|
41
|
-
| `tester` | Unit, integration, E2E tests |
|
|
42
|
-
| `reviewer` | Code review, dead code detection, quality gates |
|
|
43
|
-
| `fixer` | Fixes validation failures automatically |
|
|
44
|
-
|
|
45
|
-
## State Files
|
|
46
|
-
|
|
47
|
-
Progress is tracked in `.agentful/`:
|
|
48
|
-
|
|
49
|
-
- `state.json` - Current work state and phase
|
|
50
|
-
- `completion.json` - Feature completion percentages and quality gates
|
|
51
|
-
- `decisions.json` - Pending and resolved decisions
|
|
52
|
-
- `last-validation.json` - Most recent validation report
|
|
53
|
-
|
|
54
|
-
## Product Specification
|
|
55
|
-
|
|
56
|
-
Your product is defined in one of two formats:
|
|
57
|
-
|
|
58
|
-
### Flat Structure (Recommended for Beginners)
|
|
59
|
-
|
|
60
|
-
- **Location**: `PRODUCT.md` at project root
|
|
61
|
-
- **Format**: Single file with all features
|
|
62
|
-
- **Best for**: Small projects, MVPs, quick prototypes
|
|
63
|
-
|
|
64
|
-
### Hierarchical Structure (For Larger Projects)
|
|
65
|
-
|
|
66
|
-
- **Location**: `.claude/product/` directory
|
|
67
|
-
- **Format**: Multiple files organized by domain
|
|
68
|
-
- **Best for**: Large projects, teams, complex products
|
|
69
|
-
|
|
70
|
-
The system auto-detects which format you're using. Both formats contain:
|
|
71
|
-
|
|
72
|
-
- Overview and goals
|
|
73
|
-
- Tech stack decisions
|
|
74
|
-
- Feature list with priorities
|
|
75
|
-
- Acceptance criteria
|
|
76
|
-
- Architecture notes
|
|
77
|
-
|
|
78
|
-
### Choosing the Right Structure
|
|
79
|
-
|
|
80
|
-
**Start with flat structure if:**
|
|
81
|
-
- You're new to agentful
|
|
82
|
-
- Building an MVP or prototype
|
|
83
|
-
- Project has less than 20 features
|
|
84
|
-
- Working alone or in a small team
|
|
85
|
-
|
|
86
|
-
**Use hierarchical structure if:**
|
|
87
|
-
- Project has 20+ features across multiple domains
|
|
88
|
-
- Multiple team members need to edit specs simultaneously
|
|
89
|
-
- You need better organization for complex projects
|
|
90
|
-
- Your PRODUCT.md file is getting too long (500+ lines)
|
|
91
|
-
|
|
92
|
-
### Migrating Between Formats
|
|
93
|
-
|
|
94
|
-
You can start with flat and migrate to hierarchical as your project grows. See the migration guide in your product specification file for detailed instructions.
|
|
95
|
-
|
|
96
|
-
The system auto-detects format changes automatically - no configuration needed!
|
|
97
|
-
|
|
98
|
-
## How It Works
|
|
99
|
-
|
|
100
|
-
```mermaid
|
|
101
|
-
flowchart LR
|
|
102
|
-
Start([🚀 Initialize<br/>npx @itz4blitz/agentful init]) --> Define[📝 Define Product<br/>Edit PRODUCT.md]
|
|
103
|
-
Define --> Build[⚡ Start Building<br/>/agentful-start]
|
|
104
|
-
Build --> Loop{🔄 24/7 Development Loop}
|
|
105
|
-
|
|
106
|
-
Loop --> Spec[📋 Your Specs<br/>PRODUCT.md]
|
|
107
|
-
Loop --> Tech[🛠️ Tech Stack<br/>Auto-detected]
|
|
108
|
-
Loop --> Dev[🤖 Autonomous Development]
|
|
109
|
-
Loop --> Complete[✅ 100% Complete]
|
|
110
|
-
|
|
111
|
-
Spec --> Agents[Specialized Agents]
|
|
112
|
-
Tech --> Agents
|
|
113
|
-
Agents --> Dev
|
|
114
|
-
Dev --> Validate[Quality Gates]
|
|
115
|
-
Validate -->|❌ Fix| Dev
|
|
116
|
-
Validate -->|✅ Pass| Update[Update Progress]
|
|
117
|
-
Update --> Check{Done?}
|
|
118
|
-
Check -->|No| Loop
|
|
119
|
-
Check -->|Yes| Complete([🎉 Complete!])
|
|
120
|
-
|
|
121
|
-
style Start fill:#10b981,stroke:#059669,color:#fff
|
|
122
|
-
style Define fill:#3b82f6,stroke:#2563eb,color:#fff
|
|
123
|
-
style Build fill:#8b5cf6,stroke:#7c3aed,color:#fff
|
|
124
|
-
style Loop fill:#f59e0b,stroke:#d97706,color:#fff
|
|
125
|
-
style Agents fill:#06b6d4,stroke:#0891b2,color:#fff
|
|
126
|
-
style Dev fill:#ec4899,stroke:#db2777,color:#fff
|
|
127
|
-
style Validate fill:#f97316,stroke:#ea580c,color:#fff
|
|
128
|
-
style Update fill:#84cc16,stroke:#65a30d,color:#fff
|
|
129
|
-
style Complete fill:#10b981,stroke:#059669,color:#fff
|
|
130
|
-
```
|
|
21
|
+
| `/agentful-start` | Begin or resume structured development |
|
|
22
|
+
| `/agentful-status` | Check current progress and completion % |
|
|
23
|
+
| `/agentful-decide` | Answer pending decisions blocking work |
|
|
24
|
+
| `/agentful-validate` | Run all quality checks manually |
|
|
25
|
+
| `/agentful-product` | Analyze and improve product specification |
|
|
26
|
+
| `/agents` | List all available specialized agents |
|
|
131
27
|
|
|
132
|
-
|
|
133
|
-
2. **Planning** - Orchestrator reads state and picks next priority task
|
|
134
|
-
3. **Implementation** - Specialist agents implement features
|
|
135
|
-
4. **Validation** - Reviewer runs quality checks
|
|
136
|
-
5. **Fixing** - Fixer resolves any issues found
|
|
137
|
-
6. **Iteration** - Loop continues until 100% complete
|
|
28
|
+
## When to Use What
|
|
138
29
|
|
|
139
|
-
|
|
30
|
+
**Starting fresh?**
|
|
31
|
+
→ Run `/agentful-product` to analyze your PRODUCT.md, then `/agentful-start`
|
|
140
32
|
|
|
141
|
-
|
|
33
|
+
**Existing project?**
|
|
34
|
+
→ Run `/agentful-start` directly (auto-detects tech stack)
|
|
142
35
|
|
|
143
|
-
|
|
144
|
-
-
|
|
145
|
-
- ✅ No dead code (unused exports, files, dependencies)
|
|
146
|
-
- ✅ Test coverage ≥ 80%
|
|
147
|
-
- ✅ No security issues
|
|
36
|
+
**Need to check progress?**
|
|
37
|
+
→ Run `/agentful-status` to see completion % and current phase
|
|
148
38
|
|
|
149
|
-
|
|
39
|
+
**Validation failures?**
|
|
40
|
+
→ The `fixer` agent auto-fixes issues, or run `/agentful-validate` manually
|
|
150
41
|
|
|
151
|
-
|
|
42
|
+
**Agent needs your input?**
|
|
43
|
+
→ Check `.agentful/decisions.json` or run `/agentful-decide`
|
|
152
44
|
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
3. Run `/agentful-decide` to answer
|
|
156
|
-
4. agentful resumes blocked work
|
|
45
|
+
**Unclear requirements?**
|
|
46
|
+
→ Run `/agentful-product` in reverse-engineering mode or improve PRODUCT.md
|
|
157
47
|
|
|
158
|
-
|
|
48
|
+
**Want to add features?**
|
|
49
|
+
→ Edit PRODUCT.md, then run `/agentful-start` (picks up changes automatically)
|
|
159
50
|
|
|
160
|
-
|
|
161
|
-
- Product specification (`PRODUCT.md` or `.claude/product/index.md`) - Explicit tech stack section
|
|
162
|
-
- `package.json` - Dependencies and frameworks
|
|
163
|
-
- Existing code - File patterns and imports
|
|
51
|
+
## File Structure
|
|
164
52
|
|
|
165
|
-
|
|
53
|
+
**Product Specification** (you edit these):
|
|
54
|
+
- `PRODUCT.md` - Flat structure (recommended for <20 features)
|
|
55
|
+
- `.claude/product/` - Hierarchical structure (for larger projects)
|
|
166
56
|
|
|
167
|
-
|
|
57
|
+
**Runtime State** (managed by agentful, gitignored):
|
|
58
|
+
- `.agentful/state.json` - Current work phase and progress
|
|
59
|
+
- `.agentful/completion.json` - Feature completion % and quality gates
|
|
60
|
+
- `.agentful/decisions.json` - Pending and resolved decisions
|
|
61
|
+
- `.agentful/last-validation.json` - Most recent validation report
|
|
62
|
+
- `.agentful/architecture.json` - Detected tech stack and generated agents
|
|
168
63
|
|
|
169
|
-
|
|
170
|
-
|
|
64
|
+
**Configuration** (auto-generated, customizable):
|
|
65
|
+
- `.claude/agents/` - Specialized agents for your tech stack
|
|
66
|
+
- `.claude/commands/` - Slash commands
|
|
67
|
+
- `.claude/settings.json` - Hooks and permissions
|
|
68
|
+
|
|
69
|
+
## Quality Gates
|
|
171
70
|
|
|
172
|
-
|
|
173
|
-
→ Generated nextjs-agent, prisma-agent, tailwind-agent
|
|
71
|
+
Every feature must pass validation before marked complete:
|
|
174
72
|
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
73
|
+
- **Tests** - All tests passing with ≥80% coverage
|
|
74
|
+
- **TypeScript** - No type errors (if using TypeScript)
|
|
75
|
+
- **Dead Code** - No unused exports, files, or dependencies
|
|
76
|
+
- **Security** - No known vulnerabilities in dependencies
|
|
77
|
+
- **Linting** - Code follows project style guide
|
|
180
78
|
|
|
181
|
-
|
|
182
|
-
→ TypeScript: ✅
|
|
183
|
-
→ Lint: ✅
|
|
184
|
-
→ Tests: ✅
|
|
185
|
-
→ Coverage: 82% ✅
|
|
186
|
-
→ Dead code: ✅
|
|
187
|
-
→ Security: ✅
|
|
79
|
+
The `reviewer` agent runs these checks automatically. The `fixer` agent resolves failures.
|
|
188
80
|
|
|
189
|
-
|
|
190
|
-
Next: User profile feature...
|
|
81
|
+
## Troubleshooting
|
|
191
82
|
|
|
192
|
-
|
|
193
|
-
|
|
83
|
+
**"agentful keeps asking me unclear questions"**
|
|
84
|
+
→ Your PRODUCT.md needs more detail. Run `/agentful-product` to analyze and improve it.
|
|
194
85
|
|
|
195
|
-
|
|
86
|
+
**"Validation keeps failing"**
|
|
87
|
+
→ Check `.agentful/last-validation.json` for details. The `fixer` agent should auto-resolve, but you can run `/agentful-validate` manually.
|
|
196
88
|
|
|
197
|
-
|
|
89
|
+
**"Agent isn't working on the right feature"**
|
|
90
|
+
→ Check priority in PRODUCT.md. CRITICAL > HIGH > MEDIUM > LOW. Run `/agentful-status` to see current focus.
|
|
198
91
|
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
- `.claude/skills/` - Add domain-specific skills
|
|
92
|
+
**"State seems stuck or corrupted"**
|
|
93
|
+
→ Delete `.agentful/state.json` and run `/agentful-start` to reset. Completion progress is preserved.
|
|
202
94
|
|
|
203
|
-
|
|
95
|
+
**"Tech stack not detected correctly"**
|
|
96
|
+
→ Add explicit tech stack section to PRODUCT.md or check `.agentful/architecture.json` for what was detected.
|
|
204
97
|
|
|
205
|
-
|
|
98
|
+
**"How do I switch from flat to hierarchical product structure?"**
|
|
99
|
+
→ Run `/agentful-product migrate` or manually create `.claude/product/index.md` and move content. Auto-detected.
|
|
206
100
|
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
3. Run `/agentful-decide` if decisions are pending
|
|
210
|
-
4. Run `/agentful-validate` to check for issues
|
|
101
|
+
**"Agent generated wrong type of code"**
|
|
102
|
+
→ Check that the right specialized agent was generated. Run `/agents` to list all agents.
|
|
211
103
|
|
|
212
|
-
|
|
104
|
+
**"Need to rollback or restart a feature"**
|
|
105
|
+
→ Edit completion % in `.agentful/completion.json` for specific feature, then run `/agentful-start`.
|
|
213
106
|
|
|
214
|
-
|
|
215
|
-
.your-project/
|
|
216
|
-
├── PRODUCT.md # Your product spec - flat structure (you edit this)
|
|
217
|
-
├── CLAUDE.md # This file
|
|
218
|
-
├── .claude/ # agentful configuration
|
|
219
|
-
│ ├── product/ # Product spec - hierarchical structure (alternative)
|
|
220
|
-
│ │ ├── index.md # Product overview
|
|
221
|
-
│ │ └── domains/ # Domain-specific specs
|
|
222
|
-
│ ├── agents/ # Specialized agents
|
|
223
|
-
│ ├── commands/ # Slash commands
|
|
224
|
-
│ ├── skills/ # Domain skills
|
|
225
|
-
│ └── settings.json # Hooks and permissions
|
|
226
|
-
├── .agentful/ # Runtime state (gitignored)
|
|
227
|
-
│ ├── state.json
|
|
228
|
-
│ ├── completion.json
|
|
229
|
-
│ ├── decisions.json
|
|
230
|
-
│ └── architecture.json
|
|
231
|
-
└── src/ # Your code (generated by agentful)
|
|
232
|
-
```
|
|
107
|
+
## Getting Help
|
|
233
108
|
|
|
234
|
-
**
|
|
109
|
+
**Documentation**: See `.claude/commands/` for detailed command documentation
|
|
110
|
+
**Product Planning**: Run `/agentful-product --help` for comprehensive product analysis
|
|
111
|
+
**Agent Reference**: Run `/agents` to see all specialized agents and their roles
|
|
112
|
+
**GitHub**: [github.com/itz4blitz/agentful](https://github.com/itz4blitz/agentful)
|
|
113
|
+
**Issues**: Report bugs or request features on GitHub Issues
|
|
114
|
+
**Version**: Check `package.json` for your agentful version
|
|
235
115
|
|
|
236
116
|
---
|
|
237
117
|
|
package/version.json
CHANGED