frogger: Command for Claude Code

.claude/commands/docs-audit.md

docs-audit is a command for Claude Code from ultra-ai-dle/frogger. It costs 0 tokens per session (2,753 once invoked), scanned A, original, MIT.

A command for checking Markdown files against the current source code, settings, and type definitions, then correcting claims and diagrams that no longer match. It can scan a chosen file or directory, or the repository outside `mocks/`.

In plain words
What is it for?
Use it to audit repository documentation, verify Mermaid diagrams, remove references to the retiring `/api/explain` endpoint, and update outdated explanations.
Why use it?
Documentation can become wrong as software changes, causing developers to follow outdated instructions or misunderstand an API. This check helps find and fix those mismatches.

Command for Claude Code

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

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

Reuse

Borrowing it

Nothing to install: this file belongs to ultra-ai-dle/frogger. 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/ultra-ai-dle/frogger/develop/.claude/commands/docs-audit.md
Clone the repo
git clone --depth 1 https://github.com/ultra-ai-dle/frogger

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

README.md
[![agentmods](https://agentmods.dev/badge/commands/ultra-ai-dle/frogger/docs-audit/github.svg)](https://agentmods.dev/commands/ultra-ai-dle/frogger/docs-audit)
Your own site
<a href="https://agentmods.dev/commands/ultra-ai-dle/frogger/docs-audit"><img src="https://agentmods.dev/badge/commands/ultra-ai-dle/frogger/docs-audit/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 docs-audit

Your own site · 80×15
<a href="https://agentmods.dev/commands/ultra-ai-dle/frogger/docs-audit"><img src="https://agentmods.dev/badge/commands/ultra-ai-dle/frogger/docs-audit.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 2,753 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.02753
Opus 5.5 $0.00000 $0.01101
Sonnet 5.5 $0.00000 $0.00551
Haiku 4.5 $0.00000 $0.00275

Measured 27d ago against content hash 73ddf2face2b, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

docs-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 27d 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/docs-audit.md · 137 lines

How it starts

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

/docs-audit — Markdown 문서 전수 정합성 점검·수정

입력

  • $ARGUMENTS — (선택) 특정 .md 파일 경로 또는 디렉토리. 미지정 시 저장소 전체(mocks/ 제외) 스캔.

배경·목표

  • 이 저장소의 Markdown 문서가 코드·실제 동작과 어긋난 상태이며, 그 문서를 신뢰해 코딩·문서 작성이 이어지면서 오류가 전파되고 있다.
  • 목표: mocks/ 이하를 제외한 모든 Markdown을 현재 코드베이스 기준으로 검토하고, 불일치·과장·구식 설명을 수정한다. 본문뿐 아니라 .md 안의 다이어그램(Mermaid 등) 도 동일하게 코드·실제 동작과 맞는지 검증한다(다이어그램은 오해를 크게 키우므로 특히 엄하게 본다).
  • 원칙: 기존 Markdown의 주장은 검증 전까지 신뢰하지 않는다. 반드시 소스 코드·설정·타입 정의와 대조한다.

/api/explain 처리 원칙 (삭제 예정)

  • POST /api/explain(및 app/api/explain/)은 삭제 예정이다. 저장소에 라우트 파일이 남아 있어도, 문서·점검 관점에서는 제공되지 않는 기능·없는 API로 취급한다.
  • 문서에서 할 일:
    • 제품 기능·아키텍처·다이어그램·클라이언트 흐름에 explain을 넣지 않거나, 이미 있으면 삭제·축약한다.
    • "향후 연동""라우트만 존재" 등 코드 존재를 전제로 한 설명도 지양하고, 분석은 /api/analyze 중심만 남긴다.
    • 예외적으로 히스토리/내부 메모에 한 줄 남길 때만 "삭제 예정이었던 엔드포인트" 수준으로 적을 수 있다.
  • 이번 작업에서 코드를 삭제할 의무는 없다(문서 정합성 작업이 우선). 다만 문서는 위 정책에 맞춘다.

범위

  • 포함: 저장소 전체의 **/*.md (예: docs/, app/**/CLAUDE.md, .cursor/rules/, prompts/ 등).
  • 제외: mocks/ 디렉터리 내부의 모든 파일(해당 경로는 조사·수정 대상에서 제외).

작업 순서 (권장)

1. 인벤토리

  • mocks/ 밖의 모든 .md 파일 목록을 만든다(경로·대략적 역할 한 줄씩).

2. 코드 "진실의 원천" 우선순위

문서 주장과 대조할 때 아래를 우선한다.

  • src/types/prova.ts — 파이프라인 타입·스키마
  • src/features/execution/runtime.ts, public/worker/*.js — 실행·Worker·Java fetch 경로
  • app/api/analyze/route.ts, app/api/java/execute/route.ts — API 계약 (/api/explain은 아래 삭제 예정 정책에 따라 문서 검증 대상에서 제외)
  • src/hooks/useProvaExecution.ts, src/store/useProvaStore.ts — 클라이언트 fetch·상태
  • src/lib/ai-providers.ts — AI 프로바이더·폴백(문서에 "Gemini만" 등 단정이 있으면 코드와 일치하는지 확인)
  • env.example, 배포 관련 env — 문서의 환경변수·URL 설명
  • CLAUDE.md / docs/features/*.md 등 아키텍처 문서는 상호 참조하되, 최종 판단은 위 구현 파일에 맡긴다.

3. 문서 유형별 점검 항목

각 .md를 읽으며 아래를 체크리스트로 처리한다.

  • API 경로·메서드: 실제 app/api/**/route.ts 존재 여부, 요청/응답 본문 필드명이 타입과 일치하는지.
  • 클라이언트 네트워크: "한 번의 디버깅에 fetch 몇 번" 등은 useProvaExecution·runtime 기준으로 검증.
  • Web Worker / postMessage / Java 원격 실행: 역할 혼동(HTTP vs IPC) 문구 정정.
  • /api/explain: 위 「/api/explain 처리 원칙(삭제 예정)」 절에 따라 문서에서 제거·비기능으로 정리한다. "코드에 파일이 있다"는 이유로 기능으로 서술하지 않는다.
  • AI 프로바이더: callWithFallback·AI_PROVIDER 등과 모순되는 "단일 프로바이더만" 같은 단정 수정.
  • 다이어그램(Mermaid 등): 아래 §4 다이어그램 정합성을 따른다.
  • 폴더 구조·파일 경로: 문서에 적힌 경로가 실제와 같은지 확인.

Read the full file on GitHub · 137 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. 27d ago First seen · 137 lines · 0 tokens per session scan A 73ddf2face2b

Subscribe to this mod's changes

docs-audit is a command published in the GitHub repository ultra-ai-dle/frogger (8 stars, last pushed 6mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 2,753 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-10-02.