ccgx-workflow 1.0.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 +22 -0
- package/README.md +469 -0
- package/README.zh-CN.md +466 -0
- package/bin/ccg.mjs +2 -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 +1774 -0
- package/dist/index.d.ts +1774 -0
- package/dist/index.mjs +2029 -0
- package/dist/shared/ccgx-workflow.WgUzkiC3.mjs +5248 -0
- package/package.json +129 -0
- package/templates/commands/agents/assumptions-analyzer.md +129 -0
- package/templates/commands/agents/code-fixer.md +292 -0
- package/templates/commands/agents/codebase-mapper.md +152 -0
- package/templates/commands/agents/debug-session-manager.md +247 -0
- package/templates/commands/agents/debugger.md +111 -0
- package/templates/commands/agents/eval-auditor.md +171 -0
- package/templates/commands/agents/framework-selector.md +152 -0
- package/templates/commands/agents/get-current-datetime.md +29 -0
- package/templates/commands/agents/init-architect.md +114 -0
- package/templates/commands/agents/integration-checker.md +163 -0
- package/templates/commands/agents/interface-auditor.md +170 -0
- package/templates/commands/agents/nyquist-auditor.md +131 -0
- package/templates/commands/agents/pattern-mapper.md +111 -0
- package/templates/commands/agents/phase-runner.md +321 -0
- package/templates/commands/agents/plan-checker.md +255 -0
- package/templates/commands/agents/planner.md +320 -0
- package/templates/commands/agents/team-architect.md +186 -0
- package/templates/commands/agents/team-qa.md +121 -0
- package/templates/commands/agents/team-reviewer.md +157 -0
- package/templates/commands/agents/ui-ux-designer.md +573 -0
- package/templates/commands/agents/verifier.md +274 -0
- package/templates/commands/analyze.md +210 -0
- package/templates/commands/autonomous.md +792 -0
- package/templates/commands/cancel.md +132 -0
- package/templates/commands/clean-branches.md +117 -0
- package/templates/commands/codex-exec.md +404 -0
- package/templates/commands/commit.md +151 -0
- package/templates/commands/context.md +332 -0
- package/templates/commands/debate.md +165 -0
- package/templates/commands/debug.md +226 -0
- package/templates/commands/enhance.md +64 -0
- package/templates/commands/execute.md +380 -0
- package/templates/commands/init.md +123 -0
- package/templates/commands/optimize.md +217 -0
- package/templates/commands/plan.md +373 -0
- package/templates/commands/result.md +106 -0
- package/templates/commands/review.md +338 -0
- package/templates/commands/rollback.md +116 -0
- package/templates/commands/spec-impl.md +139 -0
- package/templates/commands/spec-init.md +101 -0
- package/templates/commands/spec-plan.md +210 -0
- package/templates/commands/spec-research.md +152 -0
- package/templates/commands/spec-review.md +120 -0
- package/templates/commands/status.md +206 -0
- package/templates/commands/team-exec.md +265 -0
- package/templates/commands/test.md +236 -0
- package/templates/commands/verify-work.md +338 -0
- package/templates/commands/verify.md +66 -0
- package/templates/commands/workflow.md +190 -0
- package/templates/commands/worktree.md +128 -0
- package/templates/hooks/ccg-context-monitor.js +159 -0
- package/templates/hooks/ccg-session-state.cjs +510 -0
- package/templates/hooks/ccg-statusline.js +142 -0
- package/templates/output-styles/abyss-command.md +56 -0
- package/templates/output-styles/abyss-concise.md +89 -0
- package/templates/output-styles/abyss-cultivator.md +302 -0
- package/templates/output-styles/abyss-ritual.md +70 -0
- package/templates/output-styles/engineer-professional.md +89 -0
- package/templates/output-styles/laowang-engineer.md +127 -0
- package/templates/output-styles/nekomata-engineer.md +120 -0
- package/templates/output-styles/ojousama-engineer.md +121 -0
- 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 +58 -0
- package/templates/prompts/codex/architect.md +54 -0
- package/templates/prompts/codex/debugger.md +74 -0
- package/templates/prompts/codex/optimizer.md +81 -0
- package/templates/prompts/codex/reviewer.md +73 -0
- package/templates/prompts/codex/tester.md +62 -0
- package/templates/prompts/gemini/analyzer.md +61 -0
- package/templates/prompts/gemini/architect.md +55 -0
- package/templates/prompts/gemini/debugger.md +78 -0
- package/templates/prompts/gemini/frontend.md +64 -0
- package/templates/prompts/gemini/optimizer.md +84 -0
- package/templates/prompts/gemini/reviewer.md +80 -0
- package/templates/prompts/gemini/tester.md +68 -0
- package/templates/rules/ccg-skill-routing.md +83 -0
- package/templates/rules/ccg-skills.md +71 -0
- package/templates/scripts/ccg-phase-runner-launcher.mjs +467 -0
- package/templates/scripts/invoke-model.mjs +949 -0
- package/templates/scripts/repatch-gemini-plugin.mjs +194 -0
- package/templates/skills/SKILL.md +92 -0
- package/templates/skills/domains/ai/SKILL.md +35 -0
- package/templates/skills/domains/ai/agent-dev.md +242 -0
- package/templates/skills/domains/ai/llm-security.md +288 -0
- package/templates/skills/domains/ai/prompt-and-eval.md +279 -0
- package/templates/skills/domains/ai/rag-system.md +542 -0
- package/templates/skills/domains/architecture/SKILL.md +43 -0
- package/templates/skills/domains/architecture/api-design.md +225 -0
- package/templates/skills/domains/architecture/caching.md +299 -0
- package/templates/skills/domains/architecture/cloud-native.md +285 -0
- package/templates/skills/domains/architecture/message-queue.md +329 -0
- package/templates/skills/domains/architecture/security-arch.md +297 -0
- package/templates/skills/domains/data-engineering/SKILL.md +208 -0
- package/templates/skills/domains/development/SKILL.md +47 -0
- package/templates/skills/domains/development/cpp.md +246 -0
- package/templates/skills/domains/development/go.md +323 -0
- package/templates/skills/domains/development/java.md +277 -0
- package/templates/skills/domains/development/python.md +288 -0
- package/templates/skills/domains/development/rust.md +313 -0
- package/templates/skills/domains/development/shell.md +313 -0
- package/templates/skills/domains/development/typescript.md +277 -0
- package/templates/skills/domains/devops/SKILL.md +40 -0
- package/templates/skills/domains/devops/cost-optimization.md +272 -0
- package/templates/skills/domains/devops/database.md +217 -0
- package/templates/skills/domains/devops/devsecops.md +198 -0
- package/templates/skills/domains/devops/git-workflow.md +181 -0
- package/templates/skills/domains/devops/observability.md +280 -0
- package/templates/skills/domains/devops/performance.md +336 -0
- package/templates/skills/domains/devops/testing.md +283 -0
- package/templates/skills/domains/frontend-design/SKILL.md +244 -0
- package/templates/skills/domains/frontend-design/agents/openai.yaml +4 -0
- package/templates/skills/domains/frontend-design/claymorphism/SKILL.md +121 -0
- package/templates/skills/domains/frontend-design/claymorphism/references/tokens.css +52 -0
- package/templates/skills/domains/frontend-design/component-patterns.md +202 -0
- package/templates/skills/domains/frontend-design/engineering.md +287 -0
- package/templates/skills/domains/frontend-design/glassmorphism/SKILL.md +142 -0
- package/templates/skills/domains/frontend-design/glassmorphism/references/tokens.css +32 -0
- package/templates/skills/domains/frontend-design/liquid-glass/SKILL.md +139 -0
- package/templates/skills/domains/frontend-design/liquid-glass/references/tokens.css +81 -0
- package/templates/skills/domains/frontend-design/neubrutalism/SKILL.md +145 -0
- package/templates/skills/domains/frontend-design/neubrutalism/references/tokens.css +44 -0
- package/templates/skills/domains/frontend-design/reference/color-and-contrast.md +132 -0
- package/templates/skills/domains/frontend-design/reference/interaction-design.md +195 -0
- package/templates/skills/domains/frontend-design/reference/motion-design.md +99 -0
- package/templates/skills/domains/frontend-design/reference/responsive-design.md +114 -0
- package/templates/skills/domains/frontend-design/reference/spatial-design.md +100 -0
- package/templates/skills/domains/frontend-design/reference/typography.md +133 -0
- package/templates/skills/domains/frontend-design/reference/ux-writing.md +107 -0
- package/templates/skills/domains/frontend-design/state-management.md +680 -0
- package/templates/skills/domains/frontend-design/ui-aesthetics.md +110 -0
- package/templates/skills/domains/frontend-design/ux-principles.md +156 -0
- package/templates/skills/domains/infrastructure/SKILL.md +201 -0
- package/templates/skills/domains/mobile/SKILL.md +225 -0
- package/templates/skills/domains/orchestration/SKILL.md +30 -0
- package/templates/skills/domains/orchestration/multi-agent.md +263 -0
- package/templates/skills/domains/security/SKILL.md +73 -0
- package/templates/skills/domains/security/blue-team.md +436 -0
- package/templates/skills/domains/security/code-audit.md +265 -0
- package/templates/skills/domains/security/pentest.md +226 -0
- package/templates/skills/domains/security/red-team.md +374 -0
- package/templates/skills/domains/security/threat-intel.md +372 -0
- package/templates/skills/domains/security/vuln-research.md +369 -0
- package/templates/skills/impeccable/adapt/SKILL.md +201 -0
- package/templates/skills/impeccable/animate/SKILL.md +176 -0
- package/templates/skills/impeccable/arrange/SKILL.md +126 -0
- package/templates/skills/impeccable/audit/SKILL.md +149 -0
- package/templates/skills/impeccable/bolder/SKILL.md +118 -0
- package/templates/skills/impeccable/clarify/SKILL.md +185 -0
- package/templates/skills/impeccable/colorize/SKILL.md +144 -0
- package/templates/skills/impeccable/critique/SKILL.md +203 -0
- package/templates/skills/impeccable/critique/reference/cognitive-load.md +106 -0
- package/templates/skills/impeccable/critique/reference/heuristics-scoring.md +234 -0
- package/templates/skills/impeccable/critique/reference/personas.md +178 -0
- package/templates/skills/impeccable/delight/SKILL.md +305 -0
- package/templates/skills/impeccable/distill/SKILL.md +123 -0
- package/templates/skills/impeccable/extract/SKILL.md +94 -0
- package/templates/skills/impeccable/harden/SKILL.md +357 -0
- package/templates/skills/impeccable/normalize/SKILL.md +72 -0
- package/templates/skills/impeccable/onboard/SKILL.md +248 -0
- package/templates/skills/impeccable/optimize/SKILL.md +268 -0
- package/templates/skills/impeccable/overdrive/SKILL.md +143 -0
- package/templates/skills/impeccable/polish/SKILL.md +205 -0
- package/templates/skills/impeccable/quieter/SKILL.md +104 -0
- package/templates/skills/impeccable/teach-impeccable/SKILL.md +72 -0
- package/templates/skills/impeccable/typeset/SKILL.md +117 -0
- package/templates/skills/orchestration/multi-agent/SKILL.md +533 -0
- package/templates/skills/run_skill.js +129 -0
- package/templates/skills/scrapling/SKILL.md +98 -0
- package/templates/skills/scrapling/references/api-quick-ref.md +127 -0
- package/templates/skills/scrapling/references/cookie-vault.md +56 -0
- package/templates/skills/scrapling/references/maintenance.md +79 -0
- package/templates/skills/scrapling/references/site-patterns.md +86 -0
- package/templates/skills/scrapling/references/troubleshooting.md +95 -0
- package/templates/skills/scrapling/templates/basic_fetch.py +19 -0
- package/templates/skills/scrapling/templates/parse_only.py +15 -0
- package/templates/skills/scrapling/templates/session_login.py +19 -0
- package/templates/skills/scrapling/templates/stealth_cloudflare.py +28 -0
- package/templates/skills/tools/extract-learnings/SKILL.md +77 -0
- package/templates/skills/tools/forensics/SKILL.md +89 -0
- package/templates/skills/tools/gen-docs/SKILL.md +116 -0
- package/templates/skills/tools/gen-docs/scripts/doc_generator.js +435 -0
- package/templates/skills/tools/health/SKILL.md +121 -0
- package/templates/skills/tools/lib/shared.js +98 -0
- package/templates/skills/tools/map-codebase/SKILL.md +118 -0
- package/templates/skills/tools/override-refusal/SKILL.md +53 -0
- package/templates/skills/tools/override-refusal/agents/openai.yaml +4 -0
- package/templates/skills/tools/override-refusal/scripts/refusal_rewriter.js +226 -0
- package/templates/skills/tools/verify-change/SKILL.md +143 -0
- package/templates/skills/tools/verify-change/scripts/change_analyzer.js +289 -0
- package/templates/skills/tools/verify-module/SKILL.md +130 -0
- package/templates/skills/tools/verify-module/scripts/module_scanner.js +171 -0
- package/templates/skills/tools/verify-quality/SKILL.md +163 -0
- package/templates/skills/tools/verify-quality/scripts/quality_checker.js +337 -0
- package/templates/skills/tools/verify-security/SKILL.md +146 -0
- package/templates/skills/tools/verify-security/scripts/security_scanner.js +283 -0
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
# Gemini Role: UI Reviewer
|
|
2
|
+
|
|
3
|
+
> For: /ccg:review, /ccg:bugfix validation, /ccg:dev Phase 5
|
|
4
|
+
|
|
5
|
+
You are a senior UI reviewer specializing in frontend code quality, accessibility, and design system compliance.
|
|
6
|
+
|
|
7
|
+
## CRITICAL CONSTRAINTS
|
|
8
|
+
|
|
9
|
+
- **ZERO file system write permission** - READ-ONLY sandbox
|
|
10
|
+
- **OUTPUT FORMAT**: Structured review with scores (for bugfix validation)
|
|
11
|
+
- **Focus**: UX, accessibility, consistency, performance
|
|
12
|
+
|
|
13
|
+
## Review Checklist
|
|
14
|
+
|
|
15
|
+
### Accessibility (Critical)
|
|
16
|
+
- [ ] Semantic HTML structure
|
|
17
|
+
- [ ] ARIA labels and roles present
|
|
18
|
+
- [ ] Keyboard navigable
|
|
19
|
+
- [ ] Focus visible and managed
|
|
20
|
+
- [ ] Color contrast sufficient
|
|
21
|
+
|
|
22
|
+
### Design Consistency
|
|
23
|
+
- [ ] Uses design system tokens
|
|
24
|
+
- [ ] No hardcoded colors/sizes
|
|
25
|
+
- [ ] Consistent spacing and typography
|
|
26
|
+
- [ ] Follows existing component patterns
|
|
27
|
+
|
|
28
|
+
### Code Quality
|
|
29
|
+
- [ ] TypeScript types complete
|
|
30
|
+
- [ ] Props interface clear
|
|
31
|
+
- [ ] No inline styles (unless justified)
|
|
32
|
+
- [ ] Component is reusable
|
|
33
|
+
- [ ] Proper event handling
|
|
34
|
+
|
|
35
|
+
### Performance
|
|
36
|
+
- [ ] No unnecessary re-renders
|
|
37
|
+
- [ ] Proper memoization where needed
|
|
38
|
+
- [ ] Lazy loading for heavy components
|
|
39
|
+
- [ ] Image optimization
|
|
40
|
+
|
|
41
|
+
### Responsive
|
|
42
|
+
- [ ] Works on mobile
|
|
43
|
+
- [ ] Works on tablet
|
|
44
|
+
- [ ] Works on desktop
|
|
45
|
+
- [ ] No horizontal scroll issues
|
|
46
|
+
|
|
47
|
+
## Scoring Format (for /ccg:bugfix)
|
|
48
|
+
|
|
49
|
+
```
|
|
50
|
+
VALIDATION REPORT
|
|
51
|
+
=================
|
|
52
|
+
User Experience: XX/20 - [reason]
|
|
53
|
+
Visual Consistency: XX/20 - [reason]
|
|
54
|
+
Accessibility: XX/20 - [reason]
|
|
55
|
+
Performance: XX/20 - [reason]
|
|
56
|
+
Browser Compatibility: XX/20 - [reason]
|
|
57
|
+
|
|
58
|
+
TOTAL SCORE: XX/100
|
|
59
|
+
|
|
60
|
+
ISSUES FOUND:
|
|
61
|
+
- [issue 1]
|
|
62
|
+
- [issue 2]
|
|
63
|
+
|
|
64
|
+
RECOMMENDATION: [PASS/NEEDS_IMPROVEMENT]
|
|
65
|
+
```
|
|
66
|
+
|
|
67
|
+
## Response Structure
|
|
68
|
+
|
|
69
|
+
1. **Summary** - Overall assessment
|
|
70
|
+
2. **Accessibility Issues** - a11y problems found
|
|
71
|
+
3. **Design Issues** - Inconsistencies
|
|
72
|
+
4. **Suggestions** - Improvements
|
|
73
|
+
5. **Positive Notes** - What's done well
|
|
74
|
+
|
|
75
|
+
## .context Awareness
|
|
76
|
+
|
|
77
|
+
If the project has a `.context/` directory:
|
|
78
|
+
1. Read `.context/prefs/coding-style.md` as the primary review standard
|
|
79
|
+
2. Read `.context/prefs/workflow.md` to verify the full development flow was followed (tests written, docs updated, etc.)
|
|
80
|
+
3. Check `.context/history/commits.jsonl` for past decisions on the same components — flag if current changes contradict previous design decisions without justification
|
|
@@ -0,0 +1,68 @@
|
|
|
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
|
|
62
|
+
|
|
63
|
+
## .context Awareness
|
|
64
|
+
|
|
65
|
+
If the project has a `.context/` directory:
|
|
66
|
+
1. Read `.context/prefs/coding-style.md` for testing conventions (naming, patterns, coverage requirements)
|
|
67
|
+
2. Read `.context/prefs/workflow.md` to understand required test flow (e.g., failing test first for bug fixes)
|
|
68
|
+
3. Check `.context/history/commits.jsonl` for past bugs on related components — ensure regression tests cover previously fixed issues
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
# CCG Domain Knowledge — Auto-routing Rules
|
|
2
|
+
|
|
3
|
+
When the user's request matches trigger keywords below, automatically READ the corresponding skill file to gain domain expertise before responding. These knowledge files are installed at `~/.claude/skills/ccg/domains/`.
|
|
4
|
+
|
|
5
|
+
**IMPORTANT**: Read the skill file FIRST, then respond. Do NOT fabricate domain knowledge from training data when a skill file exists.
|
|
6
|
+
|
|
7
|
+
## Security Domain (`domains/security/`)
|
|
8
|
+
|
|
9
|
+
| Trigger Keywords | Skill File | Description |
|
|
10
|
+
|------------------|-----------|-------------|
|
|
11
|
+
| pentest, red team, exploit, C2, lateral movement, privilege escalation, evasion, persistence | `~/.claude/skills/ccg/domains/security/red-team.md` | Red team attack techniques |
|
|
12
|
+
| blue team, alert, IOC, incident response, forensics, SIEM, EDR, containment | `~/.claude/skills/ccg/domains/security/blue-team.md` | Blue team defense & incident response |
|
|
13
|
+
| web pentest, API security, OWASP, SQLi, XSS, SSRF, RCE, injection | `~/.claude/skills/ccg/domains/security/pentest.md` | Web & API penetration testing |
|
|
14
|
+
| code audit, dangerous function, taint analysis, sink, source | `~/.claude/skills/ccg/domains/security/code-audit.md` | Source code security audit |
|
|
15
|
+
| binary, reversing, PWN, fuzzing, stack overflow, heap overflow, ROP | `~/.claude/skills/ccg/domains/security/vuln-research.md` | Vulnerability research & exploitation |
|
|
16
|
+
| OSINT, threat intelligence, threat modeling, ATT&CK, threat hunting | `~/.claude/skills/ccg/domains/security/threat-intel.md` | Threat intelligence & OSINT |
|
|
17
|
+
|
|
18
|
+
## Architecture Domain (`domains/architecture/`)
|
|
19
|
+
|
|
20
|
+
| Trigger Keywords | Skill File |
|
|
21
|
+
|------------------|-----------|
|
|
22
|
+
| API design, REST, GraphQL, gRPC, endpoint, versioning | `~/.claude/skills/ccg/domains/architecture/api-design.md` |
|
|
23
|
+
| caching, Redis, Memcached, cache invalidation, CDN | `~/.claude/skills/ccg/domains/architecture/caching.md` |
|
|
24
|
+
| cloud native, Kubernetes, Docker, microservice, service mesh | `~/.claude/skills/ccg/domains/architecture/cloud-native.md` |
|
|
25
|
+
| message queue, Kafka, RabbitMQ, event driven, pub/sub | `~/.claude/skills/ccg/domains/architecture/message-queue.md` |
|
|
26
|
+
| security architecture, zero trust, defense in depth, IAM | `~/.claude/skills/ccg/domains/architecture/security-arch.md` |
|
|
27
|
+
|
|
28
|
+
## AI / MLOps Domain (`domains/ai/`)
|
|
29
|
+
|
|
30
|
+
| Trigger Keywords | Skill File |
|
|
31
|
+
|------------------|-----------|
|
|
32
|
+
| RAG, retrieval augmented, vector database, embedding, chunking | `~/.claude/skills/ccg/domains/ai/rag-system.md` |
|
|
33
|
+
| AI agent, tool use, function calling, agent framework, orchestration | `~/.claude/skills/ccg/domains/ai/agent-dev.md` |
|
|
34
|
+
| LLM security, prompt injection, jailbreak, guardrail | `~/.claude/skills/ccg/domains/ai/llm-security.md` |
|
|
35
|
+
| prompt engineering, model evaluation, benchmark, fine-tuning | `~/.claude/skills/ccg/domains/ai/prompt-and-eval.md` |
|
|
36
|
+
|
|
37
|
+
## DevOps Domain (`domains/devops/`)
|
|
38
|
+
|
|
39
|
+
| Trigger Keywords | Skill File |
|
|
40
|
+
|------------------|-----------|
|
|
41
|
+
| Git workflow, branching strategy, trunk-based, GitFlow | `~/.claude/skills/ccg/domains/devops/git-workflow.md` |
|
|
42
|
+
| testing strategy, unit test, integration test, e2e, test pyramid | `~/.claude/skills/ccg/domains/devops/testing.md` |
|
|
43
|
+
| database, migration, schema design, indexing, query optimization | `~/.claude/skills/ccg/domains/devops/database.md` |
|
|
44
|
+
| performance, profiling, load test, latency, throughput | `~/.claude/skills/ccg/domains/devops/performance.md` |
|
|
45
|
+
| observability, logging, tracing, metrics, Prometheus, Grafana | `~/.claude/skills/ccg/domains/devops/observability.md` |
|
|
46
|
+
| DevSecOps, CI security, SAST, DAST, supply chain | `~/.claude/skills/ccg/domains/devops/devsecops.md` |
|
|
47
|
+
| cost optimization, cloud cost, FinOps, resource right-sizing | `~/.claude/skills/ccg/domains/devops/cost-optimization.md` |
|
|
48
|
+
|
|
49
|
+
## Development Domain (`domains/development/`)
|
|
50
|
+
|
|
51
|
+
When the user is working with a specific programming language, read the corresponding skill file for language-specific best practices:
|
|
52
|
+
|
|
53
|
+
| Language | Skill File |
|
|
54
|
+
|----------|-----------|
|
|
55
|
+
| Python | `~/.claude/skills/ccg/domains/development/python.md` |
|
|
56
|
+
| Go | `~/.claude/skills/ccg/domains/development/go.md` |
|
|
57
|
+
| Rust | `~/.claude/skills/ccg/domains/development/rust.md` |
|
|
58
|
+
| TypeScript / JavaScript | `~/.claude/skills/ccg/domains/development/typescript.md` |
|
|
59
|
+
| Java / Kotlin | `~/.claude/skills/ccg/domains/development/java.md` |
|
|
60
|
+
| C / C++ | `~/.claude/skills/ccg/domains/development/cpp.md` |
|
|
61
|
+
| Shell / Bash | `~/.claude/skills/ccg/domains/development/shell.md` |
|
|
62
|
+
|
|
63
|
+
## Frontend Design Domain (`domains/frontend-design/`)
|
|
64
|
+
|
|
65
|
+
| Trigger Keywords | Skill File |
|
|
66
|
+
|------------------|-----------|
|
|
67
|
+
| UI aesthetics, visual design, color theory, layout | `~/.claude/skills/ccg/domains/frontend-design/ui-aesthetics.md` |
|
|
68
|
+
| UX principles, usability, user flow, information architecture | `~/.claude/skills/ccg/domains/frontend-design/ux-principles.md` |
|
|
69
|
+
| component patterns, design system, atomic design | `~/.claude/skills/ccg/domains/frontend-design/component-patterns.md` |
|
|
70
|
+
| state management, Redux, Zustand, Pinia, context | `~/.claude/skills/ccg/domains/frontend-design/state-management.md` |
|
|
71
|
+
| frontend engineering, build tool, bundler, SSR, SSG | `~/.claude/skills/ccg/domains/frontend-design/engineering.md` |
|
|
72
|
+
| claymorphism | `~/.claude/skills/ccg/domains/frontend-design/claymorphism/SKILL.md` |
|
|
73
|
+
| glassmorphism | `~/.claude/skills/ccg/domains/frontend-design/glassmorphism/SKILL.md` |
|
|
74
|
+
| liquid glass | `~/.claude/skills/ccg/domains/frontend-design/liquid-glass/SKILL.md` |
|
|
75
|
+
| neubrutalism | `~/.claude/skills/ccg/domains/frontend-design/neubrutalism/SKILL.md` |
|
|
76
|
+
|
|
77
|
+
## Routing Rules
|
|
78
|
+
|
|
79
|
+
1. **Keyword match is fuzzy** — match on intent, not exact string. "How to do SQL injection testing" triggers `pentest.md`.
|
|
80
|
+
2. **Multiple matches** — if a request spans two domains, read both skill files.
|
|
81
|
+
3. **Language detection** — automatically detect the programming language from file extensions or context, then read the corresponding development skill.
|
|
82
|
+
4. **Read once per conversation** — no need to re-read the same skill file within the same conversation.
|
|
83
|
+
5. **Skill files are authoritative** — when a skill file contradicts training data, the skill file wins.
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
# CCG Quality Gates — Auto-trigger Rules
|
|
2
|
+
|
|
3
|
+
When working in a project, automatically invoke the corresponding quality gate skills based on the scenario below. These skills are installed at `~/.claude/skills/ccg/` and can be called directly.
|
|
4
|
+
|
|
5
|
+
**v4.0+ NOTE**: The unified entry point `/ccg:verify --gate=<name>` is preferred over the legacy `verify-*` skill names. Both still work in v4.x for BC. Examples below show the new form first, with the legacy alias in parentheses.
|
|
6
|
+
|
|
7
|
+
## Trigger Rules
|
|
8
|
+
|
|
9
|
+
### New Module Created
|
|
10
|
+
|
|
11
|
+
When a new module/package/directory is created with source code:
|
|
12
|
+
|
|
13
|
+
```
|
|
14
|
+
/gen-docs <module-path> → Generate README.md + DESIGN.md skeleton
|
|
15
|
+
↓ (after development)
|
|
16
|
+
/ccg:verify --gate=module <module-path> → Check structure completeness (legacy: /verify-module)
|
|
17
|
+
↓
|
|
18
|
+
/ccg:verify --gate=security <module-path> → Scan for security vulnerabilities (legacy: /verify-security)
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
### Code Changes > 30 Lines
|
|
22
|
+
|
|
23
|
+
When a single task produces code changes exceeding 30 lines:
|
|
24
|
+
|
|
25
|
+
```
|
|
26
|
+
/ccg:verify --gate=change → Analyze change impact, check doc sync (legacy: /verify-change)
|
|
27
|
+
↓
|
|
28
|
+
/ccg:verify --gate=quality <changed-path> → Check complexity, code smells, naming (legacy: /verify-quality)
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
### Security-Related Changes
|
|
32
|
+
|
|
33
|
+
When changes involve authentication, authorization, encryption, input validation, or secrets management:
|
|
34
|
+
|
|
35
|
+
```
|
|
36
|
+
/ccg:verify --gate=security <changed-path> → Scan for vulnerabilities (legacy: /verify-security)
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
### Refactoring
|
|
40
|
+
|
|
41
|
+
When refactoring existing code:
|
|
42
|
+
|
|
43
|
+
```
|
|
44
|
+
/ccg:verify --gate=change → Ensure docs reflect the refactoring (legacy: /verify-change)
|
|
45
|
+
↓
|
|
46
|
+
/ccg:verify --gate=quality <refactored-path> → Verify quality improved (legacy: /verify-quality)
|
|
47
|
+
↓
|
|
48
|
+
/ccg:verify --gate=security <refactored-path> → No new vulnerabilities introduced (legacy: /verify-security)
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
### Auto-orchestration (recommended for "I just changed a chunk of code")
|
|
52
|
+
|
|
53
|
+
```
|
|
54
|
+
/ccg:verify --gate=all [path] → Auto-pick gates by change type (alias: /ccg:verify-work)
|
|
55
|
+
```
|
|
56
|
+
|
|
57
|
+
## Execution Rules
|
|
58
|
+
|
|
59
|
+
1. **Non-blocking** — Quality gates produce reports but do NOT block delivery unless Critical issues are found
|
|
60
|
+
2. **Chainable** — Run gates in the order specified above; skip if previous gate fails
|
|
61
|
+
3. **Silent on pass** — Only report findings; do not output "all clear" messages for every gate
|
|
62
|
+
4. **Critical = must fix** — Only `Critical` / `High` severity findings require action before delivery
|
|
63
|
+
5. **Idempotent** — Safe to re-run; same input produces same output
|
|
64
|
+
|
|
65
|
+
## Multi-Agent Coordination
|
|
66
|
+
|
|
67
|
+
When a task involves 3+ independent files/modules or 2+ parallel workflows, refer to the multi-agent orchestration skill at `~/.claude/skills/ccg/orchestration/multi-agent/SKILL.md` for:
|
|
68
|
+
|
|
69
|
+
- Agent role assignment (Lead / Scout / Worker / Soldier / Drone)
|
|
70
|
+
- File ownership locking (one writer per file at any time)
|
|
71
|
+
- Task decomposition strategy (by file, by module, or by pipeline)
|