Skip to content
Back to skills

Add Command

ASecurity

Use when adding or changing something a user, agent, channel or peer can make wisp do (a command, an HTTP route or an MCP tool) in wisp v2.

  • 14 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added November 23, 2026
ai-agentsgoapi

Works with

  • cli
  • api
  • mcp

Security analysis

A100/100

Scanned November 23, 2026

npx -y skills add M0xoo/wisp --skill add-command --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Add Command?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Add Command
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/m0xoo-add-command/badge)](https://www.skillsdirectory.com/skills/m0xoo-add-command)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: add-command
description: Use when adding or changing something a user, agent, channel or peer can make wisp do (a command, an HTTP route or an MCP tool) in wisp v2.
---

# Add a command

1. Declare it in the owner plugin's `api/` (id `owner.verb`, typed args and result) and in its manifest's
   `contributes.commands`.
2. Implement it in `host/` with `ctx.command({ id, parse, run })`. `parse` validates `unknown` input and
   throws `invalid` with a field path. `run` writes only through `store.tx` (one transaction, the change
   feed records it) and returns plain JSON.
3. **Permissions are default deny.** Name the command in every capability set that should reach it
   (`packages/kernel/src/capabilities.ts`): `user:full`, `agent:session`, `agent:capped` (a task a channel
   started below Full auto), `apikey`, `box`. `npm run check` fails if no set names it.
4. It must be able to refuse: if another plugin may want to veto it, run an interceptor hook
   (`before:<verb>`) before writing, and document the hook in `api/`.
5. Client side: `defineCommand({ id, optimistic })`, where `optimistic` is the patch it applies at once, or
   `'none'` with a reason. The UI rolls back with a toast on `reject`.
6. An HTTP route or MCP tool is a thin adapter over the command. Add the route to OpenAPI (the check fails
   without it) and MCP tools to the agent-protocol goldens.
7. Tests: the decider/handler (no mocks), the permission refusal, idempotency (same mid twice runs once).
   Then `.agents/bin/monoflow verify --affected`.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.