Przejdź do treści
Biblioteka skilli
Programowanie · Research

fresh-library-docs

/fresh-library-docs

Sprawdza aktualną dokumentację biblioteki, SDK, API lub frameworka przed pisaniem kodu, gdy wersja jest niepewna, np. po błędzie importu, braku metody, odrzuconym kluczu konfiguracji lub ostrzeżeniu o deprecjacji.

Repozytorium
claude-skills ↗
Licencja
MIT
Ostatnia zmiana repozytorium
19.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 19.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

Sprawdza aktualną dokumentację biblioteki, SDK, API lub frameworka przed pisaniem kodu, gdy wersja jest niepewna, np. po błędzie importu, braku metody, odrzuconym kluczu konfiguracji lub ostrzeżeniu o deprecjacji.

Oryginalny opis (EN)

Use before writing code against a library, SDK, API, or framework whose current version you are not certain of — especially fast-moving ones. Trigger when an import fails, a method does not exist, a config key is rejected, a deprecation warning appears, or the user says the code was written against an old version.

Jak działa

  1. Core Behavior
  2. Step 1 — What Is Installed
  3. Step 2 — Read the Real Source
  4. Step 3 — Then the Docs
  5. Step 4 — Confirm Before Committing
  6. Rules
  7. Highest-Risk Dependencies
Sekcje z nagłówków SKILL.md, w oryginale · 64 linii, 468 słów
Podgląd SKILL.md
---
name: fresh-library-docs
description: Use before writing code against a library, SDK, API, or framework whose current version you are not certain of — especially fast-moving ones. Trigger when an import fails, a method does not exist, a config key is rejected, a deprecation warning appears, or the user says the code was written against an old version.
tools: Read, Glob, Grep, Bash, WebFetch, WebSearch
---

# Fresh Library Docs

Training data has a cutoff; libraries do not. Most "the AI hallucinated an API" bugs are really the model writing correct code for a version that shipped two years ago. This skill checks reality first.

## Core Behavior

Before writing non-trivial code against a dependency, establish two facts: which version this project actually has, and what that version's API looks like. In that order.

## Step 1 — What Is Installed

The installed version beats the latest version and beats your memory. Read it from the project:

```bash
cat package.json | grep -A30 '"dependencies"'
npm ls <pkg> --depth=0 2>/dev/null
pip show <pkg> 2>/dev/null | head -3
cat requirements.txt pyproject.toml 2>/dev/null | grep -i <pkg>
```

## Step 2 — Read the Real Source

The most reliable documentation is the code on disk. It cannot be out of date, because it is what will run.

```bash
ls node_modules/<pkg>/dist/*.d.ts
grep -rn "export function <name>\|export declare" node_modules/<pkg>/dist/index.d.ts | head -20
python -c "import <pkg>, inspect; print(inspect.signature(<pkg>.<fn>))"
```

For a TypeScript project, the `.d.ts` file answers the question definitively. Read it before searching the web.

## Step 3 — Then the Docs

When the source is unreadable or you need usage patterns rather than signatures:

- Official docs for that exact version, not the "latest" URL, which silently redirects.
- The repo's CHANGELOG or migration guide — the fastest way to learn what moved between your mental model and reality.
- GitHub issues for the specific error string, when behavior contradicts the docs.

Blog posts and forum answers are the last resort and always carry a date. A 2023 tutorial for a library that had a major release last year is a trap.

## Step 4 — Confirm Before Committing

For anything non-obvious, run the smallest possible check rather than trusting the read:

```bash
node -e "const x=require('<pkg>'); console.log(Object.keys(x).slice(0,30))"
npx tsc --noEmit 2>&1 | head -20
```

Type-check output is the cheapest proof that an API call exists.

## Rules

- Never call a method you have not seen defined somewhere real.
- Pin what you learn into the code as a comment only when the behavior is genuinely surprising — not as a version diary.
- When installed and latest differ significantly, say so in one line and let the user decide whether to upgrade. Do not upgrade a dependency to make your snippet work.
- If the answer is genuinely uncertain, say which part is uncertain instead of writing confident code around it.

## Highest-Risk Dependencies

Verify these every time; they move fastest and break most: AI SDKs and model identifiers, auth libraries, ORMs and database clients, build tooling and bundler config, meta-framework routing and data-fetching conventions, payment SDKs. For model names, pricing, and parameters specifically, check the provider's current model list rather than recalling one.

Wersje

W bazie nie ma innych skilli o nazwie fresh-library-docs.

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

  • 90library-docs-lookup
    Sprawdza aktualną dokumentację bibliotek i API przez narzędzia context7 przed napisaniem kodu, zamiast polegać na pamięci.
  • 100context7-docs
    Pobiera aktualną dokumentację i przykłady kodu dla dowolnej biblioteki, frameworka, SDK, CLI lub usługi chmurowej: składnia API, opcje konfiguracji i migracje wersji.
  • 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.
  • 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.
  • 100context7-auto-research
    Pobiera aktualne dokumenty Context7, kroki konfiguracji, referencje API i przykłady kodu dla wskazanej biblioteki, frameworka, SDK lub API.
  • 100context7
    Ogranicza halucynacje agenta przy API bibliotek: ustala dokładną wersję z lockfile, pobiera aktualną dokumentację, cytuje ją przed napisaniem kodu i przypina wersję w wyniku.

Uwagi i zgłoszenia

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