LAYER_06_API

Model and govern OpenAPI 3.0 REST API contracts with cross-layer traceability.

Updated Nov 23, 2025
One-click install
npx skills add https://github.com/tinkermonkey/documentation_robotics_viewer --skill layer-06-api
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: LAYER_06_API
Source: https://github.com/tinkermonkey/documentation_robotics_viewer/tree/main/.claude/skills/dr_06_api_layer
Command: npx skills add https://github.com/tinkermonkey/documentation_robotics_viewer --skill layer-06-api

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This API Layer Skill provides a structured approach to modeling and governing REST API contracts using OpenAPI 3.x, enabling cross-layer traceability and standardized metadata across motivation, business, application, and data layers.

Core Features & Use Cases

  • OpenAPI 3.0.3 driven modeling: Defines root OpenAPI document, paths, operations, schemas, and security.
  • Cross-layer traceability: Supports custom extensions for motivation, business, and application-layer links.
  • Central entity-centric design: Focuses on operations as the primary unit to align API behavior with business requirements.
  • Examples & patterns: Includes patterns for typical API design in FastAPI, Spring Boot, and API YAML definitions.

Quick Start

Load the API Layer model into your DR workspace and start defining an OpenAPI document, servers, and operations with cross-layer extensions.

Frequently Asked Questions about LAYER_06_API

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I model REST API contracts using OpenAPI 3.0?

REST API contracts using OpenAPI 3.0 are modeled by defining a root OpenAPI document, paths, operations, schemas, and security schemes to establish standardized API behavior and structure.

How do I add cross-layer traceability to an OpenAPI document?

Cross-layer traceability is added to an OpenAPI document by utilizing custom extensions like x-business-service-ref and x-apm to link API operations to motivation, business, and application layers.

What is the best way to centralize API operations for business requirement alignment?

Centralizing API operations for business alignment is achieved by treating operations as the primary core entity within the OpenAPI contract, directly mapping API behavior to business requirements.

Does this API contract modeling approach support FastAPI and Spring Boot?

Yes, this API contract modeling approach supports FastAPI and Spring Boot, providing specific design patterns and examples for typical API implementations within these frameworks.

Can I use OpenAPI extensions for cross-layer validation of REST APIs?

Yes, you can use OpenAPI custom extensions for cross-layer validation of REST APIs, enabling traceability and governance across motivation, business, application, and data layers.

When do I need cross-layer traceability in API design?

Cross-layer traceability in API design is needed when you must govern and validate that REST API operations consistently align with business services and application layer requirements.