skills/legal/api-constraints-exhibit/SKILL.md
Extracts technical API constraints from OpenAPI/Swagger specs and developer docs into a contract-ready API Access & Constraints Schedule with source traceability, risk flags, and change-control language. Use when drafting legal exhibits or schedules covering API access scope, rate limits, authentication, data fields, or deprecation terms for MSAs, SOWs, or order forms.
npx skillsauth add casemark/skills api-constraints-exhibitInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Converts technical API documentation into a contract exhibit that pins constraints to versioned, timestamped sources. Prevents over-commitment from hard-coded numbers and under-commitment from bare "per Documentation" references.
[BRACKETED] placeholdersGather before drafting (skip only if user says "use defaults"):
Defaults (apply and label if user doesn't specify):
| Parameter | Default | |---|---| | Exhibit type | API Access & Constraints Schedule | | API scope | Single API, current GA version | | Posture | Provider (outbound) | | Commitment level | Descriptive/as-is | | Categories | Auth, rate limits, data fields | | Output mode | Full Package |
Record deviations in the Risk/Gap Log.
Lock every source with version and retrieval timestamp:
| ID | Source Type | URL/File | Version/Commit | Retrieved (UTC) | Owner | |---|---|---|---|---|---| | S-1 | OpenAPI spec | | | | Eng | | S-2 | Auth docs | | | | Eng | | S-3 | Rate limits | | | | Eng/Support | | S-4 | Changelog | | | | PM | | S-5 | Error codes | | | | Eng |
Checklist:
servers[].url and environment labels capturedcomponents.securitySchemes and operation-level security identified| Spec Element | Example | Legal Significance |
|---|---|---|
| info.version | v2.1.0 | Versioning & sunset terms |
| servers[].url | https://api.example.com | Data residency |
| paths.{path}.{method} | GET /v1/widgets | Scope of access grant |
| components.securitySchemes | OAuth2 client credentials | Security obligations |
| Rate limit docs | 1000/min | Usage caps / SLA |
API Constraints:
| Method | Path | Summary | Auth Type/Scopes | Rate Limit | Key Fields | Errors | |---|---|---|---|---|---|---|
Data Field Inventory:
| Schema | Field | Type | Required | Classification | |---|---|---|---|---|
Auth Profile:
| Category | Details | |---|---| | Methods | API key, OAuth2, mTLS, JWT | | Credential placement | Header, query, cookie | | Scopes/roles | (list) | | Token lifecycle | Expiry, refresh, rotation |
Rate Limit Profile:
| Dimension | Limit | Burst | Headers | Enforcement | Tiering | |---|---|---|---|---|---|
Produce exhibit with these sections:
Every numeric limit, auth requirement, and scope boundary must have a row:
| Exhibit Section | Statement | Source ID | Spec Path/Anchor | Confidence | Notes | |---|---|---|---|---|---|
| ID | Issue | Impact | Proposed Fix | Owner | Status | |---|---|---|---|---|---|
Ask after delivering the draft:
[BRACKETED] placeholders clearly marked[VERIFY] for legal/engineering reviewRequired disclaimer on every output:
THIS EXHIBIT IS A DRAFTING AID AND REQUIRES REVIEW BY QUALIFIED LEGAL COUNSEL AND ENGINEERING BEFORE INCORPORATION INTO ANY AGREEMENT. IT DOES NOT CONSTITUTE LEGAL ADVICE.
Key changes from the original:
tags field: Not part of the required frontmatter specdevelopment
name: automated-contract-summary language: en description: Generates structured executive summaries of contracts using ML — captures key terms, party obligations, risk allocations, and compliance requirements in a standardized format. Optimized for high-volume review where speed and consistency matter. tags: - summarization - agreement - corporate --- # Automated Contract Summarization Produces standardized executive summaries of contracts using machine learning, capturing essential term
tools
Extracts regulatory obligations from dense regulations across jurisdictions. Breaks down multi-level regulations into clear article-level obligations, classifies applicability to a business, and prioritizes by risk level. Use when translating regulations into actionable compliance requirements.
development
Continuously monitors regulatory landscapes for changes relevant to a specific business. Ingests global regulatory updates, filters by relevance, summarizes impact, and produces an actionable change advisory. Use when tracking regulatory developments affecting a particular product or market.
testing
Compares an organization's existing compliance controls, policies, and procedures against extracted regulatory obligations to identify coverage gaps. Produces a remediation plan with prioritized actions. Use when assessing compliance maturity or preparing for regulatory audits.