en un clic
new-command
// Scaffold a new CLI command for Cortex TMS following the existing codebase patterns.
// Scaffold a new CLI command for Cortex TMS following the existing codebase patterns.
| name | new-command |
| description | Scaffold a new CLI command for Cortex TMS following the existing codebase patterns. |
| disable-model-invocation | true |
Scaffold a new CLI command for Cortex TMS.
After the user approves the plan:
src/commands/<name>.ts — export createXCommand() and xCommandsrc/types/cli.ts if neededsrc/cli.ts — import and program.addCommand()src/__tests__/<name>.test.ts — follow existing test patternsREADME.md under CLI CommandsNEXT-TASKS.md — check off the task$ARGUMENTS — the name and purpose of the new command
Implement an approved plan. Write code, tests, and docs following the sprint checklist in NEXT-TASKS.md.
Research the codebase and create an implementation plan following Propose/Justify/Recommend. Use this before any feature, fix, or refactor.
Guide through the Cortex TMS release process — version bump, changelog, sync, tag, publish. Every step requires user approval.
Synchronize task files and source-of-truth documents. Update NEXT-TASKS.md, FUTURE-ENHANCEMENTS.md, README, and CHANGELOG to reflect current project state.
Run the full quality gate — tests, lint, build, and cortex-tms validate --strict.