usage-monitor-for-claude: Command for Claude Code

.claude/commands/discussion-reply.md

discussion-reply is a command for Claude Code from jens-duttke/usage-monitor-for-claude. It costs 0 tokens per session (347 once invoked), scanned A, original, MIT.

A command that drafts a reply for a completed feature in a GitHub Discussion, a forum thread attached to a repository. It records the latest commit and saves the reply as a Markdown file.

In plain words
What is it for?
Use it after finishing a feature to prepare a concise implementation update with relevant details, examples, and documentation links.
Why use it?
It removes the need to gather the commit link, summarize the change, and format the response by hand.

Command for Claude Code

Written for Claude Code: $ARGUMENTS substitution.

This is jens-duttke/usage-monitor-for-claude's own configuration. It tells Claude Code how to work on usage-monitor-for-claude 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 usage-monitor-for-claude configures →

Reuse

Borrowing it

Nothing to install: this file belongs to jens-duttke/usage-monitor-for-claude. 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/jens-duttke/usage-monitor-for-claude/main/.claude/commands/discussion-reply.md
Clone the repo
git clone --depth 1 https://github.com/jens-duttke/usage-monitor-for-claude

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 discussion-reply

README.md
[![agentmods](https://agentmods.dev/badge/commands/jens-duttke/usage-monitor-for-claude/discussion-reply/github.svg)](https://agentmods.dev/commands/jens-duttke/usage-monitor-for-claude/discussion-reply)
Your own site
<a href="https://agentmods.dev/commands/jens-duttke/usage-monitor-for-claude/discussion-reply"><img src="https://agentmods.dev/badge/commands/jens-duttke/usage-monitor-for-claude/discussion-reply/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 discussion-reply

Your own site · 80×15
<a href="https://agentmods.dev/commands/jens-duttke/usage-monitor-for-claude/discussion-reply"><img src="https://agentmods.dev/badge/commands/jens-duttke/usage-monitor-for-claude/discussion-reply.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 347 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.00347
Opus 5 $0.00000 $0.00173
Sonnet 5 $0.00000 $0.00069
Haiku 4.5 $0.00000 $0.00035

Measured 12d ago against content hash 22a2d007756a, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade A, and why

discussion-reply 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 12d 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/discussion-reply.md · 36 lines

What it actually says

Generate a GitHub Discussion reply for a completed feature implementation.

Steps

  1. Run git log -1 --format="%H" to get the latest commit hash
  2. Write the reply to discussion-$ARGUMENTS-reply.md in the project root

Format

Implemented in [`{short_hash}`](https://github.com/jens-duttke/usage-monitor-for-claude/commit/{full_hash}).

**{One-line summary of the new feature or change}**

{Code example if applicable, e.g. a JSON settings snippet in a fenced block}

- {Key detail: default behavior, backwards compatibility}
- {Key detail: validation, error handling}
- {Key detail: edge cases, fallbacks}

See [{Link text}]({URL to relevant docs section}) for details.

Rules

  • Use the short hash (first 7 chars) for display, full hash in the URL
  • Keep bullet points concise - highlight what users need to know, not implementation details
  • The code example is optional - include it when the feature has user-facing configuration
  • The docs link should point to the specific section, not the whole page (use #anchor)
  • Write in English
  • Tell the user the file is ready and can be deleted after copying

Input

$ARGUMENTS is the discussion number (e.g. 11). Read the discussion content using gh api repos/jens-duttke/usage-monitor-for-claude/discussions/$ARGUMENTS --jq '.title, .body' to understand what was implemented, then compose the reply based on the actual changes in the latest commit.

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. 12d ago First seen · 36 lines · 0 tokens per session scan A 22a2d007756a

Subscribe to this mod's changes

discussion-reply is a command published in the GitHub repository jens-duttke/usage-monitor-for-claude (282 stars, last pushed 2d ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 347 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.