ccg-ros2-workflow 1.4.0 → 2.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.
- package/LICENSE +21 -0
- package/README.md +128 -241
- package/bin/ccg.mjs +2 -0
- package/bin/codeagent-wrapper-darwin-amd64 +0 -0
- package/bin/codeagent-wrapper-darwin-arm64 +0 -0
- package/bin/codeagent-wrapper-linux-amd64 +0 -0
- package/bin/codeagent-wrapper-linux-arm64 +0 -0
- package/bin/codeagent-wrapper-windows-amd64.exe +0 -0
- package/bin/codeagent-wrapper-windows-arm64.exe +0 -0
- package/dist/cli.d.mts +1 -0
- package/dist/cli.d.ts +1 -0
- package/dist/cli.mjs +173 -0
- package/dist/index.d.mts +229 -0
- package/dist/index.d.ts +229 -0
- package/dist/index.mjs +12 -0
- package/dist/shared/ccg-ros2-workflow.CpLJvcLP.mjs +2274 -0
- package/package.json +85 -22
- package/templates/commands/agents/planner.md +345 -0
- package/templates/commands/agents/system-integrator.md +397 -0
- package/{src/commands/ccg → templates/commands}/analyze.md +17 -17
- package/{src/commands/ccg → templates/commands}/backend.md +25 -25
- package/{src/commands/ccg → templates/commands}/debug.md +12 -12
- package/{src/commands/ccg → templates/commands}/execute.md +24 -23
- package/{src/commands/ccg → templates/commands}/feat.md +21 -21
- package/{src/commands/ccg → templates/commands}/frontend.md +26 -26
- package/{src/commands/ccg → templates/commands}/optimize.md +24 -24
- package/{src/commands/ccg → templates/commands}/plan.md +20 -19
- package/{src/commands/ccg → templates/commands}/review.md +9 -9
- package/templates/commands/spec-impl.md +123 -0
- package/templates/commands/spec-init.md +91 -0
- package/templates/commands/spec-plan.md +109 -0
- package/templates/commands/spec-research.md +104 -0
- package/templates/commands/spec-review.md +120 -0
- package/{src/commands/ccg → templates/commands}/test.md +23 -23
- package/templates/commands/workflow.md +193 -0
- package/{src/commands/ccg → templates/commands}/worktree.md +8 -8
- package/templates/prompts/claude/analyzer.md +59 -0
- package/templates/prompts/claude/architect.md +54 -0
- package/templates/prompts/claude/debugger.md +71 -0
- package/templates/prompts/claude/optimizer.md +73 -0
- package/templates/prompts/claude/reviewer.md +63 -0
- package/templates/prompts/claude/tester.md +69 -0
- package/templates/prompts/codex/analyzer.md +50 -0
- package/templates/prompts/codex/architect.md +46 -0
- package/templates/prompts/codex/debugger.md +66 -0
- package/templates/prompts/codex/optimizer.md +74 -0
- package/templates/prompts/codex/reviewer.md +66 -0
- package/templates/prompts/codex/tester.md +55 -0
- package/templates/prompts/gemini/analyzer.md +53 -0
- package/templates/prompts/gemini/architect.md +47 -0
- package/templates/prompts/gemini/debugger.md +70 -0
- package/templates/prompts/gemini/frontend.md +56 -0
- package/templates/prompts/gemini/optimizer.md +77 -0
- package/templates/prompts/gemini/reviewer.md +73 -0
- package/templates/prompts/gemini/tester.md +61 -0
- package/bin/cli.js +0 -903
- package/src/agents/ccg/planner.md +0 -358
- package/src/agents/ccg/system-integrator.md +0 -627
- package/src/codeagent-wrapper.sh +0 -86
- package/src/commands/ccg/workflow.md +0 -212
- package/src/config.toml +0 -36
- package/src/prompts/claude/analyzer.md +0 -25
- package/src/prompts/claude/architect.md +0 -25
- package/src/prompts/claude/debugger.md +0 -24
- package/src/prompts/claude/optimizer.md +0 -25
- package/src/prompts/claude/reviewer.md +0 -26
- package/src/prompts/claude/tester.md +0 -24
- package/src/prompts/codex/analyzer.md +0 -32
- package/src/prompts/codex/architect.md +0 -42
- package/src/prompts/codex/debugger.md +0 -24
- package/src/prompts/codex/optimizer.md +0 -25
- package/src/prompts/codex/reviewer.md +0 -32
- package/src/prompts/codex/tester.md +0 -24
- package/src/prompts/gemini/analyzer.md +0 -32
- package/src/prompts/gemini/architect.md +0 -34
- package/src/prompts/gemini/debugger.md +0 -24
- package/src/prompts/gemini/frontend.md +0 -25
- package/src/prompts/gemini/optimizer.md +0 -25
- package/src/prompts/gemini/reviewer.md +0 -32
- package/src/prompts/gemini/tester.md +0 -24
- /package/{src/agents/ccg → templates/commands/agents}/get-current-datetime.md +0 -0
- /package/{src/agents/ccg → templates/commands/agents}/init-architect.md +0 -0
- /package/{src/commands/ccg → templates/commands}/clean-branches.md +0 -0
- /package/{src/commands/ccg → templates/commands}/commit.md +0 -0
- /package/{src/commands/ccg → templates/commands}/enhance.md +0 -0
- /package/{src/commands/ccg → templates/commands}/init.md +0 -0
- /package/{src/commands/ccg → templates/commands}/rollback.md +0 -0
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
# Gemini Role: Frontend Test Engineer
|
|
2
|
+
|
|
3
|
+
> For: /ccg:test
|
|
4
|
+
|
|
5
|
+
You are a senior test engineer specializing in frontend testing, component testing, and user interaction testing.
|
|
6
|
+
|
|
7
|
+
## CRITICAL CONSTRAINTS
|
|
8
|
+
|
|
9
|
+
- **ZERO file system write permission** - READ-ONLY sandbox
|
|
10
|
+
- **OUTPUT FORMAT**: Unified Diff Patch for test files ONLY
|
|
11
|
+
- **NEVER** modify production code
|
|
12
|
+
|
|
13
|
+
## Core Expertise
|
|
14
|
+
|
|
15
|
+
- Component testing (React Testing Library)
|
|
16
|
+
- User interaction testing
|
|
17
|
+
- Snapshot testing
|
|
18
|
+
- E2E testing (Cypress, Playwright)
|
|
19
|
+
- Accessibility testing
|
|
20
|
+
- Visual regression testing
|
|
21
|
+
|
|
22
|
+
## Test Strategy
|
|
23
|
+
|
|
24
|
+
### 1. Component Tests
|
|
25
|
+
- Render tests (does it render?)
|
|
26
|
+
- Props validation (correct output for inputs)
|
|
27
|
+
- Event handling (click, submit, keyboard)
|
|
28
|
+
- State changes (loading, error, success)
|
|
29
|
+
|
|
30
|
+
### 2. User Interaction Tests
|
|
31
|
+
- Form submissions
|
|
32
|
+
- Button clicks
|
|
33
|
+
- Keyboard navigation
|
|
34
|
+
- Focus management
|
|
35
|
+
- Drag and drop
|
|
36
|
+
|
|
37
|
+
### 3. Accessibility Tests
|
|
38
|
+
- Screen reader compatibility
|
|
39
|
+
- Keyboard-only navigation
|
|
40
|
+
- ARIA attributes
|
|
41
|
+
- Color contrast (where testable)
|
|
42
|
+
|
|
43
|
+
### 4. Coverage Focus
|
|
44
|
+
- User-facing behavior (not implementation)
|
|
45
|
+
- Edge cases in UI logic
|
|
46
|
+
- Error states and boundaries
|
|
47
|
+
- Responsive breakpoints
|
|
48
|
+
|
|
49
|
+
## Test Patterns
|
|
50
|
+
|
|
51
|
+
- **User-Centric**: Test what users see and do
|
|
52
|
+
- **Queries**: getByRole, getByLabelText (accessible queries first)
|
|
53
|
+
- **Async**: waitFor, findBy for async operations
|
|
54
|
+
- **Avoid**: Testing implementation details
|
|
55
|
+
|
|
56
|
+
## Response Structure
|
|
57
|
+
|
|
58
|
+
1. **Test Strategy** - Overall approach
|
|
59
|
+
2. **Test Cases** - Scenarios to cover
|
|
60
|
+
3. **Implementation** - Unified Diff Patch for test files
|
|
61
|
+
4. **Accessibility Notes** - a11y test coverage
|