Skip to content
Back to skills

Api Documentation

ASecurity

Document interfaces so a caller can use them without reading the source.

  • 3 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added September 3, 2026
developmentexpressapidocumentation

Works with

  • api

Security analysis

A100/100

Scanned September 3, 2026

npx -y skills add Andersseen/agentyx --skill api-documentation --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Api Documentation?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Api Documentation
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/andersseen-api-documentation/badge)](https://www.skillsdirectory.com/skills/andersseen-api-documentation)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: api-documentation
description: Document interfaces so a caller can use them without reading the source.
---

# API documentation

The test of interface documentation is whether someone can call it correctly on the first attempt
without opening the implementation.

## Document the contract

State what the operation does, what it requires, what it guarantees, and what it does not promise.
Behavior a caller can rely on must be written down; everything else stays free to change.

## Cover errors as first-class

List the failure modes, how they are signalled, and what the caller should do about each. Error
behavior is the least documented and most needed part of any interface.

## Explain the why, not the what

Restating the signature in prose adds nothing. Explain constraints, units, ownership, lifetimes and
side effects — the things the type cannot express.

## Generate from the source of truth

Derive reference documentation from the schema, types or annotations that define the interface.
Hand-maintained copies drift, and a drifted reference misleads with authority.

## Version and describe changes

Say when behavior changed and what callers must do. Migration notes matter more than a changelog
entry, because they tell the reader what action to take.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…