Przejdź do treści
Biblioteka skilli
Programowanie · Research

get-api-docs

/get-api-docs

Pobiera aktualną dokumentację zewnętrznej biblioteki, SDK lub API przez chub przed napisaniem kodu, który z niej korzysta, zamiast polegać na wiedzy z treningu.

Licencja
MIT
Ostatnia zmiana repozytorium
26.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
2
Skrypty
0
Komentarze HTML
0
Adresy URL w SKILL.md
0
Przestarzałość

Brak sygnałów. Repozytorium zmienione 26.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

Pobiera aktualną dokumentację zewnętrznej biblioteki, SDK lub API przez chub przed napisaniem kodu, który z niej korzysta, zamiast polegać na wiedzy z treningu.

Wyzwalacze z opisu

use the OpenAI APIcall the Stripe APIuse the Anthropic SDKquery Pinecone
Oryginalny opis (EN)

Use this skill when you need documentation for a third-party library, SDK, or API before writing code that uses it — for example, "use the OpenAI API", "call the Stripe API", "use the Anthropic SDK", "query Pinecone", or any time the user asks you to write code against an external service and you need current API reference. Fetch the docs with chub before answering, rather than relying on training knowledge.

Jak działa

  1. Step 1 — Find the right doc ID
  2. Step 2 — Fetch the docs
  3. Step 3 — Use the docs
  4. Step 4 — Annotate what you learned
  5. Step 5 — Give feedback
  6. Quick reference
  7. Notes
Sekcje z nagłówków SKILL.md, w oryginale · 85 linii, 556 słów
Podgląd SKILL.md
---
name: get-api-docs
description: >
  Use this skill when you need documentation for a third-party library, SDK, or API
  before writing code that uses it — for example, "use the OpenAI API", "call the
  Stripe API", "use the Anthropic SDK", "query Pinecone", or any time the user asks
  you to write code against an external service and you need current API reference.
  Fetch the docs with chub before answering, rather than relying on training knowledge.
---

# Get API Docs via chub

When you need documentation for a library or API, fetch it with the `chub` CLI
rather than guessing from training data. This gives you the current, correct API.

## Step 1 — Find the right doc ID

```bash
chub search "<library name>" --json
```

Pick the best-matching `id` from the results (e.g. `openai/chat`, `anthropic/sdk`,
`stripe/api`). If nothing matches, try a broader term.

If `chub search` returns nothing after a broader term, say the docs source is unavailable and ask for a URL or package name to verify. Do not invent the API surface.

## Step 2 — Fetch the docs

```bash
chub get <id> --lang py    # or --lang js, --lang ts
```

Omit `--lang` if the doc has only one language variant — it will be auto-selected.

If `chub get` fails because the ID, language, auth, network, or registry is unavailable, surface the exact failure and do NOT fall back to training memory. Use official docs via host-native browsing only if the user agrees or the active task already permits web research.

## Step 3 — Use the docs

Read the fetched content and use it to write accurate code or answer the question.
Do not rely on memorized API shapes — use what the docs say.

## Step 4 — Annotate what you learned

After completing the task, if you discovered something not in the doc — a gotcha,
workaround, version quirk, or project-specific detail — save it so future sessions
start smarter:

```bash
chub annotate <id> "Webhook verification requires raw body — do not parse before verifying"
```

Annotations are local, persist across sessions, and appear automatically on future
`chub get` calls. Keep notes concise and actionable. Don't repeat what's already in
the doc.

## Step 5 — Give feedback

Always rate the doc after using it. This helps authors fix outdated or incorrect
docs and prioritize improvements. Include a label and a brief comment explaining
what was good or what needs fixing — specific feedback is the most valuable.

```bash
chub feedback <id> up --label accurate "Clear examples, models are current"
chub feedback <id> down --label outdated "Lists gpt-4o as latest but gpt-5.4 is out"
```

Available labels: `outdated`, `inaccurate`, `incomplete`, `wrong-examples`,
`wrong-version`, `poorly-structured`, `accurate`, `well-structured`, `helpful`,
`good-examples`.

If you notice the doc has wrong model names, deprecated APIs, missing features,
or incorrect code patterns, always leave a downvote with details so it can be fixed.

## Quick reference

| Goal | Command |
|------|---------|
| List everything | `chub search` |
| Find a doc | `chub search "stripe"` |
| Exact id detail | `chub search stripe/api` |
| Fetch Python docs | `chub get stripe/api --lang py` |
| Fetch JS docs | `chub get openai/chat --lang js` |
| Save to file | `chub get anthropic/sdk --lang py -o docs.md` |
| Fetch multiple | `chub get openai/chat stripe/api --lang py` |
| Save a note | `chub annotate stripe/api "needs raw body"` |
| List notes | `chub annotate --list` |
| Rate a doc | `chub feedback stripe/api up` |

## Notes

- `chub search` with no query lists everything available
- IDs are `<author>/<name>` — confirm the ID from search before fetching
- If multiple languages exist and you don't pass `--lang`, chub will tell you which are available
Pliki w paczce (2)
  • SKILL.md 4 KB
  • UPSTREAM.md 1 KB

Wersje

RepozytoriumWynikLicencja
Ta strona · kerberosmansour/sunlitorchestra100MIT
dwarvesf/dwarves-kit100MIT
thangchung/agent-engineering-experiment100MIT
andrewyng/context-hub95MIT

Migawka bazy z 13.11.2026 · wersja paczki 60b5c5432b3f (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

  • 100ctxhub-get-api-docs
    Pobiera aktualną dokumentację API, SDK i bibliotek przed pisaniem kodu, zamiast polegać na przestarzałej wiedzy.
  • 90library-docs-lookup
    Sprawdza aktualną dokumentację bibliotek i API przez narzędzia context7 przed napisaniem kodu, zamiast polegać na pamięci.
  • 100find-docs
    Pobiera aktualną dokumentację, opisy API i przykłady kodu dla bibliotek, frameworków, SDK, narzędzi CLI i usług chmurowych, zamiast polegać na starych danych treningowych.
  • 100external-research
    Sprawdza aktualną dokumentację API zewnętrznej biblioteki lub pakietu, zanim zacznie się pisać kod.
  • 100context7
    Pobiera aktualną dokumentację bibliotek zależną od wersji oraz przykłady kodu z Context7 zamiast przestarzałej wiedzy z treningu, gdy pytanie lub kod dotyczy konkretnej biblioteki, frameworka albo API.
  • 100c7search
    Wyszukuje aktualną dokumentację i przykłady kodu dla dowolnej biblioteki, frameworka lub API przez Context7 i narzędzie c7search, zamiast odpowiadać z pamięci modelu.

Uwagi i zgłoszenia

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