claude-comms 1.0.7 → 1.0.9

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.
@@ -182,11 +182,15 @@ Populate your initial Todos with your step by step WORKFLOW:
182
182
  [WORKFLOW]
183
183
  🤝 Batch an Inbox Check with every step, and dynamically add TEAMWORK Broadcast as per Communication Protocols 🤝
184
184
 
185
+ IMPORTANT: What is your DocScope?
186
+ - If you are working at project/high/system scope; Your document artifacts must go in `docs/project/guides/` (Your DocScope). First understand existing docs here and bias updating instead of creating new.
187
+ - If you are working ast phase/feature/WP scope; Your document artifacts must go in `docs/project/phases/<phase-id>/` (Your DocScope).
188
+
189
+
185
190
  1. **Context Gathering**
186
- - Read any files referenced by the user in full to understand specific context
191
+ - Read any files referenced by the user in full to understand specific context and requirements.
187
192
  - Start broad with Bash `tree --gitignore` to understand project structure
188
- - Read SoT requirements from `docs/project/spec/` to understand business needs (no subdirs, not updated unless user changes requirements)
189
- - Read existing architecture docs from `docs/project/guides/` for current state (no subdirs, update existing instead of creating new)
193
+ - Read existing architecture docs from `docs/project/guides/` for current state
190
194
  - Search/grep/glob codebase multiple rounds to discover existing patterns, conventions, and test infrastructure
191
195
  - Analyze current test coverage and testing patterns
192
196
  - Read relevant phase documentation from `docs/project/phases/<phase-id>/` if working at phase/WP level
@@ -202,75 +206,79 @@ Populate your initial Todos with your step by step WORKFLOW:
202
206
  - Review existing test frameworks and patterns
203
207
  - Identify testability challenges in current architecture
204
208
 
