precommit
Skill2 starsChanged 6 days agoMITView on GitHub
Run the deterministic pre-commit pipeline in fast or full mode through the packaged runner. Use when handing off repository changes. Not for: ad hoc replacement checks, dependency audits, or read-only verification. Output: runner-owned changed-file reporting and final verdict.
7 other projects use a version of this.
Adopted by
Most recently taken up by
- mycelium-io/myceliumtheir own version, first seen Nov 1, 2026
- dut00/ai-document-intelligence-platformtheir own version, first seen Oct 13, 2026
- jvalin17/agent-toolkittheir own version, first seen Oct 12, 2026
- sd0xdev/sd0x-dev-flowtheir own version, first seen Oct 8, 2026
- dataplat/dbatoolstheir own version, first seen Oct 8, 2026
- apache/pinottheir own version, first seen Oct 8, 2026
Used with
Projects with it also use architecture and verify.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
AnthropicSkillarchitecture
Create or evaluate an architecture decision record (ADR). Use when choosing between technologies (e.g., Kafka vs SQS), documenting a design decision with trade-offs and consequences, reviewing a system design proposal, or designing a new component from requirements and constraints.
Also in 3 projects that use this
Microsoft AzureSkillverify
End-to-end app testing pipeline for browser-based web apps on cloud browsers via Azure Playwright Workspaces: verify the live app, author tests for working flows, heal failing tests, then re-run with video and produce one consolidated report. Three phases (app verification, test authoring, test healing) plus a scoped final sanity run; each phase emits a sub-report. Use when asked to "verify my app", "make sure my app works and has good test coverage", "do a full QA pass", "add tests where I'm missing coverage", "fix failing tests and add new ones", "smoke test before deploy", "QA my deployment", or any combined verify-and-test ask. Requires Azure CLI (`az login`) and a Playwright Workspace resource ID — bootstraps configs on first invocation. Browser-based web apps with Playwright only — not for unit/API tests, native mobile/desktop, load/perf, or full accessibility audits.
Also in 3 projects that use this
Other versions7 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 7
- apache/pinot★ 6.2ksame name
- dataplat/dbatools★ 2.9ksame name
- sd0xdev/sd0x-dev-flow★ 192same name
- sd0xdev/sd0x-harness★ 192same name
- mycelium-io/mycelium★ 127same name
- jvalin17/agent-toolkit★ 2same name
- dut00/ai-document-intelligence-platform★ 0same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository39 other files it gives its agents.
- AGENTS.mdAGENTS.md
- change-verdictSkill
- code-simplifySkill
- code-traceSkill
- create-prSkill
- deploy-listSkill
- doc-maintainSkill
- feature-verifySkill
- flow-driveSkill
- flow-guideSkill
- git-smart-commitSkill
- git-worktreeSkill
- harness-setupSkill
- issue-analyzeSkill
- js-static-checksSkill
- laravelSkill
- legacy-characterization-testsSkill
- library-authorSkill
- merge-prepSkill
- module-designSkill
- nextjsSkill
- openspec-artifact-guardSkill
- opsx-apply-resumeSkill
- phpSkill
- phpunitSkill
- project-auditSkill
- project-briefSkill
- proposal-analyzeSkill
- pr-summarySkill
- pythonSkill
- reactSkill
- release-creatorSkill
- repo-intakeSkill
- repo-verifySkill
- swiftSkill
- tdd-workflowSkill
- ui-ux-verifySkill
- vue-2-notesSkill
- yii1Skill
The file
We split this skill into the rules it gives an agent
2 rules. 0 are common, 1 is distinctive, and 1 is very specific to this project.
0
Common
Most of the 6 edited versions we read keep these.
1
Distinctive
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 21
Run from the consumer repository.
- Distinctive: line 49
When using the changed-file report for handoff, apply the kernel's Evidence snapshots rule to verification and review evidence.
“Common” is measured: kept by at least 6 in 10 of the 6 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Precommit
Workflow
Run from the consumer repository. Resolve --fast to fast mode and no flag to
full mode, then invoke the package-local runner:
node "$SKILL_DIR/scripts/precommit-runner.js" --mode <fast|full> --tail 80With --dry-run, append that flag to preview the selected stages, commands,
and working directories. The runner performs read-only repository discovery
and stops before executing checks or writing cache/log files. DRY_RUN is a
plan, not verification evidence. Fast mode omits build; its test selection can
still fall back to the complete test script. Preview unfamiliar configurations
before choosing an execution checkpoint.
Here $SKILL_DIR is the installed directory containing this SKILL.md; the
current working directory remains the consumer repository. The runner and its
adjacent $SKILL_DIR/scripts/lib/runner-utils.js are one local runtime tree.
With the setup installer, the runner is
.claude/dhpk/skills/precommit/scripts/precommit-runner.js.
The runner owns ecosystem detection, package-manager selection,
lint:fix -> build -> test:unit ordering, graceful skips, changed-file
reporting, and the final verdict. If checks live in subprojects or do not use
root package.json scripts, configure them in the repository-root
precommit.config.json.
Configured commands run directly from their declared working directories.
Read
references/workflow.md for the terminal boundary.
When using the changed-file report for handoff, apply the kernel's Evidence snapshots rule to verification and review evidence.
When NOT to Use
- A read-only verification loop is requested (use
$repo-verify). - Dependency security evidence or a fix operation is requested (use
$change-verdict deps). - A one-off command is requested outside the deterministic precommit pipeline.
Output
For a preview, return the runner's DRY_RUN plan and retain its unexecuted state.
For execution, return the runner output, changed-file report, and its final PASS, FAIL, or
UNSUPPORTED verdict. A missing runner is UNAVAILABLE; a runner crash or
failed check is FAIL. An UNSUPPORTED verdict means no Git repository or executable checks were
available and exits non-zero; never replace it with hand-written checks or claim a pass
from partial output.
Verification
- Mode is exactly
fastorfulland the runner received--tail 80. - The package-local runner ran from the consumer repository cwd.
- The local
runner-utils.jshelper resolved beside the runner. - A requested dry run listed the selected commands without stage/cache writes and was reported as a plan rather than a check result.
- Runner-owned stage order, skips, changed files, and verdict are intact.
summary.jsonoverallStatusand the final Markdown verdict agree;FAILandUNSUPPORTEDremain terminal when the CLI exits zero.- Non-zero exit or missing final verdict remains a failure.
References
references/workflow.md— mode mapping,$SKILL_DIRresolution, runner ownership, and failure handling.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

