add-command

Installation
SKILL.md

Adding a New CLI Command or Subcommand

Follow this checklist when adding new commands. Each step references the exact file to modify.

1. Mock API (src/__tests__/helpers/mock-api.ts)

Add a mock for each new SDK method in createMockApi(). Place it in the correct entity group.

  • List/read methods: .mockResolvedValue({ results: [], nextCursor: null }) or appropriate empty default
  • Mutation methods: vi.fn() (no default return needed)

2. Spinner Messages (src/lib/api/core.ts)

Add an entry to API_SPINNER_MESSAGES for each new SDK method.

Color convention:

Installs
6
GitHub Stars
214
First Seen
Apr 2, 2026
add-command — doist/todoist-cli