agentistics: Command for Claude Code

.claude/commands/stats-newpr.md

stats-newpr is a command for Claude Code from blpsoares/agentistics. It costs 0 tokens per session (780 once invoked), scanned A, original, MIT.

A pre-pull-request checklist for claude-stats, followed by opening the pull request for review.

In plain words
What is it for?
It helps developers run the full test suite, inspect changed code, perform relevant checks, and prepare a pull request.
Why use it?
It catches failing tests, outdated pricing information, and missing test coverage before changes are submitted to collaborators.

Command for Claude Code

Written for Claude Code: installed under .claude/. Also seen: mentions CLAUDE.md.

This is blpsoares/agentistics's own configuration. It tells Claude Code how to work on agentistics itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything agentistics configures →

Reuse

Borrowing it

Nothing to install: this file belongs to blpsoares/agentistics. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/blpsoares/agentistics/main/.claude/commands/stats-newpr.md
Clone the repo
git clone --depth 1 https://github.com/blpsoares/agentistics

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 stats-newpr

README.md
[![agentmods](https://agentmods.dev/badge/commands/blpsoares/agentistics/stats-newpr/github.svg)](https://agentmods.dev/commands/blpsoares/agentistics/stats-newpr)
Your own site
<a href="https://agentmods.dev/commands/blpsoares/agentistics/stats-newpr"><img src="https://agentmods.dev/badge/commands/blpsoares/agentistics/stats-newpr/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 stats-newpr

Your own site · 80×15
<a href="https://agentmods.dev/commands/blpsoares/agentistics/stats-newpr"><img src="https://agentmods.dev/badge/commands/blpsoares/agentistics/stats-newpr.svg" alt="Reviewed on agentmods" width="80" 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 780 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.00000 $0.00780
Opus 5.5 $0.00000 $0.00312
Sonnet 5.5 $0.00000 $0.00156
Haiku 4.5 $0.00000 $0.00078

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

Security

Grade A, and why

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

.claude/commands/stats-newpr.md · 82 lines

How it starts

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

Run the full pre-PR checklist for claude-stats, then open the pull request.

Language

Everything must be in English: PR title, PR body, commit messages, and any code comments added in this change. This is non-negotiable.

Step 1 — Run tests

Run bun test. All tests must pass with 0 failures before proceeding. If any fail, fix them first.

Step 2 — Context-aware checks

Inspect what changed in this branch and run only the relevant checks below.

If any cost calculation was touched (calcCost, getModelPrice, MODEL_PRICING, blendedCostPerToken):

  • Verify MODEL_PRICING in src/lib/types.ts and FALLBACK_PRICING in server.ts are in sync (same models, same prices)
  • Verify the per-layer cost table in CLAUDE.md is still accurate

If a new model was added:

  • MODEL_PRICING in src/lib/types.ts
  • FALLBACK_PRICING in server.ts
  • PRICING_PAGE_MODEL_MAP in server.ts (for live price scraping)
  • CLAUDE.md pricing section

If a new exported pure function was added:

  • Confirm there is a corresponding test in the relevant .test.ts file
  • If not, write the missing test cases before opening the PR

If streak, date filtering, or timezone logic was touched:

  • Confirm the fix uses format(date, 'yyyy-MM-dd') (local time) not toISOString().slice(0, 10) (UTC)
  • Confirm activeDates is built from both dailyActivity and data.sessions

If the stats-cache schema changed (new fields in StatsCache, SessionMeta, DailyActivity):

  • Note it explicitly in the PR as a potential breaking change for users upgrading

If a UI component changed (charts, cards, heatmap, PDF export):

  • Add a screenshot or short description of the visual diff to the PR body

If data aggregation or session parsing was touched (parseSessionJsonl, useDerivedStats):

  • Note any performance impact (more/fewer file reads, heavier compute per session)

Step 3 — Documentation

CLAUDE.md — update if any of the following changed:

  • A function in the per-layer cost table
  • A new "important rule" about data behavior
  • The data flow or architecture

Read the full file on GitHub · 82 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 · 82 lines · 0 tokens per session scan A 111375ae9581

Subscribe to this mod's changes

stats-newpr is a command published in the GitHub repository blpsoares/agentistics (44 stars, last pushed 1mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 780 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-09-01.

Related

stats-newpr compared with commands from other repositories

stats-newpr next to 6 commands from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
stats-newprblpsoares/agentisticsCommand441mo agoMITA0Claude Code
design-shipyonatangross/orchestkitCommand299yesterdayMITA50Claude Code, Cursor
pull-repostravisjneuman/.claudeCommand107yesterdayMITA13Claude Code
AGENTSmax-sixty/worktrunkCommand12kyesterdaynoneA0Claude Code
devkit.github.review-prgiuseppe-trisciuoglio/developer-kitCommand3671mo agoMITA26Claude Code
worktree-cleanupsangrokjung/claude-forgeCommand8732mo agoMITA12Claude Code
quick-commitsangrokjung/claude-forgeCommand8732mo agoMITA14Claude Code