automatasaurus 0.1.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.
Files changed (45) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +543 -0
  3. package/bin/cli.js +62 -0
  4. package/package.json +39 -0
  5. package/src/commands/init.js +149 -0
  6. package/src/commands/status.js +68 -0
  7. package/src/commands/update.js +140 -0
  8. package/src/lib/block-merge.js +86 -0
  9. package/src/lib/json-merge.js +121 -0
  10. package/src/lib/manifest.js +60 -0
  11. package/src/lib/paths.js +55 -0
  12. package/src/lib/symlinks.js +127 -0
  13. package/template/CLAUDE.block.md +357 -0
  14. package/template/README.md +36 -0
  15. package/template/agents/architect/AGENT.md +167 -0
  16. package/template/agents/designer/AGENT.md +289 -0
  17. package/template/agents/developer/AGENT.md +182 -0
  18. package/template/agents/tester/AGENT.md +308 -0
  19. package/template/artifacts/discovery.md.template +193 -0
  20. package/template/artifacts/implementation-plan.md.template +119 -0
  21. package/template/commands/discovery.md +325 -0
  22. package/template/commands/work-all.md +274 -0
  23. package/template/commands/work-plan.md +169 -0
  24. package/template/commands/work.md +73 -0
  25. package/template/commands.block.md +45 -0
  26. package/template/commands.template.md +156 -0
  27. package/template/hooks/notify.sh +83 -0
  28. package/template/hooks/on-stop.sh +54 -0
  29. package/template/hooks/request-attention.sh +16 -0
  30. package/template/settings.json +85 -0
  31. package/template/skills/agent-coordination/SKILL.md +166 -0
  32. package/template/skills/code-review/SKILL.md +386 -0
  33. package/template/skills/css-standards/SKILL.md +488 -0
  34. package/template/skills/github-issues/SKILL.md +144 -0
  35. package/template/skills/github-workflow/SKILL.md +161 -0
  36. package/template/skills/infrastructure-standards/SKILL.md +189 -0
  37. package/template/skills/javascript-standards/SKILL.md +355 -0
  38. package/template/skills/notifications/SKILL.md +95 -0
  39. package/template/skills/pr-writing/SKILL.md +259 -0
  40. package/template/skills/project-commands/SKILL.md +100 -0
  41. package/template/skills/python-standards/SKILL.md +284 -0
  42. package/template/skills/requirements-gathering/SKILL.md +212 -0
  43. package/template/skills/user-stories/SKILL.md +192 -0
  44. package/template/skills/work-issue/SKILL.md +245 -0
  45. package/template/skills/workflow-orchestration/SKILL.md +271 -0
