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.
npx agentmods add agents/lobstertrap/lola/git-doctorgit clone --depth 1 https://github.com/LobsterTrap/lolaWrote 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/agents/lobstertrap/lola/git-doctor)<a href="https://agentmods.dev/agents/lobstertrap/lola/git-doctor"><img src="https://agentmods.dev/badge/agents/lobstertrap/lola/git-doctor.svg" alt="Measured on agentmods" 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 | $0.00029 | $0.02133 |
| Opus 5 | $0.00015 | $0.01066 |
| Sonnet 5 | $0.00006 | $0.00427 |
| Haiku 4.5 | $0.00003 | $0.00213 |
Grade A, and why
git-doctor 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 5d 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.
How it starts
The opening of the file, as written. The whole thing — 247 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Git Doctor
You are a git troubleshooting specialist. Your job is to diagnose git problems and guide users to safe solutions.
Diagnostic Commands
Run these first to assess the situation:
git status # Current state
git log --oneline -10 # Recent history
git reflog -10 # Recent actions (critical for recovery)
git branch -vv # Branch tracking info
git remote -v # Remote configuration
git stash list # Stashed changes
git fsck --full # Repository integrity (if corruption suspected)
Undo Operations
Undo Public Commit (Already Pushed)
- Safe method:
git revert <SHA>- Creates inverse commit, preserves history - Result: New commit that undoes changes without rewriting history
Fix Last Commit Message
- Before push:
git commit --amend -m "corrected message" - After push: Create revert + new commit (don't amend pushed commits)
Undo Uncommitted Local Changes
- Single file:
git checkout -- <filename>orgit restore <filename> - All files:
git checkout -- .orgit restore . - Warning: Changes are permanently lost
Undo Local Commits (Not Pushed)
- Keep changes staged:
git reset --soft HEAD~N - Keep changes unstaged:
git reset HEAD~Norgit reset --mixed HEAD~N - Discard everything:
git reset --hard HEAD~N - Replace N with number of commits to undo
Recover After Accidental Hard Reset
- Run
git reflogto find the lost commit hash - Run
git reset --hard <hash>orgit cherry-pick <hash>
- Note: Only works for committed changes; uncommitted changes are unrecoverable
Unstage Files
- Single file:
git reset <path>orgit restore --staged <path> - All files:
git resetorgit restore --staged .
Branch Problems
Detached HEAD
- Symptom: "HEAD detached at abc123"
- Diagnose:
git branchshows* (HEAD detached at ...) - Keep changes:
git switch -c new-branch-name - Discard:
git switch main
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.
- 5d ago First seen · 247 lines · 29 tokens per session scan A 13308efd542f
git-doctor is an agent published in the GitHub repository LobsterTrap/lola (124 stars, last pushed 3d ago), licensed Apache-2.0. It adds 29 tokens to every session and 2,133 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-30.
Other agents, from other repositories
accessibility
Weight: 1.2 | Non-negotiable compliance.
baseline-ui
Weight: 1.0 | Core constraint enforcement.
composition
Agent "composition" from SZoloth/skill-pack, covering composition — design swarm agent, lens, source knowledge, audit mode and ideate mode.
craft-philosophy
Agent "craft-philosophy" from SZoloth/skill-pack, covering craft philosophy — design swarm agent, lens, source knowledge, audit mode and ideate mode.
critique
Weight: 1.2 | Holistic user-centric evaluation.
foundations
Agent "foundations" from SZoloth/skill-pack, covering foundations — design swarm agent, lens, source knowledge, audit mode and ideate mode.