api-design-and-lifecycle
Skill4 starsChanged 5 months agoApache-2.0View on GitHub
Designs HTTP/service APIs with OpenAPI, resource models, authZ, versioning, deprecation and contract tests. Use when defining or evolving service APIs, not dataset or event contracts.
In this repository114 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- accessibility-wcagSkill
- agentic-ux-patternsSkill
- ai-model-governanceSkill
- apply-laws-of-aiSkill
- bdd-practiceSkill
- browser-testing-with-devtoolsSkill
- business-capability-modelingSkill
- business-information-concept-modelingSkill
- capability-maturity-assessmentSkill
- cdc-and-source-to-stream-ingestionSkill
- ci-cd-and-automationSkill
- cloud-platform-architectureSkill
- code-review-and-qualitySkill
- cognitive-bias-reviewSkill
- conceptual-data-modelingSkill
- context-engineeringSkill
- data-contract-designSkill
- data-governance-and-qualitySkill
- data-integration-and-interoperabilitySkill
- data-lifecycle-and-retention-managementSkill
- data-lineage-and-provenanceSkill
- data-product-dashboard-designSkill
- data-product-designSkill
- data-security-and-privacy-architectureSkill
- ddd-practiceSkill
- deprecation-and-migrationSkill
- design-system-practiceSkill
- documentation-and-adrsSkill
- dora-four-keysSkill
- dry-principleSkill
- eip-integration-validationSkill
- evaluation-and-monitoringSkill
- event-driven-architectureSkill
- event-governance-and-lineageSkill
- event-modelingSkill
- event-streaming-platform-designSkill
- exception-handling-and-recoverySkill
- finops-practiceSkill
- frontend-state-and-interaction-designSkill
- git-workflow-and-versioningSkill
- goal-setting-and-monitoringSkill
- guardrails-safety-patternsSkill
- human-in-the-loopSkill
- idea-refinementSkill
- incident-response-and-postmortemsSkill
- incremental-implementationSkill
- infrastructure-as-codeSkill
- integration-message-constructionSkill
- inter-agent-communication-a2aSkill
- kiss-principleSkill
- knowledge-graph-ragSkill
- knowledge-retrieval-ragSkill
- krag-evaluation-governanceSkill
- krag-ingestion-graph-constructionSkill
- krag-retrieval-answeringSkill
- krag-system-designSkill
- lakehouse-and-medallion-architectureSkill
- learning-and-adaptationSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
12 rules. About 0 are common, 7 are distinctive, and 5 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈7
Distinctive · estimate
This author's own choices. Worth a look.
5
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 15
Use this skill when designing, reviewing or evolving application or service APIs: resource models, request/response schemas, authentication …
- Very specific: line 19
Use data-contract-design for producer–consumer agreements on datasets, tables, files or data products (quality, freshness, semantics).
- Very specific: line 20
Use schema-registry-and-contracts for event schemas, compatibility modes and streaming registry governance.
- Very specific: line 21
Use message-based-integration-design when the primary style is messaging, brokers or EIP topology rather than a service API.
- Very specific: line 22
Use deprecation-and-migration alone when the work is a general migration plan without API resource or OpenAPI design.
- Distinctive: line 36
Add contract tests (consumer-driven or provider-side schema/status checks) in CI so breaking changes fail before release.
- Very specific: line 72
Do not design dataset or event payloads here.
- Distinctive: line 73
Do not rely on client-only authorisation or hidden “admin” query flags.
- Distinctive: line 74
Do not break consumers without a versioning or deprecation path.
- Distinctive: line 75
Do not treat OpenAPI as optional documentation.
- Distinctive: line 76
Do not return stack traces or secrets in error bodies.
- Distinctive: line 77
Do not invent fields in production responses that are absent from the published contract.
≈ “Common” is an estimate: at least 1 in 5 of the 213,895 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
API Design and Lifecycle
When to use
Use this skill when designing, reviewing or evolving application or service APIs: resource models, request/response schemas, authentication and authorisation, versioning, deprecation, OpenAPI specifications and consumer-facing contract tests. Apply it to REST-style and similar request/response service interfaces that agents or clients call.
When not to use
- Use
data-contract-designfor producer–consumer agreements on datasets, tables, files or data products (quality, freshness, semantics). - Use
schema-registry-and-contractsfor event schemas, compatibility modes and streaming registry governance. - Use
message-based-integration-designwhen the primary style is messaging, brokers or EIP topology rather than a service API. - Use
deprecation-and-migrationalone when the work is a general migration plan without API resource or OpenAPI design.
Objective
Produce a clear, implementable API design and lifecycle plan: resources, operations, authZ, OpenAPI contract, versioning and deprecation rules, and executable contract tests that protect consumers without conflating service APIs with data or event contracts.
Procedure
- Clarify consumers, use cases and success criteria. Prefer resource-oriented models over ad-hoc RPC bags of endpoints unless an RPC style is already established.
- Define resources, identifiers, relationships, collections, error shapes and idempotency expectations for write operations.
- Specify authentication and authorisation per operation: who may call, which scopes or roles apply, and how denial is represented. Enforce authZ server-side.
- Author or update an OpenAPI description as the source of truth for paths, methods, parameters, schemas and status codes. Keep examples realistic and non-secret.
- Choose a versioning strategy (URI, header or negotiated) and compatibility rules for additive versus breaking changes. Document how clients discover versions.
- Define deprecation: announcement, sunset timeline, migration guidance and monitoring of deprecated usage before removal.
- Add contract tests (consumer-driven or provider-side schema/status checks) in CI so breaking changes fail before release.
- Record operational concerns: rate limits, pagination, correlation IDs, safe error messages and observability hooks.
Required outputs
# API design: <service or capability>
## Consumers and use cases
## Resource model
| Resource | Identifier | Operations | Notes |
## AuthN / AuthZ
| Operation | AuthN | AuthZ rule | Denial behaviour |
## OpenAPI
- Spec path:
- Notable schemas / status codes:
## Versioning and compatibility
- Strategy:
- Breaking-change policy:
## Deprecation
- Announcement:
- Sunset date / criteria:
- Migration path:
## Contract tests
| Test | Consumer / provider | Assertion |
## Risks and open questionsRules
- Do not design dataset or event payloads here; route those to
data-contract-designorschema-registry-and-contracts. - Do not rely on client-only authorisation or hidden “admin” query flags.
- Do not break consumers without a versioning or deprecation path.
- Do not treat OpenAPI as optional documentation; keep it aligned with implementation and tests.
- Do not return stack traces or secrets in error bodies.
- Do not invent fields in production responses that are absent from the published contract.
Related skills
data-contract-design— dataset and data-product contractsschema-registry-and-contracts— event schema registry and compatibilitymessage-based-integration-design— messaging and EIP style selectiondeprecation-and-migration— broader deprecation and migration discipline
References
Verification
- Resource model and operations are explicit.
- AuthN/AuthZ rules are defined per sensitive operation.
- OpenAPI (or equivalent) contract is identified and kept current.
- Versioning and deprecation paths are documented.
- Contract tests are specified for CI.
- Scope excludes dataset/event contract design unless explicitly linked.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

