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 commands/opsmill/infrahub-mcp/prgit clone --depth 1 https://github.com/opsmill/infrahub-mcpWhat 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.00018 | $0.01664 |
| Opus 5 | $0.00009 | $0.00832 |
| Sonnet 5 | $0.00004 | $0.00333 |
| Haiku 4.5 | $0.00002 | $0.00166 |
Grade A, and why
pr 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 3d 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 — 205 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Open Pull Request
Introduction
Handle the full workflow from current branch state to an open, CI-monitored pull request. This command enforces branch discipline, analyzes all branch changes for a business-value-focused description, ensures documentation is current, and requires user approval at every step.
Arguments
#$ARGUMENTS
Supported arguments:
commit— Stage, commit, and push uncommitted changes before proceeding. Without this argument, no commits are made — the command works only with what is already committed on the branch.
Main Tasks
1. Safety Checks & Branch Setup
- Verify we are NOT on
stableormain:
If on a protected branch, stop immediately and inform the user.git branch --show-current - Check working tree status:
If there are uncommitted changes andgit status --shortcommitwas NOT passed, warn the user but do not commit. - Ensure the branch tracks a remote:
If no upstream, set one:git rev-parse --abbrev-ref --symbolic-full-name @{u} 2>/dev/null || echo "no upstream"git push -u origin $(git branch --show-current)
2. Commit Changes (only when commit argument is provided)
Skip this phase entirely if commit was NOT passed as an argument.
When commit IS provided:
- Run the required quality gates:
Fix any issues that arise before committing.uv run pre-commit run - Stage all changes:
git add -A - Create a commit with a descriptive message following project conventions.
- Push to remote:
git push
3. Analyze All Branch Changes
- Find the merge base with
stable:git merge-base stable HEAD - Review all commits on this branch:
git log stable..HEAD --oneline - Review the full diff:
git diff stable...HEAD --stat - Read changed files to understand the full scope of changes.
- Check if a spec exists for this work (look in
.specify/orspecs/).
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.
- 3d ago First seen · 205 lines · 18 tokens per session scan A aa2e4bb89e02
pr is a command published in the GitHub repository opsmill/infrahub-mcp (10 stars, last pushed 5d ago), licensed Apache-2.0. It adds 18 tokens to every session and 1,664 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.
Other commands, from other repositories
cl
Audit changelog entries before release.
AGENTS
CLAUDE.md is a symlink to this file. Edit AGENTS.md only.
global-shortcuts
Global shortcuts do not use the renderer command registry. Electron main registers them with globalShortcut.register, so they can run while the app is unfocused.
full-review
Run a full review — code, architecture, browser, and UX. User input: $ARGUMENTS.
code-review
Run a code review. User input: $ARGUMENTS.
commit
Commit current changes. User input: $ARGUMENTS.