contract-design

contract-design is a skill for Claude Code from rpraharaj/forward-deployed-engineer. It costs 103 tokens per session (2,340 once invoked), scanned A, original, MIT.

A design process for an API, event, or data schema that other teams or systems depend on. It plans versioning, compatibility with existing users, migration steps, failure behavior, and affected consumers.

In plain words
What is it for?
Use it when creating or changing APIs, messages, events, shared schemas, response fields, or anything crossing a team boundary.
Why use it?
A published interface cannot be changed like a private function because consumers may be outside the repository and may upgrade at different times. Planning compatibility early reduces the cost of future breaking changes.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the fde-platform plugin — 3 skills shipped together

Good fit Use it when creating or changing APIs, messages, events, shared schemas, response fields, or anything crossing a team boundary.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/rpraharaj/forward-deployed-engineer/contract-design
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add rpraharaj/forward-deployed-engineer --skill contract-design
Clone the repo
git clone --depth 1 https://github.com/rpraharaj/forward-deployed-engineer

Made for: Claude Code.

Or install fde-platform, the plugin that ships this one along with the rest of its 3 skills.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for contract-design

README.md
[![agentmods](https://agentmods.dev/badge/skills/rpraharaj/forward-deployed-engineer/contract-design/github.svg)](https://agentmods.dev/skills/rpraharaj/forward-deployed-engineer/contract-design)
Your own site
<a href="https://agentmods.dev/skills/rpraharaj/forward-deployed-engineer/contract-design"><img src="https://agentmods.dev/badge/skills/rpraharaj/forward-deployed-engineer/contract-design/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for contract-design

Your own site · 80×15
<a href="https://agentmods.dev/skills/rpraharaj/forward-deployed-engineer/contract-design"><img src="https://agentmods.dev/badge/skills/rpraharaj/forward-deployed-engineer/contract-design.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 103 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,340 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00103 $0.02340
Opus 5.5 $0.00041 $0.00936
Sonnet 5.5 $0.00021 $0.00468
Haiku 4.5 $0.00010 $0.00234

Measured 1mo ago against content hash 4943da2fade0, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

contract-design scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

fde-platform/skills/contract-design/SKILL.md · 194 lines

How it starts

The opening of the file, as written. The whole thing — 194 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Contract design

Designing something other people depend on.

Why this exists

An internal interface can be changed by editing every caller. A published contract cannot, and the moment consumers exist outside your repository the constraints change completely: you no longer control when they upgrade, whether they upgrade, or in some cases who they are.

The characteristic mistake is designing a contract as though it were an internal interface — shaped for the current implementation, with no versioning story — and discovering the constraint when the first breaking change is needed. By then the options are all expensive.

An FDE hits this specifically because you often can't see the consumers. blast-radius ring 4 is the hardest ring to establish from inside one repository, and contracts are exactly where an unknown consumer hurts.

When this applies

  • Creating or changing an API, event, message, or shared schema
  • Adding a field to a published response or event payload
  • Consumers exist outside your repository
  • "How should we version this?"
  • Anything crossing a team boundary

When it doesn't

  • Internal interfaces with all callers in one repository — refactor freely
  • A prototype nobody consumes yet
  • The contract exists and isn't changing — that's blast-radius

Prerequisites

Resolve <workspace> before reading or writing artifacts: use FDE_WORKSPACE if set (report an unavailable explicit path rather than falling back), otherwise the charter's recorded Location (look in .fde/ and ../*-fde/), then an existing .fde/ or ../<repo>-fde/. If none exists, run core fde-orient; do not create a second workspace. All artifact paths below use that location. Follow core workspace conventions for headers; preserve existing sections when appending.

  • <workspace>/06-blast-radius-*.md — ring 3 and ring 4 especially. You need the consumer list before designing. If ring 4 was not checked, design as if consumers are uncontrollable.
  • <workspace>/03b-nfrs.md — data classification determines what may cross the boundary
  • <workspace>/02b-ownership.md — who must be coordinated with

Read the full file on GitHub · 194 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago Changed · +5 lines 4943da2fade0
  2. 3mo ago First seen · 189 lines · 103 tokens per session scan A 49f49faf72d6

Subscribe to this mod's changes

contract-design is a skill published in the GitHub repository rpraharaj/forward-deployed-engineer (21 stars, last pushed 1mo ago), licensed MIT. It adds 103 tokens to every session and 2,340 once invoked, about $0.0004 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

contract-design compared with skills from other repositories

contract-design next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
contract-designrpraharaj/forward-deployed-engineerSkill211mo agoMITA103Claude Code
event-store-designwshobson/agentsSkill43kyesterdayMITA33Claude Code
platform-custom-field-generateforcedotcom/sf-skillsSkill1.2k6d agoApache-2.0A139Claude Code
field-service-sobject-create-configureforcedotcom/sf-skillsSkill1.2k6d agoApache-2.0A74Claude Code
nornicdb-grpcorneryd/NornicDBSkill937todayMITA98Claude Code, Codex
firebaseericrisco/rsc-harnessSkill701yesterdayMITA77Claude Code, Codex
azure-resource-manager-sql-dotnetbenjaminasterA/antigravity-awesome-skillsSkill526yesterdayMITA0Claude Code, Codex