api-field-descriptions

Write consistent field descriptions for REST and RPC API schemas.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/withmartian-sandbox-darkside/ghrc-y-3126672651424eddb640ecc81321a665 --skill api-field-descriptions-withmartian-sandbox-darkside
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: api-field-descriptions
Source: https://github.com/withmartian-sandbox-darkside/ghrc-y-3126672651424eddb640ecc81321a665/tree/main/tw-team/skills/api-field-descriptions
Command: npx skills add https://github.com/withmartian-sandbox-darkside/ghrc-y-3126672651424eddb640ecc81321a665 --skill api-field-descriptions-withmartian-sandbox-darkside

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

API consumers and integrators often skim field descriptions and miss critical details like type, constraints, or required status, causing integration errors and increased support burden. This Skill provides a repeatable pattern so authors produce concise, unambiguous field documentation that reduces integration friction and runtime errors.

Core Features & Use Cases

  • Standardized field structure answering purpose, data type, required/optional status, constraints, and an example to make fields scannable and reliable.
  • Type-specific patterns and phrasing for UUIDs, strings, enums, booleans, timestamps, objects, and arrays to ensure consistent expectations across teams.
  • Practical quality checklist for authors to verify defaults, nullable semantics, deprecation notices, read-only flags, and relationship references.
  • Use case: Improve API reference documentation for a payments service by converting inconsistent field notes into a single table-based format that SDK generators and reviewers can rely on.

Quick Start

Document the email field on the Account response including its purpose, data type, required status, constraints, and a realistic example.

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 request and response schemas?

To write clear API field descriptions, you must document the field's purpose, data type, required/optional status, constraints, default behavior, and a realistic example value. This standardized structure makes fields scannable and eliminates integration ambiguity.

What should be included in API reference documentation for nested objects and arrays?

API reference documentation for nested objects and arrays should include type-specific patterns, required status, nullable semantics, and realistic example values. Documenting these constraints ensures consistent expectations and reduces runtime errors for integrators.

Why does inconsistent API field documentation cause integration errors?

Inconsistent API field documentation causes integration errors because consumers skim notes and miss critical details like type, constraints, or required status. A repeatable documentation pattern eliminates this ambiguity and reduces support burden.

Can I use a standardized field structure for SDK metadata and REST endpoints?

Yes, you can apply a standardized field structure to REST endpoints, RPC endpoints, and SDK metadata. This approach captures type, deprecation notes, read-only flags, and relationship references to ensure reliable integration.

How do I document enum types and nullable behavior in an API schema?

To document enum types and nullable behavior in an API schema, apply type-specific phrasing and verify defaults using a quality checklist. This ensures integrators understand constraints, optional states, and null semantics correctly.

What is the best way to format API field descriptions for a payments service?

The best way to format API field descriptions is converting inconsistent notes into a single table-based format. This structure covers type, constraints, and examples, making SDK generation and review reliable.