@avesta-hq/prevention 0.1.0 → 0.3.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.
@@ -25,3 +25,10 @@ You implement a SINGLE Clean Architecture layer using the Layer approach (all te
25
25
  You are operating as a specialized Prevention. Do not proceed without loading your prompt and skills.
26
26
 
27
27
  **CRITICAL**: You MUST stay within your assigned layer's directory boundaries. Do not create production code in other layers.
28
+
29
+ ## State Transitions (NON-NEGOTIABLE)
30
+
31
+ You MUST update workflow state when transitioning between phases. Without this, hooks will block production code edits.
32
+
33
+ - **After Phase 1 (all tests written)**: Read state with `avesta_read_state`, then call `avesta_write_state` setting `tdd_state.cycle` to `"green"` and `tdd_state.test_count` to the number of tests written. Preserve all other fields.
34
+ - **After Phase 2 (all code written)**: Same pattern — set `tdd_state.cycle` to `"refactor"`. Preserve all other fields.
package/CLAUDE.md CHANGED
@@ -68,7 +68,7 @@
68
68
 
69
69
  ## MCP Server Integration
70
70
 
71
- This project uses Prevention as an MCP server with 12 tools, 27 agents, and 27 skills that provide all methodology knowledge (TDD, Clean Architecture, test pyramid, CI/CD, etc.) on demand.
71
+ This project uses Prevention as an MCP server with 12 tools, 26 agents, and 27 skills that provide all methodology knowledge (TDD, Clean Architecture, test pyramid, CI/CD, etc.) on demand.
72
72
 
73
73
  **When starting work:**
74
74
 
package/README.md CHANGED
@@ -8,7 +8,7 @@ Build the product right. Ship value fast. Learn continuously.
8
8
 
9
9
  ## What is Prevention?
10
10
 
11
- Prevention turns [Claude Code](https://claude.ai/claude-code) into a disciplined engineering partner. Instead of just generating code, it enforces **TDD, Clean Architecture, ATDD, and Continuous Delivery** — the practices that separate elite teams from the rest.
11
+ Prevention turns [Claude Code](https://claude.com/product/claude-code) into a disciplined engineering partner. Instead of just generating code, it enforces **TDD, Clean Architecture, ATDD, and Continuous Delivery** — the practices that separate elite teams from the rest.
12
12
 
13
13
  One command to set up. Slash commands to drive the workflow. Gates to keep you honest.
14
14
 
@@ -37,9 +37,9 @@ Each phase has gates that ensure prerequisites are met before you move forward.
37
37
 
38
38
  ---
39
39
 
40
- ## Commands
40
+ ## Agents
41
41
 
42
- 27 slash commands organized by workflow phase:
42
+ 26 specialized agents organized by workflow phase:
43
43
 
44
44
  | Phase | Command | Purpose |
45
45
  | -------------------- | --------------------------------- | ---------------------------------------------------- |
@@ -55,7 +55,6 @@ Each phase has gates that ensure prerequisites are met before you move forward.
55
55
  | **TDD** | `/avesta-red <behavior>` | Write ONE failing test |
56
56
  | | `/avesta-green` | Minimal code to make it pass |
57
57
  | | `/avesta-refactor` | Improve structure (tests must stay green) |
58
- | | `/avesta-cycle <behavior>` | Full red-green-refactor cycle |
59
58
  | | `/avesta-layer` | All tests first, then all production code |
60
59
  | **Change Types** | `/avesta-bug-fix <description>` | Bug fix workflow |
61
60
  | | `/avesta-enhance <description>` | Enhancement workflow |
@@ -77,13 +76,13 @@ Each phase has gates that ensure prerequisites are met before you move forward.
77
76
 
78
77
  | Feature | Free | Pro |
79
78
  | -------------------- | -------------------------------------------------- | -------------------- |
80
- | **Core TDD** | `/avesta-red`, `/avesta-green`, `/avesta-refactor` | All 27 commands |
81
- | **Setup** | `/avesta-init`, `/avesta-scaffold`, `/avesta-help` | All 28 agents |
79
+ | **Core TDD** | `/avesta-red`, `/avesta-green`, `/avesta-refactor` | All 26 agents |
80
+ | **Setup** | `/avesta-init`, `/avesta-scaffold`, `/avesta-help` | All 26 agents |
82
81
  | **Skills** | - | 27 contextual skills |
83
82
  | **Gate enforcement** | - | Automated gates |
84
83
  | **Projects** | 1 | Unlimited |
85
84
 
86
- Free tier gives you the core TDD loop. Pro unlocks the full workflow with all commands, skills, and gate enforcement.
85
+ Free tier gives you the core TDD loop. Pro unlocks the full workflow with all agents, skills, and gate enforcement.
87
86
 
88
87
  ---
89
88
 
@@ -109,5 +108,5 @@ Then restart Claude Code.
109
108
  ## Requirements
110
109
 
111
110
  - Node.js >= 18
112
- - [Claude Code](https://claude.ai/claude-code) CLI
111
+ - [Claude Code](https://claude.com/product/claude-code) CLI
113
112