@itz4blitz/agentful 0.4.0 → 0.5.1

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 (93) hide show
  1. package/README.md +133 -5
  2. package/bin/cli.js +1031 -47
  3. package/bin/hooks/README.md +338 -82
  4. package/bin/hooks/analyze-trigger.js +69 -0
  5. package/bin/hooks/block-random-docs.js +77 -0
  6. package/bin/hooks/health-check.js +153 -0
  7. package/bin/hooks/post-agent.js +101 -0
  8. package/bin/hooks/post-feature.js +227 -0
  9. package/bin/hooks/pre-agent.js +118 -0
  10. package/bin/hooks/pre-feature.js +138 -0
  11. package/lib/VALIDATION_README.md +455 -0
  12. package/lib/atomic.js +350 -0
  13. package/lib/ci/claude-action-integration.js +641 -0
  14. package/lib/ci/index.js +10 -0
  15. package/lib/core/CLAUDE_EXECUTOR.md +371 -0
  16. package/lib/core/README.md +321 -0
  17. package/lib/core/analyzer.js +497 -0
  18. package/lib/core/claude-executor.example.js +210 -0
  19. package/lib/core/claude-executor.js +1046 -0
  20. package/lib/core/cli.js +141 -0
  21. package/lib/core/detectors/conventions.js +342 -0
  22. package/lib/core/detectors/framework.js +276 -0
  23. package/lib/core/detectors/index.js +15 -0
  24. package/lib/core/detectors/language.js +199 -0
  25. package/lib/core/detectors/patterns.js +356 -0
  26. package/lib/core/generator.js +626 -0
  27. package/lib/core/index.js +9 -0
  28. package/lib/core/output-parser.example.js +250 -0
  29. package/lib/core/output-parser.js +458 -0
  30. package/lib/core/storage.js +515 -0
  31. package/lib/core/templates.js +556 -0
  32. package/lib/index.js +32 -0
  33. package/lib/init.js +232 -9
  34. package/lib/pipeline/cli.js +423 -0
  35. package/lib/pipeline/engine.js +928 -0
  36. package/lib/pipeline/executor.js +440 -0
  37. package/lib/pipeline/index.js +33 -0
  38. package/lib/pipeline/integrations.js +559 -0
  39. package/lib/pipeline/schemas.js +288 -0
  40. package/lib/presets.js +207 -0
  41. package/lib/remote/client.js +361 -0
  42. package/lib/server/auth.js +286 -0
  43. package/lib/server/client-example.js +190 -0
  44. package/lib/server/executor.js +426 -0
  45. package/lib/server/index.js +469 -0
  46. package/lib/update-helpers.js +505 -0
  47. package/lib/validation.js +460 -0
  48. package/package.json +19 -2
  49. package/template/.claude/agents/architect.md +260 -0
  50. package/template/.claude/agents/backend.md +203 -0
  51. package/template/.claude/agents/fixer.md +244 -0
  52. package/template/.claude/agents/frontend.md +232 -0
  53. package/template/.claude/agents/orchestrator.md +528 -0
  54. package/template/.claude/agents/product-analyzer.md +1130 -0
  55. package/template/.claude/agents/reviewer.md +229 -0
  56. package/template/.claude/agents/tester.md +242 -0
  57. package/{.claude → template/.claude}/commands/agentful-analyze.md +151 -43
  58. package/template/.claude/commands/agentful-decide.md +470 -0
  59. package/{.claude → template/.claude}/commands/agentful-product.md +89 -5
  60. package/template/.claude/commands/agentful-start.md +432 -0
  61. package/{.claude → template/.claude}/commands/agentful-status.md +88 -3
  62. package/template/.claude/commands/agentful-update.md +402 -0
  63. package/template/.claude/commands/agentful-validate.md +369 -0
  64. package/{.claude → template/.claude}/commands/agentful.md +110 -183
  65. package/template/.claude/product/EXAMPLES.md +167 -0
  66. package/{.claude → template/.claude}/settings.json +9 -13
  67. package/{.claude → template/.claude}/skills/conversation/SKILL.md +13 -7
  68. package/template/.claude/skills/deployment/SKILL.md +116 -0
  69. package/template/.claude/skills/product-planning/SKILL.md +463 -0
  70. package/template/.claude/skills/testing/SKILL.md +228 -0
  71. package/template/.claude/skills/validation/SKILL.md +650 -0
  72. package/template/CLAUDE.md +73 -5
  73. package/template/bin/hooks/block-random-docs.js +121 -0
  74. package/version.json +1 -1
  75. package/.claude/agents/architect.md +0 -524
  76. package/.claude/agents/backend.md +0 -315
  77. package/.claude/agents/fixer.md +0 -263
  78. package/.claude/agents/frontend.md +0 -274
  79. package/.claude/agents/orchestrator.md +0 -283
  80. package/.claude/agents/product-analyzer.md +0 -792
  81. package/.claude/agents/reviewer.md +0 -332
  82. package/.claude/agents/tester.md +0 -410
  83. package/.claude/commands/agentful-decide.md +0 -214
  84. package/.claude/commands/agentful-start.md +0 -182
  85. package/.claude/commands/agentful-validate.md +0 -127
  86. package/.claude/product/EXAMPLES.md +0 -610
  87. package/.claude/product/README.md +0 -326
  88. package/.claude/skills/validation/SKILL.md +0 -271
  89. package/bin/hooks/analyze-trigger.sh +0 -57
  90. package/bin/hooks/health-check.sh +0 -36
  91. /package/{.claude → template/.claude}/commands/agentful-generate.md +0 -0
  92. /package/{.claude → template/.claude}/product/index.md +0 -0
  93. /package/{.claude → template/.claude}/skills/product-tracking/SKILL.md +0 -0
