agentleFS
NimbleBrainIncNimbleBrainInc/mpak/.claude/skills/verify-cli/SKILL.md

verify-cli

Skill14 starsChanged 4 months agoApache-2.0Archived repositoryView on GitHub

Run smoke tests against the mpak CLI to verify all commands work correctly before publishing a new release.

2 other projects use a version of this.

Adopted by

Most recently taken up by

  • Other versions2 projects use a version of this.

    Word for word · 0

    None found.

    Edited · 0

    None found.

    Wrote their own version · 2

    1. mufeedvh/code2prompt★ 7.8ksame name
    2. everr-labs/everr★ 55same name

    How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.

  • In this repositoryOne other file it gives its agents.

The file

We split this skill into the rules it gives an agent

12 rules. About 0 are common, 7 are distinctive, and 5 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈7

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 5

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Run a comprehensive set of smoke tests against the mpak CLI to catch regressions before publishing.

    line 8
  2. Very specific:

    Before running tests, ensure the working directory is the mpak monorepo root (apps/mpak).

    line 12
  3. Very specific:

    All test commands below should be run from packages/cli/ using node dist/index.js.

    line 18
  4. Distinctive:

    Run each test group below.

    line 22
  5. Distinctive:

    Verify the exit code is 0 (unless testing error cases)

    line 24
  6. Distinctive:

    Verify the output matches the expected pattern described

    line 25
  7. Distinctive:

    If any test fails, stop and report the failure with full output before continuing.

    line 28
  8. Distinctive:

    Verify that the Bundles table has columns: NAME, VERSION, TRUST, DESCRIPTION.

    line 47
  9. Very specific:

    Use @nimblebraininc/echo as the test bundle (known to exist with trust level L0).

    line 51
  10. Very specific:

    After test 3.4, clean up: rm -f /tmp/mpak-test-echo.mcpb

    line 61
  11. Distinctive:

    After all tests complete, print a summary table:

    line 86
  12. Distinctive:

    If any test failed, list each failure with its test number, command, expected result, and actual output.

    line 104

≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

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

#CommandExpected
1.1node dist/index.js --versionPrints a valid semver version (not "unknown")
1.2node dist/index.js --helpShows usage with commands: search, run, bundle, config, completion
1.3node dist/index.js bundle --helpShows subcommands: search, show, pull, run

2. Search

#CommandExpected
2.1node dist/index.js search "mcp"Prints "Found N result(s)" and a "Bundles (N):" section with a single table
2.2node dist/index.js search "mcp" --jsonValid JSON with a results array and a totals object ({ "bundles": N })
2.3node dist/index.js search "mcp" --limit 2Shows at most 2 results
2.4node dist/index.js search "xyznonexistent999"Prints "No results found" message

Verify that the Bundles table has columns: NAME, VERSION, TRUST, DESCRIPTION.

3. Bundle Commands

Use @nimblebraininc/echo as the test bundle (known to exist with trust level L0).

#CommandExpected
3.1node dist/index.js bundle search "echo"Returns at least 1 result including @nimblebraininc/echo
3.2node dist/index.js bundle show @nimblebraininc/echoShows name, version, type, trust level (L0), provenance, statistics, versions, platforms
3.3node dist/index.js bundle show @nimblebraininc/echo --jsonValid JSON with name, latest_version, certification_level fields
3.4node dist/index.js bundle pull @nimblebraininc/echo -o /tmp/mpak-test-echo.mcpbDownloads file to /tmp/mpak-test-echo.mcpb, file exists and is non-empty
3.5node dist/index.js bundle show @nimblebraininc/doesnotexistExits with error containing "not found" (case-insensitive)

After test 3.4, clean up: rm -f /tmp/mpak-test-echo.mcpb

4. Config Commands

These test the local config manager at ~/.mpak/config.json.

#CommandExpected
4.1node dist/index.js config set @test/smoke-test smoke_key=smoke_valueSucceeds with confirmation message
4.2node dist/index.js config get @test/smoke-testShows smoke_key with masked value
4.3node dist/index.js config get @test/smoke-test --jsonValid JSON containing smoke_key
4.4node dist/index.js config listLists @test/smoke-test in output
4.5node dist/index.js config clear @test/smoke-test smoke_keySucceeds with confirmation
4.6node dist/index.js config clear @test/smoke-testSucceeds, clears entire package config
4.7node dist/index.js config get @test/smoke-testShows no configuration or empty result

5. Error Handling

#CommandExpected
5.1node dist/index.js searchExits with non-zero code, shows error or help about missing argument
5.2node dist/index.js bundle invalidShows help or error about unknown command

Reporting

After all tests complete, print a summary table:

## CLI Smoke Test Results

| Group              | Passed | Failed | Total |
|--------------------|--------|--------|-------|
| Version & Help     | N      | N      | 3     |
| Search             | N      | N      | 4     |
| Bundle Commands    | N      | N      | 5     |
| Config Commands    | N      | N      | 7     |
| Error Handling     | N      | N      | 2     |
|--------------------|--------|--------|-------|
| TOTAL              | N      | N      | 21    |

Overall: PASS / FAIL

If any test failed, list each failure with its test number, command, expected result, and actual output.

The CLI is ready to publish only if all 21 tests pass.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.