codymaster 4.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/CHANGELOG.md +50 -0
- package/README.md +285 -0
- package/adapters/antigravity.js +15 -0
- package/adapters/claude-code.js +17 -0
- package/adapters/cursor.js +16 -0
- package/commands/bootstrap.md +49 -0
- package/commands/build.md +48 -0
- package/commands/content.md +48 -0
- package/commands/continuity.md +60 -0
- package/commands/debug.md +51 -0
- package/commands/demo.md +96 -0
- package/commands/deploy.md +51 -0
- package/commands/plan.md +42 -0
- package/commands/review.md +55 -0
- package/commands/track.md +46 -0
- package/commands/ux.md +46 -0
- package/dist/agent-dispatch.js +161 -0
- package/dist/chains/builtin.js +85 -0
- package/dist/continuity.js +385 -0
- package/dist/dashboard.js +926 -0
- package/dist/data.js +122 -0
- package/dist/index.js +2434 -0
- package/dist/judge.js +252 -0
- package/dist/parallel-dispatch.js +359 -0
- package/dist/parallel-quality.js +172 -0
- package/dist/skill-chain.js +258 -0
- package/install.sh +513 -0
- package/package.json +79 -0
- package/skills/.content-factory-state.json +132 -0
- package/skills/.git 2/logs/refs/heads/main +1 -0
- package/skills/.git 2/logs/refs/remotes/origin/main +1 -0
- package/skills/.git 2/objects/02/fb0956734b5f8ba3f918b7defd04a89cfe0076 +0 -0
- package/skills/.git 2/objects/08/1e129d75dc6feac6c02037272e6bd1a04e3324 +0 -0
- package/skills/.git 2/objects/0c/5393416f3c5e01c9a655a802bff0dd52f76f0a +0 -0
- package/skills/.git 2/objects/10/0b9be46978a946a77188f68be725098a122001 +0 -0
- package/skills/.git 2/objects/10/cf041167fc9843610eb3d90259ef3396315fdc +0 -0
- package/skills/.git 2/objects/12/5e19538dd6e1338ffe74f6c4c165b00435bf48 +0 -0
- package/skills/.git 2/objects/16/a9b9d0088d5c1347628b45a2620b479d8ad57c +0 -0
- package/skills/.git 2/objects/17/8c2a9ef93c33ae4eec9d58e82321f9229843a1 +0 -0
- package/skills/.git 2/objects/25/397ae41d09104d763bdcac2695209d85cdea89 +0 -0
- package/skills/.git 2/objects/2f/a836b7947f2d458e1f639788bf4bb0983a3305 +0 -0
- package/skills/.git 2/objects/3a/baaaf0a1c0909c0828335791557125fba911e0 +0 -0
- package/skills/.git 2/objects/42/2924221b81f5ce3c4e4daac9a64a24f9b01f9a +0 -0
- package/skills/.git 2/objects/42/ec0ce707447dc11446a34c9995fb8533801731 +0 -0
- package/skills/.git 2/objects/46/e43ce92866d56ce74b1d750db307cfe6154a15 +0 -0
- package/skills/.git 2/objects/48/5e41b633c63f55b8277bcc59f44f67681f671a +0 -0
- package/skills/.git 2/objects/49/49c596a3a89fa240642acd95dd3258e261eb09 +0 -0
- package/skills/.git 2/objects/50/9d42d8412ef8eaf7f7e138476bac2e4d10ce60 +0 -0
- package/skills/.git 2/objects/55/0c8c389d981b463ef849aeb792d8be3ccb6ec8 +0 -0
- package/skills/.git 2/objects/5d/82d3b18410cdda3ace3677436f0cb599dbe2d2 +0 -0
- package/skills/.git 2/objects/60/0617c58e871a38b33bf29e282d132bb3c381ad +0 -0
- package/skills/.git 2/objects/6a/8369a99c687b7245c92ffaf0e0f0dab9014504 +0 -0
- package/skills/.git 2/objects/79/bea435d40ab531c1aaf6be0432c6a5b7aaed21 +0 -0
- package/skills/.git 2/objects/7e/5ebd79251c2f14e4aceb86c74b6b6daae6b500 +0 -0
- package/skills/.git 2/objects/81/98a822a60178d6d5023ddb3e222cddf048742e +0 -0
- package/skills/.git 2/objects/86/0a0e1943dfe53411d2e499a1f16f46a96ef758 +0 -0
- package/skills/.git 2/objects/86/971fb55fdc081fdbae52376f0f13e57a4e9b04 +0 -0
- package/skills/.git 2/objects/88/b89dd609a0a03f8d4fe8bfde20d5b8fc1d326d +0 -0
- package/skills/.git 2/objects/90/8737edb6b7809e32cc01590b4e08ba42a9d40d +0 -0
- package/skills/.git 2/objects/93/d5a8a9a7d4fb7f11491cb596a6880528725118 +0 -0
- package/skills/.git 2/objects/98/46a2ab81d0c3b3eb00ef88fc56989aa7e9f316 +0 -0
- package/skills/.git 2/objects/9b/d8dd1e49cf274eaf9c555f3ab39dce7af5715e +0 -0
- package/skills/.git 2/objects/a1/13329fb0cec96ae78b222d33a24c3b5bc7fa1f +0 -0
- package/skills/.git 2/objects/a9/e6effe626e8a3aea3a8fc3364b492191c6e7d0 +0 -0
- package/skills/.git 2/objects/ad/6de7e48d9782cca9353d1ff0aa1aab7fe1df85 +0 -0
- package/skills/.git 2/objects/af/54ae316f771ff692e299ffcd8bf2f06b413b59 +0 -0
- package/skills/.git 2/objects/b0/4cb8b0b00dad633e731c1472161419e738d674 +0 -0
- package/skills/.git 2/objects/b3/094abb0b9ed46419b269e4a4e36a459690e3b0 +0 -0
- package/skills/.git 2/objects/b9/435c5d4baac2cfc5c83009ddd27b46b60db5f1 +0 -0
- package/skills/.git 2/objects/ba/5da17dbaec5ec2dcfdfd126aead518d1171d5c +0 -0
- package/skills/.git 2/objects/c0/bf58703aa258ba5dd63083bebaec8f223d844c +0 -0
- package/skills/.git 2/objects/c4/701a34edf1fc1bad58ccc57bd03f9426acb59a +0 -0
- package/skills/.git 2/objects/c7/5ccce9a4e5cc74d9b3174550cf6d993ca43638 +0 -0
- package/skills/.git 2/objects/c7/710d59b5a35b0f1f0a0399386643a0bd94c929 +0 -0
- package/skills/.git 2/objects/d1/fe58237112e953e5fec52da22cf38e08be3df9 +5 -0
- package/skills/.git 2/objects/d2/2bbe9fd2f74c95bc5583e803f5e435f1e2cd86 +0 -0
- package/skills/.git 2/objects/d7/e72852ea2bff74581dbf247d400120086229f4 +0 -0
- package/skills/.git 2/objects/d8/d4c3b5553e4fd72807e1d4b49ef07d9ef3ac35 +0 -0
- package/skills/.git 2/objects/dc/75050c2876f6a02ae2a53a3c886f395b622977 +0 -0
- package/skills/.git 2/objects/ee/e8546f95acec500187c08a28a8b9ee02db0dec +0 -0
- package/skills/.git 2/objects/ef/263c059208b416c2146434f10cb2b9fabcba16 +0 -0
- package/skills/.git 2/objects/f3/ae597e84d9a59b88acd21c99bde2eaf686d785 +0 -0
- package/skills/.git 2/objects/f3/f6f5673c821d3d8e76fa267a9e882e7a5387ea +0 -0
- package/skills/.git 2/objects/f9/6e6d0ad02624dd11d5848594d056caef7a5e8b +0 -0
- package/skills/.git 2/objects/ff/278988fc1edf0db3abcf18de795f4cc0b4f3e1 +0 -0
- package/skills/.git 2/refs/heads/main +1 -0
- package/skills/.git 2/refs/remotes/origin/main +1 -0
- package/skills/.pytest_cache 2/v/cache/nodeids +76 -0
- package/skills/.pytest_cache 2/v/cache/stepwise +1 -0
- package/skills/_shared/helpers.md +123 -0
- package/skills/_shared/outputs-convention.md +24 -0
- package/skills/cm-ads-tracker/SKILL.md +109 -0
- package/skills/cm-ads-tracker/evals/evals.json +55 -0
- package/skills/cm-ads-tracker/references/gtm-architecture.md +321 -0
- package/skills/cm-ads-tracker/references/industry-events.md +294 -0
- package/skills/cm-ads-tracker/references/platforms-api.md +238 -0
- package/skills/cm-ads-tracker/templates/capi-payload.md +79 -0
- package/skills/cm-ads-tracker/templates/datalayer-push.js +104 -0
- package/skills/cm-ads-tracker/templates/gtm-variables.js +56 -0
- package/skills/cm-brainstorm-idea/SKILL.md +423 -0
- package/skills/cm-code-review/SKILL.md +151 -0
- package/skills/cm-content-factory/SKILL.md +416 -0
- package/skills/cm-continuity/SKILL.md +399 -0
- package/skills/cm-dashboard/SKILL.md +533 -0
- package/skills/cm-dashboard/ui/app.js +1270 -0
- package/skills/cm-dashboard/ui/index.html +206 -0
- package/skills/cm-dashboard/ui/style.css +440 -0
- package/skills/cm-debugging/SKILL.md +412 -0
- package/skills/cm-deep-search/SKILL.md +242 -0
- package/skills/cm-design-system/SKILL.md +97 -0
- package/skills/cm-design-system/resources/halo-modern.md +40 -0
- package/skills/cm-design-system/resources/lunaris-advanced.md +40 -0
- package/skills/cm-design-system/resources/nitro-enterprise.md +39 -0
- package/skills/cm-design-system/resources/shadcn-default.md +37 -0
- package/skills/cm-dockit/README.md +100 -0
- package/skills/cm-dockit/SKILL.md +302 -0
- package/skills/cm-dockit/index.html +443 -0
- package/skills/cm-dockit/package-lock.json +1850 -0
- package/skills/cm-dockit/package.json +14 -0
- package/skills/cm-dockit/prompts/analysis.md +34 -0
- package/skills/cm-dockit/prompts/api-reference.md +24 -0
- package/skills/cm-dockit/prompts/architecture.md +21 -0
- package/skills/cm-dockit/prompts/data-flow.md +20 -0
- package/skills/cm-dockit/prompts/database.md +21 -0
- package/skills/cm-dockit/prompts/deployment.md +22 -0
- package/skills/cm-dockit/prompts/flows.md +21 -0
- package/skills/cm-dockit/prompts/jtbd.md +20 -0
- package/skills/cm-dockit/prompts/personas.md +24 -0
- package/skills/cm-dockit/prompts/sop-modules.md +40 -0
- package/skills/cm-dockit/scripts/doc-gen.sh +121 -0
- package/skills/cm-dockit/scripts/dockit-dashboard.sh +142 -0
- package/skills/cm-dockit/scripts/dockit-runner.sh +607 -0
- package/skills/cm-dockit/scripts/dockit-task.sh +166 -0
- package/skills/cm-dockit/skills/analyze-codebase.md +174 -0
- package/skills/cm-dockit/skills/api-reference.md +237 -0
- package/skills/cm-dockit/skills/changelog-guide.md +195 -0
- package/skills/cm-dockit/skills/content-guidelines.md +190 -0
- package/skills/cm-dockit/skills/sop-guide.md +184 -0
- package/skills/cm-dockit/skills/tech-docs.md +287 -0
- package/skills/cm-dockit/templates/markdown/structure.md +60 -0
- package/skills/cm-dockit/templates/vitepress-premium/.vitepress/config.mts +110 -0
- package/skills/cm-dockit/templates/vitepress-premium/.vitepress/theme/custom.css +189 -0
- package/skills/cm-dockit/templates/vitepress-premium/.vitepress/theme/index.ts +4 -0
- package/skills/cm-dockit/templates/vitepress-premium/package.json +19 -0
- package/skills/cm-dockit/templates/vitepress-premium/tests/frontend.test.ts +45 -0
- package/skills/cm-dockit/tests/runner.test.ts +66 -0
- package/skills/cm-dockit/workflows/export-markdown.md +82 -0
- package/skills/cm-dockit/workflows/generate-docs.md +68 -0
- package/skills/cm-dockit/workflows/setup-vitepress.md +181 -0
- package/skills/cm-example/SKILL.md +26 -0
- package/skills/cm-execution/SKILL.md +268 -0
- package/skills/cm-git-worktrees/SKILL.md +164 -0
- package/skills/cm-how-it-work/SKILL.md +189 -0
- package/skills/cm-identity-guard/SKILL.md +412 -0
- package/skills/cm-jtbd/SKILL.md +98 -0
- package/skills/cm-planning/SKILL.md +130 -0
- package/skills/cm-project-bootstrap/SKILL.md +161 -0
- package/skills/cm-project-bootstrap/templates/AGENTS.md +42 -0
- package/skills/cm-project-bootstrap/templates/frontend-safety.test.js +51 -0
- package/skills/cm-project-bootstrap/templates/i18n-sync.test.js +38 -0
- package/skills/cm-project-bootstrap/templates/pr-template.md +12 -0
- package/skills/cm-project-bootstrap/templates/project-identity.json +29 -0
- package/skills/cm-project-bootstrap/templates/vitest.config.js +10 -0
- package/skills/cm-quality-gate/SKILL.md +218 -0
- package/skills/cm-readit/SKILL.md +289 -0
- package/skills/cm-readit/audio-player.md +206 -0
- package/skills/cm-readit/examples/blog-reader.js +352 -0
- package/skills/cm-readit/examples/voice-cro.js +390 -0
- package/skills/cm-readit/tts-engine.md +262 -0
- package/skills/cm-readit/ui-patterns.md +362 -0
- package/skills/cm-readit/voice-cro.md +223 -0
- package/skills/cm-safe-deploy/SKILL.md +120 -0
- package/skills/cm-safe-deploy/templates/deploy.sh +89 -0
- package/skills/cm-safe-i18n/SKILL.md +473 -0
- package/skills/cm-secret-shield/SKILL.md +580 -0
- package/skills/cm-skill-chain/SKILL.md +78 -0
- package/skills/cm-skill-index/SKILL.md +318 -0
- package/skills/cm-skill-mastery/SKILL.md +169 -0
- package/skills/cm-start/SKILL.md +65 -0
- package/skills/cm-status/SKILL.md +12 -0
- package/skills/cm-tdd/SKILL.md +370 -0
- package/skills/cm-terminal/SKILL.md +177 -0
- package/skills/cm-test-gate/SKILL.md +242 -0
- package/skills/cm-ui-preview/SKILL.md +291 -0
- package/skills/cm-ux-master/DESIGN_STANDARD_TEMPLATE.md +54 -0
- package/skills/cm-ux-master/SKILL.md +114 -0
- package/skills/cro-methodology/SKILL.md +98 -0
- package/skills/cro-methodology/references/COPYWRITING.md +178 -0
- package/skills/cro-methodology/references/OBJECTIONS.md +135 -0
- package/skills/cro-methodology/references/PERSUASION.md +158 -0
- package/skills/cro-methodology/references/RESEARCH.md +220 -0
- package/skills/cro-methodology/references/funnel-analysis.md +365 -0
- package/skills/cro-methodology/references/testing-methodology.md +330 -0
|
@@ -0,0 +1,164 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: cm-git-worktrees
|
|
3
|
+
description: Use when starting feature work that needs isolation from current workspace or before executing implementation plans - creates isolated git worktrees with smart directory selection and safety verification
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Using Git Worktrees
|
|
7
|
+
|
|
8
|
+
## Overview
|
|
9
|
+
|
|
10
|
+
Git worktrees create isolated workspaces sharing the same repository, allowing work on multiple branches simultaneously without switching.
|
|
11
|
+
|
|
12
|
+
**Core principle:** Systematic directory selection + safety verification = reliable isolation.
|
|
13
|
+
|
|
14
|
+
**Announce at start:** "I'm using the cm-git-worktrees skill to set up an isolated workspace."
|
|
15
|
+
|
|
16
|
+
## Directory Selection Process
|
|
17
|
+
|
|
18
|
+
Follow this priority order:
|
|
19
|
+
|
|
20
|
+
### 1. Check Existing Directories
|
|
21
|
+
|
|
22
|
+
```bash
|
|
23
|
+
# Check in priority order
|
|
24
|
+
ls -d .worktrees 2>/dev/null # Preferred (hidden)
|
|
25
|
+
ls -d worktrees 2>/dev/null # Alternative
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
**If found:** Use that directory. If both exist, `.worktrees` wins.
|
|
29
|
+
|
|
30
|
+
### 2. Check CLAUDE.md
|
|
31
|
+
|
|
32
|
+
```bash
|
|
33
|
+
grep -i "worktree.*director" CLAUDE.md 2>/dev/null
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
**If preference specified:** Use it without asking.
|
|
37
|
+
|
|
38
|
+
### 3. Ask User
|
|
39
|
+
|
|
40
|
+
If no directory exists and no CLAUDE.md preference:
|
|
41
|
+
Ask where to create worktrees.
|
|
42
|
+
|
|
43
|
+
## Safety Verification
|
|
44
|
+
|
|
45
|
+
### For Project-Local Directories (.worktrees or worktrees)
|
|
46
|
+
|
|
47
|
+
**MUST verify directory is ignored before creating worktree:**
|
|
48
|
+
|
|
49
|
+
```bash
|
|
50
|
+
# Check if directory is ignored (respects local, global, and system gitignore)
|
|
51
|
+
git check-ignore -q .worktrees 2>/dev/null || git check-ignore -q worktrees 2>/dev/null
|
|
52
|
+
```
|
|
53
|
+
|
|
54
|
+
**If NOT ignored:**
|
|
55
|
+
|
|
56
|
+
Per Jesse's rule "Fix broken things immediately":
|
|
57
|
+
1. Add appropriate line to .gitignore
|
|
58
|
+
2. Commit the change
|
|
59
|
+
3. Proceed with worktree creation
|
|
60
|
+
|
|
61
|
+
**Why critical:** Prevents accidentally committing worktree contents to repository.
|
|
62
|
+
|
|
63
|
+
### For Global Directory (~/.config/superpowers/worktrees)
|
|
64
|
+
|
|
65
|
+
No .gitignore verification needed - outside project entirely.
|
|
66
|
+
|
|
67
|
+
## Creation Steps
|
|
68
|
+
|
|
69
|
+
### 1. Detect Project Name
|
|
70
|
+
|
|
71
|
+
```bash
|
|
72
|
+
project=$(basename "$(git rev-parse --show-toplevel)")
|
|
73
|
+
```
|
|
74
|
+
|
|
75
|
+
### 2. Create Worktree
|
|
76
|
+
|
|
77
|
+
```bash
|
|
78
|
+
# Determine full path
|
|
79
|
+
case $LOCATION in
|
|
80
|
+
.worktrees|worktrees)
|
|
81
|
+
path="$LOCATION/$BRANCH_NAME"
|
|
82
|
+
;;
|
|
83
|
+
~/.config/superpowers/worktrees/*)
|
|
84
|
+
path="~/.config/superpowers/worktrees/$project/$BRANCH_NAME"
|
|
85
|
+
;;
|
|
86
|
+
esac
|
|
87
|
+
|
|
88
|
+
# Create worktree with new branch
|
|
89
|
+
git worktree add "$path" -b "$BRANCH_NAME"
|
|
90
|
+
cd "$path"
|
|
91
|
+
```
|
|
92
|
+
|
|
93
|
+
### 3. Run Project Setup
|
|
94
|
+
|
|
95
|
+
Auto-detect and run appropriate setup:
|
|
96
|
+
|
|
97
|
+
```bash
|
|
98
|
+
# Node.js
|
|
99
|
+
if [ -f package.json ]; then npm install; fi
|
|
100
|
+
# Rust
|
|
101
|
+
if [ -f Cargo.toml ]; then cargo build; fi
|
|
102
|
+
```
|
|
103
|
+
|
|
104
|
+
### 4. Verify Clean Baseline
|
|
105
|
+
|
|
106
|
+
Run tests to ensure worktree starts clean (via `cm-quality-gate` conventions).
|
|
107
|
+
|
|
108
|
+
### 5. Update Working Memory (cm-continuity)
|
|
109
|
+
|
|
110
|
+
After worktree is created and baseline verified:
|
|
111
|
+
- Update `.cm/CONTINUITY.md` → Working Context: "Now working in worktree: [path], branch: [branch]"
|
|
112
|
+
- Note: `CONTINUITY.md` lives in the **MAIN workspace**, not the worktree. Always read from/write to the main workspace's `.cm/` directory.
|
|
113
|
+
|
|
114
|
+
## Quick Reference
|
|
115
|
+
|
|
116
|
+
| Situation | Action |
|
|
117
|
+
|-----------|--------|
|
|
118
|
+
| `.worktrees/` exists | Use it (verify ignored) |
|
|
119
|
+
| `worktrees/` exists | Use it (verify ignored) |
|
|
120
|
+
| Both exist | Use `.worktrees/` |
|
|
121
|
+
| Neither exists | Check CLAUDE.md → Ask user |
|
|
122
|
+
| Directory not ignored | Add to .gitignore + commit |
|
|
123
|
+
| Tests fail during baseline | Report failures + ask |
|
|
124
|
+
|
|
125
|
+
## Common Mistakes
|
|
126
|
+
|
|
127
|
+
### Skipping ignore verification
|
|
128
|
+
|
|
129
|
+
- **Problem:** Worktree contents get tracked, pollute git status
|
|
130
|
+
- **Fix:** Always use `git check-ignore` before creating project-local worktree
|
|
131
|
+
|
|
132
|
+
### Assuming directory location
|
|
133
|
+
|
|
134
|
+
- **Problem:** Creates inconsistency, violates project conventions
|
|
135
|
+
- **Fix:** Follow priority: existing > CLAUDE.md > ask
|
|
136
|
+
|
|
137
|
+
### Proceeding with failing tests
|
|
138
|
+
|
|
139
|
+
- **Problem:** Can't distinguish new bugs from pre-existing issues
|
|
140
|
+
- **Fix:** Report failures, get explicit permission to proceed
|
|
141
|
+
|
|
142
|
+
## Red Flags
|
|
143
|
+
|
|
144
|
+
**Never:**
|
|
145
|
+
- Create worktree without verifying it's ignored (project-local)
|
|
146
|
+
- Skip baseline test verification
|
|
147
|
+
- Proceed with failing tests without asking
|
|
148
|
+
- Assume directory location when ambiguous
|
|
149
|
+
|
|
150
|
+
**Always:**
|
|
151
|
+
- Follow directory priority: existing > CLAUDE.md > ask
|
|
152
|
+
- Verify directory is ignored for project-local
|
|
153
|
+
- Auto-detect and run project setup
|
|
154
|
+
- Verify clean test baseline
|
|
155
|
+
|
|
156
|
+
## Integration
|
|
157
|
+
|
|
158
|
+
**Called by:**
|
|
159
|
+
- **cm-planning** - REQUIRED when design is approved and implementation follows
|
|
160
|
+
- **cm-execution** - REQUIRED before executing any tasks
|
|
161
|
+
|
|
162
|
+
**Pairs with:**
|
|
163
|
+
- **cm-code-review** - For cleanup after work complete
|
|
164
|
+
- **cm-continuity** - Update Working Context with worktree location
|
|
@@ -0,0 +1,189 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: cm-how-it-work
|
|
3
|
+
description: "Complete guide to vibe coding with the CodyMaster skill kit — from idea to deploy. Covers the full workflow, skills used at each phase, and common use cases. Read this first if you are new; reference it whenever you're unsure which skill to invoke."
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# CodyMaster Kit — The Ultimate Vibe Coding Guide
|
|
7
|
+
|
|
8
|
+
## Overview
|
|
9
|
+
|
|
10
|
+
The **CodyMaster (CM)** kit transforms ideas into production code through 13 specialized, optimized skills. This workflow ensures the highest quality, absolute security, and maximum execution speed.
|
|
11
|
+
|
|
12
|
+
```
|
|
13
|
+
💡 Idea → 🔍 Analysis → 📐 Design → 🧪 Test-first (TDD) → 💻 Code → ✅ Verify → 🚀 Deploy → 🔄 Iterate
|
|
14
|
+
```
|
|
15
|
+
|
|
16
|
+
---
|
|
17
|
+
|
|
18
|
+
## Workflow
|
|
19
|
+
|
|
20
|
+
### Phase 0: Identity & Safety 🔒
|
|
21
|
+
> **Rule #1:** Always verify identity before performing any action that could change the project state.
|
|
22
|
+
|
|
23
|
+
- **Skill:** `cm-identity-guard`
|
|
24
|
+
- **When:** At the start of a work session, before git push, deploy, or database operations.
|
|
25
|
+
- **Action:** Run `node check-identity.js` (or similar script) to verify GitHub/Cloudflare/Supabase accounts.
|
|
26
|
+
|
|
27
|
+
---
|
|
28
|
+
|
|
29
|
+
### Phase 0.5: Strategic Analysis 🔍
|
|
30
|
+
> **For complex initiatives and enhancements on existing products.**
|
|
31
|
+
|
|
32
|
+
- **Skill:** `cm-brainstorm-idea`
|
|
33
|
+
- **When:** When the task is complex and requires multi-dimensional analysis (tech, product, design, business) before planning.
|
|
34
|
+
- **Action:**
|
|
35
|
+
1. Scan codebase and interview user (Design Thinking: Empathize).
|
|
36
|
+
2. Analyze with 9 Windows (TRIZ) to see the full picture across past/present/future.
|
|
37
|
+
3. Propose 2-3 options, evaluate multi-dimensionally, recommend the best option.
|
|
38
|
+
- **Output:** `brainstorm-output.md` — qualified problem + recommended option → passes to `cm-planning`.
|
|
39
|
+
|
|
40
|
+
---
|
|
41
|
+
|
|
42
|
+
### Phase 1: Planning & Design 📐
|
|
43
|
+
> **Understand the 'Job to be Done' (JTBD) and architecture before writing code.**
|
|
44
|
+
|
|
45
|
+
- **Skill:** `cm-planning` (Combines brainstorming + writing-plans)
|
|
46
|
+
- **Action:**
|
|
47
|
+
1. Brainstorm requirements and analyze i18n.
|
|
48
|
+
2. Propose architecture and tech stack.
|
|
49
|
+
3. Write detailed `implementation_plan.md`.
|
|
50
|
+
- **Output:** Design documentation and execution plan approved by user.
|
|
51
|
+
|
|
52
|
+
---
|
|
53
|
+
|
|
54
|
+
### Phase 2: Implementation (TDD & Execution) 💻
|
|
55
|
+
> **Turn the plan into actual source code safely.**
|
|
56
|
+
|
|
57
|
+
- **Skills:**
|
|
58
|
+
- `cm-tdd`: Red-Green-Refactor cycle. No production code without a failing test first.
|
|
59
|
+
- `cm-execution`: Execute plans intelligently (Manual, Parallel, or Subagent mode).
|
|
60
|
+
- `cm-project-bootstrap`: For new projects — setup repo, i18n, SEO, and deploy pipeline from Day 0.
|
|
61
|
+
- `cm-git-worktrees`: Isolate different work items to avoid state mixing.
|
|
62
|
+
|
|
63
|
+
---
|
|
64
|
+
|
|
65
|
+
### Phase 3: Quality Control & Verification ✅
|
|
66
|
+
> **Prove with evidence, not words.**
|
|
67
|
+
|
|
68
|
+
- **Skills:**
|
|
69
|
+
- `cm-quality-gate`: Setup test infrastructure (`test:gate`) and verify output before claiming "done".
|
|
70
|
+
- `cm-debugging`: When tests fail, use systematic investigation framework to find root cause.
|
|
71
|
+
- `cm-code-review`: Professional request and feedback review process.
|
|
72
|
+
|
|
73
|
+
---
|
|
74
|
+
|
|
75
|
+
### Phase 4: Safe Deployment 🚀
|
|
76
|
+
> **Ship code without fear of incidents.**
|
|
77
|
+
|
|
78
|
+
- **Skills:**
|
|
79
|
+
- `cm-safe-deploy`: Run 8-gate pipeline (Secret → Syntax → Test → Build → Deploy → Smoke).
|
|
80
|
+
- `cm-safe-i18n`: Translate and synchronize languages consistently across the entire project.
|
|
81
|
+
- `cm-terminal`: Monitor all terminal commands to detect errors immediately.
|
|
82
|
+
|
|
83
|
+
---
|
|
84
|
+
|
|
85
|
+
## CodyMaster Kit — 34 Skills Summary
|
|
86
|
+
|
|
87
|
+
### 🔧 Engineering
|
|
88
|
+
| Skill | Primary Function |
|
|
89
|
+
|-------|-----------------|
|
|
90
|
+
| `cm-tdd` | Strict Red-Green-Refactor TDD — no code without failing test first. |
|
|
91
|
+
| `cm-debugging` | Systematic 5-phase error investigation (root cause first). |
|
|
92
|
+
| `cm-quality-gate` | 6-gate verification: static analysis → blind review → ship. |
|
|
93
|
+
| `cm-test-gate` | Setup 4-layer test infrastructure (unit → integration → e2e → security). |
|
|
94
|
+
| `cm-code-review` | Manage PR lifecycle: request → receive feedback → complete branch. |
|
|
95
|
+
|
|
96
|
+
### ⚙️ Operations
|
|
97
|
+
| Skill | Primary Function |
|
|
98
|
+
|-------|-----------------|
|
|
99
|
+
| `cm-safe-deploy` | Multi-gate deploy pipeline with rollback strategy. |
|
|
100
|
+
| `cm-identity-guard` | Verify account before push/deploy to prevent wrong-project incidents. |
|
|
101
|
+
| `cm-git-worktrees` | Isolate feature work in separate worktrees — no state mixing. |
|
|
102
|
+
| `cm-terminal` | Safe terminal execution with progress logging and error capture. |
|
|
103
|
+
| `cm-secret-shield` | Defense-in-depth: pre-commit hooks, repo scanning, token lifecycle. |
|
|
104
|
+
| `cm-safe-i18n` | Safe multi-language management with multi-pass batching and 8-gate audit. |
|
|
105
|
+
|
|
106
|
+
### 🎨 Product
|
|
107
|
+
| Skill | Primary Function |
|
|
108
|
+
|-------|-----------------|
|
|
109
|
+
| `cm-project-bootstrap` | Full project setup: design system → CI → staging → deploy from Day 0. |
|
|
110
|
+
| `cm-brainstorm-idea` | Strategic analysis gate: 9 Windows + Double Diamond → 2-3 qualified options. |
|
|
111
|
+
| `cm-planning` | Brainstorm intent → write implementation plan → coordinate execution. |
|
|
112
|
+
| `cm-ux-master` | 48 UX Laws + 37 Design Tests + Figma/Stitch + BM25 semantic design search. |
|
|
113
|
+
| `cm-ui-preview` | Live UI concept generation via Google Stitch or Pencil MCP. |
|
|
114
|
+
| `cm-dockit` | Generate complete knowledge bases, SOPs, and API docs from codebase. |
|
|
115
|
+
| `cm-readit` | Web audio engine: TTS reader, MP3 audio player, Voice CRO trigger system. |
|
|
116
|
+
| `cm-jtbd` | JTBD customer discovery: Switch Interview → Canvas → Opportunity Scoring. |
|
|
117
|
+
|
|
118
|
+
### 📈 Growth
|
|
119
|
+
| Skill | Primary Function |
|
|
120
|
+
|-------|-----------------|
|
|
121
|
+
| `cm-content-factory` | Self-learning content engine: research → generate → audit → deploy. |
|
|
122
|
+
| `cm-ads-tracker` | Conversion tracking setup: GTM, Meta CAPI, TikTok, Google Ads. |
|
|
123
|
+
| `cro-methodology` | CRO audit: funnel mapping → persuasion assets → A/B test design. |
|
|
124
|
+
|
|
125
|
+
### 🎯 Orchestration
|
|
126
|
+
| Skill | Primary Function |
|
|
127
|
+
|-------|-----------------|
|
|
128
|
+
| `cm-execution` | Execute plans: Manual / Parallel / Subagent / RARV batch modes. |
|
|
129
|
+
| `cm-continuity` | Working memory protocol: read at session start, update at session end. |
|
|
130
|
+
| `cm-skill-mastery` | Meta-skill: when to invoke which skill, how to create new skills. |
|
|
131
|
+
| `cm-skill-chain` | Compose skills into automated multi-step pipelines (5 built-in chains). |
|
|
132
|
+
| `cm-skill-index` | Progressive disclosure index — 90% token savings on skill discovery. |
|
|
133
|
+
| `cm-deep-search` | Semantic search via qmd for large codebases (>200 src / >50 docs files). |
|
|
134
|
+
| `cm-how-it-work` | Full vibe coding guide — phases, skills per phase, use cases. |
|
|
135
|
+
|
|
136
|
+
### 🖥️ Workflow Commands
|
|
137
|
+
| Skill | Primary Function |
|
|
138
|
+
|-------|-----------------|
|
|
139
|
+
| `cm-start` | Orchestrate full workflow from objective to production code. |
|
|
140
|
+
| `cm-dashboard` | Render Kanban board from cm-tasks.json — visual status overview. |
|
|
141
|
+
| `cm-status` | Ultra-concise 1-2 sentence progress summary (what's done, what's next). |
|
|
142
|
+
|
|
143
|
+
## 🚀 Autonomous Workflow System
|
|
144
|
+
|
|
145
|
+
The kit supports autonomous mode by applying the **Reason → Act → Reflect → Verify (RARV)** loop.
|
|
146
|
+
|
|
147
|
+
### How to Use the Workflow:
|
|
148
|
+
1. **`/cm-start [objective]`**: Start work. The system will automatically create `cm-tasks.json`, break down tasks, launch the tracking interface, and autonomously use CM skills to complete them.
|
|
149
|
+
2. **`/cm-dashboard`**: Open the visual tracking Dashboard in browser (shows Kanban board, reasoning log, and progress).
|
|
150
|
+
3. **`/cm-status`**: View quick progress summary in Terminal.
|
|
151
|
+
|
|
152
|
+
---
|
|
153
|
+
|
|
154
|
+
## 💡 Activation Guide by Use Cases
|
|
155
|
+
|
|
156
|
+
There are 2 ways to use CodyMaster: **Fully autonomous (Via Workflows)** or **Manual skill activation (Via Prompting)**.
|
|
157
|
+
|
|
158
|
+
### 1. Build New Feature / New Project (Autonomous)
|
|
159
|
+
> Best way to delegate complete work packages.
|
|
160
|
+
- **Command:** `/cm-start "Build user management feature with list screen and CRUD form"`
|
|
161
|
+
- **Implicit flow:** Planning → create Task JSON → sub-agents continuously run `cm-tdd` and `cm-quality-gate` for each task until done.
|
|
162
|
+
|
|
163
|
+
### 2. Fix Production Bug (Manual)
|
|
164
|
+
> Bugs need close supervision and AI should not blindly change too much code.
|
|
165
|
+
- **Step 1:** Activate `cm-debugging` to find Root Cause.
|
|
166
|
+
- **Step 2:** Activate `cm-tdd` to write test reproducing the bug and fix it.
|
|
167
|
+
- **Step 3:** Activate `cm-safe-deploy` to ship code safely.
|
|
168
|
+
|
|
169
|
+
### 3. Setup New Project From Scratch
|
|
170
|
+
> Establish a solid foundation to avoid technical debt later.
|
|
171
|
+
- **Command:** "Use `cm-identity-guard` to ensure correct account, then run `cm-project-bootstrap` to setup a new Next.js project."
|
|
172
|
+
|
|
173
|
+
### 4. Batch Multi-Language Translation
|
|
174
|
+
> Tedious work that's error-prone if AI loses focus.
|
|
175
|
+
- **Command:** "Use `cm-safe-i18n` to extract all hardcoded text in `/components` directory to `vi.json` and `en.json` files."
|
|
176
|
+
|
|
177
|
+
---
|
|
178
|
+
|
|
179
|
+
## 9 Golden Rules
|
|
180
|
+
|
|
181
|
+
1. **Identity First:** Verify account (`cm-identity-guard`) before push/deploy.
|
|
182
|
+
2. **Design Before Code:** Always have an approved plan before typing.
|
|
183
|
+
3. **i18n Day 0:** Always consider multi-language from the brainstorm step.
|
|
184
|
+
4. **Test Before Code:** RED → GREEN → REFACTOR. No exceptions (`cm-tdd`).
|
|
185
|
+
5. **Evidence Over Claims:** Only trust terminal/test results output, not AI "saying" it's done.
|
|
186
|
+
6. **Deploy via Gates:** 8 gates must pass sequentially. Any gate fails = STOP (`cm-safe-deploy`).
|
|
187
|
+
7. **Safe Secrets:** Never commit secrets. Pre-commit hooks protect every push (`cm-secret-shield`).
|
|
188
|
+
8. **Parallel Power:** Use parallel execution for i18n or multi-bug fixes (`cm-execution`).
|
|
189
|
+
9. **Working Memory:** Read CONTINUITY.md at session start, update at session end (`cm-continuity`).
|