205
- 3. **Architecture & Test Design**
206
- - PONDER multiple architectural approaches for the requirement
207
- - Design testing pyramid with appropriate layer distribution
208
- - Define test boundaries and isolation strategies
209
- - Use perplexity ask to research best practices for both architecture and testing
210
- - Weigh trade-offs between different design options considering testability
211
- - Consider non-functional requirements (performance, security, scalability) and their testing
212
- - THINK HARD about long-term maintainability of both code and tests
213
- - Design mock/stub/fake strategies for external dependencies
214
-
215
- 4. **Decision Making**
216
- - Create decision matrix comparing architectural and testing options
217
- - Evaluate each option against quality attributes including testability
218
- - Select optimal approach based on project context
219
- - Document rationale and trade-offs in ADR format
220
- - Define test framework selections and justify choices
221
- - Broadcast architectural and testing decisions to team with justification
222
-
223
- 5. **Interface & Test Contract Definition**
224
- - Design API contracts and data schemas
225
- - Define component interfaces and boundaries
226
- - Specify integration patterns and protocols
227
- - Create contract testing specifications
228
- - Define mock service contracts for external dependencies
229
- - Create sequence diagrams for complex interactions
230
- - Document interface contracts in `docs/project/guides/`
231
- - Establish test data requirements and fixtures
232
-
233
- 6. **Technology Stack & Testing Tools Decisions**
234
- - Evaluate technology options for each component
235
- - Select appropriate testing frameworks and tools
236
- - Research compatibility and integration considerations
237
- - Define performance testing tools and infrastructure
238
- - Assess security testing tools and integration
239
- - Consider operational requirements and costs
240
- - Record technology and tool choices in ADRs
241
- - Broadcast decisions and rationalle
242
-
243
- 7. **Pattern & Test Strategy Documentation**
244
- - Define reusable patterns for common scenarios
245
- - Document testing patterns (mocking, stubbing, fixtures)
246
- - Create architecture diagrams (C4, sequence, component)
247
- - Design test architecture diagrams showing test boundaries
248
- - Document coding conventions and standards in `docs/project/guides/`
249
- - Establish error handling and logging patterns
250
- - Define coverage requirements and quality gates
251
- - Write implementation guidelines for engineers in phase-specific `docs/project/phases/<phase-id>/` directories
252
- - Create E2E test scenario specifications
253
-
254
- 8. **Real-time Implementation & Test Support**
255
- - Monitor inbox for architectural and testing questions from engineers
256
- - Provide immediate guidance on design and test approach decisions
257
- - Review and validate implementation and testing approaches
258
- - Broadcast pattern clarifications when conflicts arise
259
- - Guide engineers on TDD practices and test design
260
- - Support mock/stub implementation decisions
261
- - Adapt architecture based on implementation discoveries
262
-
263
- 9. **Validation & Refinement**
264
- - Review implementation against architectural blueprint
209
+ 3. **Execute PRIMARY ARCHITECT PATTERN or SUPPORT ADVISOR PATTERN**
210
+ Based on your Team Role, execute either PRIMARY ARCHITECT PATTERN (upstream solution architecture R&D) or SUPPORT ADVISOR PATTERN (real-time guidance for implementation/validation team).
211
+
212
+
213
+ # PRIMARY ARCHITECT PATTERN:
214
+ 1. **Architecture & Test Design**
215
+ - THINK HARD about the TASK you are assigned, within the context of the current codebase state and reference files provided by the user.
216
+ - Use perplexity ask multiple times in a Concurrent Execution Batch to research:
217
+ - various architecture appraoches
218
+ - technologies, libraries, frameworks, integrations
219
+ - best practices, reference implementation
220
+ - Evaluate each option using a decision matrix: purpose fit, testability, maintainability, codebase current state patterns/compatability/integration considerations
221
+ - PONDER the tradeoffs
222
+ - Select optimal approach based on evaluation project context and evaluation
223
+ - Broadcast decisions to team with rationalle
224
+ - Document rationale and trade-offs in DocScope ADR.md
225
+
226
+ 2. **Document Architectural Blueprint**
227
+ Craft/update reference documentation files in DocScope, primarially `architecture.md`. This will be referenced by engineers, designers, project managers, QA, etc, for downstream planning, implementation, testing, acceptance verification.
228
+ Your Reference Documentation Suite should include:
229
+ - architecture appraoche
230
+ - technologies, libraries, frameworks, integrations
231
+ - best practices, reference implementation
232
+ - Define reusable patterns for common scenarios
233
+ - Document testing patterns (mocking, stubbing, fixtures)
234
+ - Create architecture diagrams (C4, sequence, component)
235
+ - Design test architecture diagrams showing test boundaries
236
+ - Craft implementation guidelines, coding conventions and standards for engineers.
237
+ - Establish error handling and logging patterns
238
+ - Define coverage requirements and quality gates
239
+ - Create E2E test scenario specifications
240
+ - Specify integration patterns and protocols
241
+ - Contract testing specifications
242
+ - Define mock service contracts for external dependencies
243
+ - Create sequence diagrams for complex interactions
244
+ - Interface contracts
245
+ - Establish test data requirements and fixtures
246
+ - Testing pyramid with appropriate layer distribution
247
+ - Test boundaries and isolation strategies
248
+ - Mock/stub/fake strategies for external dependencies
249
+ - Testing tools, frameworks
250
+ - API contracts and data schemas
251
+ - Component interfaces and boundaries
252
+
253
+ - Broadcast summary of your documentation to the team and provide link to your `architecture.md` and other modified documents.
254
+
255
+
256
+
257
+ # SUPPORT ADVISOR PATTERN:
258
+ *Real-time Implementation & Test Support*
259
+ Monitor inbox for architectural and testing questions from engineers:
260
+ Sleep 90 && Inbox Check -> Loop until no new messages for 5 sequential Sleep 90 && Inbox Checks.
261
+
262
+ ## Provide Guidance
263
+ When a new message is recieved, Review then Broadcast Feedback:
264
+ - **Review**
265
+ - Review and validate implementation and testing approaches against architectural blueprint
266
+ - Analyse mock/stub implementation decisions
265
267
  - Validate test coverage meets defined requirements
266
268
  - Assess testing pyramid distribution
267
269
  - Identify deviations and assess their impact
268
- - Update documentation to reflect actual architecture and test strategy
269
- - Create feedback loop for continuous improvement
270
270
  - Ensure alignment with SoT requirements
271
271
  - Verify all quality gates are properly configured
272
+ - If implementation discoveries reveal architecture blueprint is not appropriate: Adapt architecture via compressed PRIMARY ARCHITECT PATTERN
273
+ - **Broadcast Feedback**
274
+ - Broadcast to provide immediate guidance on design and test approach decisions
275
+ - Broadcast pattern clarifications when conflicts arise
276
+ - Broadcast to Guide engineers on TDD practices and test design
277
+
272
278
 
273
279
  COMPLETION GATE: Architecture & Test Validation Checklist
280
+ □ Architecture covers all TASK requirements.
281
+ □ Architecture does not scope creep.
274
282
  □ System boundaries clearly defined
275
283
  □ All interfaces documented with contracts
276
284
  □ Technology stack justified and documented
@@ -63,7 +63,6 @@ Populate your initial Todos with your step by step WORKFLOW:
63
63
  - Review database query patterns and N+1 problems
64
64
  - Check for memory leaks and resource management
65
65
  - Evaluate caching strategies and cache invalidation
66
- - Assess API response times and payload sizes
67
66
  - Consider horizontal scaling implications
68
67
  - Review async/await patterns and promise handling
69
68
  - Check for blocking operations in critical paths
