cm-autopilot
Easy-to-use conversational CLI (Claude Code style) for non-technical users to spawn parallel AI tasks supervised by a visual web dashboard.
Use before any deployment or completion claim. Enforces test gates, evidence-based verification, and frontend safety checks. No deploy without passing. No claims without evidence.
$ npx -y skills add tody-agent/codymaster --skill cm-quality-gate --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/cm-quality-gateContext preview
The summary Claude sees to decide when to auto-load this skill.
Use before any deployment or completion claim. Enforces test gates, evidence-based verification, and frontend safety checks. No deploy without passing. No claims without evidence.
name: cm-quality-gate description: "Use before any deployment or completion claim. Enforces test gates, evidence-based verification, and frontend safety checks. No deploy without passing. No claims without evidence." token_budget: 1800 compressed: true deprecated: false
> **Three checkpoints, one skill:** Pre-deploy testing, evidence verification, frontend safety.
1. **NO DEPLOY** without passing `test:gate`. 2. **NO CLAIMS** without fresh verification output. 3. **NO FRAGILE FRONTEND** — safety tests are mandatory.
---
> **Goal:** Identify the framework and install the correct testing dependencies.
1. **Detect Stack:** Check `package.json` for framework (React, Vue, Astro, etc.) and `wrangler.json(c)`. 2. **Install Deps:** `npm install -D vitest jsdom acorn` 3. **Configure:** Create `vitest.config.ts` or `vite.config.ts` with `environment: 'jsdom'`. 4. **Wire Scripts:**
{
"scripts": {
"test:gate": "vitest run --reporter=verbose"
}
}---
Do not combine these files. They form the "Quality Gate."
Prevents white screens, template corruption, and syntax errors.
test('app.js does not contain catastrophic corruption', () => {
const code = fs.readFileSync('public/static/app.js', 'utf-8');
expect(code).not.toMatch(/=\s*'[^']*\$\{t\(/); // Bug #1
expect(code).not.toMatch(/<\s+[a-zA-Z]/); // Bug #2
});Ensures backend endpoints respond correctly.
Tests pure functions, validations, and transformations.
Guarantees all language files have identical key counts.
---
**ALWAYS** run `npm run test:gate` before deploying. 0 failures required.
1. **Check for skip override** (explicit user words only):
2. **Run test gate:**
npm run test:gate
3. **Parse results:** total files, total tests, failures, duration
4. **Gate decision:**
| DON'T | DO | |-------|-----| | Deploy then test | Test then deploy | | "Tests passed earlier" | Run fresh test:gate NOW | | Skip for "small changes" | Every change gets tested | | Run test + deploy parallel | Sequential: test → gate → deploy |
**ALWAYS** run the proving command before saying "fixed" or "done."
1. IDENTIFY → What command proves this claim? 2. RUN → Execute the FULL command (fresh) 3. READ → Full output, check exit code 4. VERIFY → Does output confirm the claim? 5. ONLY THEN → Make the claim
| Claim | Requires | Not Sufficient | |-------|----------|----------------| | Tests pass | Test output: 0 failures | "Should pass", previous run | | Build succeeds | Build: exit 0 | Linter passing | | Bug fixed | Test symptom: passes | Code changed, assumed fixed | | Requirements met | Line-by-line checklist | Tests passing |
Automated via Layer 1 above.
Setting up or enhancing test suites for projects with frontend JavaScript/TypeScript.
| Layer | What it checks | Priority | |-------|---------------|----------| | 1. Syntax Validation | JS parses without errors (via acorn) | **CRITICAL** | | 2. Function Integrity | Named functions exist and are callable | Required | | 3. Template Safety | HTML templates have matching tags | Required | | 4. Asset References | Referenced files actually exist | Required | | 5. Corruption Patterns | Known bad patterns (empty functions, truncation) | Required | | 6. Import/Export | Module references resolve | Recommended | | 7. CSS Validation | CSS files parse correctly | Recommended |
npm install -D vitest acorn
import { parse } from 'acorn';
import { readFileSync } from 'fs';
test('app.js has valid syntax', () => {
const code = readFileSync('public/static/app.js', 'utf-8');
expect(() => parse(code, { ecmaVersion: 2022, sourceType: 'script' })).not.toThrow();
});> This single test would have prevented the March 2026 white-screen incident.
---
After ALL gates pass, update `.cm/CONTINUITY.md`:
After ANY gate fails, **FIRST run Memory Integrity Check:** 1. List active learnings/decisions for the failing module 2. Ask: "Did AI follow a learning/decision that caused this failure?" 3. If YES → HEAL memory (invalidate/correct/scope-reduce) BEFORE recording new learning 4. Record meta-learning in `.cm/meta-learnings.json` if memory was the cause
**Then** update `.cm/CONTINUITY.md`:
"I can't write code. But in 6 months, I shipped 12 real products using AI. CodyMaster is everything I learned — so you don't have to repeat my mistakes." — Tody Le, Head of Product, Creator of CodyMaster 50+ skills. One install.
Repo: tody-agent/codymaster
Easy-to-use conversational CLI (Claude Code style) for non-technical users to spawn parallel AI tasks supervised by a visual web dashboard.
Strategic analysis gate for existing products — multi-dimensional evaluation (tech, product, design, business) using Design Thinking + 9 Windows (TRIZ) +…
Fallback local Playwright daemon for real-browser visual QA / screenshots / smoke. Use ONLY when the host platform has no native browser mode — prefer the host…
Code hygiene gate — detect and eliminate dead code, duplicates, naming mess, and code smells. TRIZ-powered. Run after features, before PRs, during debt sprints.
Full review lifecycle — request reviews, handle feedback with technical rigor, and complete branch integration. Use when completing tasks, receiving feedback,…
Unified code intelligence — routes to Skeleton Index, CodeGraph, Architecture Diagram, or Smart Context Builder based on task shape. Loads deep refs on demand.