Przejdź do treści
Biblioteka skilli
Programowanie · Pisanie

api-documentation

/api-documentation

Dokumentuje interfejs, który ktoś będzie wywoływał: endpointy, metody SDK i polecenia CLI z parametrami, błędami i limitami, a także specyfikacje OpenAPI i docstringi.

Repozytorium
skillz ↗
Licencja
MIT
Ostatnia zmiana repozytorium
25.10.2026

Ocena i bezpieczeństwo

100/ 100Klasa: dobry
Format25 / 25
Frontmatter z nazwą i opisem, poprawna nazwa, opis do 1024 znaków, nazwa zgodna z folderem.
Odkrywalność25 / 25
Opis mówi, kiedy użyć skilla, ma sensowną długość i jest w 3. osobie.
Treść35 / 35
Co najmniej 150 słów i do 500 linii, nagłówki, listy kroków, przykłady albo kod.
Higiena15 / 15
Bez zaślepek typu TODO, bez ścieżek Windows, z licencją.
Ryzykobrak sygnałów w skanie
Pliki w paczce
1
Skrypty
0
Komentarze HTML
0
Adresy URL w SKILL.md
0
Przestarzałość

Brak sygnałów. Repozytorium zmienione 25.10.2026, bez odwołań do wycofanych modeli i API.

Licencja

MIT, otwarta: można używać i zmieniać, z zachowaniem informacji o autorze.

Co robi i kiedy

Dokumentuje interfejs, który ktoś będzie wywoływał: endpointy, metody SDK i polecenia CLI z parametrami, błędami i limitami, a także specyfikacje OpenAPI i docstringi.

Oryginalny opis (EN)

Documents an interface others will call — endpoints, SDK methods, CLI commands, and their parameters, errors, and limits. Use this whenever the user needs API docs, an OpenAPI spec, reference documentation, docstrings for a public library, or has an interface that people keep asking questions about. For designing the interface itself, use api-design; for prose guides and READMEs, use markdown-docs.

Jak działa

  1. 1. Generate the mechanical parts
  2. 2. Document each parameter properly
  3. 3. Document errors as thoroughly as successes
  4. 4. Show real, complete, runnable examples
  5. 5. Cover the operational contract
  6. 6. Organise for search, not for reading
  7. Keeping it true
Sekcje z nagłówków SKILL.md, w oryginale · 94 linii, 656 słów
Podgląd SKILL.md
---
name: api-documentation
description: Documents an interface others will call — endpoints, SDK methods, CLI commands, and their parameters, errors, and limits. Use this whenever the user needs API docs, an OpenAPI spec, reference documentation, docstrings for a public library, or has an interface that people keep asking questions about. For designing the interface itself, use api-design; for prose guides and READMEs, use markdown-docs.
license: MIT
---

# API documentation

Reference documentation is not read; it is searched. Someone arrives mid-task with a specific
question — what does this return, what happens when it fails, is this required, and leaves as
soon as they have the answer.

Optimise for that. Completeness beats narrative, and the questions people actually have are
rarely the ones the happy-path example answers.

## 1. Generate the mechanical parts

Signatures, types, parameter lists, and status codes should come from the code — OpenAPI from
annotations, docstrings extracted, CLI help generated. Anything hand-maintained drifts, and
wrong reference documentation is worse than none because it is believed.

Hand-write only what cannot be derived: why, when, what happens on failure, and the constraints
the type system does not express.

**Done when:** no fact appears in both the code and the docs, maintained separately.

## 2. Document each parameter properly

A name and a type are not documentation. For each parameter:

- **What it means**, in domain terms
- **Required or optional**, and the default if optional — the default is the most frequently
  looked up fact and the most frequently missing
- **Valid values or range.** For an enum, all of them
- **Format**, where ambiguous — is a date a Unix timestamp, ISO 8601, or a date-only string?
- **What happens at the boundary:** maximum length, what happens above it

The unstated constraint is the classic support ticket: a field that silently truncates at 255
characters, documented nowhere.

**Done when:** a caller could construct a valid request without experimenting.

## 3. Document errors as thoroughly as successes

