Cm how it work

From tody-agent/codymaster · View interactive version

Cm how it work is an AI agent skill from the GitHub repository tody-agent/codymaster. 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.

How to use this skill

Skill file

CodyMaster 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.


Phase 0.3: Knowledge Infrastructure Setup 🧠

For large codebases, establish the memory foundation before planning.

1. Scan structure with cm-codeintell to build the Skeleton Index.

2. Generate missing architectural docs with cm-dockit.

3. Index the docs for fast local retrieval with cm-deep-search (qmd).

4. Sync high-value patterns to the Cloud Brain with cm-notebooklm.


Phase 0.5: Strategic Analysis 🔍

For complex initiatives and enhancements on existing products.

1. Scan codebase with code intelligence (AST graph + architecture diagram via cm-codeintell).

2. Interview user and analyze with 9 Windows (TRIZ).

3. Propose 2-3 options, evaluate multi-dimensionally, recommend the best option.


Phase 1: Planning & Design 📐

Understand the 'Job to be Done' (JTBD) and architecture before writing code.

1. Brainstorm requirements and analyze i18n.

2. Propose architecture and tech stack.

3. Write detailed OpenSpec docs (openspec/changes/[init]/design.md and tasks.md).


Phase 2: Implementation (TDD & Execution) 💻

Turn the plan into actual source code safely.


Phase 3: Quality Control & Verification ✅

Prove with evidence, not words.


Phase 4: Safe Deployment 🚀

Ship code without fear of incidents.


CodyMaster Kit — 34 Skills Summary

🔧 Engineering

| Skill | Primary Function |

|-------|-----------------|

| cm-tdd | Strict Red-Green-Refactor TDD — no code without failing test first. |

| cm-debugging | Systematic 5-phase error investigation (root cause first). |

| cm-quality-gate | 6-gate verification: static analysis → blind review → ship. |

| cm-test-gate | Setup 4-layer test infrastructure (unit → integration → e2e → security). |

| cm-code-review | Manage PR lifecycle: request → receive feedback → complete branch. |

| cm-codeintell | AST knowledge graph + architecture diagrams + smart context (30% fewer tokens). |

⚙️ Operations

| Skill | Primary Function |

|-------|-----------------|

| cm-safe-deploy | Multi-gate deploy pipeline with rollback strategy. |

| cm-identity-guard | Verify account before push/deploy to prevent wrong-project incidents. |

| cm-git-worktrees | Isolate feature work in separate worktrees — no state mixing. |

| cm-terminal | Safe terminal execution with progress logging and error capture. |

| cm-secret-shield | Defense-in-depth: pre-commit hooks, repo scanning, token lifecycle. |

| cm-safe-i18n | Safe multi-language management with multi-pass batching and 8-gate audit. |

🎨 Product

| Skill | Primary Function |

|-------|-----------------|

| cm-project-bootstrap | Full project setup: design system → CI → staging → deploy from Day 0. |

| cm-brainstorm-idea | Strategic analysis gate: 9 Windows + Double Diamond → 2-3 qualified options. |

| cm-planning | Brainstorm intent → write implementation plan → coordinate execution. |

| cm-ux-master | 48 UX Laws + 37 Design Tests + Figma/Stitch + BM25 semantic design search. |

| cm-ui-preview | Live UI concept generation via Google Stitch or Pencil MCP. |

| cm-dockit | Generate complete knowledge bases, SOPs, and API docs from codebase. |

| cm-readit | Web audio engine: TTS reader, MP3 audio player, Voice CRO trigger system. |

| cm-jtbd | JTBD customer discovery: Switch Interview → Canvas → Opportunity Scoring. |

📈 Growth

| Skill | Primary Function |

|-------|-----------------|

| cm-content-factory | Self-learning content engine: research → generate → audit → deploy. |

| cm-ads-tracker | Conversion tracking setup: GTM, Meta CAPI, TikTok, Google Ads. |

| cm-cro-methodology | CRO audit: funnel mapping → persuasion assets → A/B test design. |

🎯 Orchestration

| Skill | Primary Function |

|-------|-----------------|

| cm-execution | Execute plans: Manual / Parallel / Subagent / RARV batch modes. |

| cm-continuity | Working memory protocol: read at session start, update at session end. |

| cm-skill-mastery | Meta-skill: when to invoke which skill, how to create new skills. |

| cm-skill-chain | Compose skills into automated multi-step pipelines (5 built-in chains). |

| cm-skill-index | Progressive disclosure index — 90% token savings on skill discovery. |

| cm-deep-search | Semantic search via qmd for large codebases (>200 src / >50 docs files). |

| cm-notebooklm | Cloud Brain sync — cross-machine knowledge persistence via NotebookLM. |

| cm-how-it-work | Full vibe coding guide — phases, skills per phase, use cases. |

🖥️ Workflow Commands

| Skill | Primary Function |

|-------|-----------------|

| cm-start | Orchestrate full workflow from objective to production code. |

| cm-dashboard | Render Kanban board from cm-tasks.json — visual status overview. |

| cm-status | 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:

  1. /cm-start [objective]: Start work. The system will automatically initialize the OpenSpec structure (openspec/changes/[objective]/), break down tasks into tasks.md and sync with cm-tasks.json, launch the tracking interface, and autonomously use CM skills to complete them.
  2. /cm-dashboard: Open the visual tracking Dashboard in browser (shows Kanban board, reasoning log, and progress).
  3. /cm-status: View quick progress summary in Terminal.

💡 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.

2. Fix Production Bug (Manual)

Bugs need close supervision and AI should not blindly change too much code.

3. Setup New Project From Scratch

Establish a solid foundation to avoid technical debt later.

4. Batch Multi-Language Translation

Tedious work that's error-prone if AI loses focus.


9 Golden Rules

  1. Identity First: Verify account (cm-identity-guard) before push/deploy.
  2. Design Before Code: Always have an approved plan before typing.
  3. i18n Day 0: Always consider multi-language from the brainstorm step.
  4. Test Before Code: RED → GREEN → REFACTOR. No exceptions (cm-tdd).
  5. Evidence Over Claims: Only trust terminal/test results output, not AI "saying" it's done.
  6. Deploy via Gates: 8 gates must pass sequentially. Any gate fails = STOP (cm-safe-deploy).
  7. Safe Secrets: Never commit secrets. Pre-commit hooks protect every push (cm-secret-shield).
  8. Parallel Power: Use parallel execution for i18n or multi-bug fixes (cm-execution).
  9. Working Memory: Read CONTINUITY.md at session start, update at session end (cm-continuity).
Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.