Skip to content
Agentmart
Submit a tool

enterprise-contract

Use when an enterprise implementation plan exists and work needs a locked contract with postconditions, invariants, consumer mapping, and traceability before…

Skill by anotherben

IndexedMIT
Write a review

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/anotherben-enterprise-contract

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.

We use your email only for this newsletter. Privacy

About

Use when an enterprise implementation plan exists and work needs a locked contract with postconditions, invariants, consumer mapping, and traceability before build starts

Use cases: documents

No 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/enterprise-contract

What's inside

Skill name
enterprise-contract
Description
Use when an enterprise implementation plan exists and work needs a locked contract with postconditions, invariants, consumer mapping, and traceability before build starts
License
MIT
Instructions
69 lines in SKILL.md · view on GitHub

Files (5)

  • SKILL.md
  • evals.json · evals/
  • contract-template.md · references/
  • high-risk-domain-gate.md · references/
  • quality-gate.md · references/

SKILL.md (first lines)

# Enterprise Contract

The contract is the build gate. No enterprise build starts without it.

## Inputs And Outputs

- Input: `docs/plans/YYYY-MM-DD-<slug>-plan.md`
- Output: `docs/contracts/YYYY-MM-DD-<slug>-contract.md`
- Side output: `.codex/enterprise-state/agent-sessions/<agent-id>-<slug>-postconditions.json`

## Entry Gate

Before locking or editing the contract, the current agent session must already record the plan artifact. Use the agent stage gate in [agent-stage-gates.md](../enterprise/references/agent-stage-gates.md) before proceeding.

Contract work may consume most of the lane. Do not lock while current code, real DB schema/query behavior, file boundaries, SRP, E2E trace, or edge cases remain unclear.

## Source And Database Grounding Gate

- Read the current implementation and consumers before writing postconditions. A contract based only on a migration, git diff, branch name, or plan prose is invalid.
- For schema/query/data-sensitive work, inspect real migrated Postgres or a live/dev DB surface before locking. This happens before postconditions are trusted, not after build.
- Every schema/query/data-sensitive postcondition must name a live DB or real integration test. Mocked database tests do not count.
- If live DB proof is unavailable, lock is blocked unless the user explicitly narrows the claim away from schema/query behavior.
- For UI, PDF upload, invoice upload, file upload, preview/download, modal, navigation, or rendered-output behavior, the contract must name headless browser proof.
- For owned-table or governed write paths, name the ownership seam and the DB ownership gate command. Direct writes in mixed-owner files are contract failures unless explicitly allowed.

## Required Sections

Use [contract-template.md](references/contract-template.md) as the starting shape.

- status header: `DRAFT` then `LOCKED`
- preconditions
- postconditions by layer
- invariants
- error cases
- consumer map
- file and module architecture
- E2E trace and edge cases
- repo gate matrix
- live proof artifact plan
- blast radius
- side effects
- explicit non-goals
- traceability matrix

## Lock Rules

Do not mark the contract `LOCKED` until the quality gate in [quality-gate.md](references/quality-gate.md) passes.

Once locked:

- build cannot invent new scope silently
- every new forge bug becomes an appended postcondition
- proof claims must trace back to this contract
- local CI mirrors, PR-body requirements, no-new-mock checks, DB ownership gates, and live-proof commands must be named before source edits continue
- the current agent session must record the locked contract and the session-scoped postconditions file

## High-Risk Domain Rule

If the task touches money, auth, regulated data, external integrations, or any end-to-end hardening claim, run the checks in [high-risk-domain-gate.md](references/high-risk-domain-gate.md) before locking the contract.

## Fail-Closed Rules

- No vague postconditions
- No unmapped consumers for changed outputs
- No unowned blast-radius findings
- No unknown merge blocker, PR gate, no-new-mock gate, DB ownership gate, or live-proof command
- No `full-system` claim unless the contract truly covers all required legs

From anotherben/agentic-governance, MIT.

More from anotherben/agentic-governance

Signals

Stars
0
Forks
0
Open issues
0
Last commit (this folder)
May 4, 2026 (5 months ago)

From GitHub (fetched Oct 24, 2026).

Details

License
MIT
First seen
Oct 24, 2026
Last checked
Oct 24, 2026

More from anotherben

Cite this page

enterprise-contract skill. Agent Mart. https://agentmart.dev/skills/anotherben-enterprise-contract (last updated 2026-10-24)