baldart 3.6.2
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/CHANGELOG.md +599 -0
- package/README.md +566 -0
- package/VERSION +1 -0
- package/bin/baldart.js +143 -0
- package/framework/.claude/agents/REGISTRY.md +169 -0
- package/framework/.claude/agents/api-perf-cost-auditor.md +291 -0
- package/framework/.claude/agents/code-reviewer.md +350 -0
- package/framework/.claude/agents/codebase-architect.md +391 -0
- package/framework/.claude/agents/coder.md +291 -0
- package/framework/.claude/agents/deep-human-insight.md +198 -0
- package/framework/.claude/agents/doc-reviewer.md +440 -0
- package/framework/.claude/agents/email-deliverability-architect.md +193 -0
- package/framework/.claude/agents/hybrid-ml-architect.md +285 -0
- package/framework/.claude/agents/hyper-gamification-designer.md +149 -0
- package/framework/.claude/agents/legal-counsel-gdpr.md +179 -0
- package/framework/.claude/agents/marketing-conversion-strategist.md +162 -0
- package/framework/.claude/agents/motion-expert.md +108 -0
- package/framework/.claude/agents/onboarding-architect-lead.md +230 -0
- package/framework/.claude/agents/plan-auditor.md +546 -0
- package/framework/.claude/agents/prd-card-writer.md +372 -0
- package/framework/.claude/agents/prd.md +744 -0
- package/framework/.claude/agents/qa-sentinel.md +305 -0
- package/framework/.claude/agents/remotion-animator-orchestrator.md +218 -0
- package/framework/.claude/agents/security-reviewer.md +276 -0
- package/framework/.claude/agents/senior-researcher.md +175 -0
- package/framework/.claude/agents/seo-analytics-strategist.md +156 -0
- package/framework/.claude/agents/skill-improver.md +61 -0
- package/framework/.claude/agents/ui-expert.md +191 -0
- package/framework/.claude/agents/visual-designer.md +190 -0
- package/framework/.claude/agents/website-orchestrator.md +118 -0
- package/framework/.claude/agents/wiki-curator.md +145 -0
- package/framework/.claude/commands/baldart-push.md +15 -0
- package/framework/.claude/commands/check.md +237 -0
- package/framework/.claude/commands/codexreview.md +203 -0
- package/framework/.claude/commands/design-review.md +11 -0
- package/framework/.claude/commands/issue-review.md +34 -0
- package/framework/.claude/commands/new.md +331 -0
- package/framework/.claude/commands/qa.md +257 -0
- package/framework/.claude/hooks/framework-edit-gate.js +208 -0
- package/framework/.claude/hooks/lint-before-commit.sh.template +66 -0
- package/framework/.claude/settings.local.json.example +32 -0
- package/framework/.claude/skills/api-design-principles/SKILL.md +567 -0
- package/framework/.claude/skills/api-design-principles/assets/api-design-checklist.md +155 -0
- package/framework/.claude/skills/api-design-principles/assets/rest-api-template.py +182 -0
- package/framework/.claude/skills/api-design-principles/references/graphql-schema-design.md +583 -0
- package/framework/.claude/skills/api-design-principles/references/rest-best-practices.md +408 -0
- package/framework/.claude/skills/baldart-push/SKILL.md +222 -0
- package/framework/.claude/skills/bug/SKILL.md +200 -0
- package/framework/.claude/skills/bug/references/logging-patterns.md +174 -0
- package/framework/.claude/skills/capture/SKILL.md +125 -0
- package/framework/.claude/skills/capture/references/synthesis-template.md +42 -0
- package/framework/.claude/skills/context-primer/SKILL.md +189 -0
- package/framework/.claude/skills/copywriting/SKILL.md +273 -0
- package/framework/.claude/skills/copywriting/references/copy-frameworks.md +338 -0
- package/framework/.claude/skills/copywriting/references/natural-transitions.md +252 -0
- package/framework/.claude/skills/doc-writing-for-rag/SKILL.md +119 -0
- package/framework/.claude/skills/doc-writing-for-rag/references/before-after-examples.md +291 -0
- package/framework/.claude/skills/doc-writing-for-rag/references/compact-templates.md +183 -0
- package/framework/.claude/skills/doc-writing-for-rag/references/frontmatter-minimal.md +112 -0
- package/framework/.claude/skills/doc-writing-for-rag/references/line-count-targets.md +110 -0
- package/framework/.claude/skills/doc-writing-for-rag/references/schemas-and-errors.md +129 -0
- package/framework/.claude/skills/find-skills/SKILL.md +133 -0
- package/framework/.claude/skills/frontend-design/LICENSE.txt +177 -0
- package/framework/.claude/skills/frontend-design/SKILL.md +84 -0
- package/framework/.claude/skills/gamification-design/SKILL.md +130 -0
- package/framework/.claude/skills/issue-review/SKILL.md +45 -0
- package/framework/.claude/skills/kie-ai/SKILL.md +262 -0
- package/framework/.claude/skills/kie-ai/references/models-catalog.md +272 -0
- package/framework/.claude/skills/kie-ai/scripts/kie_api.sh +209 -0
- package/framework/.claude/skills/kie-ai/scripts/remove_greenscreen.py +69 -0
- package/framework/.claude/skills/kie-ai/scripts/setup_api_key.sh +77 -0
- package/framework/.claude/skills/motion-design/LICENSE +21 -0
- package/framework/.claude/skills/motion-design/README.md +82 -0
- package/framework/.claude/skills/motion-design/SKILL.md +336 -0
- package/framework/.claude/skills/motion-design/director/choreography.md +93 -0
- package/framework/.claude/skills/motion-design/director/context-adaptation.md +83 -0
- package/framework/.claude/skills/motion-design/director/core-philosophy.md +53 -0
- package/framework/.claude/skills/motion-design/director/decision-framework.md +91 -0
- package/framework/.claude/skills/motion-design/director/disney-principles.md +102 -0
- package/framework/.claude/skills/motion-design/director/emotion-mapping.md +71 -0
- package/framework/.claude/skills/motion-design/director/motion-personality.md +89 -0
- package/framework/.claude/skills/motion-design/director/narrative-structure.md +62 -0
- package/framework/.claude/skills/motion-design/patterns/ambient-continuous.md +81 -0
- package/framework/.claude/skills/motion-design/patterns/entrance-exit.md +82 -0
- package/framework/.claude/skills/motion-design/patterns/multi-element.md +69 -0
- package/framework/.claude/skills/motion-design/patterns/state-feedback.md +96 -0
- package/framework/.claude/skills/motion-design/reference/property-selection.md +95 -0
- package/framework/.claude/skills/motion-design/reference/quality-checklist.md +67 -0
- package/framework/.claude/skills/motion-design/reference/timing-easing-tables.md +106 -0
- package/framework/.claude/skills/motion-design/reference/troubleshooting.md +73 -0
- package/framework/.claude/skills/new/SKILL.md +1687 -0
- package/framework/.claude/skills/playwright-skill/API_REFERENCE.md +652 -0
- package/framework/.claude/skills/playwright-skill/SKILL.md +157 -0
- package/framework/.claude/skills/playwright-skill/package.json +26 -0
- package/framework/.claude/skills/prd/SKILL.md +228 -0
- package/framework/.claude/skills/prd/assets/card-template.yml +232 -0
- package/framework/.claude/skills/prd/assets/epic-template.yml +190 -0
- package/framework/.claude/skills/prd/assets/prd-template.md +230 -0
- package/framework/.claude/skills/prd/assets/state-template.md +78 -0
- package/framework/.claude/skills/prd/references/api-perf-gate.md +152 -0
- package/framework/.claude/skills/prd/references/audit-phase.md +478 -0
- package/framework/.claude/skills/prd/references/backlog-phase.md +145 -0
- package/framework/.claude/skills/prd/references/discovery-phase.md +359 -0
- package/framework/.claude/skills/prd/references/impact-analysis.md +233 -0
- package/framework/.claude/skills/prd/references/prd-add-phase.md +214 -0
- package/framework/.claude/skills/prd/references/prd-writing-phase.md +145 -0
- package/framework/.claude/skills/prd/references/research-phase.md +216 -0
- package/framework/.claude/skills/prd/references/ui-design-phase.md +61 -0
- package/framework/.claude/skills/prd/references/validation-phase.md +72 -0
- package/framework/.claude/skills/prd-add/SKILL.md +222 -0
- package/framework/.claude/skills/prd-add/references/impact-analysis.md +233 -0
- package/framework/.claude/skills/remotion-best-practices/SKILL.md +48 -0
- package/framework/.claude/skills/remotion-best-practices/rules/3d.md +86 -0
- package/framework/.claude/skills/remotion-best-practices/rules/animations.md +29 -0
- package/framework/.claude/skills/remotion-best-practices/rules/assets/charts-bar-chart.tsx +173 -0
- package/framework/.claude/skills/remotion-best-practices/rules/assets/text-animations-typewriter.tsx +100 -0
- package/framework/.claude/skills/remotion-best-practices/rules/assets/text-animations-word-highlight.tsx +108 -0
- package/framework/.claude/skills/remotion-best-practices/rules/assets.md +78 -0
- package/framework/.claude/skills/remotion-best-practices/rules/audio.md +169 -0
- package/framework/.claude/skills/remotion-best-practices/rules/calculate-metadata.md +104 -0
- package/framework/.claude/skills/remotion-best-practices/rules/can-decode.md +75 -0
- package/framework/.claude/skills/remotion-best-practices/rules/charts.md +58 -0
- package/framework/.claude/skills/remotion-best-practices/rules/compositions.md +141 -0
- package/framework/.claude/skills/remotion-best-practices/rules/display-captions.md +184 -0
- package/framework/.claude/skills/remotion-best-practices/rules/extract-frames.md +229 -0
- package/framework/.claude/skills/remotion-best-practices/rules/fonts.md +152 -0
- package/framework/.claude/skills/remotion-best-practices/rules/get-audio-duration.md +58 -0
- package/framework/.claude/skills/remotion-best-practices/rules/get-video-dimensions.md +68 -0
- package/framework/.claude/skills/remotion-best-practices/rules/get-video-duration.md +58 -0
- package/framework/.claude/skills/remotion-best-practices/rules/gifs.md +141 -0
- package/framework/.claude/skills/remotion-best-practices/rules/images.md +130 -0
- package/framework/.claude/skills/remotion-best-practices/rules/import-srt-captions.md +69 -0
- package/framework/.claude/skills/remotion-best-practices/rules/light-leaks.md +73 -0
- package/framework/.claude/skills/remotion-best-practices/rules/lottie.md +67 -0
- package/framework/.claude/skills/remotion-best-practices/rules/maps.md +401 -0
- package/framework/.claude/skills/remotion-best-practices/rules/measuring-dom-nodes.md +34 -0
- package/framework/.claude/skills/remotion-best-practices/rules/measuring-text.md +143 -0
- package/framework/.claude/skills/remotion-best-practices/rules/parameters.md +98 -0
- package/framework/.claude/skills/remotion-best-practices/rules/sequencing.md +118 -0
- package/framework/.claude/skills/remotion-best-practices/rules/subtitles.md +36 -0
- package/framework/.claude/skills/remotion-best-practices/rules/tailwind.md +11 -0
- package/framework/.claude/skills/remotion-best-practices/rules/text-animations.md +20 -0
- package/framework/.claude/skills/remotion-best-practices/rules/timing.md +179 -0
- package/framework/.claude/skills/remotion-best-practices/rules/transcribe-captions.md +70 -0
- package/framework/.claude/skills/remotion-best-practices/rules/transitions.md +197 -0
- package/framework/.claude/skills/remotion-best-practices/rules/transparent-videos.md +106 -0
- package/framework/.claude/skills/remotion-best-practices/rules/trimming.md +52 -0
- package/framework/.claude/skills/remotion-best-practices/rules/videos.md +171 -0
- package/framework/.claude/skills/seo-audit/SKILL.md +394 -0
- package/framework/.claude/skills/seo-audit/references/aeo-geo-patterns.md +279 -0
- package/framework/.claude/skills/seo-audit/references/ai-writing-detection.md +190 -0
- package/framework/.claude/skills/simplify/SKILL.md +137 -0
- package/framework/.claude/skills/skill-creator/LICENSE.txt +202 -0
- package/framework/.claude/skills/skill-creator/SKILL.md +356 -0
- package/framework/.claude/skills/skill-creator/references/output-patterns.md +82 -0
- package/framework/.claude/skills/skill-creator/references/workflows.md +28 -0
- package/framework/.claude/skills/skill-creator/scripts/init_skill.py +303 -0
- package/framework/.claude/skills/skill-creator/scripts/package_skill.py +110 -0
- package/framework/.claude/skills/skill-creator/scripts/quick_validate.py +95 -0
- package/framework/.claude/skills/ui-design/SKILL.md +199 -0
- package/framework/.claude/skills/ui-design/references/component-discovery.md +54 -0
- package/framework/.claude/skills/ui-design/references/evaluation.md +171 -0
- package/framework/.claude/skills/ui-design/references/generation.md +109 -0
- package/framework/.claude/skills/ui-design/references/inventory.md +59 -0
- package/framework/.claude/skills/webapp-testing/LICENSE.txt +202 -0
- package/framework/.claude/skills/webapp-testing/SKILL.md +123 -0
- package/framework/.claude/skills/webapp-testing/examples/console_logging.py +35 -0
- package/framework/.claude/skills/webapp-testing/examples/element_discovery.py +40 -0
- package/framework/.claude/skills/webapp-testing/examples/static_html_automation.py +33 -0
- package/framework/.claude/skills/webapp-testing/scripts/with_server.py +106 -0
- package/framework/.claude/skills/worktree-manager/SKILL.md +680 -0
- package/framework/AGENTS.md +240 -0
- package/framework/agents/api-contracts.md +137 -0
- package/framework/agents/architecture.md +145 -0
- package/framework/agents/coding-standards.md +148 -0
- package/framework/agents/data-model.md +110 -0
- package/framework/agents/deployment-protocol.md +232 -0
- package/framework/agents/design-review.md +172 -0
- package/framework/agents/env-reference.md +171 -0
- package/framework/agents/github-issue-subagent.md +252 -0
- package/framework/agents/index.md +261 -0
- package/framework/agents/llm-wiki-methodology.md +216 -0
- package/framework/agents/maintenance-protocol.md +305 -0
- package/framework/agents/observability.md +162 -0
- package/framework/agents/performance.md +155 -0
- package/framework/agents/project-context.md +145 -0
- package/framework/agents/runbook.md +208 -0
- package/framework/agents/security.md +168 -0
- package/framework/agents/skills-mapping.md +286 -0
- package/framework/agents/testing.md +111 -0
- package/framework/agents/workflows.md +215 -0
- package/framework/docs/PROJECT-CONFIGURATION.md +336 -0
- package/framework/docs/references/brand-guidelines.md +170 -0
- package/framework/docs/references/ui-guidelines.template.md +182 -0
- package/framework/routines/code-review.routine.yml +46 -0
- package/framework/routines/doc-review.routine.yml +45 -0
- package/framework/routines/ds-drift.routine.yml +52 -0
- package/framework/routines/full-sweep.routine.yml +51 -0
- package/framework/routines/index.yml +70 -0
- package/framework/routines/skill-improve.routine.yml +50 -0
- package/framework/routines/wiki-review.routine.yml +45 -0
- package/framework/templates/baldart.config.template.yml +113 -0
- package/framework/templates/breaking-change-checklist.md +484 -0
- package/framework/templates/feature-card.template.yml +125 -0
- package/framework/templates/overlays/README.md +44 -0
- package/framework/templates/overlays/copywriting.fidelity-example.md +62 -0
- package/framework/templates/overlays/ui-design.fidelity-example.md +75 -0
- package/framework/templates/skill-project-context.snippet.md +19 -0
- package/framework/templates/spec.template.md +208 -0
- package/package.json +51 -0
- package/src/commands/add.js +229 -0
- package/src/commands/configure.js +385 -0
- package/src/commands/doctor.js +486 -0
- package/src/commands/migrate.js +185 -0
- package/src/commands/push.js +0 -0
- package/src/commands/routines.js +269 -0
- package/src/commands/status.js +130 -0
- package/src/commands/update.js +419 -0
- package/src/commands/version.js +88 -0
- package/src/utils/contamination.js +400 -0
- package/src/utils/git.js +181 -0
- package/src/utils/hooks.js +152 -0
- package/src/utils/routine-adapters/claude-code-cloud.js +78 -0
- package/src/utils/routine-adapters/cron.js +138 -0
- package/src/utils/routine-adapters/github-actions.js +141 -0
- package/src/utils/routine-adapters/index.js +21 -0
- package/src/utils/routines.js +166 -0
- package/src/utils/state.js +143 -0
- package/src/utils/symlinks.js +425 -0
- package/src/utils/ui.js +133 -0
|
@@ -0,0 +1,286 @@
|
|
|
1
|
+
# Skills Mapping
|
|
2
|
+
|
|
3
|
+
## Purpose
|
|
4
|
+
|
|
5
|
+
Map Claude Code skills to project domains and provide guidance on when to use each skill.
|
|
6
|
+
|
|
7
|
+
## Scope
|
|
8
|
+
|
|
9
|
+
**In**: Skill selection guidance, domain mapping, best practices.
|
|
10
|
+
**Out**: Skill implementation details (see skill documentation).
|
|
11
|
+
|
|
12
|
+
## Do
|
|
13
|
+
|
|
14
|
+
- Use skills when appropriate
|
|
15
|
+
- Follow skill-specific guidelines
|
|
16
|
+
- Invoke skills before starting work when applicable
|
|
17
|
+
|
|
18
|
+
## Do Not
|
|
19
|
+
|
|
20
|
+
- Skip skills for tasks they're designed for
|
|
21
|
+
- Use wrong skill for the task
|
|
22
|
+
- Rationalize not using applicable skills
|
|
23
|
+
|
|
24
|
+
## Core Development Skills
|
|
25
|
+
|
|
26
|
+
### brainstorming
|
|
27
|
+
|
|
28
|
+
**When to use**:
|
|
29
|
+
|
|
30
|
+
- Starting new features
|
|
31
|
+
- Unclear requirements
|
|
32
|
+
- Multiple possible approaches
|
|
33
|
+
- Design decisions needed
|
|
34
|
+
|
|
35
|
+
**Triggers**:
|
|
36
|
+
|
|
37
|
+
- "Add [feature]"
|
|
38
|
+
- "Build [component]"
|
|
39
|
+
- "Implement [functionality]"
|
|
40
|
+
- "How should I..."
|
|
41
|
+
|
|
42
|
+
### writing-plans
|
|
43
|
+
|
|
44
|
+
**When to use**:
|
|
45
|
+
|
|
46
|
+
- After brainstorming
|
|
47
|
+
- Multi-step implementation needed
|
|
48
|
+
- Complex feature development
|
|
49
|
+
|
|
50
|
+
**Triggers**:
|
|
51
|
+
|
|
52
|
+
- After design approval
|
|
53
|
+
- Before starting implementation
|
|
54
|
+
- For documented requirements
|
|
55
|
+
|
|
56
|
+
### test-driven-development
|
|
57
|
+
|
|
58
|
+
**When to use**:
|
|
59
|
+
|
|
60
|
+
- Implementing new features
|
|
61
|
+
- Fixing bugs
|
|
62
|
+
- Adding testable functionality
|
|
63
|
+
|
|
64
|
+
**Triggers**:
|
|
65
|
+
|
|
66
|
+
- New feature implementation
|
|
67
|
+
- Bug fix with test case
|
|
68
|
+
- Refactoring with tests
|
|
69
|
+
|
|
70
|
+
### systematic-debugging
|
|
71
|
+
|
|
72
|
+
**When to use**:
|
|
73
|
+
|
|
74
|
+
- Bug investigation
|
|
75
|
+
- Test failures
|
|
76
|
+
- Unexpected behavior
|
|
77
|
+
|
|
78
|
+
**Triggers**:
|
|
79
|
+
|
|
80
|
+
- "Fix [bug]"
|
|
81
|
+
- "Why is [X] not working?"
|
|
82
|
+
- Test failure analysis
|
|
83
|
+
|
|
84
|
+
## Code Quality Skills
|
|
85
|
+
|
|
86
|
+
### code-review
|
|
87
|
+
|
|
88
|
+
**When to use**:
|
|
89
|
+
|
|
90
|
+
- Before merging
|
|
91
|
+
- After major implementation
|
|
92
|
+
- PR review process
|
|
93
|
+
|
|
94
|
+
**Triggers**:
|
|
95
|
+
|
|
96
|
+
- Feature completion
|
|
97
|
+
- Before deployment
|
|
98
|
+
- Pull request review
|
|
99
|
+
|
|
100
|
+
### verification-before-completion
|
|
101
|
+
|
|
102
|
+
**When to use**:
|
|
103
|
+
|
|
104
|
+
- Claiming work is complete
|
|
105
|
+
- Before marking card done
|
|
106
|
+
- Before creating PR
|
|
107
|
+
|
|
108
|
+
**Triggers**:
|
|
109
|
+
|
|
110
|
+
- "Done"
|
|
111
|
+
- "Fixed"
|
|
112
|
+
- "Tests passing"
|
|
113
|
+
|
|
114
|
+
## UI/UX Skills
|
|
115
|
+
|
|
116
|
+
### frontend-design
|
|
117
|
+
|
|
118
|
+
**When to use**:
|
|
119
|
+
|
|
120
|
+
- Building UI components
|
|
121
|
+
- Creating pages
|
|
122
|
+
- Styling work
|
|
123
|
+
|
|
124
|
+
**Triggers**:
|
|
125
|
+
|
|
126
|
+
- "Create [page]"
|
|
127
|
+
- "Build [component]"
|
|
128
|
+
- "Design [interface]"
|
|
129
|
+
|
|
130
|
+
### ui-ux-pro-max
|
|
131
|
+
|
|
132
|
+
**When to use**:
|
|
133
|
+
|
|
134
|
+
- Professional UI/UX design
|
|
135
|
+
- Design system work
|
|
136
|
+
- Polished interfaces
|
|
137
|
+
|
|
138
|
+
**Triggers**:
|
|
139
|
+
|
|
140
|
+
- Design-heavy features
|
|
141
|
+
- Visual refinement needed
|
|
142
|
+
- Design system development
|
|
143
|
+
|
|
144
|
+
## Testing Skills
|
|
145
|
+
|
|
146
|
+
### playwright-skill
|
|
147
|
+
|
|
148
|
+
**When to use**:
|
|
149
|
+
|
|
150
|
+
- Browser automation
|
|
151
|
+
- E2E testing
|
|
152
|
+
- UI testing
|
|
153
|
+
|
|
154
|
+
**Triggers**:
|
|
155
|
+
|
|
156
|
+
- "Test [page]"
|
|
157
|
+
- "Automate [flow]"
|
|
158
|
+
- Visual regression testing
|
|
159
|
+
|
|
160
|
+
### webapp-testing
|
|
161
|
+
|
|
162
|
+
**When to use**:
|
|
163
|
+
|
|
164
|
+
- Full webapp testing
|
|
165
|
+
- Server lifecycle management
|
|
166
|
+
- Comprehensive test orchestration
|
|
167
|
+
|
|
168
|
+
**Triggers**:
|
|
169
|
+
|
|
170
|
+
- Full application testing
|
|
171
|
+
- Integration testing
|
|
172
|
+
- Server management needed
|
|
173
|
+
|
|
174
|
+
## Documentation Skills
|
|
175
|
+
|
|
176
|
+
### writing-clearly-and-concisely
|
|
177
|
+
|
|
178
|
+
**When to use**:
|
|
179
|
+
|
|
180
|
+
- Writing documentation
|
|
181
|
+
- Creating specs
|
|
182
|
+
- User-facing content
|
|
183
|
+
|
|
184
|
+
**Triggers**:
|
|
185
|
+
|
|
186
|
+
- Documentation updates
|
|
187
|
+
- README writing
|
|
188
|
+
- Technical writing
|
|
189
|
+
|
|
190
|
+
## Project-Specific Skills
|
|
191
|
+
|
|
192
|
+
Add your project-specific skills here:
|
|
193
|
+
|
|
194
|
+
### [Your Skill 1]
|
|
195
|
+
|
|
196
|
+
**When to use**: [Description]
|
|
197
|
+
**Triggers**: [When to invoke]
|
|
198
|
+
|
|
199
|
+
### [Your Skill 2]
|
|
200
|
+
|
|
201
|
+
**When to use**: [Description]
|
|
202
|
+
**Triggers**: [When to invoke]
|
|
203
|
+
|
|
204
|
+
## Skill Selection Decision Tree
|
|
205
|
+
|
|
206
|
+
```
|
|
207
|
+
START: User gives a task
|
|
208
|
+
|
|
|
209
|
+
v
|
|
210
|
+
Is it a new feature/design task?
|
|
211
|
+
|-- YES --> Use brainstorming skill first
|
|
212
|
+
| Then writing-plans
|
|
213
|
+
| Then implementation skills
|
|
214
|
+
|
|
|
215
|
+
v
|
|
216
|
+
Is it a bug fix?
|
|
217
|
+
|-- YES --> Use systematic-debugging
|
|
218
|
+
| Then test-driven-development
|
|
219
|
+
| Then verification-before-completion
|
|
220
|
+
|
|
|
221
|
+
v
|
|
222
|
+
Is it UI/visual work?
|
|
223
|
+
|-- YES --> Use frontend-design or ui-ux-pro-max
|
|
224
|
+
|
|
|
225
|
+
v
|
|
226
|
+
Is it browser testing?
|
|
227
|
+
|-- YES --> Use playwright-skill or webapp-testing
|
|
228
|
+
|
|
|
229
|
+
v
|
|
230
|
+
Is work complete?
|
|
231
|
+
|-- YES --> Use verification-before-completion
|
|
232
|
+
| Then code-review
|
|
233
|
+
|
|
|
234
|
+
v
|
|
235
|
+
Proceed with appropriate skill
|
|
236
|
+
```
|
|
237
|
+
|
|
238
|
+
## Skill Chaining
|
|
239
|
+
|
|
240
|
+
Common skill chains:
|
|
241
|
+
|
|
242
|
+
1. **New Feature**:
|
|
243
|
+
- brainstorming → writing-plans → test-driven-development → verification-before-completion → code-review
|
|
244
|
+
|
|
245
|
+
2. **Bug Fix**:
|
|
246
|
+
- systematic-debugging → test-driven-development → verification-before-completion
|
|
247
|
+
|
|
248
|
+
3. **UI Feature**:
|
|
249
|
+
- brainstorming → frontend-design → test-driven-development → playwright-skill → code-review
|
|
250
|
+
|
|
251
|
+
4. **Refactoring**:
|
|
252
|
+
- code-review (identify issues) → test-driven-development → verification-before-completion
|
|
253
|
+
|
|
254
|
+
## Anti-Patterns
|
|
255
|
+
|
|
256
|
+
**Don't**:
|
|
257
|
+
|
|
258
|
+
- Skip brainstorming for "simple" features
|
|
259
|
+
- Start coding before planning
|
|
260
|
+
- Skip TDD because "I know how to fix it"
|
|
261
|
+
- Skip verification before claiming completion
|
|
262
|
+
- Use wrong skill for the task
|
|
263
|
+
|
|
264
|
+
**Do**:
|
|
265
|
+
|
|
266
|
+
- Follow skill workflows
|
|
267
|
+
- Chain skills appropriately
|
|
268
|
+
- Use skills even when they seem "overkill"
|
|
269
|
+
- Trust the skill process
|
|
270
|
+
|
|
271
|
+
## Skill Configuration
|
|
272
|
+
|
|
273
|
+
Some skills may require configuration:
|
|
274
|
+
|
|
275
|
+
- [Skill-specific config location]
|
|
276
|
+
- [Environment variables needed]
|
|
277
|
+
- [Setup requirements]
|
|
278
|
+
|
|
279
|
+
## Custom Skills
|
|
280
|
+
|
|
281
|
+
Document how to create custom skills:
|
|
282
|
+
|
|
283
|
+
1. Create skill file in `.claude/skills/`
|
|
284
|
+
2. Follow skill template format
|
|
285
|
+
3. Document when to use
|
|
286
|
+
4. Add to this mapping file
|
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
# Testing
|
|
2
|
+
|
|
3
|
+
## Purpose
|
|
4
|
+
|
|
5
|
+
Define required manual testing and QA issue workflow, including browser automation.
|
|
6
|
+
|
|
7
|
+
## Scope
|
|
8
|
+
|
|
9
|
+
**In**: Manual testing steps, QA issue creation and handling, browser automation.
|
|
10
|
+
**Out**: Performance testing strategy (see agents/performance.md).
|
|
11
|
+
|
|
12
|
+
## Do
|
|
13
|
+
|
|
14
|
+
- Run project build command before marking a card done.
|
|
15
|
+
- Manually test changed flows in development environment.
|
|
16
|
+
- Record results in the backlog card.
|
|
17
|
+
|
|
18
|
+
## Do Not
|
|
19
|
+
|
|
20
|
+
- Close QA issues after a fix (leave open with `vibe review`).
|
|
21
|
+
|
|
22
|
+
## Manual Testing Protocol (MVP)
|
|
23
|
+
|
|
24
|
+
1. Run test suite when tests exist.
|
|
25
|
+
2. Run build command (must pass).
|
|
26
|
+
3. Run development server and manually test changed flows.
|
|
27
|
+
4. Record results in card notes.
|
|
28
|
+
|
|
29
|
+
## Manual Test Checklist
|
|
30
|
+
|
|
31
|
+
- Happy path works end-to-end
|
|
32
|
+
- Error cases handled gracefully
|
|
33
|
+
- Loading states shown
|
|
34
|
+
- Mobile viewport tested (for UI changes)
|
|
35
|
+
- Authentication/authorization works
|
|
36
|
+
- No console errors in browser/logs
|
|
37
|
+
|
|
38
|
+
## Browser Automation Testing (if applicable)
|
|
39
|
+
|
|
40
|
+
For UI/frontend changes, consider using browser automation tools (e.g., Playwright, Cypress, Selenium):
|
|
41
|
+
|
|
42
|
+
### When to Use Browser Automation
|
|
43
|
+
|
|
44
|
+
- Testing user flows (login, checkout, form submissions)
|
|
45
|
+
- Validating responsive design across viewports
|
|
46
|
+
- Capturing screenshots for visual regression
|
|
47
|
+
- Checking browser console for errors
|
|
48
|
+
- Verifying loading states and animations
|
|
49
|
+
- Testing accessibility (tab navigation, focus states)
|
|
50
|
+
|
|
51
|
+
### Browser Test Examples
|
|
52
|
+
|
|
53
|
+
**Test a page across viewports:**
|
|
54
|
+
|
|
55
|
+
```
|
|
56
|
+
Test the dashboard page at desktop (1920x1080),
|
|
57
|
+
tablet (768x1024), and mobile (375x667) viewports
|
|
58
|
+
```
|
|
59
|
+
|
|
60
|
+
**Test authentication flow:**
|
|
61
|
+
|
|
62
|
+
```
|
|
63
|
+
Test the login flow: fill credentials, submit,
|
|
64
|
+
verify redirect to dashboard
|
|
65
|
+
```
|
|
66
|
+
|
|
67
|
+
**Capture screenshots:**
|
|
68
|
+
|
|
69
|
+
```
|
|
70
|
+
Capture full-page screenshots of the marketing page
|
|
71
|
+
at desktop and mobile sizes
|
|
72
|
+
```
|
|
73
|
+
|
|
74
|
+
## QA Issue Methodology (Manual)
|
|
75
|
+
|
|
76
|
+
- One GitHub issue per test case (atomic scope).
|
|
77
|
+
- Labels: `qa` + one macro area (customize for your project - e.g., `area:frontend`, `area:api`, `area:admin`).
|
|
78
|
+
- When a GitHub issue is fixed: add a fix summary comment, apply `vibe review`, leave it open.
|
|
79
|
+
- If a test passes: leave the issue open with a short note.
|
|
80
|
+
- If a test fails: keep it open with details and evidence.
|
|
81
|
+
- Open QA issues are the source of truth for unresolved bugs.
|
|
82
|
+
|
|
83
|
+
### QA Evidence
|
|
84
|
+
|
|
85
|
+
When creating or updating QA issues:
|
|
86
|
+
|
|
87
|
+
- Include reproduction steps
|
|
88
|
+
- Attach screenshots/videos if visual bugs
|
|
89
|
+
- Note environment details (browser, viewport, OS)
|
|
90
|
+
- Include error logs/console output if relevant
|
|
91
|
+
- Add test scripts that reproduce the issue (if using automation)
|
|
92
|
+
|
|
93
|
+
## Test Coverage (if applicable)
|
|
94
|
+
|
|
95
|
+
- [Define coverage requirements - e.g., minimum 80% coverage]
|
|
96
|
+
- [Critical paths requiring 100% coverage]
|
|
97
|
+
- [Areas exempt from coverage requirements]
|
|
98
|
+
|
|
99
|
+
## Test Organization
|
|
100
|
+
|
|
101
|
+
- [Test file location conventions]
|
|
102
|
+
- [Test naming conventions]
|
|
103
|
+
- [Integration vs unit test guidelines]
|
|
104
|
+
- [End-to-end test guidelines]
|
|
105
|
+
|
|
106
|
+
## Continuous Integration
|
|
107
|
+
|
|
108
|
+
- [CI test requirements]
|
|
109
|
+
- [When tests run (pre-commit, pre-push, PR)]
|
|
110
|
+
- [Test failure handling policy]
|
|
111
|
+
- [Flaky test management]
|
|
@@ -0,0 +1,215 @@
|
|
|
1
|
+
# Workflows
|
|
2
|
+
|
|
3
|
+
## Purpose
|
|
4
|
+
|
|
5
|
+
Define how agents plan, track, and complete work safely.
|
|
6
|
+
|
|
7
|
+
## Scope
|
|
8
|
+
|
|
9
|
+
**In**: Backlog workflow, Active Code Context, handoffs, conflict resolution, commits.
|
|
10
|
+
**Out**: Testing specifics (see agents/testing.md).
|
|
11
|
+
|
|
12
|
+
## Do
|
|
13
|
+
|
|
14
|
+
- Work from a single backlog card at a time.
|
|
15
|
+
- Keep Active Code Context updated before and after changes.
|
|
16
|
+
|
|
17
|
+
## Do Not
|
|
18
|
+
|
|
19
|
+
- Start work without a card or without setting context.
|
|
20
|
+
|
|
21
|
+
## Violations (Invalid Work)
|
|
22
|
+
|
|
23
|
+
- Code change without doc update is invalid.
|
|
24
|
+
- Doc update without code implementation is incomplete.
|
|
25
|
+
- Work without a backlog card is unauthorized.
|
|
26
|
+
|
|
27
|
+
## Backlog Workflow
|
|
28
|
+
|
|
29
|
+
1. List cards in `${paths.backlog_dir}/*.yml`.
|
|
30
|
+
2. Select one card with status `TODO` or `READY`.
|
|
31
|
+
3. Set card to `IN_PROGRESS`, assign yourself, and set `execution_mode` (`local` or `cloud`).
|
|
32
|
+
4. Claim ownership for touched areas via `claimed_paths` in the card.
|
|
33
|
+
5. Update `${paths.references_dir}/project-status.md` -> Active Code Context.
|
|
34
|
+
|
|
35
|
+
## During Work
|
|
36
|
+
|
|
37
|
+
- Update card tasks and notes as you go.
|
|
38
|
+
- Record unknowns and assumptions in the card.
|
|
39
|
+
- Do not touch files claimed by another in-progress card.
|
|
40
|
+
|
|
41
|
+
## Finish Work
|
|
42
|
+
|
|
43
|
+
1. Verify Definition of Done in the card.
|
|
44
|
+
2. Set status to `DONE` (or `BLOCKED`).
|
|
45
|
+
3. Update `${paths.references_dir}/project-status.md` (Current Status, Known Issues, Active Code Context).
|
|
46
|
+
4. Add ADRs for architectural decisions.
|
|
47
|
+
|
|
48
|
+
## Status Tracking
|
|
49
|
+
|
|
50
|
+
- Valid statuses: `TODO`, `READY`, `IN_PROGRESS`, `BLOCKED`, `DONE`.
|
|
51
|
+
- `IN_PROGRESS` requires Active Code Context set.
|
|
52
|
+
- `BLOCKED` requires blocker documented in card and status file.
|
|
53
|
+
|
|
54
|
+
## Deploys and Publications
|
|
55
|
+
|
|
56
|
+
- Production deploys and publications must follow `agents/deployment-protocol.md` if it exists.
|
|
57
|
+
- Treat deploy work as backlog-driven work with full testing gates and documented rollback intent.
|
|
58
|
+
|
|
59
|
+
## Handoff Protocol
|
|
60
|
+
|
|
61
|
+
Use Active Code Context format from `${paths.references_dir}/project-status.md` and set Status to `HANDOFF_READY`.
|
|
62
|
+
Record `handoff.from`, `handoff.to`, `handoff.summary`, and `handoff.next_steps` in the card.
|
|
63
|
+
The receiver must acknowledge, keep claims aligned, and set `IN_PROGRESS`.
|
|
64
|
+
|
|
65
|
+
## Unknowns and Assumptions
|
|
66
|
+
|
|
67
|
+
- Missing info: mark UNKNOWN in the backlog card and ask the user.
|
|
68
|
+
- Assumptions: mark ASSUMED with rationale, and add an ADR if permanent.
|
|
69
|
+
|
|
70
|
+
## Forbidden Assumptions
|
|
71
|
+
|
|
72
|
+
- Switching external providers without ADR.
|
|
73
|
+
- Switching Auth providers without ADR.
|
|
74
|
+
- Changing database structure without updating data model reference.
|
|
75
|
+
- Adding external dependencies without documentation.
|
|
76
|
+
- Changing API contracts without updating API reference.
|
|
77
|
+
|
|
78
|
+
## Conflict Resolution
|
|
79
|
+
|
|
80
|
+
1. Stop if docs conflict with code.
|
|
81
|
+
2. Determine which is newer and update the other.
|
|
82
|
+
3. Record the resolution in an ADR.
|
|
83
|
+
|
|
84
|
+
## Commit Hygiene
|
|
85
|
+
|
|
86
|
+
- Commit format: `[FEAT-XXX] Brief description` or adapt to your project convention.
|
|
87
|
+
- Keep commits small and traceable.
|
|
88
|
+
- Do not commit without updated docs.
|
|
89
|
+
|
|
90
|
+
Example:
|
|
91
|
+
```
|
|
92
|
+
[FEAT-001] Add user management endpoints
|
|
93
|
+
|
|
94
|
+
- Created /api/users endpoints (GET, POST, PATCH, DELETE)
|
|
95
|
+
- Updated ${paths.references_dir}/data-model.md
|
|
96
|
+
- Added users to seed script
|
|
97
|
+
```
|
|
98
|
+
|
|
99
|
+
## Pre-commit Hooks (Automated Quality Gates)
|
|
100
|
+
|
|
101
|
+
**What Runs**: Every commit should trigger automated checks via git hooks (e.g., Husky + lint-staged):
|
|
102
|
+
|
|
103
|
+
1. **Linting**: Auto-fix + zero-warnings on staged files
|
|
104
|
+
2. **Type Checking**: Type-check entire project (if applicable)
|
|
105
|
+
3. **Format Checking**: Auto-fix formatting on staged files
|
|
106
|
+
4. **Fast Build Check**: Quick compilation/type check without full build
|
|
107
|
+
|
|
108
|
+
**Timing**: Target <10 seconds (optimized for speed)
|
|
109
|
+
|
|
110
|
+
**Enforcement**: BLOCKING - Commit fails if any check fails
|
|
111
|
+
|
|
112
|
+
### When Checks Fail
|
|
113
|
+
|
|
114
|
+
1. **Review the error output** - Pre-commit hooks show exactly what failed
|
|
115
|
+
2. **Fix the issue** - Most common:
|
|
116
|
+
- Linting errors: Run your lint command to see full report
|
|
117
|
+
- Type errors: Check file and line number in error output
|
|
118
|
+
- Format errors: Run your format command
|
|
119
|
+
- Build errors: Run your build command for detailed trace
|
|
120
|
+
3. **Retry commit** - Hooks run again automatically
|
|
121
|
+
|
|
122
|
+
### Emergency Bypass (Use Sparingly)
|
|
123
|
+
|
|
124
|
+
**When to use**:
|
|
125
|
+
|
|
126
|
+
- Emergency hotfix needed immediately
|
|
127
|
+
- External blocker (CI down, registry issues)
|
|
128
|
+
- Working on draft/WIP commit that will be amended
|
|
129
|
+
|
|
130
|
+
**How to bypass**:
|
|
131
|
+
|
|
132
|
+
```bash
|
|
133
|
+
git commit --no-verify -m "[EMERGENCY] Brief reason for bypass"
|
|
134
|
+
```
|
|
135
|
+
|
|
136
|
+
**Rules**:
|
|
137
|
+
|
|
138
|
+
- Document reason in commit message
|
|
139
|
+
- Fix issues in next commit
|
|
140
|
+
- Add note to backlog card explaining bypass
|
|
141
|
+
|
|
142
|
+
**Example valid bypass**:
|
|
143
|
+
|
|
144
|
+
```bash
|
|
145
|
+
git commit --no-verify -m "[EMERGENCY] Hotfix production outage - will fix linting in next commit"
|
|
146
|
+
```
|
|
147
|
+
|
|
148
|
+
**Example invalid bypass**:
|
|
149
|
+
|
|
150
|
+
```bash
|
|
151
|
+
git commit --no-verify -m "wip" # ❌ No reason, not emergency
|
|
152
|
+
```
|
|
153
|
+
|
|
154
|
+
### Troubleshooting
|
|
155
|
+
|
|
156
|
+
**Issue**: Hook takes >10 seconds
|
|
157
|
+
- **Cause**: Large number of staged files or slow type checking
|
|
158
|
+
- **Fix**: Commit smaller batches, or optimize type checking configuration
|
|
159
|
+
|
|
160
|
+
**Issue**: Hook fails on files that look correct
|
|
161
|
+
- **Cause**: Linter/formatter rules are strict
|
|
162
|
+
- **Fix**: Follow linter suggestions or configure rules if too strict
|
|
163
|
+
|
|
164
|
+
**Issue**: Type error in file I didn't touch
|
|
165
|
+
- **Cause**: Type checking checks whole project (type dependencies)
|
|
166
|
+
- **Fix**: Fix the error or bypass if unrelated to your work (then fix separately)
|
|
167
|
+
|
|
168
|
+
## Repo State and Branch Hygiene (MUST)
|
|
169
|
+
|
|
170
|
+
Follow this protocol to prevent local/remote drift.
|
|
171
|
+
|
|
172
|
+
## Pre-Work Sync
|
|
173
|
+
|
|
174
|
+
1. Run `git fetch origin`.
|
|
175
|
+
2. Run `git status -sb` and verify a clean working tree.
|
|
176
|
+
3. Confirm you are on the intended branch.
|
|
177
|
+
4. Sync from `origin/main` with fast-forward policy (`git pull --ff-only`) when required by your mode.
|
|
178
|
+
|
|
179
|
+
## Destructive Operations (Owner Approval Required)
|
|
180
|
+
|
|
181
|
+
- Force push, reset, or branch deletion requires explicit owner approval and a backlog note.
|
|
182
|
+
- Before destructive changes, create a safety tag:
|
|
183
|
+
- `git tag backup/<YYYYMMDD>-<reason>` and note it in the card.
|
|
184
|
+
|
|
185
|
+
## Branch Policy (Mode-Based)
|
|
186
|
+
|
|
187
|
+
- `local` mode: may work on `main` only with owner approval.
|
|
188
|
+
- `cloud` mode: always create branch-per-card from `main` (`codex/<CARD-ID>-<slug>` or `claude/<CARD-ID>-<slug>`).
|
|
189
|
+
- Cloud agents must never commit directly to `main`; PR review + green CI are required before merge.
|
|
190
|
+
- Delete merged feature branches only when owner instructs.
|
|
191
|
+
|
|
192
|
+
## Post-Work Sync
|
|
193
|
+
|
|
194
|
+
1. Ensure `git status -sb` is clean.
|
|
195
|
+
2. Push your working branch and open/update PR with test evidence.
|
|
196
|
+
3. Merge to `main` is owner-controlled after approval and CI success.
|
|
197
|
+
4. If instructed, prune remote branches.
|
|
198
|
+
|
|
199
|
+
## Testing Gates (Mode-Based)
|
|
200
|
+
|
|
201
|
+
- Required for all modes: run tests (if exist), run build, pre-commit hooks, and passing CI checks.
|
|
202
|
+
- `local` mode: manual validation is mandatory and must be logged in card notes.
|
|
203
|
+
- `cloud` mode: manual validation is advisory unless explicitly requested; prefer CI and automated checks.
|
|
204
|
+
|
|
205
|
+
## Provider Changes (ADR Required)
|
|
206
|
+
|
|
207
|
+
- External provider changes.
|
|
208
|
+
- Auth provider changes.
|
|
209
|
+
- Database changes.
|
|
210
|
+
- External API or deployment target changes.
|
|
211
|
+
|
|
212
|
+
## Emergency Protocols
|
|
213
|
+
|
|
214
|
+
- If blocked: set card to `BLOCKED`, record blocker, update status file, ask user.
|
|
215
|
+
- If context lost: read AGENTS + project-status + your card, then ask for priority.
|