feat(cli): add testnode skills add to sync agent skills#18
Closed
douglance wants to merge 1 commit into
Closed
Conversation
Wire up incur's skills sync so AI coding agents (Claude Code, Cursor,
etc.) can discover and drive the testnode CLI.
The CLI hand-rolls dispatch across two sub-Clis (`start` and `local`
groups) rather than a single incur root, so incur's built-in `skills
add` never activated. This reads each sub-Cli's command map via incur's
exported `Cli.toCommands`, merges them, and passes the result to
`SyncSkills.sync("testnode", ...)` — the same call incur's built-in
uses. `testnode skills add` now generates and installs one SKILL.md per
command (start, init, logs, snapshot, status, stop, clean) to incur's
default global location (`~/.agents/skills/testnode-<command>/`).
No existing command behavior changes.
Collaborator
Author
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Adds a
testnode skills addcommand that generates and installs agent skill files for the CLI, so AI coding agents (Claude Code, Cursor, etc.) can discover and drivetestnode.Why it needed wiring
incur ships a built-in
skills add, but it only activates for a single rootCli. This CLI hand-rolls dispatch across two sub-Clis (startandlocalgroups), so the built-in never ran.How
apps/cli/src/commands/skills.tsreads each sub-Cli's command map via incur's exportedCli.toCommands, merges them, and passes the result toSyncSkills.sync("testnode", …)— the same call incur's built-in uses. OneSKILL.mdper command is installed to incur's default global location (~/.agents/skills/testnode-<command>/).apps/cli/src/index.tsroutesskills addand lists it in--help.Scope
skills.ts,index.tsdispatch/help, newskills.test.ts.pnpm test:rungreen (161 tests, incl. the new one); build + typecheck clean.