From agent-capability-kit
Create or refactor Claude Code commands and prompt files with clear arguments, frontmatter, reusable prompt structure, and bounded tool expectations. Use this skill when authoring or reviewing `commands/*.md` files offline.
npx claudepluginhub ririnto/sinon --plugin agent-capability-kitThis skill uses the workspace's default tool permissions.
Create or refactor one Claude Code command or prompt file under `commands/*.md` so it is easy to invoke, unambiguous at runtime, and self-contained for normal use.
Prevents silent decimal mismatch bugs in EVM ERC-20 tokens via runtime decimals lookup, chain-aware caching, bridged-token handling, and normalization. For DeFi bots, dashboards using Python/Web3, TypeScript/ethers, Solidity.
Share bugs, ideas, or general feedback.
Create or refactor one Claude Code command or prompt file under commands/*.md so it is easy to invoke, unambiguous at runtime, and self-contained for normal use.
commands/*.md.commands/review-doc.md or commands/gather-context.md.description is the common default and SHOULD explain both capability and trigger condition.argument-hint and avoid placeholder wording.allowed-tools to the smallest practical set.Use only the fields that the command needs.
descriptionUse description to explain what the command does and when to use it. Prefer the pattern Do X. Use when Y. so the command is discoverable and understandable outside local context.
Example:
---
description: Review one Markdown file for structure, clarity, and missing sections. Use when a document needs a fast editorial quality pass.
---
argument-hintallowed-toolsdisable-model-invocationuser-invocablepathsmodelshellUse these fields as follows:
argument-hint: add only when the command expects runtime arguments. Show the argument shape, not a prose sentence.allowed-tools: add when the command should restrict tool access. Keep the list as narrow as possible.disable-model-invocation: add when the command should not run as a normal model-invoked command path.user-invocable: set to false only for helper commands that should stay out of direct invocation flows.paths: add when the command should activate or apply only for specific files or directories.model: add only when the command truly depends on a specific model choice.shell: add only when shell-specific behavior materially affects the command.Do not add frontmatter fields as decoration. If removing a field would not change discovery, invocation, or behavior, leave it out.
Example with common optional fields:
---
description: Review one pull request for risk, missing tests, and merge blockers. Use when preparing a merge recommendation.
argument-hint: [pr-number]
allowed-tools: Read, Grep, Bash(git *)
disable-model-invocation: true
---
For normal authoring, use this order inside the Markdown body after frontmatter:
This order keeps commands readable during invocation and makes the runtime path obvious.
Example body shape:
# Review Markdown
Review one Markdown file and return a concise rewrite plan.
## Inputs
- `file-path`: target file from `$1`
## Constraints
- Do not edit files.
- Do not invent missing project context.
## Procedure
1. Read the target file.
2. Check heading order, structure, and missing sections.
3. Note concrete fixes with line-aware evidence when possible.
## Ambiguity behavior
- If `$1` is missing, stop and say the command requires a file path.
- If the file is not Markdown, say that the input is out of scope.
## Output contract
Return:
1. The main issues
2. Recommended fixes
3. Any remaining ambiguity
argument-hint when the caller must supply runtime values.[file-path] or [source] [destination].$1 or placeholder inputs.Good:
---
description: Summarize one log file for error clusters and likely causes. Use when triaging a local failure report.
argument-hint: [log-file]
allowed-tools: Read, Grep
---
## Inputs
- `log-file`: path from `$1`
## Ambiguity behavior
- If `$1` is missing, stop and request the log file path.
Avoid:
Review the file the user probably means and do the usual thing.
Commands should resolve ordinary cases without extra discussion. When ambiguity remains, use the smallest safe behavior.
Example:
## Ambiguity behavior
- If the target path contains multiple matching files, review only the file named in `$1`.
- If `$1` points outside `docs/`, continue only if the command explicitly allows broader scope.
- If required context is absent, report the blocker instead of guessing.
Every command should say what the final response must contain.
Example:
## Output contract
Return:
1. The final command file path
2. The full Markdown command
3. A short note explaining the argument model
4. A short note explaining any remaining blocker or risk
Use simple local inspection before deeper validation:
Read `commands/your-command.md` and confirm:
- the frontmatter contains only needed fields
- the body order is clear
- arguments, ambiguity behavior, and output contract are explicit
If you need a starting point or comparison set, use the optional files in this skill directory.
Return:
assets/command-template.md - copy when creating a new command from scratchassets/command-frontmatter-patterns.md - open when you need quick frontmatter examples for common command typesreferences/command-frontmatter.md - open when a frontmatter decision is unusual or field interactions need deeper comparisonreferences/prompt-structure.md - open when the command body needs extended structural examples or repair guidance