contract-check
Skill9 starsChanged 3 months agoMITView on GitHub
Read-only Pact-lite health audit: content drift, uncommitted pacts, sync gaps, static CI evidence, and semantic test gaps. One status authority; never runs tests or repairs setup.
2 other projects use a version of this.
Adopted by
Most recently taken up by
- OneDro1d/onedroid-docstheir own version, first seen Sep 18, 2026
- AaravChadha/acstacktheir own version, first seen Jul 30, 2026
Other versions2 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 2
- AaravChadha/acstack★ 2same name
- OneDro1d/onedroid-docs★ 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 repository81 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- architectSkill
- artifact-hygieneSkill
- backlog-groomSkill
- beads-check-dolt-migrationSkill
- beads-migrate-to-doltSkill
- beads-setupSkill
- beadsSkill
- breakdownSkill
- browser-screenshotSkill
- circleci-statusSkill
- clean-codeSkill
- complete-taskSkill
- confluenceSkill
- contract-testSkill
- create-prSkill
- delegate-workSkill
- dependabot-remediationSkill
- developSkill
- diagnose-bugSkill
- do-i-need-thisSkill
- eas-build-errorSkill
- handoffsSkill
- handoffs-tidySkill
- image-studioSkill
- implement-solutionSkill
- jira-commentSkill
- jira-ticketSkill
- landscapeSkill
- model-update-checkSkill
- name-sessionSkill
- nextSkill
- outstanding-workSkill
- pair-programmingSkill
- pedantic-reviewSkill
- peer-sessionSkill
- pickupSkill
- pi-spendSkill
- plan-daySkill
- plan-to-backlogSkill
- project-briefSkill
- prompt-patternsSkill
- pr-reviewersSkill
- pr-review-requestsSkill
- pr-statusSkill
- ready-to-mergeSkill
- ready-to-releaseSkill
- reassessSkill
- rebaseSkill
- refineSkill
- release-maintenanceSkill
- release-managerSkill
- release-statusSkill
- reply-commentsSkill
- review-commentsSkill
- review-prSkill
- sanity-checkSkill
- second-opinionSkill
- setup-multirepo-gitSkill
- skills-reviewSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
8 rules. About 0 are common, 4 are distinctive, and 4 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈4
Distinctive · estimate
This author's own choices. Worth a look.
4
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 20
Only a reviewed project scripts/pact-normalize hook may compare temporary copies.
- Very specific: line 50
Run from the intended project.
- Distinctive: line 52
Verify that root before execution.
- Very specific: line 54
Before checks that execute project-owned helpers, inspect scripts/mgit, scripts/pact-pairs, any scripts/pact-normalize hook, and their …
- Distinctive: line 68
Call the installed authority directly.
- Very specific: line 77
Never substitute an arbitrary project scripts/contract-check implementation.
- Distinctive: line 95
No consumer output proves only that output is absent, not that tests were never run.
- Distinctive: line 101
Missing tests: use project documentation, connector/client code and actual consumer tests to identify intended internal boundaries.
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Contract Check — Read-Only Pact Health
Own contract health evidence and rendering. The runner owns explicit test generation, local sync, normalization and provider verification. Release workflows consume this audit's mechanical evidence; do not create a second health collector.
This audit never runs tests, creates links, changes permissions, copies pacts, fixes CI, or writes
tracking. Do not normalize project files before auditing or dismiss generated-looking diffs by eye.
Only a reviewed project scripts/pact-normalize hook may compare temporary copies. Report
findings and optional next-command pointers without confirmation prompts or automatic handoffs.
A separate setup request belongs to the project setup contract.
Usage
/contract-check # full mechanical and semantic audit
/contract-check status # same evidence, summary only
/contract-check stale # content equality and timestamp diagnostics
/contract-check uncommitted # provider-pact Git status
/contract-check sync-gaps # intended → built → synced edges
/contract-check coverage # bounded static CircleCI evidence
/contract-check matrix # observed consumer/provider file relationships
/contract-check missing # semantic missing-test review
/contract-check docs # semantic documentation drift
/contract-check disabled # semantic test-exclusion review
/contract-check <service> # verified service, scoped presentationfull and all mean the default full audit. Reject unrecognized arguments instead of guessing
commands or treating an unknown name as a service. This is not a setup/remediation interface.
Prerequisites and scope
The helper requires Bash 4+, GNU stat/date, standard shell utilities and the existing project
integration documented in project setup. Automated discovery is
limited to flat services with target/pacts/ consumer output and (src/)test/resources/pacts/
provider input. Do not claim support for arbitrary language layouts or nested workspace paths.
Run from the intended project. The helper honors an existing absolute RELEASE_PROJECT_ROOT
when supplied by the release authority; otherwise it finds the nearest ancestor .mgit.conf.
Verify that root before execution. Missing/invalid setup is UNKNOWN, not permission to create it.
Before checks that execute project-owned helpers, inspect scripts/mgit, scripts/pact-pairs,
any scripts/pact-normalize hook, and their delegated commands. The Git and edge modes must be
read-only, and the hook may rewrite only the temporary paths it receives. Unknown or mutating
helpers make that check unavailable. Do not execute unreviewed project code merely because a file
exists. coverage and matrix make no project helper calls; stale calls only the optional hook.
Missing executable support means unavailable; do not install dependencies or repair permissions.
For a service view, confirm the service in project topology. Mechanical collection is project-wide; filter its findings to edges involving that service and scope semantic reads to it. Do not present full-project totals as service totals. If project-wide reads are outside authorization, report that mechanical scoping is unsupported rather than expanding access silently.
Collect once
Call the installed authority directly; no project symlink is needed for this audit:
~/.agents/skills/contract-check/scripts/contract-check.sh allReplace all with the validated mechanical subcommand when only that check was requested.
Full/status uses one all collection, reusing its matrix for semantic review. If a dependency is
unsafe/unavailable, collect only independent safe checks and label omitted checks UNKNOWN.
Never substitute an arbitrary project scripts/contract-check implementation.
| Signal | Meaning |
OK | Observed evidence matches the bounded check; not a live test result. (equal after project normalization) means only the hook's transformations differ |
STALE / DIFFERS | Pact bytes differ; consumer newer / not newer |
MISSING_PROVIDER | No provider copy found in the supported layout |
UNCOMMITTED | Modified, staged, deleted, renamed or untracked provider pact path |
NOT_BUILT / NOT_SYNCED | Intended edge lacks built output / built edge lacks provider copy |
GAP ... style=enum ... not-verified=... | Literal CI enumeration omits synced consumer names |
GAP ... style=unsupported ... evidence=unavailable | CI evidence UNKNOWN, not proven missing tests |
CLEAN | No Git findings from successfully inspected provider directories |
NO_DATA / status=error | Absent observations / failed collector; never an all-clear |
SUMMARY / TOTAL | Mechanical counters; preserve error/completeness context |
CI results are static configuration text, not proof a job is enabled, scheduled, reachable, checks every file, or passed. Even tag-style OK requires project-specific validation of the selector and workflow. Other CI engines and dynamic forms remain unknown; see the supported conventions. No consumer output proves only that output is absent, not that tests were never run.
Semantic review
For full/status or the requested semantic mode:
- Missing tests: use project documentation, connector/client code and actual consumer tests to identify intended internal boundaries. Do not infer providers solely by stripping a filename suffix, assume every connector is internal, or use a fixed service/external-connector roster.
- Documentation: locate the project's authoritative Pact workflow documentation; compare its declared relationships with the collected matrix. Absence of generated files is not proof a documented relationship is obsolete. Missing documentation is unavailable evidence.
- Disabled tests: inspect build exclusions, selected test suites, Makefile recipes and CI paths. Distinguish intentional unit-test exclusions with an explicit contract target from contract tests that have no evidenced execution path. Do not execute a build to discover its configuration.
Mark uncertain mappings and unsupported layouts UNKNOWN. Keep semantic findings separate from mechanical findings and cite the relevant file/command evidence.
Report
Render one table: check, PASS/INFO/WARN/FAIL/UNKNOWN, evidence/limitations. Full audit adds finding rows by consumer/provider; status omits detail, not missing evidence. Preserve successful checks when another is unavailable. Static CI OK is informational, never a live verification PASS.
Recommended actions are pointers only: /contract-test consumer|sync|provider|full for a separately
requested run, or an explicit coding/setup request for missing integration/tests/CI. Do not run them,
normalize files, create tasks, or offer automatic remediation from this audit.
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.

