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 skills add cxcscmu/SkillLearnBench --skill git-patch-workflowgit clone --depth 1 https://github.com/cxcscmu/SkillLearnBenchWrote 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/skills/cxcscmu/skilllearnbench/git-patch-workflow)<a href="https://agentmods.dev/skills/cxcscmu/skilllearnbench/git-patch-workflow"><img src="https://agentmods.dev/badge/skills/cxcscmu/skilllearnbench/git-patch-workflow/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/skills/cxcscmu/skilllearnbench/git-patch-workflow"><img src="https://agentmods.dev/badge/skills/cxcscmu/skilllearnbench/git-patch-workflow.svg" alt="Reviewed on agentmods" width="80" height="20"></a>- NVIDIA SkillSpector pass
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.00022 | $0.00625 |
| Opus 5.5 | $0.00009 | $0.00250 |
| Sonnet 5.5 | $0.00004 | $0.00125 |
| Haiku 4.5 | $0.00002 | $0.00063 |
Grade A, and why
git-patch-workflow 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 3mo 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 — 103 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Git Patch Workflow
Creating Patch Files
Method 1: From Unstaged Changes
cd /path/to/repo
git diff path/to/file.java > /path/to/patch/fix.patch
Method 2: From Staged Changes
git diff --cached > /path/to/patch/fix.patch
Method 3: From Commits
# Create patch from last N commits
git format-patch -N HEAD
# Create patch from specific commit
git show COMMIT_HASH > /path/to/patch/fix.patch
Patch File Structure
A unified diff patch looks like:
--- a/original/path/file.java
+++ b/modified/path/file.java
@@ -10,5 +10,6 @@ class MyClass {
// context line
- old code here
+ new code here
// context line
Key components:
---prefix: original file+++prefix: modified file@@markers: line numbers and context-prefix: removed lines+prefix: added lines- No prefix: context lines
Applying Patches
Basic Application
cd /path/to/repo
patch -p1 < /path/to/patch/fix.patch
With Error Handling
# Dry-run to test application
patch -p1 --dry-run < /path/to/patch/fix.patch
# Apply with strict checking
patch -p1 < /path/to/patch/fix.patch
# Apply with less strict checking
patch -p0 < /path/to/patch/fix.patch
Best Practices
- Use Git Format: Create patches via
git difforgit format-patchfor consistency - Include Context: Ensure adequate context lines (3+ lines around changes)
- Test Patches: Always dry-run before applying to ensure compatibility
- Modular Patches: Create separate patches for logically independent changes
- Clear Names: Name patches descriptively (e.g.,
fix-javascript-security-bypass.patch) - Document Changes: Include explanation of what the patch fixes
Verifying Application
# Check if patch was applied
git status
git diff HEAD
# Verify specific file was patched
git show HEAD:path/to/file.java | grep "your fix"
Multiple Patches
For multiple related patches:
# Create patches in order
git diff HEAD~2 HEAD~1 > patch1.patch
git diff HEAD~1 HEAD > patch2.patch
# Apply in sequence
patch -p1 < patch1.patch
patch -p1 < patch2.patch
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.
- 3mo ago First seen · 103 lines · 22 tokens per session scan A 0dcf37567830
git-patch-workflow is a skill published in the GitHub repository cxcscmu/SkillLearnBench (93 stars, last pushed 1mo ago), licensed MIT. It adds 22 tokens to every session and 625 once invoked, about $0.0001 per session on Opus 5.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.
git-patch-workflow compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| git-patch-workflowcxcscmu/SkillLearnBench | Skill | 93 | 1mo ago | MIT | A | 22 | Claude Code, Codex |
| syncing-memory-filesystemletta-ai/letta-code | Skill | 3.9k | today | Apache-2.0 | A | 42 | Claude Code, Codex |
| gh-clibenchflow-ai/skillsbench | Skill | 1.9k | 6d ago | Apache-2.0 | A | 50 | Claude Code, Codex |
| hotpath_bumppawurb/hotpath-rs | Skill | 1.9k | 8d ago | MIT | A | 99 | Claude Code |
| agentsop-llm-artifact-versioningagentsope/SkillAlchemy | Skill | 513 | 22d ago | MIT | A | 223 | Claude Code, Codex |
| agentsop-aideragentsope/SkillAlchemy | Skill | 513 | 22d ago | MIT | A | 89 | Claude Code, Codex |
| maintainer-local-cleanktwu01/benchmark-radar | Skill | 416 | today | MIT | A | 41 | Claude Code, Codex |