api-field-descriptions

Write clear API field descriptions for REST and GraphQL schemas.

205|26|Updated Oct 30, 2025
One-click install
npx skills add https://github.com/LerianStudio/ring --skill api-field-descriptions
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: api-field-descriptions
Source: https://github.com/LerianStudio/ring/tree/main/tw-team/skills/api-field-descriptions
Command: npx skills add https://github.com/LerianStudio/ring --skill api-field-descriptions

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Clear, consistent API field documentation improves data quality, integration reliability, and developer efficiency.

Core Features & Use Cases

  • Pattern-based field documentation templates by type
  • Support for required/optional flags, constraints, and examples
  • Nested field documentation with dot-path notation

Quick Start

Document fields id and name using the provided patterns and examples.

Frequently Asked Questions about api-field-descriptions

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

FAQPage Schema
How do I write clear API field descriptions for REST and GraphQL endpoints?

API field descriptions should follow standardized patterns for each type (UUID, string, enum, boolean, integer, timestamptz, jsonb, array), clearly mark required/optional status, include default values, and note nullable or read-only behavior. This ensures developers understand request/response schemas consistently across your API documentation.

What's the best way to document nested fields in API schemas?

Use dot-path notation to document nested objects in Markdown tables, maintaining consistent field type patterns and constraint markers. This approach scales documentation for complex data models while keeping field relationships and hierarchy clear.

How do I handle deprecated and read-only fields in API documentation?

Mark deprecated and read-only fields explicitly in your field descriptions using standardized markers alongside type patterns and constraints. This prevents integration errors and signals deprecation timelines to developers consuming your API.

Can I use field description patterns for both request and response documentation?

Yes, standardized field description patterns apply to both request schemas and response models across REST and GraphQL APIs. A single consistent approach reduces ambiguity for developers and improves data quality across integrations.

Why does clear API field documentation improve integration reliability?

Precise field descriptions eliminate ambiguity about data types, constraints, nullability, and required status. When developers understand exact field behavior upfront, they build integrations correctly and reduce runtime errors and data validation failures.

Do I need to document optional fields and default values separately?

Document both optional flags and default values in your field descriptions using standardized patterns. This clarity prevents developers from mishandling missing fields and ensures predictable API behavior across consumer implementations.