Skip to content

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 โ€‹

bash
$ 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 layout

What 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 โ€‹

bash
$ cm dashboard start

๐Ÿš€ CodyMaster Dashboard v3 at http://codymaster.localhost:6969

Open browser โ†’ see Kanban board with tasks moving from backlog โ†’ in-progress โ†’ done.

Step 5: Check Judge Agent โ€‹

bash
$ 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 staging

The 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.com

Example 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 Safari

The 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-browser

Step 2: Fix with TDD โ€‹

@[/cm-tdd] Fix the login button to work on mobile Safari

TDD 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 pass

Step 3: Capture Learning โ€‹

The RARV cycle automatically captures this:

yaml
# .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 production

Example 3: Working Memory in Action โ€‹

Scenario: You work on a feature across 3 sessions over 2 days.

Session 1 (Monday morning) โ€‹

bash
$ 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 system

End of session โ€” CONTINUITY.md auto-updates:

markdown
# 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 diagram

Session 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) โ€‹

bash
$ 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 ago

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

bash
# 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"]
}
bash
# 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:

DomainBestGoodAcceptable
๐Ÿ”ง EngineeringClaude CodeCursorAntigravity
โš™๏ธ OperationsClaude CodeAntigravityCursor
๐ŸŽจ ProductAntigravityClaude CodeCursor
๐Ÿ“ˆ GrowthAntigravityClaude CodeCursor
๐ŸŽฏ OrchestrationAntigravityClaude CodeCursor

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 deploy

Gate 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), Purchase

Output: Complete tracking implementation document:

PlatformEventsMethod
Meta/FacebookPageView, Lead, PurchasePixel + CAPI
TikTokPageView, SubmitForm, PlaceAnOrderPixel + Events API
Google Adspage_view, generate_lead, purchaseEnhanced Conversions
GTMAll above via containerTags + 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 management

The 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 โ€‹

bash
โœ… 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.

bash
$ 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 directly

Step 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 โ€‹

bash
# 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.json

Result: 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 product

What 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.com

Key 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 analysis

The brainstorm output feeds directly into cm-planning with qualified context โ€” no guessing, no ambiguity.


CLI Quick Reference โ€‹

bash
# 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

Open Source AI Agent Skills Framework