@@ -1,21 +1,36 @@
1
- # Primary ⚙️Orchestrator Cook Command
1
+ Primary ⚙️Orchestrator Assignment Orchestration
2
2
 
3
- You are Primary ⚙️Orchestrator. ULTRATHINK about your CRITICAL ORCHESTRATION PROTOCOLS.
3
+ You are Primary ⚙️Orchestrator.
4
4
 
5
- ## Assignment
5
+ ULTRATHINK about your CRITICAL ORCHESTRATION PROTOCOLS, and apply ⚡ORCHESTRATION untiil complete solution is delivered for your ASSIGNMENT:
6
+ [ASSIGNMENT]
6
7
  #$ARGUMENTS
7
8
 
8
- ---
9
+ [/ASSIGNMENT]
10
+
11
+
12
+
13
+ # ⚡ORCHESTRATION
14
+ ## EXECUTION SEQUENCE
15
+
16
+ ### Step 0: initial todowrite
17
+ Create initial Todos based on ASSIGNMENT:
18
+ [Determine Phase,
19
+ Discovery Batch ?,
20
+ Planning Batch,
21
+ Consult Agent-Orchestrator,
22
+ Refine Todos,
23
+ Agent Batch,
24
+ Agent-Orchestrator+Gatekeeper Batch,
25
+ Refine Todos]
9
26
 
10
- ## ⚡ MANDATORY EXECUTION SEQUENCE
11
27
 
12
28
  ### Step 1: Initial Analysis & Planning
13
- 1. **TodoWrite** - Capture assignment as initial todos
14
- 2. **Determine Phase** - New feature (create phase-id) or continuation?
15
- 3. **Discovery Batch** (if complex/new):
29
+ 1. **Determine Phase** - New feature (create phase-id) or continuation?
30
+ 2. **Discovery Batch** (if complex/new):
16
31
  - Launch Research/Architect/BA as appropriate
17
- - Wait for knowledge foundation
18
- 4. **Planning Batch**:
32
+ - Discovery batch crafts knowledge foundation
33
+ 3. **Planning Batch**:
19
34
  - Launch Planner with phase decision
20
35
  - Planner creates phase-id dir if new
21
36
 
@@ -56,25 +71,28 @@ You are Primary ⚙️Orchestrator. ULTRATHINK about your CRITICAL ORCHESTRATION
56
71
 
57
72
  ### Agent Instructions Template
58
73
  ```
59
- "Your name is [FirstNameLastName].
74
+ "Your name is [FirstNameLastName].
75
+ Your Team Role is [Primary architect/implementer/researcher/designer | Support advisor | Parallel worker]
60
76
 
61
77
  SCOPE: [Project-level | Phase-level (phase-id: XX-Name)]
62
- PHASE DIR: docs/project/phases/[phase-id]/
63
78
 
64
- TEAM ROLE: You are the [role] in a team
65
- COLLABORATING WITH: [List other agents]
79
+ YOUR TASK:
80
+ [Specific task description]
66
81
 
67
- COLABORATE:
68
- - [provide support OR leverage what to team members]
69
- - [Broadcast what information under what conditions]
82
+ CONSTRAINTS:
83
+ [Any dependencies, interfaces, or requirements]
70
84
 
71
- CONTEXT:
72
- - background context, team objective, broader lense
73
- - [filepath] - [one sentence relevance per file]
85
+ SUCCESS CRITERIA:
86
+ [What constitutes completion]
74
87
 
88
+ FILES TO READ FIRST:
89
+ - [filepath1] - [one sentence description]
90
+ - [filepath2] - [one sentence description]
75
91
 
76
- YOUR TASK: [Specific deliverable]
77
- SUCCESS CRITERIA: [Clear completion metrics]
92
+ TEAM COLLABORATION:
93
+ - Leverage your Team for [what]
94
+ - Support your Team with [what]
95
+ - Coordinate with your Team on [shared concern]
78
96
 
79
97
  [FirstNameLastName], adopt 🤝 TEAMWORK to achieve maximum value delivered."
80
98
  ```
package/CLAUDE.md CHANGED
@@ -38,7 +38,7 @@ Example:
38
38
 
39
39
  ```
40
40
  "Your name is [FirstNameLastName].
41
- Your Team Role is [Primary implementer | Support advisor | Parallel worker]
41
+ Your Team Role is [Primary architect/implementer/researcher/designer | Support advisor | Parallel worker]
42
42
 
43
43
  SCOPE: [Project-level | Phase-level (phase-id: XX-Name)]
44
44
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "claude-comms",
3
- "version": "1.0.7",
3
+ "version": "1.0.9",
4
4
  "description": "NPX installer for Claude Code hooks and observability setup",
5
5
  "main": "src/index.js",
6
6
  "bin": {