codex-contract-test-review
Narrow Codex pass on a newly added contract test, verifying it is not tautological and would fail on the original buggy implementation.
Skill by ultimatile
Chalk Labs
Need help deploying codex-contract-test-review?
Chalk Labs sets up agents like this inside real teams: connected to your tools, tested on your data, with a human in the loop where it matters.
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/ultimatile-codex-contract-test-review
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Use cases: documents, testing, agent-building
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions
What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.
- Tools
- No tools found
- Secrets
- None asked for
- Install scripts
- None found
Network hosts it talks to 1
codeload.github.com· found in install command
Files it touches
~/.claude/skills/codex-contract-test-review
What's inside
- Skill name
codex-contract-test-review- Description
- Narrow Codex pass on a newly added contract test, verifying it is not tautological and would fail on the original buggy implementation. Lightweight alternative to the full codex-review / copilot-review loop.
- License
- MIT
- Instructions
- 151 lines in SKILL.md · view on GitHub
Files (1)
- SKILL.md
SKILL.md (first lines)
# Codex Contract-Test Review A focused Codex pass that asks one question: **does this test express the contract its name/comment claims?** Secondary: any critical bug in the test code itself. This is *not* a full review — alternative test designs, additional test suggestions, and stylistic nits are explicitly out of scope. ## Procedure ### 1. Gather inputs | Input | What to collect | | -- | -- | | Original finding | The review comment / bug report that triggered the contract elevation. 1–2 sentences or quoted text. | | Claimed contract | One sentence — the implicit specification the test is asserting (the output of `bug-to-contract` Step 2). | | New test location | `file:line` range of the added test. | | Implementation under test | `file:line` of the code the contract applies to. | | Specific questions (optional) | 0–3 narrow questions if there is genuine uncertainty. | ### 2. Build the prompt Use the XML-block template below. Drop blocks that do not fit; keep order stable. ```xml <task> Review the newly added contract test against the claimed contract and the implementation it covers. Primary check: does the test actually express the claimed contract — i.e., would it fail on the buggy implementation that motivated the contract, and does it visit a representative input space rather than only degenerate / identity / size-1 cases? Secondary check: any critical bug in the test code itself (P1 only — ignore stylistic concerns). Original finding: <FINDING_TEXT> Claimed contract (one sentence): <CONTRACT_STATEMENT> New test: <TEST_FILE_LINES> Implementation under test: <IMPL_FILE_LINES> Specific questions (optional): <EVALUATION_QUESTIONS> </task> <grounding_rules> Read the cited file:line ranges before evaluating. Do not invent file names, function signatures, or behaviors. Do not conflate the test's name or comment with the contract — verify that the assertions actually check the contract, not just that the docstring claims to. If a point is an inference rather than a verified fact, label it as such. </grounding_rules> <structured_output_contract> Return: 1. verdict — one of: approve / approve with conditions / reject 2. primary findings (max 3) — contract-expression problems. Tag each [P1/P2] with file:line, and state explicitly: "would this test fail on the original buggy implementation? yes / no / unclear" 3. secondary findings (max 2) — P1 critical bugs in the test code only. Drop P2/P3 / stylistic. 4. open questions you could not resolve from the repository alone Total: at most 5 findings across primary + secondary. Keep the output compact. Do not restate the test or the contract. </structured_output_contract> <dig_deeper_nudge> Beyond a surface read, check for: - tautology: the assertion is trivially true regardless of the bug (e.g., comparing a value to itself, asserting a property the type system already enforces) - degenerate-input-only coverage: identity matrix, size-1 / 1×1, all-zero, all-equal, diagonal-only, when the implementation handles general inputs - wrong invariant: the test asserts a property different from the one the contract claims (e.g., contract is "layout-invariance" but the test only checks one layout) - error / cleanup paths uncovered: the implementation has fallible or cleanup paths but the test only exercises the happy path - contract narrower than the bug: the test covers one instance of the bug class but not the class itself </dig_deeper_nudge> <missing_context_gating> Do not guess project constraints, YAGNI scope, or design intent. If a finding depends on such context, list it under open questions instead of findings. Do not propose alternative test designs. Do not suggest additional tests beyond what is needed to express the stated contract. </missing_context_gating> <verification_loop> Before finalizing, verify that each finding is material (would let the original bug class slip through, or would cause incorrect test behavior) and anchored in code you actually read. Drop speculative or stylistic nits. If the test correctly expresses the contract and no critical bug is found, return verdict = approve and stop — do not synthesize findings to fill the slots. </verification_loop> ``` Block selection rationale: - `grounding_rules`: prevents the reviewer from trusting the test name / docstring instead of reading the assertions - `structured_output_contract`: hard caps (max 3 primary, max 2 secondary, max 5 total) keep the output narrow and triageable - `dig_deeper_nudge`: enumerates the failure modes that contract tests typically fall into — without this list the reviewer tends to stop at the first plausible concern - `missing_context_gating`: forbids "you should also test X" creep — depth control's main lever - `verification_loop`: explicit early-exit clause — without it the reviewer will manufacture findings to fill the structured slots
From ultimatile/development-skills, MIT.
More from ultimatile/development-skills
- 0.564score
copilot-review
ultimatile
Create a GitHub PR with Copilot as reviewer and poll until the review arrives.
SkillAFreshness: AClaude Code +9 - 0.561score
bug-to-contract
ultimatile
Promote a review finding or bug fix into a contract test that prevents the underlying invariant violation from recurring.
SkillAFreshness: AClaude Code +9 - 0.561score
code-review-gate
ultimatile
Run the built-in /code-review against the current diff through a fallback lane chain with lane-failure, retry, and exhaustion handling.
SkillAFreshness: AClaude Code +9 - 0.561score
authoritative-text-rules
ultimatile
Single source of truth for audit items covering text that an agent executes as instructions.
SkillAFreshness: AClaude Code +9 - 0.561score
diff-root
ultimatile
Single source of truth for the diff root — the ref a change is measured from — covering the consumer contract, where the root comes from, and the per-command…
SkillAFreshness: AClaude Code +9 - 0.561score
done-check
ultimatile
Single-pass audit of the current diff against the applicable quality rule sets before declaring a task complete or requesting external review.
SkillAFreshness: AClaude Code +9 - 0.561score
file-pullreq
ultimatile
Draft and file a GitHub PR using gh-body-conventions and the PR body skeleton, via the gh-post wrapper.
SkillAFreshness: AClaude Code +9 - 0.561score
finding-to-audit
ultimatile
Promote a review finding into a pre-commit audit rule that catches the diff-inspectable issue class (import direction, pub widening, debug artifacts, dropped…
SkillAFreshness: AClaude Code +9 - 0.561score
finding-triage
ultimatile
Single source of truth for per-finding review-triage dispositions and response selection for actionable findings, which the review and audit skills apply by…
SkillAFreshness: AClaude Code +9 - 0.561score
gate-miss-to-issue
ultimatile
Promote a late-caught defect — one an earlier gate should have caught — into a development-skills issue proposing a fix to that gate's procedure.
SkillAFreshness: AClaude Code +9 - 0.558score
codex-plan-review
ultimatile
Review an implementation plan with OpenAI Codex before coding, getting a second opinion on assumptions and approach.
SkillAFreshness: AClaude Code +9 - 0.558score
codex-review
ultimatile
Pre-PR code review on the current branch using the OpenAI Codex CLI, with an iterative fix loop.
SkillAFreshness: AClaude Code +9
Signals
- Stars
- 0
- Forks
- 0
- Open issues
- 71
- Last commit (this folder)
- Oct 22, 2026 (8 days ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- MIT
- Repository
- github.com/ultimatile/development-skills
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
More from ultimatile
- 0.564score
copilot-review
ultimatile
Create a GitHub PR with Copilot as reviewer and poll until the review arrives.
SkillAFreshness: AClaude Code +9 - 0.561score
bug-to-contract
ultimatile
Promote a review finding or bug fix into a contract test that prevents the underlying invariant violation from recurring.
SkillAFreshness: AClaude Code +9 - 0.561score
code-review-gate
ultimatile
Run the built-in /code-review against the current diff through a fallback lane chain with lane-failure, retry, and exhaustion handling.
SkillAFreshness: AClaude Code +9 - 0.561score
authoritative-text-rules
ultimatile
Single source of truth for audit items covering text that an agent executes as instructions.
SkillAFreshness: AClaude Code +9 - 0.561score
diff-root
ultimatile
Single source of truth for the diff root — the ref a change is measured from — covering the consumer contract, where the root comes from, and the per-command…
SkillAFreshness: AClaude Code +9 - 0.561score
done-check
ultimatile
Single-pass audit of the current diff against the applicable quality rule sets before declaring a task complete or requesting external review.
SkillAFreshness: AClaude Code +9
Done for you
Rather not set it up yourself?
Chalk Labs scopes, builds and runs agents for your team: the task audit, the eval harness, the integrations and the weekly ops report. Fixed scope, priced before we start.
See how we build AI agents →Read the case studies
Chalk Labs is a two-founder AI and growth studio. We build AI agents, CRMs and MVPs for Web3 and AI companies, and have shipped 50+ product and token launches.
- launches shipped
- 50+
- launches shipped
- media placements
- 500+
- media placements
- founders on every account
- 2
- founders on every account
Press we've placed: Forbes · CoinDesk · Decrypt · Cointelegraph · The Block
Rahil Jain, Co-founder, Chalk Labs. Ex-Goldman Sachs engineer. You talk to the person who builds it.
Get codex-contract-test-review running in your business
Tell us what you want to automate. A founder replies within one working day with a plan, not a pitch deck.
Cite this page
codex-contract-test-review skill. Agent Mart. https://agentmart.dev/skills/ultimatile-codex-contract-test-review (last updated 2026-10-24)