Align Claude Code Command Hints with Arguments

    by Shogun Labs

    1

    The optional expected count applies to every file; when omitted, each file's own argument-hint slot count is used.

    $5

    Secure checkout via Stripe

    Money-back guarantee

    Converts to your local currency at checkout

    Security scanned

    Works with the AI Agents you already use

    Claude CodeClaude CodeCursorCursorCodex CLICodex CLIDeepSeekDeepSeekMuseMuse+23 more

    Align Claude Code Command Hints with Arguments

    Example session with this skill installed

    Check my Claude Code command file's argument hints against the count my caller passes:

    python3 scripts/align_command_arguments.py examples/commands.md 2
    
    • Read your context and instructions
    • Compiled the align claude code

    The checker reports, for each command file, the argument hint and its line, the live placeholders with their line numbers, the referenced positions, any out-of-range positions, expected slots with no matching reference, and the hint slots mapped to names. Static review only — it does not run the command or judge Claude's response.

    examples/commands.md: argument-hint="[issue-number] [branch]" (line 2)
      placeholders: $0@4, $1@4
      positions: 0, 1
      out-of-range: none
      unexplained candidates: none
      hint slots: 0=issue-number, 1=branch
    

    Here the two-slot hint [issue-number] [branch] matches the two positional placeholders $0 and $1, so there are no out-of-range positions and no unexplained candidates. Exit status is 0 because the input is readable.

    Connects securely to your tools. The creator never sees your data.

    About this skill

    Claude Code maintainers who edit slash commands in .claude/commands/ can compare each command file's documented argument hint and body references with the number of arguments a caller supplies, before editing.

    What it checks, per file:

    • the argument-hint value and its source line
    • $ARGUMENTS, $ARGUMENTS[N], and $N references found outside fenced and inline code examples (backslash-escaped dollar signs are ignored)
    • positions at or above the expected argument count (shown as out of range)
    • expected slots with no matching positional or declared named placeholder (unexplained candidates)
    • declared named arguments mapped in order to positions

    Input is one UTF-8 Markdown command file, or a directory of .md command files. The optional expected count applies to every file; when omitted, each file's own argument-hint slot count is used. Readable files are still reported when a sibling file is malformed; the malformed file is named for repair. Directory scans skip symlinked Markdown so a linked file is not read outside the supplied tree.

    Limits: only the supplied Markdown file or directory is read. No Claude Code command is run and no model response is assessed. A hint is treated as descriptive text, not a formal argument schema. Exit status is 0 when inputs are readable and 2 on a command or input error.

    Requires Python 3.9+ and PyYAML. The documented static references were checked against the Claude Code skills documentation on 2026-12-02.

    Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for Code Quality & Review.

    Cannot evaluate runtime behavior or Claude's live responses. Limited to static analysis of command definitions and hint placeholders.

    How to use

    1. 1

      Connect your agent to the Agensi MCP

      Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup

    2. 2

      Sign in to Agensi

      Your agent shows a sign-in link. Sign in and click Allow.

    3. 3

      Ask for what you need

      Your agent loads this skill and uses it on your task. It always asks before buying a skill.

    Reviews

    No reviews yet

    Be one of the first to try it. Every listed skill goes through the trust checks below.

    Security scanned

    Checked by our 8-point scan before listing

    Fresh listing

    Recently published to Agensi

    Money-back guarantee

    Doesn't do what its page promises? You get your money back.

    Trust & safety

    Security scan

    Security scan passed today

    Software
    Python 3.9+PyYAML

    Permissions

    Terminal / Shell
    Read Files
    Listedtoday

    What's inside

    Frequently Asked Questions

    It gives you a static, file-by-file report of each command's argument hint, the placeholder positions referenced in the body, positions that are out of range for the expected count, and expected slots with no matching reference. You review that evidence before editing. It does not run a command, change files, or prevent runtime errors on its own.

    Give one Markdown command file, or a directory of .md command files. You can optionally pass an expected argument count that applies to every file; when you omit it, each file's own argument-hint slot count is used.

    The skill generates a structured report that identifies discrepancies, including specific file paths and line numbers for every detected mismatch.

    This skill is focused on static code analysis of command structures and does not evaluate dynamic LLM responses or actual runtime behavior.

    You can ask your agent to use the included CLI to compare your command definitions against an expected argument count and report findings with file evidence.

    New in Code Quality & Review