Borrowing it
Nothing to install: this file belongs to sijeeshmiziha/visionagent. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/sijeeshmiziha/visionagent/main/.claude/commands/add-tool.mdgit clone --depth 1 https://github.com/sijeeshmiziha/visionagentWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/commands/sijeeshmiziha/visionagent/add-tool)<a href="https://agentmods.dev/commands/sijeeshmiziha/visionagent/add-tool"><img src="https://agentmods.dev/badge/commands/sijeeshmiziha/visionagent/add-tool.svg" alt="Measured on agentmods" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00000 | $0.00488 |
| Opus 5 | $0.00000 | $0.00244 |
| Sonnet 5 | $0.00000 | $0.00098 |
| Haiku 4.5 | $0.00000 | $0.00049 |
Grade A, and why
add-tool scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 6d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
What it actually says
Add New Tool
Scaffold and implement a new tool for VisionAgent.
Arguments
$ARGUMENTS (Format: " " e.g., "figma get-variables Retrieves all variables from a Figma file")
Steps
1. Parse Arguments
Extract:
module:figma|stitch| (new module name)tool-name: kebab-case namedescription: what this tool does
2. Read Existing Tool for Pattern
Read one existing tool from src/modules/<module>/tools/ to understand the exact pattern used.
3. Create Tool File
Create src/modules/<module>/tools/<tool-name>.ts:
import { z } from 'zod';
import type { ToolConfig } from '@/lib/types';
const <ToolName>InputSchema = z.object({
// Define input parameters with .describe() on each field
});
export const <toolCamelCase>Tool: ToolConfig<typeof <ToolName>InputSchema> = {
name: '<tool-name>',
description: '<description>',
input: <ToolName>InputSchema,
handler: async (input) => {
// Implementation
},
};
4. Export the Tool
- Add to
src/modules/<module>/tools/index.ts - Add to
src/modules/<module>/index.ts - Add to
src/index.ts
5. Write Tests
Create tests/tools/<tool-name>.test.ts:
- Test happy path with MSW mock
- Test error handling (API errors, invalid input)
- Test input validation (Zod schema)
Run: npm test
6. Add Example
Create examples/<module>/<tool-name>.ts:
import { createModel, <toolCamelCase>Tool, runAgent } from 'visionagent';
// Minimal working example
Register in examples/lib/registry.ts.
Test the example:
npm run example -- examples/<module>/<tool-name>.ts
7. Quality Gates
npm run typecheck
npm run lint:fix
npm run build
npm run ci
Report: tool created, tests written, example added, CI status.
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 6d ago First seen · 90 lines · 0 tokens per session scan A 36856ac32494
add-tool is a command published in the GitHub repository sijeeshmiziha/visionagent (2 stars, last pushed 5mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 488 tokens. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.
Other commands, from other repositories
workflow-classify
Classify task size (S/M/L/XL) and recommend the appropriate workflow pipeline.
worktree-cleanup
PR 완료 후 Git Worktree 정리 (v6).
generate-widget
Génération Widget Flutter avec Tests.
type-coverage
Vérification Couverture des Types Python.
sprint
Équipe de Développement Sprint - Implémentation parallèle de stories utilisant les Agent Teams.
workflow-design
Exécuter la phase de Conception (Solutioning) - spécification technique et architecture.