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
package/commands/demo.md
ADDED
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: Interactive onboarding tour — discover CodyMaster skills, workflows, and examples. Run this first to learn how to use the kit.
|
|
3
|
+
argument-hint: "[vi|en|zh|ko|ru|hi]"
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# 🧠 Welcome to CodyMaster
|
|
7
|
+
|
|
8
|
+
You are now running the interactive onboarding demo. Guide the user through CodyMaster in their language.
|
|
9
|
+
|
|
10
|
+
## Step 1 — Detect Language
|
|
11
|
+
|
|
12
|
+
Check if the user passed a language argument via `$ARGUMENTS`. If so, use that language.
|
|
13
|
+
Otherwise, greet in English and ask which language they prefer:
|
|
14
|
+
- 🇬🇧 English
|
|
15
|
+
- 🇻🇳 Tiếng Việt
|
|
16
|
+
- 🇨🇳 中文
|
|
17
|
+
- 🇰🇷 한국어
|
|
18
|
+
- 🇷🇺 Русский
|
|
19
|
+
- 🇮🇳 हिन्दी
|
|
20
|
+
|
|
21
|
+
Remember the chosen language and respond in it for all following steps.
|
|
22
|
+
|
|
23
|
+
## Step 2 — Welcome Message
|
|
24
|
+
|
|
25
|
+
Show a warm, concise welcome. Include:
|
|
26
|
+
- What CodyMaster is (1 sentence)
|
|
27
|
+
- That it gives AI agents 34+ specialized skills
|
|
28
|
+
- That this demo will take ~2 minutes
|
|
29
|
+
|
|
30
|
+
## Step 3 — Show the Workflow
|
|
31
|
+
|
|
32
|
+
Explain the main workflow with a visual diagram:
|
|
33
|
+
|
|
34
|
+
```
|
|
35
|
+
💡 Idea
|
|
36
|
+
↓ /cm:plan (brainstorm + architecture + approval)
|
|
37
|
+
📋 Plan
|
|
38
|
+
↓ /cm:build (TDD: red → green → refactor)
|
|
39
|
+
⚙️ Code
|
|
40
|
+
↓ /cm:review (code review + quality gate)
|
|
41
|
+
✅ Verified
|
|
42
|
+
↓ /cm:deploy (multi-gate deploy + rollback)
|
|
43
|
+
🚀 Live
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
## Step 4 — Slash Commands Tour
|
|
47
|
+
|
|
48
|
+
Present each command with a concrete example. Format as a table:
|
|
49
|
+
|
|
50
|
+
| Command | What it does | Example |
|
|
51
|
+
|---------|-------------|---------|
|
|
52
|
+
| `/cm:plan` | Brainstorm + architecture + plan | `/cm:plan Add OAuth login` |
|
|
53
|
+
| `/cm:build` | TDD implementation | `/cm:build Execute the auth plan` |
|
|
54
|
+
| `/cm:debug` | 4-phase root cause analysis | `/cm:debug Login fails after redirect` |
|
|
55
|
+
| `/cm:review` | Code review + quality check | `/cm:review` |
|
|
56
|
+
| `/cm:deploy` | Safe multi-gate deployment | `/cm:deploy to staging` |
|
|
57
|
+
| `/cm:ux` | UX design + prototyping | `/cm:ux Design the onboarding flow` |
|
|
58
|
+
| `/cm:content` | AI content factory | `/cm:content Write a product launch post` |
|
|
59
|
+
| `/cm:track` | Task + progress tracking | `/cm:track` |
|
|
60
|
+
| `/cm:continuity` | Session memory | `/cm:continuity` |
|
|
61
|
+
| `/cm:bootstrap` | New project setup | `/cm:bootstrap my-saas-app` |
|
|
62
|
+
|
|
63
|
+
## Step 5 — Agent Skills (Automatic)
|
|
64
|
+
|
|
65
|
+
Explain that besides slash commands, Claude also uses **agent skills automatically**:
|
|
66
|
+
|
|
67
|
+
> These activate without any command — just describe what you want:
|
|
68
|
+
>
|
|
69
|
+
> - *"write tests first"* → `cm-tdd` activates
|
|
70
|
+
> - *"there's a bug in..."* → `cm-debugging` activates
|
|
71
|
+
> - *"plan this feature"* → `cm-planning` activates
|
|
72
|
+
> - *"deploy to production"* → `cm-safe-deploy` activates
|
|
73
|
+
> - *"review this code"* → `cm-quality-gate` activates
|
|
74
|
+
|
|
75
|
+
## Step 6 — Quick Start Challenge
|
|
76
|
+
|
|
77
|
+
Ask the user to try ONE of these right now and offer to help:
|
|
78
|
+
|
|
79
|
+
**Option A — Build something new:**
|
|
80
|
+
> "What would you like to build? I'll start with `/cm:plan` to design it."
|
|
81
|
+
|
|
82
|
+
**Option B — Fix a bug:**
|
|
83
|
+
> "Paste your error message and I'll apply `/cm:debug` to find the root cause."
|
|
84
|
+
|
|
85
|
+
**Option C — Explore skills:**
|
|
86
|
+
> "Ask me `what skills do you have?` and I'll show the full catalog with `cm-skill-index`."
|
|
87
|
+
|
|
88
|
+
## Step 7 — Useful Resources
|
|
89
|
+
|
|
90
|
+
Show at the end:
|
|
91
|
+
- 📚 Docs: https://cody.todyle.com/docs
|
|
92
|
+
- 🔄 Update: `claude plugin update cm@codymaster`
|
|
93
|
+
- 💬 All skills: `/cm:skills`
|
|
94
|
+
- 🔁 Restart tour: `/cm:demo`
|
|
95
|
+
|
|
96
|
+
Close with an encouraging call-to-action in the user's chosen language.
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: Deploy safely with multi-gate pipeline — test → build → stage → verify → production
|
|
3
|
+
argument-hint: "[staging|production]"
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# /deploy — Safe Deployment Pipeline
|
|
7
|
+
|
|
8
|
+
Multi-gate deploy: run tests → verify build → deploy to staging → verify → optionally promote to production.
|
|
9
|
+
|
|
10
|
+
## Invocation
|
|
11
|
+
|
|
12
|
+
```
|
|
13
|
+
/deploy staging
|
|
14
|
+
/deploy production
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
## Workflow
|
|
18
|
+
|
|
19
|
+
### Step 1: Pre-Flight Checks
|
|
20
|
+
|
|
21
|
+
Apply **cm-test-gate** skill:
|
|
22
|
+
- Run `npm run test:gate`
|
|
23
|
+
- Verify all tests pass
|
|
24
|
+
- Check build output
|
|
25
|
+
|
|
26
|
+
### Step 2: Identity Guard
|
|
27
|
+
|
|
28
|
+
Apply **cm-identity-guard** skill:
|
|
29
|
+
- Verify git config matches `.project-identity.json`
|
|
30
|
+
- Confirm Cloudflare account is correct
|
|
31
|
+
- Prevent wrong-account deploys
|
|
32
|
+
|
|
33
|
+
### Step 3: Deploy
|
|
34
|
+
|
|
35
|
+
Apply **cm-safe-deploy** skill:
|
|
36
|
+
- Deploy to staging first (always)
|
|
37
|
+
- Verify staging deployment
|
|
38
|
+
- Only promote to production if explicitly requested
|
|
39
|
+
- Rollback strategy ready
|
|
40
|
+
|
|
41
|
+
### Step 4: Post-Deploy
|
|
42
|
+
|
|
43
|
+
- Run smoke tests on deployed URL
|
|
44
|
+
- Verify critical paths work
|
|
45
|
+
- Update CONTINUITY.md with deploy status
|
|
46
|
+
|
|
47
|
+
## Notes
|
|
48
|
+
|
|
49
|
+
- Production deploys always require explicit user confirmation
|
|
50
|
+
- Staging is mandatory — no direct-to-production
|
|
51
|
+
- Use `cm-secret-shield` scan before any deploy
|
package/commands/plan.md
ADDED
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: Plan and design a feature before writing code — brainstorm intent, requirements, and architecture
|
|
3
|
+
argument-hint: "<feature idea or problem statement>"
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# /plan — Feature Planning
|
|
7
|
+
|
|
8
|
+
Structured planning workflow: understand intent → explore alternatives → create implementation plan → get approval before coding.
|
|
9
|
+
|
|
10
|
+
## Invocation
|
|
11
|
+
|
|
12
|
+
```
|
|
13
|
+
/plan Add user authentication with OAuth
|
|
14
|
+
/plan Redesign the dashboard for mobile-first
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
## Workflow
|
|
18
|
+
|
|
19
|
+
### Step 1: Brainstorm
|
|
20
|
+
|
|
21
|
+
Apply the **cm-brainstorm-idea** skill:
|
|
22
|
+
- Multi-dimensional evaluation (tech, product, design, business)
|
|
23
|
+
- Design Thinking + 9 Windows (TRIZ) + Double Diamond
|
|
24
|
+
- Output 2-3 qualified options with recommendations
|
|
25
|
+
|
|
26
|
+
### Step 2: Create Plan
|
|
27
|
+
|
|
28
|
+
Apply the **cm-planning** skill:
|
|
29
|
+
- Explore intent and requirements
|
|
30
|
+
- Design architecture and data models
|
|
31
|
+
- Create implementation plan with exact files and changes
|
|
32
|
+
- Break into bite-sized tasks (2-5 minutes each)
|
|
33
|
+
|
|
34
|
+
### Step 3: Review
|
|
35
|
+
|
|
36
|
+
Present the plan to the user for approval. Wait for sign-off before proceeding.
|
|
37
|
+
|
|
38
|
+
### Step 4: Suggest Next
|
|
39
|
+
|
|
40
|
+
- "Plan approved? → `/build`"
|
|
41
|
+
- "Need UI mockup? → `/ux`"
|
|
42
|
+
- "Want to set up git worktree? → Use **cm-git-worktrees**"
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: Professional code review — pre-review checklist, severity classification, and PR feedback handling
|
|
3
|
+
argument-hint: "[file or branch to review]"
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# /review — Code Review Lifecycle
|
|
7
|
+
|
|
8
|
+
Complete code review workflow: self-review checklist → external review → handle feedback → iterate.
|
|
9
|
+
|
|
10
|
+
## Invocation
|
|
11
|
+
|
|
12
|
+
```
|
|
13
|
+
/review
|
|
14
|
+
/review src/auth/login.ts
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
## Workflow
|
|
18
|
+
|
|
19
|
+
### Step 1: Self-Review
|
|
20
|
+
|
|
21
|
+
Apply **cm-code-review** skill:
|
|
22
|
+
- Review against the original plan
|
|
23
|
+
- Check for common issues (naming, error handling, edge cases)
|
|
24
|
+
- Verify test coverage for changes
|
|
25
|
+
- Check for security vulnerabilities
|
|
26
|
+
|
|
27
|
+
### Step 2: Quality Check
|
|
28
|
+
|
|
29
|
+
Apply **cm-quality-gate** skill:
|
|
30
|
+
- 6-gate verification
|
|
31
|
+
- Report issues by severity: Critical → High → Medium → Low
|
|
32
|
+
- Critical issues block progress
|
|
33
|
+
|
|
34
|
+
### Step 3: Create Review Summary
|
|
35
|
+
|
|
36
|
+
```
|
|
37
|
+
## Code Review Summary
|
|
38
|
+
|
|
39
|
+
**Files changed**: [count]
|
|
40
|
+
**Lines added/removed**: +X / -Y
|
|
41
|
+
|
|
42
|
+
### Issues Found
|
|
43
|
+
- 🔴 Critical: [count]
|
|
44
|
+
- 🟠 High: [count]
|
|
45
|
+
- 🟡 Medium: [count]
|
|
46
|
+
- 🔵 Low: [count]
|
|
47
|
+
|
|
48
|
+
### Verdict
|
|
49
|
+
[APPROVE / REQUEST_CHANGES / NEEDS_DISCUSSION]
|
|
50
|
+
```
|
|
51
|
+
|
|
52
|
+
### Step 4: Suggest Next
|
|
53
|
+
|
|
54
|
+
- "All clear? → `/deploy staging`"
|
|
55
|
+
- "Need fixes? → Apply fixes, then `/review` again"
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: Setup conversion tracking — Facebook/Meta Pixel, TikTok Events API, Google Ads, GTM
|
|
3
|
+
argument-hint: "<website URL or tracking IDs>"
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# /track — Ad Tracking Setup
|
|
7
|
+
|
|
8
|
+
Complete tracking setup: Facebook/Meta Pixel + CAPI, TikTok Pixel + Events API, Google Ads Enhanced Conversions, GTM container.
|
|
9
|
+
|
|
10
|
+
## Invocation
|
|
11
|
+
|
|
12
|
+
```
|
|
13
|
+
/track Setup tracking for my e-commerce site
|
|
14
|
+
/track Add Facebook Pixel ID: 123456789
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
## Workflow
|
|
18
|
+
|
|
19
|
+
### Step 1: Detect
|
|
20
|
+
|
|
21
|
+
Apply **cm-ads-tracker** skill:
|
|
22
|
+
- Auto-detect industry
|
|
23
|
+
- Map correct standard events per platform specs
|
|
24
|
+
- Identify required tracking IDs
|
|
25
|
+
|
|
26
|
+
### Step 2: Generate
|
|
27
|
+
|
|
28
|
+
Create complete tracking implementation:
|
|
29
|
+
- GTM tags, triggers, variables
|
|
30
|
+
- dataLayer schema
|
|
31
|
+
- UTM conventions
|
|
32
|
+
- CAPI/Events API server-side specs
|
|
33
|
+
- First-touch/last-touch attribution
|
|
34
|
+
- Cross-channel deduplication
|
|
35
|
+
|
|
36
|
+
### Step 3: Implement
|
|
37
|
+
|
|
38
|
+
- Install tracking code
|
|
39
|
+
- Configure events
|
|
40
|
+
- Test with platform debug tools
|
|
41
|
+
|
|
42
|
+
### Step 4: Verify
|
|
43
|
+
|
|
44
|
+
- Verify events fire correctly
|
|
45
|
+
- Check for data integrity
|
|
46
|
+
- Test attribution flows
|
package/commands/ux.md
ADDED
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: AI-powered UX/UI design — apply 48 UX Laws, generate UI previews, and run design tests
|
|
3
|
+
argument-hint: "<screen or feature to design>"
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# /ux — UX/UI Design Intelligence
|
|
7
|
+
|
|
8
|
+
Design with UX intelligence: apply 48 UX Laws, generate AI-powered UI previews, run 37 design tests.
|
|
9
|
+
|
|
10
|
+
## Invocation
|
|
11
|
+
|
|
12
|
+
```
|
|
13
|
+
/ux Design a dashboard for analytics
|
|
14
|
+
/ux Mobile-first onboarding flow
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
## Workflow
|
|
18
|
+
|
|
19
|
+
### Step 1: UX Research
|
|
20
|
+
|
|
21
|
+
Apply **cm-ux-master** skill:
|
|
22
|
+
- Review relevant UX Laws (from 48 available)
|
|
23
|
+
- Identify target user, key tasks, and flows
|
|
24
|
+
- Apply Nielsen's Heuristics + Krug's principles
|
|
25
|
+
|
|
26
|
+
### Step 2: UI Preview
|
|
27
|
+
|
|
28
|
+
Apply **cm-ui-preview** skill:
|
|
29
|
+
- Generate UI using Google Stitch MCP or Pencil MCP
|
|
30
|
+
- Create production-ready UI previews
|
|
31
|
+
- Iterate on design with user feedback
|
|
32
|
+
|
|
33
|
+
### Step 3: Design Tests
|
|
34
|
+
|
|
35
|
+
Run relevant design tests from the 37 available:
|
|
36
|
+
- 5-second test
|
|
37
|
+
- Squint test
|
|
38
|
+
- Thumb zone test (mobile)
|
|
39
|
+
- Accessibility check
|
|
40
|
+
- Contrast ratio verification
|
|
41
|
+
|
|
42
|
+
### Step 4: Suggest Next
|
|
43
|
+
|
|
44
|
+
- "Design approved? → `/build` to implement"
|
|
45
|
+
- "Need variations? → Generate design variants"
|
|
46
|
+
- "Need content? → `/content`"
|
|
@@ -0,0 +1,161 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.validateDispatch = validateDispatch;
|
|
7
|
+
exports.dispatchTaskToAgent = dispatchTaskToAgent;
|
|
8
|
+
const fs_1 = __importDefault(require("fs"));
|
|
9
|
+
const path_1 = __importDefault(require("path"));
|
|
10
|
+
// ─── Agent Display Names ────────────────────────────────────────────────────
|
|
11
|
+
const AGENT_SKILL_PREFIX = {
|
|
12
|
+
'antigravity': '@[/',
|
|
13
|
+
'claude-code': '/',
|
|
14
|
+
'cursor': '@',
|
|
15
|
+
'gemini-cli': '@[/',
|
|
16
|
+
'windsurf': '@',
|
|
17
|
+
'cline': '@',
|
|
18
|
+
'copilot': '',
|
|
19
|
+
};
|
|
20
|
+
const AGENT_DISPLAY = {
|
|
21
|
+
'antigravity': 'Google Antigravity',
|
|
22
|
+
'claude-code': 'Claude Code',
|
|
23
|
+
'cursor': 'Cursor',
|
|
24
|
+
'gemini-cli': 'Gemini CLI',
|
|
25
|
+
'windsurf': 'Windsurf',
|
|
26
|
+
'cline': 'Cline / RooCode',
|
|
27
|
+
'copilot': 'GitHub Copilot',
|
|
28
|
+
'manual': 'Manual',
|
|
29
|
+
};
|
|
30
|
+
// ─── Validation ─────────────────────────────────────────────────────────────
|
|
31
|
+
function validateDispatch(task, project, force = false) {
|
|
32
|
+
// 1. Agent is required
|
|
33
|
+
if (!task.agent) {
|
|
34
|
+
return { success: false, error: 'Agent is required for dispatch. Assign an agent first.', errorCode: 'NO_AGENT' };
|
|
35
|
+
}
|
|
36
|
+
// 2. Cannot dispatch manual tasks
|
|
37
|
+
if (task.agent === 'manual') {
|
|
38
|
+
return { success: false, error: 'Cannot dispatch manual tasks to AI agent. Change agent to an AI agent.', errorCode: 'MANUAL_AGENT' };
|
|
39
|
+
}
|
|
40
|
+
// 3. Project must exist
|
|
41
|
+
if (!project) {
|
|
42
|
+
return { success: false, error: 'Project not found for this task.', errorCode: 'PROJECT_NOT_FOUND' };
|
|
43
|
+
}
|
|
44
|
+
// 4. Project path is required
|
|
45
|
+
if (!project.path) {
|
|
46
|
+
return { success: false, error: 'Project workspace path is required. Edit the project to set a path.', errorCode: 'NO_PROJECT_PATH' };
|
|
47
|
+
}
|
|
48
|
+
// 5. Project path must exist on disk
|
|
49
|
+
if (!fs_1.default.existsSync(project.path)) {
|
|
50
|
+
return { success: false, error: `Project path does not exist: ${project.path}`, errorCode: 'PATH_NOT_FOUND' };
|
|
51
|
+
}
|
|
52
|
+
// 6. Already dispatched (unless force)
|
|
53
|
+
if (task.dispatchStatus === 'dispatched' && task.dispatchedAt && !force) {
|
|
54
|
+
return { success: false, error: `Task already dispatched at ${task.dispatchedAt}. Use force=true to re-dispatch.`, errorCode: 'ALREADY_DISPATCHED' };
|
|
55
|
+
}
|
|
56
|
+
return null; // All validations passed
|
|
57
|
+
}
|
|
58
|
+
// ─── Task File Generation ───────────────────────────────────────────────────
|
|
59
|
+
function generateTaskFileContent(task, project, dashboardPort = 6969) {
|
|
60
|
+
const agentName = AGENT_DISPLAY[task.agent] || task.agent;
|
|
61
|
+
const skillPrefix = AGENT_SKILL_PREFIX[task.agent] || '';
|
|
62
|
+
const skillSuffix = task.agent === 'antigravity' || task.agent === 'gemini-cli' ? ']' : '';
|
|
63
|
+
const skillRef = task.skill ? `${skillPrefix}${task.skill}${skillSuffix}` : 'None';
|
|
64
|
+
const now = new Date().toISOString();
|
|
65
|
+
const priorityEmoji = {
|
|
66
|
+
'low': '🟢', 'medium': '🟡', 'high': '🟠', 'urgent': '🔴',
|
|
67
|
+
};
|
|
68
|
+
let content = `# Task: ${task.title}
|
|
69
|
+
|
|
70
|
+
| Field | Value |
|
|
71
|
+
|-------|-------|
|
|
72
|
+
| Agent | ${agentName} |
|
|
73
|
+
| Skill | ${skillRef} |
|
|
74
|
+
| Priority | ${priorityEmoji[task.priority] || '🟡'} ${task.priority} |
|
|
75
|
+
| Project | ${project.name} |
|
|
76
|
+
| Created | ${task.createdAt} |
|
|
77
|
+
| Dispatched | ${now} |
|
|
78
|
+
| Task ID | ${task.id} |
|
|
79
|
+
|
|
80
|
+
## Description
|
|
81
|
+
|
|
82
|
+
${task.description || 'No additional description provided.'}
|
|
83
|
+
|
|
84
|
+
## Instructions
|
|
85
|
+
|
|
86
|
+
Execute this task in the project workspace at: \`${project.path}\`
|
|
87
|
+
`;
|
|
88
|
+
if (task.skill) {
|
|
89
|
+
content += `
|
|
90
|
+
Use the skill \`${task.skill}\` to guide execution. Invoke it with: ${skillRef}
|
|
91
|
+
`;
|
|
92
|
+
}
|
|
93
|
+
content += `
|
|
94
|
+
## Progress Reporting
|
|
95
|
+
|
|
96
|
+
After completing the task, update the status via CodyMaster API:
|
|
97
|
+
|
|
98
|
+
\`\`\`bash
|
|
99
|
+
# Mark as in-progress
|
|
100
|
+
curl -s -X PUT http://localhost:${dashboardPort}/api/tasks/${task.id}/move \\
|
|
101
|
+
-H "Content-Type: application/json" \\
|
|
102
|
+
-d '{"column": "in-progress"}'
|
|
103
|
+
|
|
104
|
+
# Mark as done when complete
|
|
105
|
+
curl -s -X PUT http://localhost:${dashboardPort}/api/tasks/${task.id}/move \\
|
|
106
|
+
-H "Content-Type: application/json" \\
|
|
107
|
+
-d '{"column": "done"}'
|
|
108
|
+
\`\`\`
|
|
109
|
+
`;
|
|
110
|
+
return content;
|
|
111
|
+
}
|
|
112
|
+
// ─── Dispatcher ─────────────────────────────────────────────────────────────
|
|
113
|
+
function dispatchTaskToAgent(task, project, force = false) {
|
|
114
|
+
// Validate
|
|
115
|
+
const validationError = validateDispatch(task, project, force);
|
|
116
|
+
if (validationError)
|
|
117
|
+
return validationError;
|
|
118
|
+
// Generate content
|
|
119
|
+
const content = generateTaskFileContent(task, project);
|
|
120
|
+
// Create .agent-tasks directory
|
|
121
|
+
const taskDir = path_1.default.join(project.path, '.agent-tasks');
|
|
122
|
+
try {
|
|
123
|
+
if (!fs_1.default.existsSync(taskDir)) {
|
|
124
|
+
fs_1.default.mkdirSync(taskDir, { recursive: true });
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
catch (err) {
|
|
128
|
+
return {
|
|
129
|
+
success: false,
|
|
130
|
+
error: `Cannot create .agent-tasks directory at ${taskDir}: ${err.message}`,
|
|
131
|
+
errorCode: 'WRITE_ERROR',
|
|
132
|
+
};
|
|
133
|
+
}
|
|
134
|
+
// Write task file
|
|
135
|
+
const shortId = task.id.substring(0, 8);
|
|
136
|
+
const safeTitle = task.title.toLowerCase().replace(/[^a-z0-9]+/g, '-').replace(/^-|-$/g, '').substring(0, 40);
|
|
137
|
+
const fileName = `${shortId}-${safeTitle}.agent-task.md`;
|
|
138
|
+
const filePath = path_1.default.join(taskDir, fileName);
|
|
139
|
+
try {
|
|
140
|
+
fs_1.default.writeFileSync(filePath, content, 'utf-8');
|
|
141
|
+
}
|
|
142
|
+
catch (err) {
|
|
143
|
+
return {
|
|
144
|
+
success: false,
|
|
145
|
+
error: `Cannot write task file at ${filePath}: ${err.message}`,
|
|
146
|
+
errorCode: 'WRITE_ERROR',
|
|
147
|
+
};
|
|
148
|
+
}
|
|
149
|
+
// Write/update .gitignore in .agent-tasks
|
|
150
|
+
const gitignorePath = path_1.default.join(taskDir, '.gitignore');
|
|
151
|
+
if (!fs_1.default.existsSync(gitignorePath)) {
|
|
152
|
+
try {
|
|
153
|
+
fs_1.default.writeFileSync(gitignorePath, '# Agent task files are transient — not tracked in git\n*\n!.gitignore\n', 'utf-8');
|
|
154
|
+
}
|
|
155
|
+
catch ( /* non-critical */_a) { /* non-critical */ }
|
|
156
|
+
}
|
|
157
|
+
// Generate CLI command
|
|
158
|
+
const relativePath = path_1.default.relative(project.path, filePath);
|
|
159
|
+
const cliCommand = `gemini run --task "${relativePath}"`;
|
|
160
|
+
return { success: true, filePath, prompt: content, cliCommand };
|
|
161
|
+
}
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getBuiltinChains = getBuiltinChains;
|
|
4
|
+
exports.getChainById = getChainById;
|
|
5
|
+
exports.getAllChainIds = getAllChainIds;
|
|
6
|
+
// ─── Built-in Chain Definitions ─────────────────────────────────────────────
|
|
7
|
+
// TRIZ #40 Composite Materials — skills compose into pipelines
|
|
8
|
+
const BUILTIN_CHAINS = [
|
|
9
|
+
{
|
|
10
|
+
id: 'feature-development',
|
|
11
|
+
name: 'Feature Development',
|
|
12
|
+
description: 'Full pipeline: analyze → plan → test → build → verify → ship',
|
|
13
|
+
icon: '🚀',
|
|
14
|
+
steps: [
|
|
15
|
+
{ skill: 'cm-brainstorm-idea', condition: 'if-complex', optional: true, description: 'Analyze problem & evaluate options (skip for simple features)' },
|
|
16
|
+
{ skill: 'cm-planning', condition: 'always', description: 'Design implementation plan' },
|
|
17
|
+
{ skill: 'cm-tdd', condition: 'always', description: 'Write tests first (Red-Green-Refactor)' },
|
|
18
|
+
{ skill: 'cm-execution', condition: 'always', description: 'Execute the implementation plan' },
|
|
19
|
+
{ skill: 'cm-quality-gate', condition: 'always', description: 'Run 6-gate verification' },
|
|
20
|
+
{ skill: 'cm-safe-deploy', condition: 'if-ready', optional: true, description: 'Deploy to staging/production' },
|
|
21
|
+
],
|
|
22
|
+
triggers: ['feature', 'build', 'create', 'implement', 'add', 'new feature', 'develop', 'tạo', 'xây dựng', 'thêm tính năng'],
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
id: 'bug-fix',
|
|
26
|
+
name: 'Bug Fix',
|
|
27
|
+
description: 'Investigate → fix with tests → verify quality',
|
|
28
|
+
icon: '🐛',
|
|
29
|
+
steps: [
|
|
30
|
+
{ skill: 'cm-debugging', condition: 'always', description: 'Root cause investigation (5-phase)' },
|
|
31
|
+
{ skill: 'cm-tdd', condition: 'always', description: 'Fix with regression test' },
|
|
32
|
+
{ skill: 'cm-quality-gate', condition: 'always', description: 'Verify fix quality' },
|
|
33
|
+
],
|
|
34
|
+
triggers: ['bug', 'fix', 'error', 'broken', 'crash', 'debug', 'sửa', 'lỗi', 'hỏng'],
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
id: 'content-launch',
|
|
38
|
+
name: 'Content Launch',
|
|
39
|
+
description: 'Generate content → setup tracking → optimize conversions',
|
|
40
|
+
icon: '📝',
|
|
41
|
+
steps: [
|
|
42
|
+
{ skill: 'cm-content-factory', condition: 'always', description: 'Research & generate content' },
|
|
43
|
+
{ skill: 'cm-ads-tracker', condition: 'if-ready', optional: true, description: 'Setup conversion tracking' },
|
|
44
|
+
{ skill: 'cro-methodology', condition: 'if-ready', optional: true, description: 'CRO audit & optimization' },
|
|
45
|
+
],
|
|
46
|
+
triggers: ['content', 'blog', 'article', 'marketing', 'launch', 'campaign', 'nội dung', 'bài viết', 'chiến dịch'],
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
id: 'new-project',
|
|
50
|
+
name: 'New Project Setup',
|
|
51
|
+
description: 'Bootstrap → plan → implement → verify → deploy',
|
|
52
|
+
icon: '🏗️',
|
|
53
|
+
steps: [
|
|
54
|
+
{ skill: 'cm-project-bootstrap', condition: 'always', description: 'Full project setup with design system & CI' },
|
|
55
|
+
{ skill: 'cm-planning', condition: 'always', description: 'Plan initial features' },
|
|
56
|
+
{ skill: 'cm-tdd', condition: 'always', description: 'Setup test infrastructure' },
|
|
57
|
+
{ skill: 'cm-execution', condition: 'always', description: 'Build initial features' },
|
|
58
|
+
{ skill: 'cm-quality-gate', condition: 'always', description: 'Quality verification' },
|
|
59
|
+
{ skill: 'cm-safe-deploy', condition: 'if-ready', optional: true, description: 'Initial deployment' },
|
|
60
|
+
],
|
|
61
|
+
triggers: ['new project', 'init', 'bootstrap', 'setup', 'scaffold', 'start from scratch', 'dự án mới', 'khởi tạo'],
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
id: 'code-review',
|
|
65
|
+
name: 'Code Review & Ship',
|
|
66
|
+
description: 'Review code → verify quality → deploy',
|
|
67
|
+
icon: '🔍',
|
|
68
|
+
steps: [
|
|
69
|
+
{ skill: 'cm-code-review', condition: 'always', description: 'Professional PR review' },
|
|
70
|
+
{ skill: 'cm-quality-gate', condition: 'always', description: '6-gate verification' },
|
|
71
|
+
{ skill: 'cm-safe-deploy', condition: 'if-ready', optional: true, description: 'Ship to production' },
|
|
72
|
+
],
|
|
73
|
+
triggers: ['review', 'PR', 'pull request', 'merge', 'ship', 'release', 'kiểm tra', 'duyệt code'],
|
|
74
|
+
},
|
|
75
|
+
];
|
|
76
|
+
// ─── Exports ────────────────────────────────────────────────────────────────
|
|
77
|
+
function getBuiltinChains() {
|
|
78
|
+
return BUILTIN_CHAINS;
|
|
79
|
+
}
|
|
80
|
+
function getChainById(id) {
|
|
81
|
+
return BUILTIN_CHAINS.find(c => c.id === id);
|
|
82
|
+
}
|
|
83
|
+
function getAllChainIds() {
|
|
84
|
+
return BUILTIN_CHAINS.map(c => c.id);
|
|
85
|
+
}
|