verify-clilisted
Install: claude install-skill NimbleBrainInc/mpak
# Verify CLI
Run a comprehensive set of smoke tests against the mpak CLI to catch regressions before publishing. This skill builds the CLI, then exercises every command category against the live production registry.
## Prerequisites
Before running tests, ensure the working directory is the mpak monorepo root (`apps/mpak`). Build the CLI and SDK fresh:
```
pnpm --filter @nimblebrain/mpak-sdk build && pnpm --filter @nimblebrain/mpak build
```
All test commands below should be run from `packages/cli/` using `node dist/index.js`.
## Test Procedure
Run each test group below. For every command:
1. Execute the command
2. Verify the exit code is 0 (unless testing error cases)
3. Verify the output matches the expected pattern described
4. Record PASS or FAIL with details
If any test fails, stop and report the failure with full output before continuing.
### 1. Version and Help
| # | Command | Expected |
|---|---------|----------|
| 1.1 | `node dist/index.js --version` | Prints a valid semver version (not "unknown") |
| 1.2 | `node dist/index.js --help` | Shows usage with commands: search, run, bundle, skill, config, completion |
| 1.3 | `node dist/index.js bundle --help` | Shows subcommands: search, show, pull, run |
| 1.4 | `node dist/index.js skill --help` | Shows subcommands: validate, pack, search, show, pull, install, list |
### 2. Unified Search
| # | Command | Expected |
|---|---------|----------|
| 2.1 | `node dist/index.js search "mcp"` | Returns results grouped in