test

test is a command for Claude Code from csmar432/finai-research. It costs 0 tokens per session (291 once invoked), scanned A, original, MIT.

A project command that runs the Python test suite, either completely or filtered by a keyword.

In plain words
What is it for?
It is for running all tests or selected tests covering areas such as data fetching, checkpoints, event monitoring, model access, and econometrics.
Why use it?
It gives developers one command for checking whether code still works and for narrowing the check to related tests.

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/csmar432/finai-research/test
Clone the repo
git clone --depth 1 https://github.com/csmar432/finai-research

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 test

README.md
[![agentmods](https://agentmods.dev/badge/commands/csmar432/finai-research/test.svg)](https://agentmods.dev/commands/csmar432/finai-research/test)
Your own site
<a href="https://agentmods.dev/commands/csmar432/finai-research/test"><img src="https://agentmods.dev/badge/commands/csmar432/finai-research/test.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 291 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.00291
Opus 5 $0.00000 $0.00146
Sonnet 5 $0.00000 $0.00058
Haiku 4.5 $0.00000 $0.00029

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

Security

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

.claude/commands/test.md · 41 lines

What it actually says

test — 运行测试

description: 运行 pytest 测试套件,可选按关键字过滤

arguments

  • [pattern] (可选): pytest 关键字过滤模式

描述

运行项目测试套件。

等价于:

pytest tests/ -v -k "<pattern>"

示例

/test                    # 运行全部测试
/test regression         # 只运行回归相关测试
/test did                # 只运行 DID 相关测试
/test data_fetcher       # 只运行数据获取测试
/test checkpoint         # 只运行断点续传测试
/test -k "did or iv"    # 运行 DID 或 IV 测试

测试覆盖

测试文件 覆盖范围
tests/test_checkpoint.py 断点续传管理
tests/test_event_monitor.py 事件监控系统
tests/test_demo_research_report.py 研报生成流水线
tests/test_llm_gateway.py LLM 网关与路由
tests/test_ollama_provider.py Ollama 本地模型
tests/test_econometrics.py 计量经济学方法
tests/test_data_cache.py 数据缓存
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. 6d ago First seen · 41 lines · 0 tokens per session scan A 4b36fea0e45c

Subscribe to this mod's changes

test is a command published in the GitHub repository csmar432/finai-research (112 stars, last pushed yesterday), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 291 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.