audit

audit is a command for Claude Code from jayminwest/kotadb. It costs 0 tokens per session (2,882 once invoked), scanned A, original, MIT.

A command for reviewing open GitHub issues and finding ones that are completed, outdated, duplicated, or no longer needed.

In plain words
What is it for?
Use it to inspect issue details, review dependencies, identify closure candidates, and report recommended issue updates.
Why use it?
It helps keep an issue tracker accurate and checks whether blocked issues can now move forward.

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/jayminwest/kotadb/audit
Clone the repo
git clone --depth 1 https://github.com/jayminwest/kotadb

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 audit

README.md
[![agentmods](https://agentmods.dev/badge/commands/jayminwest/kotadb/audit.svg)](https://agentmods.dev/commands/jayminwest/kotadb/audit)
Your own site
<a href="https://agentmods.dev/commands/jayminwest/kotadb/audit"><img src="https://agentmods.dev/badge/commands/jayminwest/kotadb/audit.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 2,882 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 $0.00000 $0.02882
Opus 5 $0.00000 $0.01441
Sonnet 5 $0.00000 $0.00576
Haiku 4.5 $0.00000 $0.00288

Measured 4d ago against content hash d546abb76da6, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

audit 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 4d 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/issues/audit.md · 280 lines

How it starts

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

Audit and Close Stale GitHub Issues

Template Category: Structured Data

Systematically audit open GitHub issues to identify candidates for closure. This command helps maintain a clean issue tracker by finding completed, obsolete, or duplicate issues that can be safely closed.

Steps

  1. Sync repo state

    • git fetch --all --prune
    • git pull --rebase (ensure you have latest commits and PRs)
  2. Fetch all open issues

    • gh issue list --limit 100 --state open --json number,title,labels,body,createdAt,updatedAt,comments
    • Include all issues regardless of age (we'll filter in analysis)
    • Capture full issue metadata for audit trail
  3. Check blocked issues for unblocking opportunities

    Before identifying closure candidates, audit issues with blocked label:

    • Fetch all blocked issues: gh issue list --label blocked --state open --json number,title,labels,body
    • For each blocked issue, parse the "Depends On" relationships from issue body
    • Check if blocking issues are now closed/merged: gh issue view <blocking-number> --json state
    • If all blocking issues are resolved:
      • Remove blocked label: gh issue edit <number> --remove-label blocked
      • Add comment explaining unblock: gh issue comment <number> --body "Unblocked: all dependencies resolved (closes #X, #Y)"
      • Update issue body to remove or strikethrough "Depends On" references
    • If some blockers remain, add comment with current blocker status
    • Track unblocked issues for prioritization report
  4. Identify closure candidates

    Category 1: Completed but not closed

    • Check for issues with related PRs that merged: gh pr list --state merged --search "fixes #<number>"
    • Look for commit messages mentioning issue numbers: git log --all --grep="#<number>" --oneline
    • Verify issue acceptance criteria are met by reviewing merged code
    • Closure reason: "Completed via PR #X"

    Category 2: Obsolete or superseded

    • Check for "Supersedes" relationships in issue metadata
    • Identify issues made obsolete by architectural changes (check recent merged PRs)
    • Look for issues referencing removed dependencies or deprecated features
    • Review git history for major refactors that resolved the issue implicitly
    • Closure reason: "Superseded by #X" or "Obsolete after PR #Y"

Read the full file on GitHub · 280 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. 4d ago First seen · 280 lines · 0 tokens per session scan A d546abb76da6

Subscribe to this mod's changes

audit is a command published in the GitHub repository jayminwest/kotadb (102 stars, last pushed 4mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 2,882 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.