CodyMaster Showcase โ
Step-by-step examples showing CodyMaster in action.
Each example includes the exact commands you'll use and what happens behind the scenes.
Example 1: Build a Dashboard Feature โ
Scenario: You want to build a revenue analytics dashboard with charts, filters, and export.
Step 1: Initialize Working Memory โ
$ cm continuity init
โ
Working memory initialized!
Created: /Users/you/my-project/.cm/
โโโ CONTINUITY.md (working memory)
โโโ config.yaml (RARV settings)
โโโ memory/
โโโ learnings.json (error patterns)
โโโ decisions.json (architecture decisions)
๐ก Protocol: Read CONTINUITY.md at session start, update at session end.Step 2: Plan with AI Agent โ
Open your AI agent (Antigravity, Claude Code, Cursor, etc.) and type:
@[/cm-planning] Build a revenue analytics dashboard with:
- Monthly revenue chart (bar + line)
- Customer filter by segment
- Export to CSV/PDF
- Responsive mobile layoutWhat happens:
The agent reads cm-planning skill โ brainstorms architecture โ writes implementation_plan.md โ asks for your approval.
Step 3: Execute Autonomously โ
After approving the plan:
@[/cm-execution] Execute the approved plan using Mode D (RARV)Behind the scenes:
๐ง ORIENT: Read CONTINUITY.md โ no prior learnings
๐ REASON: Task 1/5 โ "Setup chart component with D3.js"
๐ก๏ธ PRE-ACT: Goal aligned โ
๐งช ACT: cm-tdd โ write test for chart rendering โ implement component
๐ REFLECT: Chart component complete, 4 tests passing
โ
VERIFY: Quality gate passed โ 100% coverage
๐ง ORIENT: Read updated CONTINUITY.md โ 1 task done
๐ REASON: Task 2/5 โ "Build filter API endpoint"
...Step 4: Monitor on Dashboard โ
$ cm dashboard start
๐ CodyMaster Dashboard v3 at http://codymaster.localhost:6969Open browser โ see Kanban board with tasks moving from backlog โ in-progress โ done.
Step 5: Check Judge Agent โ
$ curl -s http://codymaster.localhost:6969/api/judge | python3 -m json.tool
{
"task-1": { "action": "COMPLETE", "badge": "๐" },
"task-2": { "action": "CONTINUE", "badge": "๐ข" },
"task-3": { "action": "ESCALATE", "badge": "โ ๏ธ", "reason": "Stuck 12 min" }
}Step 6: Deploy โ
@[/cm-safe-deploy] Deploy to stagingThe 8-gate pipeline runs automatically:
โ
Gate 1: Secrets check โ clean
โ
Gate 2: Syntax validation โ 0 errors
โ
Gate 3: Test gate โ 24/24 passed
โ
Gate 4: Build โ success
โ
Gate 5: Deploy to staging โ live
โ
Gate 6: Smoke test โ all endpoints responding
๐ Staging URL: https://staging.your-app.comExample 2: Fix a Production Bug โ
Scenario: Users report "login button does nothing on mobile."
Step 1: Investigate (Don't Guess!) โ
@[/cm-debugging] Users report login button unresponsive on mobile SafariThe agent's investigation process:
Phase 1: Reproduce
โ Open mobile viewport in browser
โ Confirm: click event not firing on iOS Safari
Phase 2: Narrow Down
โ Check event listeners โ found: button uses 'mousedown' instead of 'click'
โ iOS Safari doesn't fire 'mousedown' on tap
Phase 3: Root Cause
โ Root cause: Non-standard event listener
โ File: src/components/LoginButton.tsx:47
โ Line: element.addEventListener('mousedown', handleLogin)
Phase 4: Evidence
โ MDN docs confirm: use 'click' or 'touchstart' for cross-browserStep 2: Fix with TDD โ
@[/cm-tdd] Fix the login button to work on mobile SafariTDD cycle:
๐ด RED: Write test โ "login button fires on touch event"
โ Test fails (expected: event fires, actual: no event)
๐ข GREEN: Change 'mousedown' โ 'click' in LoginButton.tsx
โ Test passes
๐ REFACTOR: Clean up event handler, add JSDoc
โ All tests still passStep 3: Capture Learning โ
The RARV cycle automatically captures this:
# .cm/CONTINUITY.md โ Mistakes & Learnings
- What failed: Login button unresponsive on iOS Safari
Why: Used 'mousedown' event โ not supported on iOS Safari touch
Prevention: Always use 'click' event for buttons, never 'mousedown'Next time any agent works on button events, CONTINUITY.md warns them.
Step 4: Deploy the Fix โ
@[/cm-safe-deploy] Deploy hotfix to productionExample 3: Working Memory in Action โ
Scenario: You work on a feature across 3 sessions over 2 days.
Session 1 (Monday morning) โ
$ cm continuity status
๐ง Working Memory Status
Project: my-saas-app
Phase: idle
Iteration: 0
Goal: [No active goal set]You start working:
@[/cm-planning] Build multi-tenant billing systemEnd of session โ CONTINUITY.md auto-updates:
# Working Memory
Active Goal: Build multi-tenant billing system
Current Task: Schema design for tenants table
Just Completed:
- Reviewed Stripe API docs
- Drafted ER diagram for 3 tables
Mistakes & Learnings:
- Stripe webhooks require idempotency keys โ nearly missed this
Files Modified:
- docs/billing-schema.md โ Created ER diagramSession 2 (Monday afternoon) โ
Agent reads CONTINUITY.md at session start:
๐ง ORIENT: Goal = "multi-tenant billing"
Active task = "Schema design"
Learning: "Stripe needs idempotency keys"
โ Context fully restored in 200 tokens โ
Without working memory: Agent would need 2000+ tokens of re-explanation.
Session 3 (Tuesday) โ
$ cm continuity status
๐ง Working Memory Status
Project: my-saas-app
Phase: executing
Iteration: 5
Goal: Build multi-tenant billing system
โ
Completed: 8 | ๐ง Blockers: 0
๐ Learnings: 3 | ๐ Decisions: 2
๐ Updated: 14 hours agoAgent picks up exactly where Session 2 left off.
Example 4: Dynamic Agent Selection โ
Scenario: You created a task but aren't sure which AI agent should handle it.
# Ask CodyMaster which agent is best for TDD work
$ curl -s "http://codymaster.localhost:6969/api/agents/suggest?skill=cm-tdd"
{
"skill": "cm-tdd",
"domain": "engineering",
"agents": ["claude-code", "cursor", "antigravity"]
}# For UX design work
$ curl -s "http://codymaster.localhost:6969/api/agents/suggest?skill=cm-ux-master"
{
"skill": "cm-ux-master",
"domain": "product",
"agents": ["antigravity", "claude-code", "cursor"]
}Domain โ Agent Affinity:
| Domain | Best | Good | Acceptable |
|---|---|---|---|
| ๐ง Engineering | Claude Code | Cursor | Antigravity |
| โ๏ธ Operations | Claude Code | Antigravity | Cursor |
| ๐จ Product | Antigravity | Claude Code | Cursor |
| ๐ Growth | Antigravity | Claude Code | Cursor |
| ๐ฏ Orchestration | Antigravity | Claude Code | Cursor |
Example 5: 6-Gate Quality Verification โ
Scenario: You're about to deploy and want full verification.
@[/cm-quality-gate] Run full 6-gate check before production deployGate execution flow:
โโโ Gate 1: Static Analysis โโโโโโโโโโโโโโโโโโโโโโโโ
$ npx tsc --noEmit
โ
0 type errors
$ npx eslint . --max-warnings=0
โ
0 warnings
โโโ Gate 2: Test Coverage โโโโโโโโโโโโโโโโโโโโโโโโโโ
$ npm run test:gate
โ
42 tests passed | 0 failed | 87.3% coverage
โโโ Gate 3: Blind Code Review โโโโโโโโโโโโโโโโโโโโโโ
$ git diff --staged > /tmp/review-diff.txt
๐ Reviewing diff without implementation context...
โ ๏ธ Found: Missing null check in api/billing.ts:23
โ ๏ธ Found: SQL query not using parameterized input in api/users.ts:45
๐ Result: REQUEST_CHANGES (2 issues)
โโโ [FIX REQUIRED] โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
Fixing 2 issues...
Re-running Gate 3...
โ
APPROVE โ 0 issues after fix
โโโ Gate 4: Anti-Sycophancy โโโโโโโโโโโโโโโโโโโโโโโโ
(Gate 3 found issues, so this gate was already validated)
โ
CONFIRMED โ No additional hidden issues
โโโ Gate 5: Security Scan โโโโโโโโโโโโโโโโโโโโโโโโโโ
Checking for secrets in source...
โ
No hardcoded secrets found
$ npm audit --production
โ
0 vulnerabilities
โโโ Gate 6: i18n Integrity โโโโโโโโโโโโโโโโโโโโโโโโโ
Checking locale file parity...
โ
vi.json (234 keys) = en.json (234 keys) = th.json (234 keys)
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
๐ ALL 6 GATES PASSED โ Safe to deploy!Example 6: Tracking Setup for Marketing โ
Scenario: Launch a new product page and set up conversion tracking.
@[/cm-ads-tracker] Setup tracking for our new SaaS landing page:
- Facebook Pixel ID: 123456789
- TikTok Pixel ID: ABC123
- Google Ads Conversion ID: AW-987654321
- Events: PageView, Lead (form submit), PurchaseOutput: Complete tracking implementation document:
| Platform | Events | Method |
|---|---|---|
| Meta/Facebook | PageView, Lead, Purchase | Pixel + CAPI |
| TikTok | PageView, SubmitForm, PlaceAnOrder | Pixel + Events API |
| Google Ads | page_view, generate_lead, purchase | Enhanced Conversions |
| GTM | All above via container | Tags + Triggers + Variables |
Plus: UTM conventions, attribution model, deduplication strategy.
Example 7: Self-Enhancing Skill Discovery โ
Scenario: You need to set up Prisma ORM, but CodyMaster has no built-in Prisma skill.
Step 1: Agent Detects the Gap โ
@[/cm-planning] Setup Prisma ORM with PostgreSQL for our user managementThe agent realizes it doesn't have a Prisma-specific skill:
๐ง DETECT: "I need Prisma expertise but don't have a matching cm-* skill"
๐ SEARCH: npx skills find "prisma"Step 2: Search & Recommend โ
๐ Found 2 relevant skills on skills.sh:
1. "prisma-best-practices" by vercel-labs/agent-skills
๐ 12K installs | โญ Trusted source
๐ Prisma schema design, migrations, type-safe queries
2. "database-schema-design" by vercel-labs/agent-skills
๐ 8K installs | โญ Trusted source
๐ General DB schema patterns, normalization, indexing
โ Install both? (Y/n)Step 3: Install & Use โ
โ
Installed: prisma-best-practices (global)
โ
Installed: database-schema-design (global)
๐ Logged to .cm-skills-log.json
โ Now applying Prisma best practices to your project...Step 4: Skills Persist โ
Next project that needs Prisma โ skills are already installed globally. No re-discovery needed.
$ npx skills list
Global skills:
โ
find-skills (vercel-labs/skills)
โ
prisma-best-practices (vercel-labs/agent-skills)
โ
database-schema-design (vercel-labs/agent-skills)
โ
web-design-guidelines (vercel-labs/agent-skills)
...Example 8: Universal Agent Bootstrap โ
Scenario: You're setting up a new SaaS project and your team uses Claude Code, Cursor, and Antigravity.
Step 1: Bootstrap the Project โ
@[/cm-project-bootstrap] New SaaS project called "InvoiceFlow"Step 2: Agent Platform Selection (Phase 6.5) โ
๐ AGENT PLATFORM SETUP
(Select all platforms your team uses)
[x] AGENTS.md (Open Standard) โ Always generated
[x] Claude Desktop / Claude Code โ CLAUDE.md
[x] Cursor โ .cursor/rules/*.mdc
[ ] OpenClaw / MaxClaw
[ ] OpenFang
[ ] Manus
[ ] Kimi Claw
[x] Gemini / Antigravity โ Uses AGENTS.md directlyStep 3: Auto-Generated Configs โ
โ
Generated from AGENTS.md:
๐ AGENTS.md โ Universal manifest (source of truth)
๐ CLAUDE.md โ Claude-specific context + safety rules
๐ .cursor/rules/
โโโ project.mdc โ Project overview with globs
โโโ coding-style.mdc โ Conventions + design tokens
โโโ safety.mdc โ Never/Confirm/Always guardrails
๐ .project-agent-compat.json โ Platform tracking
All files auto-generated. Never edit derived files directly.Step 4: Keep Configs in Sync โ
# After updating AGENTS.md, regenerate platform configs:
$ npm run agent:sync
โ
Regenerated CLAUDE.md from AGENTS.md
โ
Regenerated .cursor/rules/*.mdc from AGENTS.md
โ
Updated .project-agent-compat.jsonResult: Every AI agent on the team reads the same project rules, guardrails, and conventions โ regardless of which platform they prefer.
Example 9: Skill Chain Automation โ
Scenario: You want to go from idea to deployed landing page with one command using chained skills.
Step 1: Trigger a Skill Chain โ
@[/cm-skill-chain] Build and deploy a landing page for my new AI tutoring productWhat happens behind the scenes:
๐ CHAIN DETECTED: landing-page-pipeline
Step 1/5: cm-brainstorm-idea โ Analyze target audience + positioning
โ
Qualified problem: "AI tutoring for K-12 students"
โ
Recommended approach: Social proof + demo-first CTA
Step 2/5: cm-ux-master โ Extract design system + choose template
โ
Design tokens generated
โ
Color palette: Educational blue/green
Step 3/5: cm-content-factory โ Write conversion-optimized copy
โ
Hero headline, features, testimonials, CTA
โ
SEO meta tags
Step 4/5: cm-execution โ Build and assemble
โ
HTML/CSS/JS generated
โ
Responsive + accessible
Step 5/5: cm-safe-deploy โ Deploy to staging
โ
8 gates passed
โ
Live at https://staging.ai-tutor.comKey Benefit โ
Instead of manually invoking 5 skills in sequence, the Skill Chain Engine orchestrates everything automatically. One prompt โ full pipeline.
Example 10: Strategic Analysis (Brainstorm Idea) โ
Scenario: Your SaaS dashboard needs improvement but you're unsure what direction to take.
Step 1: Run Strategic Analysis โ
@[/cm-brainstorm-idea] Our dashboard conversion rate dropped 15% last month.
Users complain about complexity. What should we do?The agent runs the Double Diamond process:
Phase 1: DISCOVER
๐ Scanned codebase: 47 components, 12 pages, 3 API endpoints
๐ User context: B2B SaaS, 500 active users, churn spike
Phase 2: DEFINE (9 Windows Analysis)
โโโโโโโโโโโโโโโฌโโโโโโโโโโโโโโโโโโโฌโโโโโโโโโโโโโโโโโโโ
โ โ PRESENT โ FUTURE โ
โโโโโโโโโโโโโโโผโโโโโโโโโโโโโโโโโโโผโโโโโโโโโโโโโโโโโโโค
โ System โ Complex 12-page โ Simplified 5-pageโ
โ (product) โ dashboard โ with guided UX โ
โโโโโโโโโโโโโโโดโโโโโโโโโโโโโโโโโโโดโโโโโโโโโโโโโโโโโโโ
Phase 3: DEVELOP โ 3 Options Generated
Option A: Simplify (remove 7 pages, guided onboarding)
Option B: Personalize (AI-driven default views per role)
Option C: Rebuild (new design system, progressive disclosure)
Phase 4: EVALUATE
โโโโโโโโโโโโโโฌโโโโโโโฌโโโโโโโฌโโโโโโโ
โ Dimension โ A โ B โ C โ
โโโโโโโโโโโโโโผโโโโโโโผโโโโโโโผโโโโโโโค
โ Tech โ 8/10 โ 6/10 โ 4/10 โ
โ Product โ 7/10 โ 9/10 โ 8/10 โ
โ Business โ 9/10 โ 7/10 โ 5/10 โ
โโโโโโโโโโโโโโผโโโโโโโผโโโโโโโผโโโโโโโค
โ Total โ 8.0 โ 7.3 โ 5.7 โ
โโโโโโโโโโโโโโดโโโโโโโดโโโโโโโดโโโโโโโ
๐ฏ Recommendation: Option A (Simplify)Step 2: Handoff to Planning โ
@[/cm-planning] Execute Option A from the brainstorm analysisThe brainstorm output feeds directly into cm-planning with qualified context โ no guessing, no ambiguity.
CLI Quick Reference โ
# Dashboard
cm dashboard start # Launch on default port 6969
cm dashboard start -p 8080 # Custom port
# Working Memory
cm continuity init # Create .cm/ directory
cm continuity status # View current state
cm ctx status # Alias for above
cm continuity learnings # View error patterns
cm continuity decisions # View architecture decisions
cm continuity reset # Clear state (keeps learnings)
# Project Management
cm project new <name> # Create new project
cm task add <title> # Add task to backlog
cm task list # View all tasks
cm dispatch <task-id> # Send task to AI agent
# Version
cm --version # 3.1.0
cm --help # Full command list