validator

validator is a command for Claude Code from namastexlabs/automagik-tools. It costs 0 tokens per session (2,432 once invoked), scanned A, original, Apache-2.0.

A quality-checking workflow for tools in the automagik-tools project. It checks code style, project rules, security, performance, dependencies, and error handling.

In plain words
What is it for?
It is for running formatting and lint checks, checking MCP protocol compliance, reviewing documentation and configuration, and assessing security, dependencies, resource use, and error recovery.
Why use it?
It helps find quality and production-readiness problems before a tool is released.

Command for Claude Code

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add commands/namastexlabs/automagik-tools/validator
Clone the repo
git clone --depth 1 https://github.com/namastexlabs/automagik-tools

Made for: Claude Code.

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

agentmods badge for validator

README.md
[![agentmods](https://agentmods.dev/badge/commands/namastexlabs/automagik-tools/validator.svg)](https://agentmods.dev/commands/namastexlabs/automagik-tools/validator)
Your own site
<a href="https://agentmods.dev/commands/namastexlabs/automagik-tools/validator"><img src="https://agentmods.dev/badge/commands/namastexlabs/automagik-tools/validator.svg" alt="Measured on agentmods" height="20"></a>
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 2,432 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce invoked
Fable 5.1 $0.00000 $0.02432
Opus 5 $0.00000 $0.01216
Sonnet 5 $0.00000 $0.00486
Haiku 4.5 $0.00000 $0.00243

Measured 5d ago against content hash cdc05d55c885, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-05, from the pricing page.

Security

Grade A, and why

validator 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 5d 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.

.claude/commands/validator.md · 324 lines

How it starts

The opening of the file, as written. The whole thing — 324 lines — stays where its author put it; the contents beside it link to each section on GitHub.

VALIDATOR - Quality Assurance Workflow

✅ Your Mission

You are the VALIDATOR workflow for automagik-tools. Your role is to ensure tools meet all quality standards, comply with project conventions, and are production-ready.

🎯 Core Responsibilities

1. Code Quality

  • Run linting and formatting checks
  • Verify type hints and docstrings
  • Check import organization
  • Validate naming conventions
  • Ensure code readability

2. Standards Compliance

  • MCP protocol compliance
  • Project structure adherence
  • Configuration patterns
  • Error handling standards
  • Documentation requirements

3. Production Readiness

  • Security considerations
  • Performance validation
  • Dependency assessment
  • Resource management
  • Error recovery

✅ Validation Process

Step 1: Code Quality Checks

# Run black formatting check
Task("cd /home/namastex/workspace/automagik-tools && uv run black --check automagik_tools/tools/{tool_name} tests/tools/test_{tool_name}.py")

# Run ruff linting
Task("cd /home/namastex/workspace/automagik-tools && uv run ruff check automagik_tools/tools/{tool_name} tests/tools/test_{tool_name}.py")

# If issues found, auto-fix
Task("cd /home/namastex/workspace/automagik-tools && uv run black automagik_tools/tools/{tool_name} tests/tools/test_{tool_name}.py")
Task("cd /home/namastex/workspace/automagik-tools && uv run ruff check --fix automagik_tools/tools/{tool_name} tests/tools/test_{tool_name}.py")

Step 2: Structure Validation

# Verify required files exist
required_files = [
    "automagik_tools/tools/{tool_name}/__init__.py",
    "automagik_tools/tools/{tool_name}/__main__.py",
    "automagik_tools/tools/{tool_name}/config.py",
    "automagik_tools/tools/{tool_name}/README.md",
    "tests/tools/test_{tool_name}.py"
]

for file in required_files:
    if not exists(file):
        print(f"❌ Missing required file: {file}")
    else:
        print(f"✅ Found: {file}")

# Check metadata completeness
metadata = Read("automagik_tools/tools/{tool_name}/__init__.py")
required_metadata = ["name", "version", "description", "author", "category"]

Read the full file on GitHub · 324 lines

Changes

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.

  1. 5d ago First seen · 324 lines · 0 tokens per session scan A cdc05d55c885

Subscribe to this mod's changes

validator is a command published in the GitHub repository namastexlabs/automagik-tools (15 stars, last pushed 9mo ago), licensed Apache-2.0. It costs nothing until one of its globs matches a file; then it loads 2,432 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-30.