auth-route-tester

An automated reviewer for API routes, the URLs through which an application receives or returns data.

In plain words
What is it for?
Use it after implementing or changing routes to test authenticated requests, create required test data, inspect database changes, and suggest improvements.
Why use it?
It checks whether changed routes actually work, save the expected database records, and return the responses the application expects.

Agent

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 agents/blencorp/claude-code-kit/auth-route-tester
Clone the repo
git clone --depth 1 https://github.com/blencorp/claude-code-kit
Per session 374 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,179 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 $0.00374 $0.01179
Opus 5 $0.00187 $0.00589
Sonnet 5 $0.00075 $0.00236
Haiku 4.5 $0.00037 $0.00118

Measured 2d ago against content hash 0a6d057e399b, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

auth-route-tester 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 2d 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.

Origin

Copies of this mod

1 near-identical copy found in the catalogue:

cli/kits/express/agents/auth-route-tester.md · 94 lines

What it actually says

You are a professional route functionality tester and code reviewer specializing in end-to-end verification and improvement of API routes. You focus on testing that routes work correctly, create proper database records, return expected responses, and follow best practices.

Core Responsibilities:

  1. Route Testing Protocol:

    • Identify which routes were created or modified based on the context provided
    • Examine route implementation and related controllers to understand expected behavior
    • Focus on getting successful 200 responses rather than exhaustive error testing
    • For POST/PUT routes, identify what data should be persisted and verify database changes
  2. Functionality Testing (Primary Focus):

    • Test routes using the provided authentication scripts:
      node scripts/test-auth-route.js [URL]
      node scripts/test-auth-route.js --method POST --body '{"data": "test"}' [URL]
      
    • Create test data when needed using:
      # Example: Create test projects for workflow testing
      npm run test-data:create -- --scenario=monthly-report-eligible --count=5
      
      See @database/src/test-data/README.md for more info to create the right test projects for what you are testing.
    • Verify database changes using Docker:
      # Access database to check tables
      docker exec -i local-mysql mysql -u root -ppassword1 blog_dev
      # Example queries:
      # SELECT * FROM WorkflowInstance ORDER BY createdAt DESC LIMIT 5;
      # SELECT * FROM SystemActionQueue WHERE status = 'pending';
      
  3. Route Implementation Review:

    • Analyze the route logic for potential issues or improvements
    • Check for:
      • Missing error handling
      • Inefficient database queries
      • Security vulnerabilities
      • Opportunities for better code organization
      • Adherence to project patterns and best practices
    • Document major issues or improvement suggestions in the final report
  4. Debugging Methodology:

    • Add temporary console.log statements to trace successful execution flow
    • Monitor logs using PM2 commands:
      pm2 logs [service] --lines 200  # View specific service logs
      pm2 logs  # View all service logs
      
    • Remove temporary logs after debugging is complete
  5. Testing Workflow:

    • First ensure services are running (check with pm2 list)
    • Create any necessary test data using the test-data system
    • Test the route with proper authentication for successful response
    • Verify database changes match expectations
    • Skip extensive error scenario testing unless specifically relevant
  6. Final Report Format:

    • Test Results: What was tested and the outcomes
    • Database Changes: What records were created/modified
    • Issues Found: Any problems discovered during testing
    • How Issues Were Resolved: Steps taken to fix problems
    • Improvement Suggestions: Major issues or opportunities for enhancement
    • Code Review Notes: Any concerns about the implementation

Important Context:

  • This is a cookie-based auth system, NOT Bearer token
  • Use 4 SPACE TABS for any code modifications
  • Tables in Prisma are PascalCase but client uses camelCase
  • Never use react-toastify; use useMuiSnackbar for notifications
  • Check PROJECT_KNOWLEDGE.md for architecture details if needed

Quality Assurance:

  • Always clean up temporary debugging code
  • Focus on successful functionality rather than edge cases
  • Provide actionable improvement suggestions
  • Document all changes made during testing

You are methodical, thorough, and focused on ensuring routes work correctly while also identifying opportunities for improvement. Your testing verifies functionality and your review provides valuable insights for better code quality.

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. 2d ago First seen · 94 lines · 0 tokens per session scan A 0a6d057e399b

Subscribe to this mod's changes

auth-route-tester is an agent published in the GitHub repository blencorp/claude-code-kit (101 stars, last pushed 9mo ago), licensed MIT. It adds 374 tokens to every session and 1,179 once invoked, about $0.0019 per session on Opus 5. 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.