yzxoi/synergy-oryn/add-cli-command
- community
Checking that the SKILL.md file is still in the repository.
Add or modify a Synergy CLI command, command group, positional, option, alias, help text, exit behavior, or root command registration under packages/synergy/src/cli. Use for installed synergy CLI work; do not use for the repository-only bun dev orchestrator.
Install
npx vskill@latest install yzxoi/synergy-oryn/add-cli-commandSKILL.md
Add a CLI Command
Discover the Contract
- Read CLI reference and inspect
packages/synergy/src/index.ts. - Locate the nearest command with the same shape: local operation, server-attached operation, nested command group, streaming output, or destructive confirmation.
- Decide whether the behavior belongs in the installed
synergyCLI or the source-onlybun devorchestrator. Editscript/dev.tsonly for the latter.
Implement
- Write a failing behavior test first when adding behavior or fixing a bug.
- Add or update a named command in
packages/synergy/src/cli/cmd/withcmd(). Match neighboring yargs builder, positional, alias, and output patterns rather than imposing a parallel style. - Keep domain logic in its owning module. Let the command parse input, establish Scope or server attachment, call the domain API, format output, and set an appropriate exit status.
- Give every command, positional, and option useful help text. Support structured output when the adjacent command family already does.
- Register a root command lazily in
packages/synergy/src/cli/commands.ts; register a nested command in its owning command-group builder. - Use generated SDK/server helpers for attached commands where the family already does. Preserve auth, directory/Scope, timeout, and error semantics.
- Regenerate the SDK with
./script/generate.tsonly if an API route or OpenAPI-visible schema changed.
Command Contract
- Separate the command kinds: discovery commands (list accounts, projects, or queues), resolve commands (name or URL to a stable ID), read commands (exact object fetch plus a bounded list/search with
--limitor a cursor), and narrow write commands (one named action each; prefer--dry-runor draft mode when the service allows). - When the neighboring command family already supports structured output, support stable
--jsonoutput with a documented success shape and machine-readable errors. Never include credentials in error output. - Write self-explanatory help text: every command, positional, and option describes its purpose, and
--helpsurfaces every major capability. - Keep a raw escape hatch only where the family needs one. Never expose only a generic raw request command without high-level verbs.
Verify
Then run the narrow CLI/domain test from packages/synergy, followed by:
For startup, daemon, port, Web, Desktop, auth, or data movement changes, test through an isolated SYNERGY_HOME; use the develop-synergy skill and never disrupt the active instance.
Synchronize Documentation
Update CLI reference for user-visible syntax or behavior. Also review README.md, configuration/storage references, affected help text, and .synergy/command/ workflows. Keep migration history outside the current CLI reference.
Handoff
Report the registered command path, domain API called, failure/exit behavior, manual invocation, tests, SDK generation status, and documentation updated.
Task execution commands
Use the shared RuntimeHandle for a local writer and generated SDK methods for attached execution. Subscribe before submission, process interactions during command execution, and always remove signal listeners and drain cancellation in cleanup. Read durable run results instead of treating a session idle event as completion. Keep JSON stdout parseable and report unknown estimates separately from known cost. See Rollout execution.
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryChecking.synergy/skill/add-cli-command/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/yzxoi/synergy-oryn/add-cli-command)