Przejdź do treści
Biblioteka skilli
Programowanie · Research

docpin

/docpin

Sprawdza wersję biblioteki zainstalowanej w projekcie i opiera odpowiedź o jej użycie na dokumentacji tej właśnie wersji.

Repozytorium
plugins ↗
Licencja
MIT
Ostatnia zmiana repozytorium
16.07.2026

Ocena i bezpieczeństwo

90/ 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ść25 / 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
8
Skrypty
0
Komentarze HTML
0
Adresy URL w SKILL.md
0
Przestarzałość

Brak sygnałów. Repozytorium zmienione 16.07.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 wersję biblioteki zainstalowanej w projekcie i opiera odpowiedź o jej użycie na dokumentacji tej właśnie wersji.

Oryginalny opis (EN)

Use when about to write or explain code that imports or calls a third-party library, or when the user asks how to use a named library/framework — resolves the version installed in the project and grounds the answer in version-matched documentation.

Jak działa

  1. When to trigger
  2. When NOT to trigger
  3. The resolve → fetch → ground loop
  4. Honesty invariant
  5. Further reading
  6. Delegating to agents
Sekcje z nagłówków SKILL.md, w oryginale · 76 linii, 475 słów
Podgląd SKILL.md
---
name: docpin
description: Use when about to write or explain code that imports or calls a third-party library, or when the user asks how to use a named library/framework — resolves the version installed in the project and grounds the answer in version-matched documentation.
---

# docpin

Ground library code in documentation for the *exact version installed in this
project* — not training-data memory, and not merely "latest."

## When to trigger

- Claude is about to write or explain code that imports/calls a **third-party**
  library (npm, PyPI, crates.io, or Go module).
- The user asks how to use a named library or framework ("how do I do X with
  `<lib>`", "why isn't `<lib>.foo()` working", etc.).

## When NOT to trigger

- Standard-library / language-builtin APIs (e.g. Python's `os`, Node's `fs`,
  Rust's `std`, Go's `net/http`) — these aren't version-pinned third-party
  packages and don't need registry resolution.
- Pure algorithm/logic questions with no library API surface involved.
- The project already has a fresh cache hit for this exact `pkg@version` (see
  `references/caching.md`) — reuse it instead of re-fetching.

## The resolve → fetch → ground loop

Five steps, detailed in `references/resolver.md`:

1. **Detect ecosystem** — find the lockfile/manifest nearest the file in
   focus (lockfile takes precedence over manifest).
2. **Resolve installed version** — read the concrete pinned version from the
   lockfile, or infer one from a manifest range via the registry.
3. **Registry lookup** — fetch registry metadata to confirm the version and
   get the repo/docs URLs.
4. **Fetch version-pinned docs** — fetch the actual docs for that exact
   version, per the ecosystem's recipe.
5. **Distill + ground** — extract what's relevant, then write or explain code
   against it, citing the version and URL.

For the full algorithm, the file-precedence table, the registry URLs, and the
fallback chain (no lockfile, 404, private package), read
`references/resolver.md`.

## Honesty invariant

Every grounded answer must:

- **Cite the resolved version and the exact URL(s) fetched**, so the user can
  verify.
- **Never invent a symbol** that isn't present in the resolved version's docs
  — if a requested API isn't there, say so plainly (e.g. "`useFooBar` is not
  in `react@17.0.2`") instead of guessing or fabricating.

This holds even in fallback cases: label *latest*, *closest available
(`<version>`)*, or *local (bundled)* explicitly rather than presenting a
fallback result as an exact version match.

## Further reading

- `references/resolver.md` — the full detection/resolution/fallback algorithm.
- `references/ecosystem-npm.md`, `references/ecosystem-pypi.md`,
  `references/ecosystem-crates.md`, `references/ecosystem-go.md` — per-ecosystem
  lockfile parsing, registry calls, and doc-URL templates.
- `references/output-contract.md` — distillation, citation format, and honesty
  rules for the final answer.
- `references/caching.md` — cache key format and invalidation.

## Delegating to agents

- A heavy single-library fetch (unfamiliar registry, deep topic, multiple
  fallback hops) can be delegated to the `doc-fetcher` agent so the multi-step
  resolve → fetch → distill loop runs in isolation, keeping raw registry JSON
  and fetched pages out of the main session's context.
- Before a grounded answer is trusted for load-bearing code, the
  `citation-guardian` agent can verify it: re-checks the cited version against
  the lockfile, confirms the cited URL resolves and is version-pinned, and
  confirms cited symbols actually appear in that version's docs.
Pliki w paczce (8)
  • SKILL.md 4 KB
  • references/caching.md 3 KB
  • references/ecosystem-crates.md 3 KB
  • references/ecosystem-go.md 4 KB
  • references/ecosystem-npm.md 3 KB
  • references/ecosystem-pypi.md 3 KB
  • references/output-contract.md 3 KB
  • references/resolver.md 4 KB

Wersje

W bazie nie ma innych skilli o nazwie docpin.

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

  • 90as-installed
    Pisze kod zgodny z wersjami bibliotek zainstalowanymi w projekcie, sprawdzając importy i nazwy w tej wersji.
  • 100source-grounded-development-engineering
    Sprawdza każdą decyzję o frameworku i bibliotece w oficjalnej dokumentacji dla zainstalowanej wersji, by kod używał istniejących API.
  • 100research-primary-sources
    Znajduje i czyta oficjalne źródło dla zainstalowanej wersji biblioteki, platformy lub narzędzia, oddzielając to, co źródło gwarantuje, od własnych wniosków.
  • 100source-driven-development
    Opiera decyzje o frameworkach na oficjalnej dokumentacji, dając kod ze wskazanymi źródłami dla dowolnego frameworka lub biblioteki.
  • 100source-driven-development
    Opiera decyzje o frameworkach na oficjalnej dokumentacji, dając kod ze wskazanymi źródłami dla dowolnego frameworka lub biblioteki.
  • 100context7-mcp
    Pobiera aktualną dokumentację i przykłady kodu zależne od wersji przez serwer Context7 MCP: składnia API, konfiguracja, migracje wersji, przenoszenie kodu między bibliotekami i debugowanie.

Uwagi i zgłoszenia

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