Codymaster cm-start
Start the CM Workflow to execute your objective from idea to production code.
git clone https://github.com/tody-agent/codymaster
T=$(mktemp -d) && git clone --depth=1 https://github.com/tody-agent/codymaster "$T" && mkdir -p ~/.claude/skills && cp -r "$T/skills/cm-start" ~/.claude/skills/tody-agent-codymaster-cm-start && rm -rf "$T"
skills/cm-start/SKILL.mdCommand: /cm-start [your objective]
/cm-start [your objective]Role: Workflow Orchestrator — You assess complexity, select the right workflow depth, and drive execution from objective to production code.
When this workflow is called, the AI Assistant should execute the following action sequence in the spirit of the CodyMaster Kit:
-
Load Working Memory: Per
— use Smart Spine order:_shared/helpers.md#Load-Working-Memory- Check
→ any active pipeline? any prior skill output to reuse?.cm/context-bus.json - Load L0 indexes:
(~100 tok) +learnings-index.md
(~500 tok)skeleton-index.md - Scope-filter learnings via
— only load what matches current objectivecm_query - Read
→ set Active Goal to the new objectiveCONTINUITY.md - Run token budget check:
→ confirm no category is over soft limitcm continuity budget
⚡ Total context load: ~700 tokens. Full load used to be ~3,200. Only escalate to L2 (full files) if L0 index explicitly flags a match. 0.5. Skill Coverage Check (Adaptive Discovery):
- Scan the objective for technologies, frameworks, or patterns mentioned
- Cross-reference with
Layer 1 triggerscm-skill-index - If gap detected → trigger Discovery Loop from
Part C:cm-skill-mastery
→ review → ask user → install if approvednpx skills find "{keyword}" - Log any discovered skills to
.cm-skills-log.json
- Check
0.7. Code Intelligence Setup (cm-codeintell): - ALWAYS: Run skeleton indexer →
bash scripts/index-codebase.sh → .cm/skeleton.md
- Read .cm/skeleton.md (~5K tokens) → instant codebase understanding
- Count source files → determine intelligence level (MINIMAL/LITE/STANDARD/FULL)
- IF level >= LITE: generate architecture diagram → .cm/architecture.mmd
- IF level >= STANDARD: check CodeGraph → codegraph status → index if needed
- IF level >= STANDARD: also check qmd (cm-deep-search) for existing semantic vector databases and initialize/update if needed.
- Log intelligence level to CONTINUITY.md
-
Understand Requirements (Planning & JTBD):
- Read the objective provided in the
command./cm-start - Analyze requirements, ask clarifying questions if needed (apply
).cm-planning - Consider multi-language support (i18n) from the start if the project requires it.
- Read the objective provided in the
-
Detect Project Level: Per
_shared/helpers.md#Project-Level-Detection- Analyze the objective to determine L0/L1/L2/L3 complexity
- Present detected level and recommended skill chain to the user
- Let user confirm or override the level
-
Execute Based on Level:
L0 (Micro): Code + Test only
- Skip planning. Apply
directly →cm-tddcm-quality-gate
L1 (Small): Planning lite → Code → Deploy
- Apply
(lightweight implementation plan)cm-planning - Apply
+cm-tdd
→cm-executioncm-quality-gate
L2 (Medium): Full analysis flow
- Init OpenSpec (create
folder and artifacts manually)openspec/changes/[initiative-name]/ - Apply
if problem is ambiguouscm-brainstorm-idea - Apply
(full implementation plan with OpenSpeccm-planning
)tasks.md - Create
fromcm-tasks.json
→ launch RARV autonomous executiontasks.md - Apply
→cm-quality-gatecm-safe-deploy
L3 (Large): Full + PRD + Architecture + Sprint
- Init OpenSpec (create
folder and artifacts manually)openspec/changes/[initiative-name]/ - Apply
(mandatory)cm-brainstorm-idea - Apply
with FR/NFR requirement tracingcm-planning - Sprint planning →
sync withopenspec/changes/[objective]/tasks.mdcm-tasks.json - Apply
(Mode E: TRIZ-Parallel for speed)cm-execution - Apply
→cm-quality-gatecm-safe-deploy
- Skip planning. Apply
-
Track Progress:
- Create
(for standardized spec tracking)openspec/changes/[objective]/tasks.md - Create or update
(for autonomous agent execution)cm-tasks.json - Suggest
for visual tracking/cm-dashboard - Suggest
for quick terminal summary/cm-status
- Create
-
Complete: Per
_shared/helpers.md#Update-Continuity- Record any new learnings or decisions made during this workflow
- If inside a skill chain:
→ verify context bus reflects completed stepcm continuity bus - Refresh L0 indexes:
(auto-runs oncm continuity index
, manual refresh here)addLearning
Note for AI: If this is a brand new project, suggest running
first. If the working environment has a risk of accidentally switching accounts/projects, remind aboutcm-project-bootstrap(Percm-identity-guard)._shared/helpers.md#Identity-Check