jdex-audit

jdex-audit is a command for Claude Code from ngerakines/jd. It costs 14 tokens per session (357 once invoked), scanned A, original, Apache-2.0.

An audit command for Johnny.Decimal systems that compares the written JDex index with the folders that actually exist. It also checks indexes for repeated “+SUB” entries.

In plain words
What is it for?
Use it to audit one or all systems, review findings in a table, add safe missing entries, and identify changes that need a decision before anything is renamed or removed.
Why use it?
It reveals folders that are undocumented, index entries with no folder, naming differences, and mismatches between +SUB folders and their indexes.

Command for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Part of the jd plugin — 6 skills, 6 commands shipped together

Good fit Use it to audit one or all systems, review findings in a table, add safe missing entries, and identify changes that need a decision before anything is renamed or removed.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/ngerakines/jd/jdex-audit
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.

Clone the repo
git clone --depth 1 https://github.com/ngerakines/jd

Made for: Claude Code.

Or install jd, the plugin that ships this one along with the rest of its 6 skills, 6 commands.

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 jdex-audit

README.md
[![agentmods](https://agentmods.dev/badge/commands/ngerakines/jd/jdex-audit.svg)](https://agentmods.dev/commands/ngerakines/jd/jdex-audit)
Your own site
<a href="https://agentmods.dev/commands/ngerakines/jd/jdex-audit"><img src="https://agentmods.dev/badge/commands/ngerakines/jd/jdex-audit.svg" alt="Measured on agentmods" height="20"></a>
Per session 14 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 357 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.00014 $0.00357
Opus 5 $0.00007 $0.00179
Sonnet 5 $0.00003 $0.00071
Haiku 4.5 $0.00001 $0.00036

Measured 8d ago against content hash 0d8cc0d1c051, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

jdex-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 8d 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.

jd/commands/jdex-audit.md · 50 lines

What it actually says

Audit JDex

Compare a system's JDex against its actual folder structure, flagging orphaned entries, undocumented folders, name mismatches, and +SUB index issues.

Arguments

$ARGUMENTS may contain a system code (e.g., P10) to audit a specific system. If no argument is provided, list all available systems and ask which to audit.

Workflow

  1. Load the target system's JDex.
  2. Snapshot the filesystem to depth 3.
  3. Compare JDex entries against folders:
    • Orphaned JDex entries (in JDex, no folder)
    • Undocumented folders (folder exists, not in JDex)
    • Name mismatches between JDex and folder names
  4. Check +SUB index files against +SUB folders.
  5. Report findings in a structured table.
  6. Offer fixes: Add missing JDex entries, update +SUB indexes, or flag items that need user decisions.

Safe Fixes

  • Adding undocumented folders to the JDex
  • Updating +SUB index files with missing entries

Requires User Decision

  • Orphaned JDex entries (create folder or remove entry?)
  • Name mismatches (which name is correct?)
  • Deleting or renaming any folder

Examples

/jd:jdex-audit
/jd:jdex-audit P10
/jd:jdex-audit F50
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. 8d ago First seen · 50 lines · 14 tokens per session scan A 0d8cc0d1c051

Subscribe to this mod's changes

jdex-audit is a command published in the GitHub repository ngerakines/jd (7 stars, last pushed 7mo ago), licensed Apache-2.0. It adds 14 tokens to every session and 357 once invoked, about $0.0001 per session on Opus 5. 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-31.