This is the half that gets skipped and the half people need most, because the success case is
usually guessable.

For each operation, list what can go wrong: the code, what causes it, and what the caller should
do. Distinguish retryable from terminal — a caller cannot write correct retry logic otherwise.

Document the error *body* shape, not just the status code. Callers parse it.

**Done when:** every error a caller can encounter is listed with a recommended response.

## 4. Show real, complete, runnable examples

- **Real values**, not `foo` and `string`. A plausible example teaches the format for free
- **Complete:** a request someone can copy, paste, and run, including auth
- **Show the response too**, in full, so the shape is unambiguous
- **Include an error example**, not only the happy path

One good example per operation beats a prose paragraph describing the same thing.

**Done when:** every example runs as written.

## 5. Cover the operational contract

Routinely undocumented, routinely the cause of production problems:

- **Authentication:** how, what scopes, how tokens expire
- **Rate limits:** the numbers, the headers, what a caller should do on 429
- **Pagination:** the mechanism, defaults, and maximums
- **Idempotency:** which operations are safe to retry, and how to signal a retry
- **Ordering and consistency:** say plainly if there are no guarantees
- **Size and timeout limits**
- **Deprecation:** what is going away, when, and what replaces it

**Done when:** someone could write a well-behaved client from the docs alone.

## 6. Organise for search, not for reading

- Group by what the user is trying to do, not by internal module structure
- Name sections as the questions people arrive with
- Make everything linkable, so support answers can point at an anchor
- Keep a single canonical page per operation — duplicated docs diverge

Version the documentation alongside the API, and keep the old version available. Someone is
still on it.

**Done when:** a search for the operation name lands on the right page.

## Keeping it true

Test the examples. Where the ecosystem allows it, run them in CI — an example that stops working
is a bug report from every reader.

Where documentation contradicts behaviour, the documentation is not always the thing to change.
Sometimes you have found a bug, and that is worth checking before editing the page.

Wersje

RepozytoriumWynikLicencja
Ta strona · OKHP3/skillz100MIT
akillness/jeo-skills100MIT
drvoss/everything-copilot-cli100MIT
helx0071/skillsmo100MIT
postmanlabs/postman-plugin100Apache-2.0
LambdaTest/agent-skills100MIT
autohandai/community-skills100Apache-2.0
zircote-plugins/documentation-review100MIT
j4flmao/agent-skills95MIT

Migawka bazy z 13.11.2026 · wersja paczki 916ac4f82847 (skrót SHA-256 całej paczki)

Pobrania w ostatnich 30 dniach: 0 · ranking

Zgłoś problem z tym skillem: szkodliwa treść, błędny opis albo prośba autora o usunięcie.

Podobne skille

  • 100api-docs-generator
    Generuje dokumentację API z kodu, w tym specyfikacje OpenAPI, JSDoc i docstringi Pythona, dla API, endpointów REST i funkcji bibliotek.
  • 95api-documentation-generator
    Generuje dokumentację API z repozytorium: specyfikacje OpenAPI, komentarze w kodzie, docstringi i istniejące dokumenty, z opisem endpointów, schematów, uwierzytelniania i przykładami kodu.
  • 100api-docs
    Dokumentuje moduł lub publiczną powierzchnię API (funkcje, klasy, polecenia CLI, endpointy) na podstawie samego kodu, jako referencję API i dokumentację użycia.
  • 100api-design
    Projektuje interfejs, od którego zależą inni: endpointy REST, metody RPC, funkcje biblioteki, polecenia CLI i ładunki zdarzeń.
  • 100documentation-generation
    Generuje dokumentację projektu: README, docstringi (JSDoc, JavaDoc, Python), opisy OpenAPI i potoki dokumentacji w CI/CD.
  • 95api-documentation-generator
    Generuje specyfikacje OpenAPI i Swagger oraz dokumentację API z kodu albo projektu.

Uwagi i zgłoszenia

Wiadomość trafi do Bartosza Sokolińskiego. Adres e-mail jest potrzebny tylko do odpowiedzi. Szczegóły w polityce prywatności.