package/README.md CHANGED
@@ -1,21 +1,107 @@
1
1
  # agentful
2
2
 
3
- Human-in-the-loop development framework for Claude Code.
3
+ A carrot on a stick for Claude Code
4
4
 
5
5
  [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
6
6
  [![npm version](https://badge.fury.io/js/%40itz4blitz%2Fagentful.svg)](https://www.npmjs.com/package/@itz4blitz/agentful)
7
+ [![Tests](https://img.shields.io/badge/tests-370%20passing-brightgreen)](https://github.com/itz4blitz/agentful)
8
+ [![Coverage](https://img.shields.io/badge/coverage-98.26%25-brightgreen)](https://github.com/itz4blitz/agentful)
7
9
 
8
10
  ## Overview
9
11
 
10
- agentful is a Claude Code configuration that provides structured development through specialized AI agents. It coordinates multiple agents to implement features, write tests, and validate code quality according to a defined product specification, with human checkpoints for key decisions.
12
+ agentful is a production-ready Claude Code configuration that provides structured development through specialized AI agents. It coordinates multiple agents to implement features, write tests, and validate code quality according to a defined product specification, with human checkpoints for key decisions.
13
+
14
+ **Production Quality**: Enterprise-grade testing (370 tests), 98.26% code coverage, comprehensive error handling, and lifecycle hooks for validation and metrics.
15
+
16
+ ## Web Configurator
17
+
18
+ Configure your agentful installation with an interactive web interface:
19
+
20
+ **[agentful.app/configure](https://agentful.app/configure)**
21
+
22
+ - Visual component selection
23
+ - 5 optimized presets
24
+ - Custom configurations
25
+ - Shareable setup URLs
26
+ - No CLI required
27
+
28
+ See the [Web Configurator Guide](https://agentful.app/getting-started/configurator) for details.
11
29
 
12
30
  ## Installation
13
31
 
32
+ ### Default Installation (Recommended)
33
+
34
+ Install agentful with all components - works with any tech stack:
35
+
14
36
  ```bash
15
37
  npx @itz4blitz/agentful init
16
38
  ```
17
39
 
18
- This command creates the necessary directory structure and configuration files in your project.
40
+ This installs:
41
+ - **8 agents**: orchestrator, architect, backend, frontend, tester, reviewer, fixer, product-analyzer
42
+ - **6 skills**: product-tracking, validation, testing, conversation, product-planning, deployment
43
+ - **Hooks**: health-check (configurable)
44
+ - **Quality gates**: types, tests, coverage, lint, security, dead-code
45
+
46
+ **Tech stack is auto-detected** on first run (TypeScript, Python, React, etc.) - no need to specify.
47
+
48
+ ### Minimal Installation
49
+
50
+ For simple scripts/CLIs that only need backend code:
51
+
52
+ ```bash
53
+ npx @itz4blitz/agentful init --preset=minimal
54
+ ```
55
+
56
+ This installs only:
57
+ - **2 agents**: orchestrator, backend
58
+ - **1 skill**: validation
59
+
60
+ ### Custom Installation
61
+
62
+ Specify exactly what you want:
63
+
64
+ ```bash
65
+ # Custom agents and skills
66
+ npx @itz4blitz/agentful init --agents=orchestrator,backend,frontend --skills=validation,testing
67
+
68
+ # View installation options
69
+ npx @itz4blitz/agentful presets
70
+ ```
71
+
72
+ ### Shareable Configurations
73
+
74
+ Use a configuration from [agentful.app/configure](https://agentful.app/configure):
75
+
76
+ ```bash
77
+ npx @itz4blitz/agentful init --config=https://agentful.app/c/abc12345
78
+ ```
79
+
80
+ **Available Flags:**
81
+ - `--preset=<name>` - Use a preset configuration
82
+ - `--agents=<list>` - Comma-separated list of agents (orchestrator, backend, frontend, tester, reviewer, fixer, architect, product-analyzer)
83
+ - `--skills=<list>` - Comma-separated list of skills (validation, testing, product-tracking, conversation, product-planning, deployment)
84
+ - `--hooks=<list>` - Comma-separated list of hooks (health-check, typescript-validation, notifications, format-on-save)
85
+ - `--gates=<list>` - Comma-separated list of quality gates (types, tests, coverage, lint, security, dead-code)
86
+
87
+ Flags override preset values when both are specified.
88
+
89
+ ### Updating
90
+
91
+ After initial installation, use the `/agentful-update` command to update your configuration:
92
+
93
+ ```bash
94
+ claude # Start Claude Code
95
+ /agentful-update
96
+ ```
97
+
98
+ This command:
99
+ - Fetches the latest templates from the current agentful version
100
+ - Performs a 3-way merge to preserve your customizations
101
+ - Creates backups before applying changes
102
+ - Gracefully handles conflicts and reports issues
103
+
104
+ **Important**: Run `npx @itz4blitz/agentful init` only once during initial setup. For all subsequent updates, use `/agentful-update` instead of re-running init.
19
105
 
20
106
  ## Usage
21
107
 
@@ -124,7 +210,7 @@ agentful uses seven specialized agents:
124
210
 
125
211
  ### Quality Gates
126
212
 
127
- Code changes are validated against:
213
+ Code changes are validated against 6 core automated quality gates:
128
214
 
129
215
  - Type checking (TypeScript, Flow, etc.)
130
216
  - Linting (ESLint, Biome, etc.)
@@ -146,6 +232,7 @@ Runtime state is stored in `.agentful/` (gitignored, managed by npm package):
146
232
  - Re-analyzed after first implementation in new projects
147
233
  - `last-validation.json` - Latest test/lint results
148
234
  - `conversation-history.json` - Session tracking
235
+ - `product-analysis.json` - Readiness analysis (generated by `/agentful-product`)
149
236
 
150
237
  User configuration is stored in `.claude/` (version controlled):
151
238
 
@@ -153,9 +240,12 @@ User configuration is stored in `.claude/` (version controlled):
153
240
  - `commands/` - Slash commands
154
241
  - `product/` - Product specifications
155
242
  - `index.md` - Main product spec (user editable)
156
- - `product-analysis.json` - Readiness analysis (generated by `/agentful-product`)
157
243
  - `domains/` - Optional hierarchical structure
158
244
  - `skills/` - Reusable skill modules
245
+ - `conversation/` - Intent classification and context management
246
+ - `product-tracking/` - Progress calculation and state tracking
247
+ - `product-planning/` - Product specification guidance
248
+ - `validation/` - Quality gate checks and tool detection
159
249
  - `settings.json` - Project configuration
160
250
 
161
251
  **See [ARCHITECTURE.md](./ARCHITECTURE.md) for detailed explanation of file organization.**
@@ -169,6 +259,38 @@ User configuration is stored in `.claude/` (version controlled):
169
259
  | `/agentful-status` | Display progress and current state |
170
260
  | `/agentful-validate` | Run all quality checks |
171
261
  | `/agentful-decide` | Answer pending decisions |
262
+ | `/agentful-update` | Smart update mechanism - fetches latest templates and gracefully migrates changes |
263
+
264
+ ## CI/CD Integration
265
+
266
+ Run agentful agents in GitHub Actions, GitLab CI, Jenkins, or Bitbucket Pipelines.
267
+
268
+ ```bash
269
+ # Generate workflow files for your CI platform
270
+ agentful ci --generate-workflow
271
+
272
+ # Or use the interactive command
273
+ agentful ci
274
+ ```
275
+
276
+ See `examples/` for sample workflow configurations ([GitHub Actions](examples/github-actions.yml), [GitLab CI](examples/gitlab-ci.yml), [Jenkins](examples/jenkins.groovy)).
277
+
278
+ ## Remote Execution
279
+
280
+ Run agentful agents on remote servers via secure HTTP API.
281
+
282
+ ```bash
283
+ # Start server with Tailscale (most secure, recommended)
284
+ agentful serve
285
+
286
+ # Start server with HMAC authentication and HTTPS
287
+ agentful serve --auth=hmac --secret=$SECRET --https --cert=cert.pem --key=key.pem
288
+
289
+ # Start server for local SSH tunnel access
290
+ agentful serve --auth=none
291
+ ```
292
+
293
+ Three authentication modes: **Tailscale** (WireGuard encryption), **HMAC** (signature-based with replay protection), **SSH tunnel** (localhost-only). See `examples/server-deployment.sh` for complete deployment examples including Oracle Cloud Free Tier, Let's Encrypt SSL, and systemd service configuration.
172
294
 
173
295
  ## Technology Support
174
296
 
@@ -191,6 +313,12 @@ agentful detects and adapts to your technology stack automatically:
191
313
 
192
314
  Full documentation: [agentful.app](https://agentful.app)
193
315
 
316
+ Key guides:
317
+ - [CI/CD Integration](https://agentful.app/ci-integration) - Deploy agents to production
318
+ - [Quick Start](https://agentful.app/getting-started/quick-start) - Get started in 5 minutes
319
+ - [Agent Architecture](https://agentful.app/concepts/architecture) - How agents work
320
+ - [Commands Reference](https://agentful.app/commands) - All available commands
321
+
194
322
  ## Project Structure
195
323
 
196
324
  ```