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 owndiff/own-your-diff --skill owndiff-pre-commitgit clone --depth 1 https://github.com/owndiff/own-your-diffWrote 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/owndiff/own-your-diff/owndiff-pre-commit)<a href="https://agentmods.dev/skills/owndiff/own-your-diff/owndiff-pre-commit"><img src="https://agentmods.dev/badge/skills/owndiff/own-your-diff/owndiff-pre-commit/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/owndiff/own-your-diff/owndiff-pre-commit"><img src="https://agentmods.dev/badge/skills/owndiff/own-your-diff/owndiff-pre-commit.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.00077 | $0.01036 |
| Opus 5.5 | $0.00031 | $0.00414 |
| Sonnet 5.5 | $0.00015 | $0.00207 |
| Haiku 4.5 | $0.00008 | $0.00104 |
Grade A, and why
owndiff-pre-commit 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 — 66 lines — stays where its author put it; the contents beside it link to each section on GitHub.
OwnDiff Pre-Commit
Use this skill to produce a verified commit candidate. Stop before committing or pushing unless the user explicitly authorizes that Git action.
Workflow
- Read the latest user request and
git status --short. Treat existing worktree changes as user work; never discard them. - Inspect the complete staged and unstaged diff. Separate release changes from ignored proof, generated artifacts, caches, research, and unrelated edits.
- Run the deterministic audit from the repository root with the repository interpreter:
.venv/bin/python skills/owndiff-pre-commit/scripts/audit.py --repo . --staged --run-checks
If nothing is staged yet, omit --staged for the first diagnostic pass. Stage only confirmed release files, then rerun with --staged.
- Run a leak audit before any commit, push, tag, release, or marketplace/package update:
.venv/bin/python skills/owndiff-pre-commit/scripts/audit.py --repo . --history
The leak audit must cover the current tracked tree, staged diff, unstaged diff, untracked release candidates, and Git history reachable from all local refs. High-confidence private paths or credential patterns are blockers. Redaction markers and secret-adjacent examples are warnings; inspect their context without printing matched text, then remove accidental leaks or document why the warning is an intentional test, security rule, or sanitization example.
- For release work, verify binary integrity before continuing:
- Run
python scripts/verify_release_assets.py --release-dir distafter local release assets are built. - After publishing a tag, run
python scripts/verify_release_assets.py --repo owndiff/own-your-diff --tag <tag>. - Treat a missing binary, missing
.sha256sidecar, invalid checksum file, or checksum mismatch as a release blocker. - The deterministic audit also checks that CI/release workflows keep this verification wired in.
- Run
- Verify documentation semantically:
- Map behavior claims to current code, config, tests, or observed command output.
- Verify unstable install syntax with the installed CLI's
--helpfirst. - When local help is unavailable, use only the agent vendor's official documentation and cite it in the work log.
- Do not claim an agent, command, browser review, or workflow was tested unless it actually ran.
- Remove a document or asset only when it is duplicated, stale, unreferenced, generated, or outside the product's supported workflow. Preserve
README.md,skills/owndiff/SKILL.md,SECURITY.md,CONTRIBUTING.md, licenses, manifests, and referenced media unless evidence shows they are obsolete.
- Run OwnDiff on the exact candidate diff. For medium/high/critical risk, use the active agent model to generate every question and answer choice, validate the response, and complete the real browser review gate.
- Re-run the audit, tests, skill/plugin validators, release-asset verification when applicable, and leak audit after every correction.
- Report:
- changed and removed files;
- documentation claims verified and their evidence;
- test and validator results;
- OwnDiff gate status and attempt summary;
- any residual risk or unavailable agent runtime.
What ships with it
3 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
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 · 66 lines · 77 tokens per session scan A 318841e83709
owndiff-pre-commit is a skill published in the GitHub repository owndiff/own-your-diff (4 stars, last pushed 4mo ago), licensed MIT. It adds 77 tokens to every session and 1,036 once invoked, about $0.0003 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-31.
owndiff-pre-commit compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| owndiff-pre-commitowndiff/own-your-diff | Skill | 4 | 4mo ago | MIT | A | 77 | Claude Code, Codex |
| platepaulnsorensen/easy-cheese | Skill | 20 | 3d ago | MIT | A | 116 | Claude Code |
| shiplogdevallibus/shiplog | Skill | 57 | 4d ago | MIT | A | 44 | Claude Code |
| roadmap-task-deliveryarlson/yarstack | Skill | 3 | 1mo ago | MIT | A | 52 | Claude Code |
| plan-deliveryarlson/yarstack | Skill | 3 | 1mo ago | MIT | A | 71 | Claude Code |
| phase-commityarlson/yarstack | Skill | 3 | 1mo ago | MIT | A | 36 | Claude Code |
| autofix-prQwenLM/qwen-code | Skill | 31k | today | Apache-2.0 | A | 142 | Claude Code |