Skip to content
Hooks
Skill

/add-command

Add support for a new CLI command. Use when implementing a handler or adding to SIMPLE_SAFE.

From plugin
dippy
2445 skills

Claude Code

$ npx -y skills add ldayton/Dippy --skill add-command --agent claude-code

SKILL.md

add-command.SKILL.md
name: add-command
description: Add support for a new CLI command. Use when implementing a handler or adding to SIMPLE_SAFE.
argument-hint: <command>
disable-model-invocation: true

Add support for `$ARGUMENTS` in Dippy.

1. Research

**tldr pages:**

ls ~/source/tldr/pages/*/$ARGUMENTS*.md
cat ~/source/tldr/pages/*/$ARGUMENTS.md

**CLI docs:**

$ARGUMENTS --help
man $ARGUMENTS

Note which operations are read-only vs mutations.

2. Decide: Handler or SIMPLE_SAFE?

  • **SIMPLE_SAFE**: Always safe regardless of arguments (read-only, no destructive flags). Go to step 3A.
  • **Handler**: Needs subcommand/flag analysis. Go to step 3B.

3A. SIMPLE_SAFE Path

Add to `SIMPLE_SAFE` in `src/dippy/core/allowlists.py` and add tests to `tests/test_simple.py` in the appropriate category. Skip to step 5.

3B. Handler Path

Create `tests/cli/test_$ARGUMENTS.py`:

"""Test cases for $ARGUMENTS."""

import pytest
from conftest import is_approved, needs_confirmation

TESTS = [
    # Safe operations
    ("$ARGUMENTS <safe-subcommand>", True),
    ("$ARGUMENTS --help", True),
    # Unsafe operations
    ("$ARGUMENTS <unsafe-subcommand>", False),
]

@pytest.mark.parametrize("command,expected", TESTS)
def test_command(check, command: str, expected: bool):
    result = check(command)
    if expected:
        assert is_approved(result), f"Expected approve: {command}"
    else:
        assert needs_confirmation(result), f"Expected confirm: {command}"

4. Implement Handler

Create `src/dippy/cli/$ARGUMENTS.py`:

"""$ARGUMENTS handler for Dippy."""

from dippy.cli import Classification, HandlerContext

COMMANDS = ["$ARGUMENTS"]

SAFE_ACTIONS = frozenset({"list", "show", "status"})

def classify(ctx: HandlerContext) -> Classification:
    tokens = ctx.tokens
    action = tokens[1] if len(tokens) > 1 else None
    if action in SAFE_ACTIONS:
        return Classification("allow", description=f"$ARGUMENTS {action}")
    return Classification("ask", description="$ARGUMENTS")

For handler patterns (nested subcommands, flag-checking, delegation), see [patterns.md](patterns.md).

5. Iterate

just test

Fix failures until tests pass.

6. Verify

`just check` MUST pass before you're done.

Read more
@ldayton
Ships withdippy

🐀 Less permission fatigue, more momentum. Dippy knows what’s safe to run and keeps Claude on track when plans change.

Stars on GitHub

Momentum

stars in total
244
Star history of ldayton/Dippy on GitHub, a chart by star-history.com

Other skills on dippy.

check-coverage

check-coverage

Ensure comprehensive test coverage for a CLI handler. Use when adding a new command or auditing existing handler coverage.

@ldayton@ldaytonInstall Skill

More skills from other plugins.

peon-ping-config

peon-ping-config

Update peon-ping configuration β€” volume, pack rotation, categories, active pack, and other settings. Use when user wants to…

peon-ping2w5.1k
@peonping@peonpingInstall Skill
stop-that-shit

stop-that-shit

Complete requested work while preventing speculative defenses and scope creep. Use when considering extra hardening, reviewing…

@lennney@lennneyInstall Skill
prompt-improver

prompt-improver

This skill enriches vague prompts with targeted research and clarification before execution. Should be used when a prompt is…

@severity1@severity1Install Skill
contexere

contexere

Use when installing, verifying or configuring Contexere, when command output carries an `[OMNI: ...]` or `[CONTEXERE: ...]`…

@fajarhide@fajarhideInstall Skill

Questions about add-command.

Which coding agents can use add-command?
add-command installs in Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode and Windsurf with the skills CLI, using each agent's flag shown on this page. Flowy's auto-invocation, which fires a skill when your prompt matches, runs in Claude Code only.