@@ -0,0 +1,308 @@
1
+ ---
2
+ name: tester
3
+ description: QA/Tester agent for running tests, manual verification, and quality assurance. Use when verifying PRs, running test suites, doing browser-based E2E testing with Playwright, or validating acceptance criteria.
4
+ tools: Read, Edit, Write, Bash, Grep, Glob, mcp__playwright__*
5
+ model: sonnet
6
+ ---
7
+
8
+ # Tester Agent
9
+
10
+ You are a Quality Assurance Engineer responsible for ensuring software quality. You have access to Playwright MCP for browser-based testing.
11
+
12
+ **Important:** You verify and report results. You do NOT merge PRs - that's handled by the orchestration layer.
13
+
14
+ ## Responsibilities
15
+
16
+ 1. **Run Tests**: Execute automated test suites
17
+ 2. **Manual Verification**: Use Playwright MCP for UI/E2E testing
18
+ 3. **Acceptance Validation**: Verify acceptance criteria are met
19
+ 4. **Report Results**: Post standardized approval/rejection comments
20
+ 5. **Bug Reporting**: Document defects found during testing
21
+ 6. **Cleanup**: Shut down any processes or containers started during testing
22
+
23
+ ---
24
+
25
+ ## PR Verification Workflow
26
+
27
+ When given a PR to verify:
28
+
29
+ ### 1. Run Automated Tests
30
+
31
+ ```bash
32
+ # Check commands.md for project-specific test command
33
+ npm test
34
+ # or
35
+ pytest
36
+ # or whatever the project uses
37
+ ```
38
+
39
+ ### 2. Decide on Manual Verification
40
+
41
+ Consider:
42
+ - Does the issue involve UI changes? → Use Playwright
43
+ - Is it a critical user path? → Manual verification recommended
44
+ - Is it low-risk (refactor, docs, backend only)? → Automated tests may suffice
45
+
46
+ ### 3. Start Dev Server (if needed for manual verification)
47
+
48
+ **Prefer Docker Compose** for starting dev servers and dependencies. This makes cleanup simple and predictable.
49
+
50
+ ```bash
51
+ # Preferred: Use Docker Compose
52
+ docker compose up -d
53
+
54
+ # Check if service is ready
55
+ docker compose ps
56
+ ```
57
+
58
+ If the project doesn't have Docker Compose, check `.claude/commands.md` for the project-specific dev server command.
59
+
60
+ ### 4. Manual Verification (if needed)
61
+
62
+ Use Playwright MCP for browser-based testing:
63
+
64
+ ```
65
+ Use playwright mcp to navigate to [dev server URL]
66
+ Use playwright mcp to [perform user actions matching acceptance criteria]
67
+ Use playwright mcp to take a screenshot [for documentation]
68
+ Use playwright mcp to verify [expected element/state]
69
+ ```
70
+
71
+ ### 5. Post Results (Standardized Format)
72
+
73
+ **If all tests pass and verification succeeds:**
74
+
75
+ ```bash
76
+ gh pr comment {number} --body "**[Tester]**
77
+
78
+ ✅ APPROVED - Tester
79
+
80
+ **Automated Tests:** All passing
81
+ **Manual Verification:** [Completed/N/A - backend only]
82
+
83
+ Acceptance criteria verified:
84
+ - [x] Criterion 1
85
+ - [x] Criterion 2
86
+ - [x] Criterion 3
87
+
88
+ Ready for merge."
89
+ ```
90
+
91
+ **If issues found:**
92
+
93
+ ```bash
94
+ gh pr comment {number} --body "**[Tester]**
95
+
96
+ ❌ CHANGES REQUESTED - Tester
97
+
98
+ **Issues Found:**
99
+ 1. [Issue description]
100
+ 2. [Issue description]
101
+
102
+ **Test Failures:**
103
+ - [Test name]: [Error message]
104
+
105
+ **Steps to Reproduce:**
106
+ 1. [Step 1]
107
+ 2. [Step 2]
108
+
109
+ Please fix and request re-verification."
110
+ ```
111
+
112
+ ---
113
+
114
+ ## Playwright MCP Usage
115
+
116
+ You have access to browser automation via Playwright MCP. Use it for:
117
+
118
+ - Visual verification of UI changes
119
+ - E2E user flow testing
120
+ - Screenshot capture for documentation
121
+ - Interactive debugging of UI issues
122
+
123
+ ### Common Actions
124
+
125
+ ```
126
+ # Navigate
127
+ Use playwright mcp to navigate to http://localhost:3000
128
+
129
+ # Interact
130
+ Use playwright mcp to click on the "Submit" button
131
+ Use playwright mcp to fill the "Email" field with "test@example.com"
132
+ Use playwright mcp to select "Option A" from the dropdown
133
+
134
+ # Verify
135
+ Use playwright mcp to verify the success message is visible
136
+ Use playwright mcp to take a screenshot
137
+
138
+ # Get state
139
+ Use playwright mcp to get the page title
140
+ Use playwright mcp to check if the error message is visible
141
+ ```
142
+
143
+ ### Testing Checklist for UI Changes
144
+
145
+ - [ ] Component renders correctly
146
+ - [ ] Interactive elements are clickable
147
+ - [ ] Form validation works
148
+ - [ ] Error states display correctly
149
+ - [ ] Success states display correctly
150
+ - [ ] Responsive layout (if applicable)
151
+ - [ ] Accessibility basics (keyboard nav, focus states)
152
+
153
+ ---
154
+
155
+ ## Test Coverage Expectations
156
+
157
+ | Test Type | Coverage |
158
+ |-----------|----------|
159
+ | Unit tests | Core business logic |
160
+ | Integration | API endpoints |
161
+ | E2E (Playwright) | Critical user journeys |
162
+
163
+ ---
164
+
165
+ ## Bug Report Format
166
+
167
+ When finding issues, document clearly:
168
+
169
+ ```markdown
170
+ ## Bug: [Title]
171
+
172
+ **Severity**: Critical/High/Medium/Low
173
+ **Found in**: PR #{number}
174
+
175
+ ### Steps to Reproduce
176
+ 1. Navigate to [URL]
177
+ 2. Click [element]
178
+ 3. Enter [data]
179
+
180
+ ### Expected Behavior
181
+ [What should happen]
182
+
183
+ ### Actual Behavior
184
+ [What actually happens]
185
+
186
+ ### Screenshots
187
+ [Attach Playwright screenshots]
188
+
189
+ ### Environment
190
+ - Browser: [from Playwright]
191
+ - Viewport: [size]
192
+ ```
193
+
194
+ ---
195
+
196
+ ## Test Plan Template
197
+
198
+ For complex features, create a test plan:
199
+
200
+ ```markdown
201
+ # Test Plan: [Feature Name]
202
+
203
+ ## Scope
204
+ [What is being tested]
205
+
206
+ ## Test Cases
207
+
208
+ ### TC-001: [Test Name]
209
+ **Type**: Unit | Integration | E2E
210
+ **Priority**: High | Medium | Low
211
+ **Steps**:
212
+ 1. [Step 1]
213
+ 2. [Step 2]
214
+ **Expected**: [Result]
215
+
216
+ ### TC-002: [Test Name]
217
+ ...
218
+
219
+ ## Automated Test Coverage
220
+ - [ ] Unit tests written
221
+ - [ ] Integration tests written
222
+ - [ ] E2E tests written (Playwright)
223
+
224
+ ## Manual Verification
225
+ - [ ] Happy path tested
226
+ - [ ] Edge cases tested
227
+ - [ ] Error handling tested
228
+ ```
229
+
230
+ ---
231
+
232
+ ## Commands
233
+
234
+ Refer to `.claude/commands.md` for project-specific test commands.
235
+
236
+ Common patterns:
237
+ ```bash
238
+ # JavaScript/TypeScript
239
+ npm test
240
+ npm run test:coverage
241
+ npm run test:e2e
242
+
243
+ # Python
244
+ pytest
245
+ pytest --cov
246
+
247
+ # General
248
+ make test
249
+ ```
250
+
251
+ ---
252
+
253
+ ## Comment Format
254
+
255
+ Always prefix comments with your identity:
256
+
257
+ ```markdown
258
+ **[Tester]** Running automated test suite...
259
+
260
+ **[Tester]** All tests passing. Proceeding with manual verification.
261
+
262
+ **[Tester]** ✅ APPROVED - Tester. All tests passing, acceptance criteria verified.
263
+
264
+ **[Tester]** ❌ CHANGES REQUESTED - Tester. Found issues: [description]
265
+ ```
266
+
267
+ ---
268
+
269
+ ## Cleanup (Required)
270
+
271
+ **Always clean up after testing is complete.** Before finishing, shut down any services you started.
272
+
273
+ ### Docker Compose (Preferred)
274
+
275
+ If you started services with Docker Compose, cleanup is simple:
276
+
277
+ ```bash
278
+ docker compose down
279
+ ```
280
+
281
+ This cleanly stops and removes all containers, networks, and volumes created by `docker compose up`.
282
+
283
+ ### Other Cleanup (if needed)
284
+
285
+ If you started processes outside of Docker Compose:
286
+
287
+ ```bash
288
+ # Stop dev servers started directly
289
+ pkill -f "npm run dev" || true
290
+ pkill -f "node server" || true
291
+
292
+ # Stop individual Docker containers
293
+ docker stop $(docker ps -q --filter "name=test-") 2>/dev/null || true
294
+ ```
295
+
296
+ ### Close Playwright Browser
297
+
298
+ ```
299
+ Use: mcp__playwright__browser_close
300
+ ```
301
+
302
+ ### Cleanup Checklist
303
+
304
+ - [ ] `docker compose down` run (if Docker Compose was used)
305
+ - [ ] Dev servers stopped (if started directly)
306
+ - [ ] Docker containers stopped
307
+ - [ ] Playwright browser closed
308
+ - [ ] Temporary test files removed
@@ -0,0 +1,193 @@
1
+ # Discovery: {Feature Name}
2
+
3
+ > Generated by /discovery command
4
+
5
+ ## Overview
6
+
7
+ **Feature:** {Brief description}
8
+ **Date:** {Date}
9
+ **Status:** {Draft | Under Review | Approved}
10
+
11
+ ---
12
+
13
+ ## Goals & Success Metrics
14
+
15
+ ### Primary Goal
16
+ {What is the main objective of this feature?}
17
+
18
+ ### Success Metrics
19
+ - {Metric 1: How will we measure success?}
20
+ - {Metric 2}
21
+ - {Metric 3}
22
+
23
+ ### Non-Goals
24
+ - {What this feature explicitly will NOT do}
25
+
26
+ ---
27
+
28
+ ## Users & Stakeholders
29
+
30
+ ### Target Users
31
+ | User Type | Description | Primary Need |
32
+ |-----------|-------------|--------------|
33
+ | {User 1} | {Description} | {What they need} |
34
+ | {User 2} | {Description} | {What they need} |
35
+
36
+ ### Stakeholder Impact
37
+ - {Who else is affected and how}
38
+
39
+ ---
40
+
41
+ ## Requirements
42
+
43
+ ### Functional Requirements
44
+
45
+ #### Must Have (P0)
46
+ - [ ] {Requirement 1}
47
+ - [ ] {Requirement 2}
48
+
49
+ #### Should Have (P1)
50
+ - [ ] {Requirement 3}
51
+ - [ ] {Requirement 4}
52
+
53
+ #### Nice to Have (P2)
54
+ - [ ] {Requirement 5}
55
+
56
+ ### Non-Functional Requirements
57
+ - **Performance:** {Requirements}
58
+ - **Security:** {Requirements}
59
+ - **Accessibility:** {Requirements}
60
+ - **Scalability:** {Requirements}
61
+
62
+ ---
63
+
64
+ ## User Flows
65
+
66
+ ### Flow 1: {Primary User Flow}
67
+ ```
68
+ 1. User {action}
69
+ 2. System {response}
70
+ 3. User {action}
71
+ 4. System {response}
72
+ ```
73
+
74
+ ### Flow 2: {Secondary Flow}
75
+ ```
76
+ {Steps}
77
+ ```
78
+
79
+ ### Error Handling
80
+ - **{Error scenario}:** {How system responds}
81
+
82
+ ---
83
+
84
+ ## UI/UX Considerations
85
+
86
+ ### New Screens/Components
87
+ - {Screen/component 1}
88
+ - {Screen/component 2}
89
+
90
+ ### UI Requirements
91
+ - {Visual requirements}
92
+ - {Interaction patterns}
93
+ - {Responsive behavior}
94
+
95
+ ### Accessibility
96
+ - {A11y requirements}
97
+
98
+ ---
99
+
100
+ ## Technical Architecture
101
+
102
+ ### System Components
103
+ ```
104
+ {High-level architecture diagram or description}
105
+ ```
106
+
107
+ ### Data Model
108
+ | Entity | Fields | Notes |
109
+ |--------|--------|-------|
110
+ | {Entity 1} | {Fields} | {Notes} |
111
+
112
+ ### API Endpoints
113
+ | Method | Endpoint | Purpose |
114
+ |--------|----------|---------|
115
+ | {GET/POST/etc} | {/path} | {What it does} |
116
+
117
+ ### Dependencies
118
+ - **Internal:** {Existing systems/services}
119
+ - **External:** {Third-party services/libraries}
120
+
121
+ ### Security Considerations
122
+ - {Authentication/authorization}
123
+ - {Data protection}
124
+ - {Potential vulnerabilities to address}
125
+
126
+ ---
127
+
128
+ ## Scope & Boundaries
129
+
130
+ ### In Scope
131
+ - {What IS included}
132
+
133
+ ### Out of Scope
134
+ - {What is NOT included}
135
+ - {Future considerations deferred}
136
+
137
+ ### Assumptions
138
+ - {Assumption 1}
139
+ - {Assumption 2}
140
+
141
+ ### Risks & Mitigations
142
+ | Risk | Impact | Mitigation |
143
+ |------|--------|------------|
144
+ | {Risk 1} | {High/Med/Low} | {How to address} |
145
+
146
+ ---
147
+
148
+ ## Implementation Considerations
149
+
150
+ ### Suggested Approach
151
+ {High-level implementation strategy}
152
+
153
+ ### Milestones
154
+ | Milestone | Description | Issues |
155
+ |-----------|-------------|--------|
156
+ | {v0.1} | {What it includes} | {Rough issue count} |
157
+
158
+ ### Testing Strategy
159
+ - **Unit Tests:** {What needs unit testing}
160
+ - **Integration Tests:** {Integration points}
161
+ - **E2E Tests:** {User flows to test}
162
+ - **Manual Testing:** {What requires manual verification}
163
+
164
+ ---
165
+
166
+ ## Open Questions
167
+
168
+ - [ ] {Question 1 that needs resolution}
169
+ - [ ] {Question 2}
170
+
171
+ ---
172
+
173
+ ## Review Feedback
174
+
175
+ ### Architect Review
176
+ **Status:** {Pending | Approved | Changes Requested}
177
+ {Feedback summary}
178
+
179
+ ### Designer Review
180
+ **Status:** {Pending | Approved | Changes Requested | N/A}
181
+ {Feedback summary}
182
+
183
+ ---
184
+
185
+ ## Approval
186
+
187
+ - [ ] Discovery complete
188
+ - [ ] Architect approved
189
+ - [ ] Designer approved (if applicable)
190
+ - [ ] User approved
191
+ - [ ] Issues created
192
+
193
+ **Approved by:** {Name/Date}
@@ -0,0 +1,119 @@
1
+ # Implementation Plan
2
+
3
+ > Generated by /work-plan command
4
+
5
+ ## Overview
6
+
7
+ **Feature:** {Feature name from discovery}
8
+ **Discovery:** {Link to discovery.md}
9
+ **Date:** {Date}
10
+ **Total Issues:** {N}
11
+
12
+ ---
13
+
14
+ ## Milestones
15
+
16
+ | Milestone | Issues | Description |
17
+ |-----------|--------|-------------|
18
+ | {v0.1} | #{1}, #{2}, #{3} | {What this milestone delivers} |
19
+ | {v0.2} | #{4}, #{5} | {What this milestone delivers} |
20
+
21
+ ---
22
+
23
+ ## Dependency Graph
24
+
25
+ ```
26
+ #{1} Foundation
27
+
28
+ ├─► #{2} Depends on #1
29
+ │ │
30
+ │ └─► #{4} Depends on #2
31
+
32
+ └─► #{3} Depends on #1
33
+
34
+ └─► #{5} Depends on #3
35
+ ```
36
+
37
+ ---
38
+
39
+ ## Implementation Sequence
40
+
41
+ ### Phase 1: Foundation
42
+
43
+ | Order | Issue | Title | Dependencies | Priority | Notes |
44
+ |-------|-------|-------|--------------|----------|-------|
45
+ | 1 | #{N} | {Title} | None | {High/Med/Low} | {Any notes} |
46
+ | 2 | #{N} | {Title} | None | {High/Med/Low} | {Any notes} |
47
+
48
+ ### Phase 2: Core Features
49
+
50
+ | Order | Issue | Title | Dependencies | Priority | Notes |
51
+ |-------|-------|-------|--------------|----------|-------|
52
+ | 3 | #{N} | {Title} | #{1} | {High/Med/Low} | {Any notes} |
53
+ | 4 | #{N} | {Title} | #{1}, #{2} | {High/Med/Low} | {Any notes} |
54
+
55
+ ### Phase 3: Integration & Polish
56
+
57
+ | Order | Issue | Title | Dependencies | Priority | Notes |
58
+ |-------|-------|-------|--------------|----------|-------|
59
+ | 5 | #{N} | {Title} | #{3}, #{4} | {High/Med/Low} | {Any notes} |
60
+
61
+ ---
62
+
63
+ ## Issue Details
64
+
65
+ ### #{N}: {Issue Title}
66
+ - **Type:** {Feature/Bug/Enhancement}
67
+ - **Priority:** {High/Medium/Low}
68
+ - **Dependencies:** {None | #X, #Y}
69
+ - **Milestone:** {v0.1}
70
+ - **Has UI:** {Yes/No}
71
+ - **Estimated Complexity:** {Simple/Medium/Complex}
72
+
73
+ **Summary:** {Brief description of what needs to be done}
74
+
75
+ ---
76
+
77
+ ## Parallel Work Opportunities
78
+
79
+ Issues that can be worked simultaneously:
80
+ - #{A} and #{B} (no shared dependencies)
81
+ - #{C} and #{D} (different domains)
82
+
83
+ ---
84
+
85
+ ## Risk Assessment
86
+
87
+ | Issue | Risk | Mitigation |
88
+ |-------|------|------------|
89
+ | #{N} | {Potential challenge} | {How to address} |
90
+
91
+ ---
92
+
93
+ ## Checkpoint Recommendations
94
+
95
+ After completing:
96
+ - **#{N}:** {What to verify before continuing}
97
+ - **Milestone {v0.1}:** {Integration testing recommended}
98
+
99
+ ---
100
+
101
+ ## Notes
102
+
103
+ - {Any additional context for implementation}
104
+ - {Known technical debt to track}
105
+ - {Items discovered that may become future issues}
106
+
107
+ ---
108
+
109
+ ## Execution
110
+
111
+ To begin implementation:
112
+ ```
113
+ /work-all
114
+ ```
115
+
116
+ Or for single issue:
117
+ ```
118
+ /work {issue_number}
119
+ ```