ash_grant: Command for Claude Code

.claude/commands/pr.md

pr is a command for Claude Code from jhlee111/ash_grant. It costs 0 tokens per session (750 once invoked), scanned A, original, MIT.

An end-to-end workflow for verifying completed code, checking its documentation, committing changes, pushing them, and opening a pull request.

In plain words
What is it for?
It is for running project checks, reviewing changed APIs and docs, creating a commit, pushing a branch, and opening a pull request.
Why use it?
It turns the final handoff into a checklist, reducing the chance that tests, documentation, or required checks are missed.

Command for Claude Code

Written for Claude Code: $ARGUMENTS substitution. Also seen: mentions CLAUDE.md; mentions Claude Code.

This is jhlee111/ash_grant's own configuration. It tells Claude Code how to work on ash_grant 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 ash_grant configures →

Reuse

Borrowing it

Nothing to install: this file belongs to jhlee111/ash_grant. 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/jhlee111/ash_grant/main/.claude/commands/pr.md
Clone the repo
git clone --depth 1 https://github.com/jhlee111/ash_grant

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 pr

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

Your own site · 80×15
<a href="https://agentmods.dev/commands/jhlee111/ash_grant/pr"><img src="https://agentmods.dev/badge/commands/jhlee111/ash_grant/pr.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 750 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.00750
Opus 5.5 $0.00000 $0.00300
Sonnet 5.5 $0.00000 $0.00150
Haiku 4.5 $0.00000 $0.00075

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

Security

Grade A, and why

pr 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 1mo 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/pr.md · 107 lines

How it starts

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

Create PR

End-to-end workflow: verify code, check docs, commit, push, create PR. Run this after implementation is done and tests pass locally.

Input

$ARGUMENTS — short description of changes (used for branch name and PR title)

Steps

1. Code verification

Run all four checks in parallel. ALL must pass before proceeding:

mix compile --warnings-as-errors
mix test
mix credo
mix format --check-formatted

If any fail, fix the issue and re-run. Do not skip.

2. Analyze changes

Run git diff HEAD and git status to understand what changed. Categorize changes:

  • New modules added?
  • Public API changed? (new functions, changed signatures, removed functions)
  • New DSL options or entities?
  • New behaviours or protocols?
  • Config/dependency changes?

3. Documentation gate

Based on the change analysis, check EACH of these. Ask the user for confirmation before proceeding if any are needed:

@moduledoc / @doc:

  • Every NEW public module has @moduledoc
  • Every NEW public function has @doc
  • Changed function signatures: is @doc still accurate?

README.md:

  • New feature → needs section or mention in README?
  • New DSL option → DSL Configuration table needs update?
  • Changed API → Quick Start / examples still correct?
  • Version in Installation section current?

CLAUDE.md:

  • New module → Architecture section needs update?
  • New command or workflow → Common Commands needs update?
  • New test pattern → Test Structure needs update?

usage-rules.md:

  • This file is the AI-agent-facing rulebook consumers of AshGrant follow — treat it with the same seriousness as README.
  • New DSL option or entity → add to the DSL Configuration table / new section?
  • New recommended pattern → add as a "DO:" rule?
  • Deprecated or removed option → add as a "DON'T:" rule and update any examples still using it?
  • Changed behaviour for an existing rule → update the rule's example and explanation?

guides/*.md:

  • New feature has a dedicated guide → add cross-links from every other guide whose topic touches it (audit grep -l "<new-feature>" guides/ and check omissions as deliberately as inclusions).
  • Pattern was recommended-against → ensure the old-pattern guide text reflects the new recommendation.
  • Examples in existing guides still compile / make sense after the change?

Read the full file on GitHub · 107 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. 1mo ago First seen · 107 lines · 0 tokens per session scan A b9208c2e0917

Subscribe to this mod's changes

pr is a command published in the GitHub repository jhlee111/ash_grant (18 stars, last pushed 2d ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 750 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.