# Align Claude Code Command Hints with Arguments

> Check each Claude Code command file's argument hint and placeholder positions against the argument count the caller supplies. Reports hints, placeholders, referenced positions, out-of-range positions, and unmatched slots. Static review only; it does not run a command or judge Claude's response.

Align Claude Code Command Hints with Arguments is a paid AI agent skill on Agensi by Shogun Labs, in Code Quality & Review. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: $5 (one-time purchase)
- Creator: [Shogun Labs](https://www.agensi.io/creators/shota-nakahira)
- Category: [Code Quality & Review](https://www.agensi.io/skills/code-quality-review)
- Version: 1.0
- Last updated: 2026-12-01
- Security: scan passed (2026-12-01); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/align-claude-code-command-hints-with-arguments
- Tags: code-review, testing, cli, typescript, static-analysis

## 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.

## Requires

- Python 3.9+
- PyYAML

## Known limitations

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

## How to use this skill

1. Connect your AI agent to Agensi once: add the MCP server https://mcp.agensi.io/mcp/auth and sign in with your Agensi account (OAuth, no API key). Steps for Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and other agents: https://www.agensi.io/docs/mcp-setup
2. Ask your agent: "Use the Align Claude Code Command Hints with Arguments skill from Agensi" and describe your task.
3. Buy it on the listing or let your agent ask you first; your agent then loads it from Agensi when it needs it. Every paid skill has a money-back guarantee: https://www.agensi.io/docs/money-back-guarantee

## Frequently asked questions

### How does this skill help improve my CLI tool development?

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.

### What information do I need to provide for the skill to work?

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.

### What kind of report will I receive after the analysis is complete?

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

### Can this skill test how an AI model generates command responses at runtime?

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

### How do I tell my agent to start the verification process?

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.

---

Source: [Agensi](https://www.agensi.io), the marketplace of skills for AI agents. Any MCP-compatible agent (Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and more) connects at https://mcp.agensi.io/mcp/auth and signs in with an Agensi account; setup for every agent: https://www.agensi.io/docs/mcp-setup. Append .md to any skill, guide or docs address on agensi.io for its markdown version.
