Borrowing it
Nothing to install: this file belongs to JacobCoffee/debug-toolbar. 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/JacobCoffee/debug-toolbar/main/.claude/commands/test.mdgit clone --depth 1 https://github.com/JacobCoffee/debug-toolbarWrote 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/jacobcoffee/debug-toolbar/test)<a href="https://agentmods.dev/commands/jacobcoffee/debug-toolbar/test"><img src="https://agentmods.dev/badge/commands/jacobcoffee/debug-toolbar/test.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.00008 | $0.00955 |
| Opus 5 | $0.00004 | $0.00477 |
| Sonnet 5 | $0.00002 | $0.00191 |
| Haiku 4.5 | $0.00001 | $0.00096 |
Grade A, and why
test 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.
How it starts
The opening of the file, as written. The whole thing — 205 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Testing Workflow
You are writing tests for: $ARGUMENTS
Pre-Testing Checklist
- Load PRD from
specs/active/{slug}/prd.md - Identify files to test from implementation
- Read existing test patterns from
tests/ - Check coverage requirements (90%+)
Critical Rules
- 90%+ COVERAGE - For all modified modules
- PATTERN COMPLIANCE - Follow existing test structure
- ASYNC CLEANUP - Always clean up context vars
- FIXTURE USAGE - Use conftest.py fixtures
- ISOLATION - Tests must work in parallel
Phase 1: Test Planning
Identify test scope:
# List modified files
git diff --name-only HEAD~1
# Check current coverage
make test-cov
For each module, identify:
- Public methods to test
- Edge cases
- Error conditions
- Integration points
Output: "✓ Phase 1 complete - Test scope identified"
Phase 2: Unit Tests
Follow the test pattern:
"""Tests for the {module} module."""
from __future__ import annotations
import pytest
from debug_toolbar.core.context import set_request_context
class TestClassName:
"""Tests for ClassName."""
def test_method_basic(self) -> None:
"""Should describe expected behavior."""
# Arrange
# Act
# Assert
@pytest.mark.asyncio
async def test_async_method(self, context) -> None:
"""Should describe async behavior."""
set_request_context(None) # Setup
# Arrange
# Act
# Assert
set_request_context(None) # Cleanup
Key test patterns for debug-toolbar:
-
Panel tests:
- Test
generate_stats()returns expected structure - Test
process_request()andprocess_response()lifecycle - Test
get_panel_id()returns correct ID
- Test
-
Config tests:
- Test default values
- Test custom values
- Test
get_all_panels()with extras/excludes
-
Toolbar tests:
- Test panel loading
- Test request/response lifecycle
- Test data collection
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.
- 2d ago First seen · 205 lines · 8 tokens per session scan A 3d70c2f923ef
test is a command published in the GitHub repository JacobCoffee/debug-toolbar (7 stars, last pushed 5mo ago), licensed MIT. It adds 8 tokens to every session and 955 once invoked, about $0.0000 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-09-04.
Other commands, from other repositories
test-tdd
Run when user calls /test-tdd. Scans modified files, locates their corresponding unit/integration test suites, and runs them.
kill-mutants
Analyze surviving mutants from a mutation testing run and write targeted unit tests to kill them. Re-runs mutations to confirm kills.
pr-enhance
Command "pr-enhance" from ruvnet/ruflo, covering pr-enhance, usage, options, examples and enhance pr.
lg:node
Create, modify, and manage nodes in LangGraph graphs including LLM nodes, tool nodes, human-in-the-loop, subgraphs, and conditional nodes.
test
Execute a comprehensive test run for the following target.
frappe-test
Run unit and integration tests for Frappe apps with coverage reports.