ways-tests

ways-tests is a command for Claude Code from aaronsb/claude-code-config. It costs 11 tokens per session (1,963 once invoked), scanned A, original, MIT.

A command-line checker for evaluating how well a “way” matches sample user requests, finding missing vocabulary, and validating its frontmatter. Frontmatter is the structured metadata at the start of a file.

In plain words
What is it for?
Use it to score one or all ways against prompts, suggest or apply vocabulary updates, and lint one or all way files.
Why use it?
It helps reveal when a way is hard to discover because its wording does not match how users ask for help. It also catches invalid metadata before the way is used.

Command for Claude Code

Written for Claude Code: $CLAUDE_PROJECT_DIR variable. Also seen: reads .claude/ paths; mentions subagents.

Good fit Use it to score one or all ways against prompts, suggest or apply vocabulary updates, and lint one or all way files.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/aaronsb/claude-code-config/ways-tests
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.

Clone the repo
git clone --depth 1 https://github.com/aaronsb/claude-code-config

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 ways-tests

README.md
[![agentmods](https://agentmods.dev/badge/commands/aaronsb/claude-code-config/ways-tests/github.svg)](https://agentmods.dev/commands/aaronsb/claude-code-config/ways-tests)
Your own site
<a href="https://agentmods.dev/commands/aaronsb/claude-code-config/ways-tests"><img src="https://agentmods.dev/badge/commands/aaronsb/claude-code-config/ways-tests/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for ways-tests

Your own site · 80×15
<a href="https://agentmods.dev/commands/aaronsb/claude-code-config/ways-tests"><img src="https://agentmods.dev/badge/commands/aaronsb/claude-code-config/ways-tests.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 11 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,963 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
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.00011 $0.01963
Opus 5.5 $0.00004 $0.00785
Sonnet 5.5 $0.00002 $0.00393
Haiku 4.5 $0.00001 $0.00196

Measured 2mo ago against content hash 489023bc763b, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

ways-tests 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 2mo 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.

commands/ways-tests.md · 227 lines

How it starts

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

ways-tests: Way Matching & Vocabulary Tool

Test how well a way matches sample prompts, or analyze its vocabulary for gaps.

Usage

The user invokes /ways-tests with one of these patterns:

Score mode: test a way against prompts

/ways-tests score <path/to/{name}.md> "sample prompt here"
/ways-tests score security "how do i hash passwords with bcrypt"

Score all ways: rank all ways against a prompt

/ways-tests score-all "sample prompt here"

Suggest mode: analyze vocabulary gaps

/ways-tests suggest <path/to/{name}.md>
/ways-tests suggest security
/ways-tests suggest --all

Suggest + apply: update vocabulary in-place

/ways-tests suggest <path/to/{name}.md> --apply
/ways-tests suggest --all --apply

Lint mode: validate way frontmatter

/ways-tests lint <path/to/{name}.md>
/ways-tests lint --all

Implementation

Resolving way paths

When the user gives a short name like "security" instead of a full path:

  1. Check $CLAUDE_PROJECT_DIR/.claude/ways/ first (project-local)
  2. Then check ~/.claude/hooks/ways/ recursively for */security/security.md
  3. If multiple matches, list them and ask the user to pick

Score mode

Use the ways match subcommand:

# Score with BM25
ways match \
  --description "$description" \
  --vocabulary "$vocabulary" \
  --query "$prompt" \
  --threshold "${threshold:-2.0}"
# Exit code: 0 = match, 1 = no match
# Stderr: "match: score=X.XXXX threshold=Y.YYYY"

Display the score, threshold, and match/no-match result. If the way has no vocabulary, note that semantic matching is unavailable — only pattern matching applies.

Score-all mode

For each way file found (project-local + global), extract description+vocabulary and run way-match pair. Display results as a ranked table:

Score   Threshold  Match  Way
------  ---------  -----  ---
4.7570  2.0        YES    softwaredev/security
2.3573  2.0        YES    softwaredev/api
1.6812  2.0        no     softwaredev/debugging
0.0000  2.0        no     softwaredev/design

Read the full file on GitHub · 227 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. 2mo ago First seen · 227 lines · 11 tokens per session scan A 489023bc763b

Subscribe to this mod's changes

ways-tests is a command published in the GitHub repository aaronsb/claude-code-config (18 stars, last pushed 7mo ago), licensed MIT. It adds 11 tokens to every session and 1,963 once invoked, about $0.0000 per session on Opus 5.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.

Related

ways-tests compared with commands from other repositories

ways-tests next to 6 commands from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
ways-testsaaronsb/claude-code-configCommand187mo agoMITA11Claude Code
agt-statusmicrosoft/agent-governance-toolkitCommand6.5kyesterdayMITA13Claude Code
todosdesplega-ai/agent-swarmCommand1.0ktodayMITA7Claude Code
create-prdesplega-ai/agent-swarmCommand1.0ktodayMITA19Claude Code
riskreviewinclusionAI/AvernetCommand601todayApache-2.0A11Claude Code
buildtractorjuice/arc-kitCommand2.3k2d agononeA19Claude Code
nyann:diff-profilethettwe/nyannCommand76d agoMITA42Claude Code