owndiff-pre-commit

owndiff-pre-commit is a skill for Claude Code, Codex from owndiff/own-your-diff. It costs 77 tokens per session (1,036 once invoked), scanned A, original, MIT.

A workflow for starting Microcks locally with Docker Compose. Microcks is an open-source tool that creates mock APIs for development and integration testing from API specifications.

In plain words
What is it for?
It helps create the Docker Compose setup, start the Microcks containers, wait until the server is ready, and verify it through the API or browser console.
Why use it?
It provides a local mock server when the real API is unavailable or not ready. The setup also includes a readiness check, health check, and web console address.

Skill for Claude CodeCodex

Written for Claude Code and Codex: shipped in a Claude Code plugin, but also agents/openai.yaml present.

Part of the owndiff plugin — 2 skills shipped together

Good fit It helps create the Docker Compose setup, start the Microcks containers, wait until the server is ready, and verify it through the API or browser console.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/owndiff/own-your-diff/owndiff-pre-commit
Install

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.

Any agent
npx skills add owndiff/own-your-diff --skill owndiff-pre-commit
Clone the repo
git clone --depth 1 https://github.com/owndiff/own-your-diff

Made for: Claude Code, Codex.

Or install owndiff, the plugin that ships this one along with the rest of its 2 skills.

Wrote 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.

agentmods badge for owndiff-pre-commit

README.md
[![agentmods](https://agentmods.dev/badge/skills/owndiff/own-your-diff/owndiff-pre-commit/github.svg)](https://agentmods.dev/skills/owndiff/own-your-diff/owndiff-pre-commit)
Your own site
<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.

agentmods 80×15 button for owndiff-pre-commit

Your own site · 80×15
<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>
Per session 77 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,036 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce 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

Measured 1mo ago against content hash 318841e83709, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

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 1mo ago.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/audit.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

skills/owndiff-pre-commit/SKILL.md · 66 lines

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

  1. Read the latest user request and git status --short. Treat existing worktree changes as user work; never discard them.
  2. Inspect the complete staged and unstaged diff. Separate release changes from ignored proof, generated artifacts, caches, research, and unrelated edits.
  3. 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.

  1. 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.

  1. For release work, verify binary integrity before continuing:
    • Run python scripts/verify_release_assets.py --release-dir dist after 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 .sha256 sidecar, invalid checksum file, or checksum mismatch as a release blocker.
    • The deterministic audit also checks that CI/release workflows keep this verification wired in.
  2. Verify documentation semantically:
    • Map behavior claims to current code, config, tests, or observed command output.
    • Verify unstable install syntax with the installed CLI's --help first.
    • 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.
  3. 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.
  4. Re-run the audit, tests, skill/plugin validators, release-asset verification when applicable, and leak audit after every correction.
  5. 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.

Read the full file on GitHub · 66 lines

Files

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.

Changes

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.

  1. 1mo ago First seen · 66 lines · 77 tokens per session scan A 318841e83709

Subscribe to this mod's changes

owndiff-pre-commit is a skill published in the GitHub repository owndiff/own-your-diff (4 stars, last pushed 2mo 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.

Related

Other skills, from other repositories

plate

Turn finished local work into a commit, an ordinary pull request, or a pull request stack. Use this skill to commit changes or to publish a branch. Use it to open or update a pull request. Use it to create, sync, restack, or submit a pull request stack. You can also run /plate. This skill owns all staging, commits…

paulnsorensen/easy-cheese · 116 tokens

roadmap-task-deliver

Deliver the first eligible unfinished roadmap task through implementation, review, green CI, PR merge, and a task-status update. Use for autonomous delivery from local roadmap and task files. Files can be outside the code repository or outside Git.

yarlson/yarstack · 52 tokens

plan-deliver

Autonomously deliver an approved implementation plan to a ready GitHub pull request. Use when the user supplies a plan in the conversation or a file and authorizes implementation, commits, pushes, PR state changes, CI remediation, and resolution of requested automated review feedback; use jira-issue-deliver when the…

yarlson/yarstack · 71 tokens

phase-commit

Create one local commit for a completed, validated, and reviewed unit of work. Use only when the user explicitly requests a commit without pushing or other delivery actions.

yarlson/yarstack · 36 tokens

review-delta

Review only changes since last commit using impact analysis. Token-efficient delta review with automatic blast-radius detection.

tirth8205/code-review-graph · 24 tokens

work-unit-commits

Plan commits as reviewable work units. Trigger: implementation, commit splitting, chained PRs, or keeping tests and docs with code.

Gentleman-Programming/gentle-ai · 33 tokens