Skip to content
Documentation
Skill

/new-command

Scaffold a new CLI command for Cortex TMS following the existing codebase patterns.

From plugin
cortex-tms
1806 skills

Claude Code

$ npx -y skills add cortex-tms/cortex-tms --skill new-command --agent claude-code

SKILL.md

new-command.SKILL.md
name: new-command
description: Scaffold a new CLI command for Cortex TMS following the existing codebase patterns.
disable-model-invocation: true

New Command

Scaffold a new CLI command for Cortex TMS.

Before Writing Code

1. **Read existing patterns** — look at src/commands/archive.ts and src/commands/status.ts as reference implementations 2. **Read types** — check src/types/cli.ts for existing interfaces 3. **Read tests** — check src/__tests__/archive.test.ts for the test pattern 4. **Propose the command** — describe what it does, its subcommands/options, and which files will be created/modified. Follow Propose/Justify/Recommend. Wait for approval.

Implementation Checklist

After the user approves the plan:

  • [ ] Create `src/commands/<name>.ts` — export `createXCommand()` and `xCommand`
  • [ ] Add types to `src/types/cli.ts` if needed
  • [ ] Register in `src/cli.ts` — import and `program.addCommand()`
  • [ ] Create `src/__tests__/<name>.test.ts` — follow existing test patterns
  • [ ] Add section to `README.md` under CLI Commands
  • [ ] Update `NEXT-TASKS.md` — check off the task

Rules

  • Match the exact patterns in existing commands (Commander.js, chalk, ora)
  • Follow existing test patterns (vitest, createTempDir, runCommand)
  • If the user asks a question, STOP and answer before continuing
  • Show git diff before committing. Wait for approval.

Arguments

$ARGUMENTS — the name and purpose of the new command

Read more
@cortex-tms
Ships withcortex-tms

The Universal AI-Optimized Project Boilerplate. A Tiered Memory System (TMS) designed to maximize AI agent performance. Includes an interactive CLI tool and a high-signal documentation standard.

Stars on GitHub

Momentum

stars in total
180
Star history of cortex-tms/cortex-tms on GitHub, a chart by star-history.com

Other skills on cortex-tms.

implement

implement

Implement an approved plan. Write code, tests, and docs following the sprint checklist in NEXT-TASKS.md.

plan

plan

Research the codebase and create an implementation plan following Propose/Justify/Recommend. Use this before any feature, fix, or…

release

release

Guide through the Cortex TMS release process — version bump, changelog, sync, tag, publish. Every step requires user approval.

sync

sync

Synchronize task files and source-of-truth documents. Update NEXT-TASKS.md, FUTURE-ENHANCEMENTS.md, README, and CHANGELOG to…

More skills from other plugins.

context7-cli

context7-cli

Use the ctx7 CLI to fetch library documentation and configure Context7 MCP. Activate when the user mentions "ctx7" or "context7",…

@upstash@upstashInstall Skill
docs-components

docs-components

Comprehensive MDX component patterns (Note, Pitfall, DeepDive, Recipes, etc.) for all documentation types. Authoritative source…

@reactjs@reactjsInstall Skill
codebase-wiki

codebase-wiki

How to work in a Codebase Wiki project (the `codebase-wiki` starter pack): an agent-authored, source-grounded wiki of the…

@inkeep@inkeepInstall Skill

Questions about new-command.

Which coding agents can use new-command?
new-command installs in Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode and Windsurf with the skills CLI, using each agent's flag shown on this page. Flowy's auto-invocation, which fires a skill when your prompt matches, runs in Claude Code only.