Codymaster cm-how-it-work
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.
git clone https://github.com/tody-agent/codymaster
T=$(mktemp -d) && git clone --depth=1 https://github.com/tody-agent/codymaster "$T" && mkdir -p ~/.claude/skills && cp -r "$T/skills/cm-how-it-work" ~/.claude/skills/tody-agent-codymaster-cm-how-it-work && rm -rf "$T"
skills/cm-how-it-work/SKILL.mdCodyMaster Kit — The Ultimate Vibe Coding Guide
Overview
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.
💡 Idea → 🔍 Analysis → 📐 Design → 🧪 Test-first (TDD) → 💻 Code → ✅ Verify → 🚀 Deploy → 🔄 Iterate
Workflow
Phase 0: Identity & Safety 🔒
Rule #1: Always verify identity before performing any action that could change the project state.
- Skill:
cm-identity-guard - When: At the start of a work session, before git push, deploy, or database operations.
- Action: Run
(or similar script) to verify GitHub/Cloudflare/Supabase accounts.node check-identity.js
Phase 0.3: Knowledge Infrastructure Setup 🧠
For large codebases, establish the memory foundation before planning.
- Skills:
+cm-codeintell
+cm-dockit
+cm-deep-searchcm-notebooklm - When: When onboarding to a new codebase or starting a massive refactoring initiative.
- Action:
- Scan structure with
to build the Skeleton Index.cm-codeintell - Generate missing architectural docs with
.cm-dockit - Index the docs for fast local retrieval with
(qmd).cm-deep-search - Sync high-value patterns to the Cloud Brain with
.cm-notebooklm
- Scan structure with
- Output: A fully indexed 5-tier memory ecosystem ready for precise, low-token AI problem solving.
Phase 0.5: Strategic Analysis 🔍
For complex initiatives and enhancements on existing products.
- Skills:
+cm-brainstorm-ideacm-codeintell - When: When the task is complex and requires multi-dimensional analysis (tech, product, design, business) before planning.
- Action:
- Scan codebase with code intelligence (AST graph + architecture diagram via
).cm-codeintell - Interview user and analyze with 9 Windows (TRIZ).
- Propose 2-3 options, evaluate multi-dimensionally, recommend the best option.
- Scan codebase with code intelligence (AST graph + architecture diagram via
- Output: OpenSpec
— qualified problem + recommended option → passes toopenspec/changes/[initiative]/proposal.md
.cm-planning
Phase 1: Planning & Design 📐
Understand the 'Job to be Done' (JTBD) and architecture before writing code.
- Skill:
(Combines brainstorming + writing-plans)cm-planning - Action:
- Brainstorm requirements and analyze i18n.
- Propose architecture and tech stack.
- Write detailed OpenSpec docs (
andopenspec/changes/[init]/design.md
).tasks.md
- Output: Design docs and execution plan (OpenSpec tasks) approved by user.
Phase 2: Implementation (TDD & Execution) 💻
Turn the plan into actual source code safely.
- Skills:
: Red-Green-Refactor cycle. No production code without a failing test first.cm-tdd
: Execute plans intelligently (Manual, Parallel, or Subagent mode).cm-execution
: For new projects — setup repo, i18n, SEO, and deploy pipeline from Day 0.cm-project-bootstrap
: Isolate different work items to avoid state mixing.cm-git-worktrees
Phase 3: Quality Control & Verification ✅
Prove with evidence, not words.
- Skills:
: Setup test infrastructure (cm-quality-gate
) and verify output before claiming "done".test:gate
: When tests fail, use systematic investigation framework to find root cause.cm-debugging
: Professional request and feedback review process.cm-code-review
Phase 4: Safe Deployment 🚀
Ship code without fear of incidents.
- Skills:
: Run 8-gate pipeline (Secret → Syntax → Test → Build → Deploy → Smoke).cm-safe-deploy
: Translate and synchronize languages consistently across the entire project.cm-safe-i18n
: Monitor all terminal commands to detect errors immediately.cm-terminal
CodyMaster Kit — 34 Skills Summary
🔧 Engineering
| Skill | Primary Function |
|---|---|
| Strict Red-Green-Refactor TDD — no code without failing test first. |
| Systematic 5-phase error investigation (root cause first). |
| 6-gate verification: static analysis → blind review → ship. |
| Setup 4-layer test infrastructure (unit → integration → e2e → security). |
| Manage PR lifecycle: request → receive feedback → complete branch. |
| AST knowledge graph + architecture diagrams + smart context (30% fewer tokens). |
⚙️ Operations
| Skill | Primary Function |
|---|---|
| Multi-gate deploy pipeline with rollback strategy. |
| Verify account before push/deploy to prevent wrong-project incidents. |
| Isolate feature work in separate worktrees — no state mixing. |
| Safe terminal execution with progress logging and error capture. |
| Defense-in-depth: pre-commit hooks, repo scanning, token lifecycle. |
| Safe multi-language management with multi-pass batching and 8-gate audit. |
🎨 Product
| Skill | Primary Function |
|---|---|
| Full project setup: design system → CI → staging → deploy from Day 0. |
| Strategic analysis gate: 9 Windows + Double Diamond → 2-3 qualified options. |
| Brainstorm intent → write implementation plan → coordinate execution. |
| 48 UX Laws + 37 Design Tests + Figma/Stitch + BM25 semantic design search. |
| Live UI concept generation via Google Stitch or Pencil MCP. |
| Generate complete knowledge bases, SOPs, and API docs from codebase. |
| Web audio engine: TTS reader, MP3 audio player, Voice CRO trigger system. |
| JTBD customer discovery: Switch Interview → Canvas → Opportunity Scoring. |
📈 Growth
| Skill | Primary Function |
|---|---|
| Self-learning content engine: research → generate → audit → deploy. |
| Conversion tracking setup: GTM, Meta CAPI, TikTok, Google Ads. |
| CRO audit: funnel mapping → persuasion assets → A/B test design. |
🎯 Orchestration
| Skill | Primary Function |
|---|---|
| Execute plans: Manual / Parallel / Subagent / RARV batch modes. |
| Working memory protocol: read at session start, update at session end. |
| Meta-skill: when to invoke which skill, how to create new skills. |
| Compose skills into automated multi-step pipelines (5 built-in chains). |
| Progressive disclosure index — 90% token savings on skill discovery. |
| Semantic search via qmd for large codebases (>200 src / >50 docs files). |
| Cloud Brain sync — cross-machine knowledge persistence via NotebookLM. |
| Full vibe coding guide — phases, skills per phase, use cases. |
🖥️ Workflow Commands
| Skill | Primary Function |
|---|---|
| Orchestrate full workflow from objective to production code. |
| Render Kanban board from cm-tasks.json — visual status overview. |
| Ultra-concise 1-2 sentence progress summary (what's done, what's next). |
🚀 Autonomous Workflow System
The kit supports autonomous mode by applying the Reason → Act → Reflect → Verify (RARV) loop.
How to Use the Workflow:
: Start work. The system will automatically initialize the OpenSpec structure (/cm-start [objective]
), break down tasks intoopenspec/changes/[objective]/
and sync withtasks.md
, launch the tracking interface, and autonomously use CM skills to complete them.cm-tasks.json
: Open the visual tracking Dashboard in browser (shows Kanban board, reasoning log, and progress)./cm-dashboard
: View quick progress summary in Terminal./cm-status
💡 Activation Guide by Use Cases
There are 2 ways to use CodyMaster: Fully autonomous (Via Workflows) or Manual skill activation (Via Prompting).
1. Build New Feature / New Project (Autonomous)
Best way to delegate complete work packages.
- Command:
/cm-start "Build user management feature with list screen and CRUD form" - Implicit flow: Planning → create Task JSON → sub-agents continuously run
andcm-tdd
for each task until done.cm-quality-gate
2. Fix Production Bug (Manual)
Bugs need close supervision and AI should not blindly change too much code.
- Step 1: Activate
to find Root Cause.cm-debugging - Step 2: Activate
to write test reproducing the bug and fix it.cm-tdd - Step 3: Activate
to ship code safely.cm-safe-deploy
3. Setup New Project From Scratch
Establish a solid foundation to avoid technical debt later.
- Command: "Use
to ensure correct account, then runcm-identity-guard
to setup a new Next.js project."cm-project-bootstrap
4. Batch Multi-Language Translation
Tedious work that's error-prone if AI loses focus.
- Command: "Use
to extract all hardcoded text incm-safe-i18n
directory to/components
andvi.json
files."en.json
9 Golden Rules
- Identity First: Verify account (
) before push/deploy.cm-identity-guard - Design Before Code: Always have an approved plan before typing.
- i18n Day 0: Always consider multi-language from the brainstorm step.
- Test Before Code: RED → GREEN → REFACTOR. No exceptions (
).cm-tdd - Evidence Over Claims: Only trust terminal/test results output, not AI "saying" it's done.
- Deploy via Gates: 8 gates must pass sequentially. Any gate fails = STOP (
).cm-safe-deploy - Safe Secrets: Never commit secrets. Pre-commit hooks protect every push (
).cm-secret-shield - Parallel Power: Use parallel execution for i18n or multi-bug fixes (
).cm-execution - Working Memory: Read CONTINUITY.md at session start, update at session end (
).cm-continuity