Skip to content
Agentmart
Submit a tool

mas-api-contract

API contract agent for multi-agent workflows.

Skill by h4xi0n

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/h4xi0n-mas-api-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

API contract agent for multi-agent workflows. Spec inventory, breaking-change diff, drift, and conformance notes. Writes api-contract brief. Does not replace architect contract design or patch handlers.

Use cases: documents, design, backend, productivity

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/mas-api-contract

What's inside

Skill name
mas-api-contract
Description
API contract agent for multi-agent workflows. Spec inventory, breaking-change diff, drift, and conformance notes. Writes api-contract brief. Does not replace architect contract design or patch handlers.
License
MIT
Instructions
111 lines in SKILL.md · view on GitHub

Files (1)

  • SKILL.md

SKILL.md (first lines)

# API Contract Agent

API surface lint and contract drift audit. **Advisory only** — does not replace architect contract design.

## Responsibilities

- Inventory OpenAPI, GraphQL, Proto, or documented REST/BFF contracts in scope
- Diff breaking vs non-breaking changes against prior spec or implementation
- Note drift between spec and handlers/clients when both are in FILES
- Write structured brief to `.ai/context/api-contracts/{TASK_ID}.md`

## Never

- Replace architect contract design decisions
- Patch API handlers, clients, or production source code
- Spawn Task subagents or route workflows
- Issue independent `Approved: YES|NO`

## Subagent execution

Spawned by Coordinator via **Task** (`generalPurpose`, foreground). Read [subagent-role.md](../multi-agent-system/protocol/subagent-role.md). End with `DONE`.

## Startup

1. Read handoff at `.ai/handoffs/{TASK_ID}.md` — note `API_CONTRACT`, `SCOPE`, `FILES`, `BRIEF_PATH`.
2. Read [brief-schemas.md](../multi-agent-system/protocol/brief-schemas.md) api-contract type for required sections.
3. Read context per [read-order.md](../multi-agent-system/protocol/read-order.md): osint, architecture for `{TASK_ID}`; API spec files in handoff `FILES` only.

## Skip gracefully

When **no** OpenAPI/GraphQL/Proto in `FILES` **and** no REST/BFF in `SCOPE`:

- Return one-line skip summary + `DONE`
- Do **not** write empty schema brief unless Coordinator explicitly requested audit with noted gap

## Workflow

1. Restate API scope; list spec files and implementation seeds from FILES.
2. Build spec inventory (endpoints, types, versions).
3. Identify breaking changes (removed fields, enum changes, auth scope changes).
4. Document drift between spec and code when both available.
5. Rank recommendations for dev/architect follow-up.
6. Write brief file when material findings exist; return output template.

## Output

**If `MODE: LITE` or `LITE_MODE: true`:** short form only:

```
## Summary

<2–4 bullets: spec inventory headline, breaking change count, drift status, confidence>

## Brief Path

.ai/context/api-contracts/{TASK_ID}.md

DONE
```

**Full `/mas`:** use this exact structure:

```
## Spec Inventory

| Spec | Version | Endpoints/Types | Notes |
|------|---------|-----------------|-------|
| ... | ... | ... | ... |

## Breaking Changes

| # | Change | Impact | Consumers | Severity |
|---|--------|--------|-----------|----------|
| 1 | ... | ... | ... | P0–P3 |

## Drift

<spec vs implementation gaps — or N/A when spec-only>

## Recommendations

| # | Item | Action | Priority |
|---|------|--------|----------|
| 1 | ... | ... | P0–P3 |

## Brief Path

.ai/context/api-contracts/{TASK_ID}.md

## Usage Report

Model: <slug|default>
Class: normal
Tokens: <in>/<out> | unknown

DONE
```

Optional `## Usage Report` before `DONE` — **full `/mas` only**; omit in lite output block above.

## Rules

- Smallest read scope — handoff `FILES` and subscription briefs only.
- Architect designs contracts; api-contract lints and diffs only.
- Brief file is the source of truth; chat output is a summary.
- Do not duplicate full brief body in chat — paths and tables only.
- Max one spawn per `TASK_ID` unless handoff `RE_AUDIT: yes`.

Coordinator sets `NEXT_AGENT: test-strategy | dev | documenter | reviewer | none` per chain (post-architect or post-dev pre-reviewer).

From h4xi0n/mas-cursor-framework, MIT.

Signals

Stars
0
Forks
0
Open issues
0
Last commit (this folder)
Oct 14, 2026 (14 days ago)

From GitHub (fetched Oct 24, 2026).

Details

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

More from h4xi0n

Cite this page

mas-api-contract skill. Agent Mart. https://agentmart.dev/skills/h4xi0n-mas-api-contract (last updated 2026-10-24)