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.
git clone --depth 1 https://github.com/jkomyno/.dotfilesWrote 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.
[](https://agentmods.dev/commands/jkomyno/.dotfiles/diagnose)<a href="https://agentmods.dev/commands/jkomyno/.dotfiles/diagnose"><img src="https://agentmods.dev/badge/commands/jkomyno/.dotfiles/diagnose/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.
<a href="https://agentmods.dev/commands/jkomyno/.dotfiles/diagnose"><img src="https://agentmods.dev/badge/commands/jkomyno/.dotfiles/diagnose.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00010 | $0.03123 |
| Opus 5.5 | $0.00004 | $0.01249 |
| Sonnet 5.5 | $0.00002 | $0.00625 |
| Haiku 4.5 | $0.00001 | $0.00312 |
Grade C, and why
diagnose scanned grade C with 1 finding 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 6d 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.
Recursive force deletehighDestructive command
rm -rf with a variable or a broad path is one typo away from removing the wrong tree.
- Default: Report findings, show `rm -rf` commands, do NOT execute This is a copy
100% identical to diagnose — 0 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.
How it starts
The opening of the file, as written. The whole thing — 289 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Lean4 Diagnostics
Diagnostics, troubleshooting, and migration assistance for the Lean4 plugin.
Usage
/lean4:diagnose # Full diagnostic (plugin + workspace)
/lean4:diagnose env # Environment only
/lean4:diagnose migrate # Detect legacy installs (read-only)
/lean4:diagnose migrate --global # Include user-level ~/.claude scan
/lean4:diagnose cleanup # Show stale files + removal commands
/lean4:diagnose cleanup --apply # Actually remove stale files
/lean4:diagnose <pasted error> # Error triage: match against known patterns
Inputs
| Arg | Required | Description |
|---|---|---|
| mode | No | env, migrate, cleanup, or full (default) |
| --global | No | Include user-level paths (~/); migrate only |
| --apply | No | Execute removals; cleanup only |
| error text | No | Positional text whose first token is not a recognized mode is treated as pasted diagnostic text for error triage |
Dispatch is decided by the first positional token only:
- a recognized mode (
env,migrate,cleanup) or no positional token → existing mode behavior (default full diagnostic when absent); - otherwise → treat the positional text as pasted diagnostic input for error triage.
Mode-specific flags (--global, --apply) remain flags in every case — they are never treated as error text.
Error triage precedence: pasted text is matched against the specific patterns in compilation-errors.md (Quick Reference Table first), including the module-system patterns below, before falling back to the generic Build fails → lake update && lake clean && lake build row. A specific match wins over the generic remediation.
Actions
1. Environment Check
| Tool | Check | Required |
|---|---|---|
lean |
lean --version |
Yes |
lake |
lake --version |
Yes |
python3 |
python3 --version |
For scripts |
git |
git --version |
For commits |
rg |
rg --version |
Optional (faster search) |
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.
- 6d ago First seen · 289 lines · 10 tokens per session scan C 363b5aa15877
diagnose is a command published in the GitHub repository jkomyno/.dotfiles (5 stars, last pushed 2d ago), licensed MIT. It adds 10 tokens to every session and 3,123 once invoked, about $0.0000 per session on Opus 5.5. A static security scan graded it C with 1 finding (recursive force delete). It is 100% identical to diagnose, differing in 0 lines, and is treated as a copy.
diagnose compared with commands from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| diagnosejkomyno/.dotfiles | Command | 5 | 2d ago | MIT | C | 10 | Claude Code |
| qa-changesOpenHands/extensions | Command | 190 | today | MIT | A | 63 | Claude Code |
| auditar-cascadingluanpdd/kit-mcp | Command | 5 | yesterday | MIT | A | 54 | Claude Code |
| react-nativegetsentry/toolkit | Command | 977 | today | none | A | 0 | Claude Code |
| http-serviceMadAppGang/magus | Command | 16 | today | MIT | A | 27 | Claude Code |
| doctordoncheli/don-cheli-sdd | Command | 59 | 3mo ago | Apache-2.0 | A | 76 | Claude Code |
| doctorfatihkan/badi | Command | 8 | 1mo ago | MIT | A | 0 | Claude Code |