with one click
cm-code-review
// Full review lifecycle — request reviews, handle feedback with technical rigor, and complete branch integration. Use when completing tasks, receiving feedback, or finishing feature branches.
// Full review lifecycle — request reviews, handle feedback with technical rigor, and complete branch integration. Use when completing tasks, receiving feedback, or finishing feature branches.
Self-learning SEO content pipeline: dashboard, multi-agent queue, token budgets, research → write → audit → publish. StoryBrand/Cialdini/JTBD-style frameworks; config-driven. Use for content factory, batch articles, or scaled publishing.
Easy-to-use conversational CLI (Codex 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) + Double Diamond. Outputs 2-3 qualified options with recommendations. Use BEFORE cm-planning for complex initiatives and enhancements on existing codebases.
Unified code intelligence — Skeleton Index (zero-dep, <4s) + AST knowledge graph (CodeGraph) + architecture diagrams (Mermaid) + smart context builder. Pre-indexes code structure so AI agents understand any codebase instantly. 95% token compression for onboarding. 30% fewer tokens for deep analysis.
Working memory protocol — maintains context across sessions via CONTINUITY.md. Inspired by Loki Mode. Read at turn start, update at turn end. Captures mistakes and learnings to prevent repeating errors.
Optional power-up — detects oversized codebases/docs and suggests tobi/qmd for local semantic search. Bridges cm-continuity (working memory) with long-term document retrieval. Zero-config detection, non-intrusive suggestion.
| name | cm-code-review |
| description | Full review lifecycle — request reviews, handle feedback with technical rigor, and complete branch integration. Use when completing tasks, receiving feedback, or finishing feature branches. |
| token_budget | 1500 |
| compressed | true |
| deprecated | false |
Full review lifecycle in one skill: Request → Receive → Integrate.
Mandatory:
cm-executionOptional but valuable:
Get git SHAs:
BASE_SHA=$(git rev-parse HEAD~1)
HEAD_SHA=$(git rev-parse HEAD)
Dispatch reviewer subagent with:
Act on feedback:
When receiving feedback — whether from human reviewers, AI reviewers, or code review subagents.
1. READ feedback completely before responding
2. UNDERSTAND the technical reasoning
3. VERIFY if the feedback is technically correct
4. RESPOND with evidence, not agreement
| Feedback Type | Response |
|---|---|
| Technically correct | Fix it. Thank reviewer. |
| Unclear intent | Ask for clarification with specific questions |
| Technically questionable | Challenge with evidence (code, tests, docs) |
| Stylistic preference | Discuss trade-offs, defer to team convention |
❌ "Good catch! Fixed." (without verifying it's actually a problem)
✅ "I verified this: [evidence]. The suggestion is correct because [reason]. Fixed."
✅ "I investigated this: [evidence]. The current code is correct because [reason]."
When implementation is complete and all tests pass.
Verify current state:
npm run test:gate # All tests must pass
git status # Working tree should be clean
Present options to user:
| Option | When | Command |
|---|---|---|
| Merge to main | Feature ready | git checkout main && git merge feature-branch |
| Create PR | Needs team review | git push origin feature-branch |
| Keep working | More tasks remain | Continue on branch |
| Cleanup only | Abandoned/merged | git worktree remove path |
Execute chosen option
Cleanup:
cm-git-worktreescm-identity-guard before git pushAfter processing review feedback, ALWAYS update .cm/CONTINUITY.md:
[Decision]: [Rationale] — scope: [global|module:{name}]Anti-duplicate: If similar learning exists, reinforce it instead of creating new.
Token savings: Future code reviews in same project avoid repeating the same feedback. Reviewer patterns become accumulated knowledge.
| Skill | Relationship |
|---|---|
cm-execution | Reviews after each task in execution |
cm-quality-gate | Tests must pass before finishing branch |
cm-identity-guard | Before git push |
cm-git-worktrees | Cleanup worktree after completion |
Block any PR/diff that violates these regardless of green tests:
Review heuristic: if you can't answer "what task forced this line?" for every changed line, the diff is too wide.
Review early. Verify feedback. Ship with evidence, not hope.