Skip to content
Development
Command

/cli

Create CLI command handler

From plugin
promptscript
46514 skills6 agents14 commands1 MCP
Install
$ npx -y skills add mrwogu/promptscript --agent claude-code

How it fires

How this command gets triggered: by you, by Claude, or both.

  • Fires itselfClaude auto-loads it when your prompt matches the work.
  • You can call itInvoke it directly when you want it.
  • Slash command/cli

Context preview

What this command does when you run it.

Create CLI command handler

Command definition

cli.md
# promptscript-generated: 2026-05-30T23:22:42.935Z | source: .promptscript/project.prs | target: claude
description: 'Create CLI command handler'

Create CLI command handler:

  • Use commander.js patterns from existing commands
  • Add proper option parsing
  • Include help text and examples
  • Handle errors gracefully with actionable messages
  • Add to packages/cli/src/commands/
Ships withpromptscript

Agent platform configuration as code _Define instructions, skills, agents, MCP servers, hooks, workflows, and policies once.

Get the whole plugin