create-use-agently-cli

Create CLI commands for use-agently with command files, registration, and tests.

71|22|Updated Apr 6, 2020
One-click install
npx skills add https://github.com/nirholas/agenti --skill create-use-agently-cli-nirholas
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: create-use-agently-cli
Source: https://github.com/nirholas/agenti/tree/main/packages/protocols/x402-use-agently/.agents/skills/create-use-agently-cli
Command: npx skills add https://github.com/nirholas/agenti --skill create-use-agently-cli-nirholas

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Creating new CLI commands for the use-agently toolkit is often repetitive and error-prone. This skill provides a repeatable pattern to implement a command file, wire it into the CLI, and accompany tests in accordance with the CLI design specification.

Core Features & Use Cases

  • Top-level commands: scaffolding a new command accessible at the root level of the CLI.
  • Subcommands (colon notation): adding commands like parent:child that fit the colon subcommand pattern.
  • Aliases & protocols: supporting shorthand aliases and protocol handlers (A2A, MCP, ERC-8004, HTTP) to extend the CLI.
  • Testing & consistency: ensures tests exist and the command follows repository conventions without requiring interactive prompts.

Quick Start

Use a single instruction to scaffold a new command by creating the command file, wiring it into the CLI, and adding tests.

Frequently Asked Questions about create-use-agently-cli

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I add a new CLI command to a TypeScript package using commander?

To add a new CLI command, create a dedicated command file under the src/commands directory, wire it into the main cli.ts file, and register it as a top-level command or subcommand using commander and TypeScript.

How do I create a subcommand with colon notation in a TypeScript CLI?

Creating a subcommand with colon notation involves defining a parent:child command structure within a dedicated file and registering it in cli.ts, ensuring the package's design patterns are followed without requiring interactive prompts.

What is the best way to scaffold a new protocol handler for A2A or MCP in a CLI?

The best way to scaffold a new protocol handler for A2A, MCP, ERC-8004, or HTTP is to create a dedicated command file, register it in cli.ts, and add accompanying tests to ensure repository consistency and non-interactive error handling.

Does scaffolding a CLI command require interactive prompts for error handling?

Scaffolding a CLI command does not require interactive prompts; instead, it enforces repository design patterns by providing non-interactive error guidance and requiring accompanying tests in the packages/use-agently directory.

Why should I include tests when adding a new command to a TypeScript CLI?

You should include tests when adding a new command to ensure the command follows repository conventions, avoids repetitive errors, and maintains consistency across top-level commands, aliases, and protocol handlers without relying on interactive validation.