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.
Strategic codebase re-direction when requirements change, architecture doesn't fit, or tech debt blocks progress. TRIZ-powered pivot protocol for large codebases.
$ npx -y skills add tody-agent/codymaster --skill cm-reactor --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/cm-reactorContext preview
The summary Claude sees to decide when to auto-load this skill.
Strategic codebase re-direction when requirements change, architecture doesn't fit, or tech debt blocks progress. TRIZ-powered pivot protocol for large codebases.
name: cm-reactor description: "Strategic codebase re-direction when requirements change, architecture doesn't fit, or tech debt blocks progress. TRIZ-powered pivot protocol for large codebases."
> **When the code works but the direction is wrong, you don't debug — you REACT.** > TRIZ-powered protocol for pivoting large codebases without losing stability.
**ALWAYS when:**
**Skip when:**
NO REWRITE WITHOUT REACTOR ANALYSIS FIRST
Rewrites fail 70% of the time. Incremental strategic migration succeeds 90% of the time.
| # | Principle | How Applied | |---|-----------|-------------| | **#35** | Parameter Change | Change the fundamental parameter (language, pattern, architecture) — not the symptom | | **#28** | Mechanics Substitution | Replace one mechanism with a more effective one (OOP → FP, REST → GraphQL, etc.) | | **#13** | The Other Way Around | Instead of adapting new code to old architecture, adapt old architecture to new requirements | | **#25** | Self-Service | Design the migration so each component can migrate independently | | **#1** | Segmentation | Break monolithic change into independent migration units | | **#10** | Prior Action | Prepare the codebase (interfaces, adapters) BEFORE the actual migration |
Phase 1: ASSESS → Understand what's wrong and why (not just symptoms) Phase 2: MAP → Trace all dependencies and blast radius Phase 3: DESIGN → Plan the migration path with strangler fig pattern Phase 4: EXECUTE → Migrate incrementally, one unit at a time Phase 5: VERIFY → Confirm direction is correct + clean up old code
> **Goal:** Find the TRIZ contradiction — what do we WANT vs what BLOCKS us?
1. **State the current direction:**
Current: We built [X architecture/pattern/structure] Problem: It doesn't support [Y requirement/scale/use case]
2. **Identify the contradiction:**
We WANT: [desired capability]
But: [current architecture] prevents it because [technical reason]
TRIZ Contradiction:
Improving [parameter A] worsens [parameter B]
Example: "Improving modularity worsens performance"
"Improving flexibility worsens type safety"3. **Define the Ideal Final Result (IFR):**
The system ITSELF [achieves the goal] WITHOUT [the current blocking factor] WHILE maintaining [what currently works well]
4. **Scope assessment:**
Files affected: [count from codeintell or grep] Components affected: [list] Tests affected: [count] External API changes: [yes/no — breaking change?] Estimated effort: [S/M/L/XL] Risk level: [Low/Medium/High/Critical]
> **Goal:** Know exactly what touches what before changing anything.
1. **Use Code Intelligence** (if available):
codegraph_impact("target_symbol", depth=3)
→ Shows all callers, dependencies, affected files
codegraph_context("target_module")
→ Shows architecture around the area2. **Manual mapping** (if codegraph unavailable):
grep -rn "import.*{module}" src/
grep -rn "{function_name}" src/
→ Build dependency tree manually3. **Categorize files by migration priority:**
| Category | Description | Action | |----------|-------------|--------| | **Core** | The files that MUST change for the new direction | Migrate first | | **Dependent** | Files that import/use Core files | Migrate after Core, use adapters | | **Peripheral** | Files loosely connected | Migrate last or leave untouched | | **Dead** | Files no longer needed after migration | Flag for deletion in Phase 5 |
4. **Output: Migration Map Document**
## Migration Map: [Initiative Name] ### Core (must change): [N files] - file_a.ts → [what changes] - file_b.ts → [what changes] ### Dependent (affected): [N files] - file_c.ts → [how affected] ### Peripheral (optional): [N files] - file_d.ts → [minimal change] ### Dead (remove after): [N files] - old_module.ts → DELETE after migration complete
> **Goal:** Design an incremental migration path — NEVER big-bang rewrite.
**Strangler Fig Pattern (TRIZ #10 Prior Action):**
1. Create NEW structure alongside OLD structure 2. Route NEW traffic/calls to NEW structure 3. Gradually migrate OLD consumers to NEW structure 4. Remove OLD structure when no longer used
**Migration design template:**
## Migration Path ### Step 1: Create Adapter Layer - [ ] Create interface/abstraction that both old and new code satisfy - [ ] All consumers now use the adapter, not direct implementation ### Step 2: Build New Implementation - [ ] New code behind the adapter — can be tested independently - [ ] Feature flag or config switch between old/new ### Step 3: Gradual Cut-over - [ ] Migrate consumers one-by-one to new implementation - [ ] Each migration is a separate commit/PR - [ ] Tests pass at EVERY step (never break green) ### Step 4: Clean up (→ triggers cm-clean-code) - [ ] Remove old implementation - [ ] Remove adapter layer (if no longer needed)
"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.