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/jesus-seijas-sp/claude-node-setup/git-prgit clone --depth 1 https://github.com/jesus-seijas-sp/claude-node-setupWrote 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/jesus-seijas-sp/claude-node-setup/git-pr)<a href="https://agentmods.dev/commands/jesus-seijas-sp/claude-node-setup/git-pr"><img src="https://agentmods.dev/badge/commands/jesus-seijas-sp/claude-node-setup/git-pr.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.00000 | $0.00430 |
| Opus 5 | $0.00000 | $0.00215 |
| Sonnet 5 | $0.00000 | $0.00086 |
| Haiku 4.5 | $0.00000 | $0.00043 |
Grade A, and why
git-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 4d 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.
What it actually says
Push the branch and open a pull request. Commits any pending changes automatically with an appropriate message.
Arguments
$ARGUMENTS must contain one or two values separated by |:
<PR title> | <PR description>
Example:
Add user login endpoint | Implements POST /auth/login with JWT response
Steps
-
Parse
$ARGUMENTSby splitting on|to extract:prTitle— first segment (trimmed)prDescription— second segment (trimmed)
-
If any of the two values is missing or empty, stop and ask the user to provide both before proceeding.
-
Check current branch with
git branch --show-current. If the branch ismainormaster, stop and warn the user — PRs must be opened from a feature branch. -
Check for pending changes with
git status --porcelain. If there are uncommitted changes:a. Inspect the diff (
git diffandgit diff --cached) to understand what changed.b. Generate an appropriate conventional commit message based on the changes (e.g.
feat: ...,fix: ...,chore: ...).c. Stage and commit:
git add -A
git commit -m "<generated commit message>"
If there are no changes to commit (clean working tree), skip this step and continue.
- Push the branch to origin:
git push -u origin <current-branch>
- Open the pull request using the GitHub CLI:
gh pr create --title "<prTitle>" --body "<prDescription>" --base main
- Report the PR URL returned by
gh pr create.
Rules
- Never use
--no-verifyon the commit. - If the push fails, report the error and stop — do not force push.
- If
ghis not installed or not authenticated, report that clearly and stop.
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.
- 4d ago First seen · 60 lines · 0 tokens per session scan A 48f9534c5c87
git-pr is a command published in the GitHub repository jesus-seijas-sp/claude-node-setup (10 stars, last pushed 5mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 430 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-08-31.
Other commands, from other repositories
checkpoint
Create a checkpoint by staging the changes you have made using git. usage: git [-v | --version] [-h | --help] [-C ] [-c = ] [--exec-path[= ]] [--html-path] [--man-path] [--info-path] [-p | --paginate | -P | --no-pager] [--no-replace-objects] [--bare] [--git-dir= ] [--work-tree= ] [--namespace= ] [--super-prefix= ]…
commit
智能创建 git 提交,分析代码变更并生成符合项目规范的提交信息.
git
Unified git operations - commits, pull requests, and issue management.
ship
Commit staged changes, push, and create PR.
changelog
Summarize staged git changes into a concise changelog/commit message.
commit
Create an atomic git commit with conventional message.