sdk-development
Skill4 starsChanged 5 days agoMITView on GitHub
Develop, test, publish installable packages — Go modules, npm SDKs/component libraries, plugins, CLIs: OpenAPI codegen, exports map, test pyramid, pack smoke, publish gate, semver upgrades, docs-as-contract. Use for SDK/library/publish/version-bump. NOT app e2e (→ playwright-tester), map work (→ map-integration), CI itself.
- Reads credentials
- Installs packages
1 other project uses a version of this.
Adopted by
Most recently taken up by
- golemcloud/golemtheir own version, first seen Oct 8, 2026
Other versions1 project uses a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 1
- golemcloud/golem★ 1.5ksame name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository25 other files it gives its agents.
- AGENTS.mdAGENTS.md
- archifySkill
- authSkill
- brainstormingSkill
- browser-toolsSkill
- code-reviewerSkill
- documentation-writerSkill
- fallow-auditSkill
- frontend-designSkill
- github-actionsSkill
- grill-meSkill
- harness-engineerSkill
- impeccableSkill
- linkedinSkill
- map-integrationSkill
- pidocSkill
- playwright-testerSkill
- ponytailSkill
- refactoring-uiSkill
- rust-skillsSkill
- self-learnSkill
- session-auditSkill
- skill-managerSkill
- systematic-debuggingSkill
- web-searchSkill
The file
We split this skill into the rules it gives an agent
2 rules. About 0 are common, 1 is distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 25
Verify surface mechanically (pack smoke below), never eyeball config — exports map = what consumers resolve.
- Very specific: line 38
Test layout: per-module test files mirroring source (client_test.go, geocoding_test.go, routing_test.go, search_test.go, …
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Package/SDK Development
Building/shipping installable packages: generated API SDKs, hand-written libraries, plugins, CLIs — Go module, npm package, plugin bundle. Core rule for libraries consumed by others: docs = contract — every README feature, prop, code example must run against built artifact.
Archetypes (detect first)
- Generated SDK — OpenAPI spec via codegen (oapi-codegen / openapi-ts). Two layers, separate:
gen//*.gen.ts— auto-generated, never hand-edit; change spec, regenerate, re-apply scripted post-fixes (e.g.float32→float64, casing-collision field drops).client//src/lib/— hand-written: simplified request types, client-side validation before any HTTP call, API-key injection, timeouts, SDK error types, defaults.- Sibling SDK in another language → defaults/validation/error semantics must match exactly; parity noted in comments. Deliberate divergence documented, never silent.
- API drift lives in "Known API drift — intentional, do not fix" table in CONTRIBUTING.md; absorbed in hand-written layer (tolerant
UnmarshalJSON/zod for number-or-string fields, documented auth ambiguities likeapi_keyvskey).
- Hand-written library (component lib, plugin, CLI) — no codegen layer; tests + docs carry safety net.
Package surface (npm)
- Define
exportsin package.json (.import/require conditions + subpaths like./styles). - List
files. - Peer-deps for host frameworks (
react,react-dom). - Verify surface mechanically (pack smoke below), never eyeball config — exports map = what consumers resolve; typos invisible until install.
Bundle externals
Externals from build config / emitted output, never top-of-file import scan — a scan once missed maplibre-gl (mid-file import); offline smoke sandbox failed on resolution. Grep built dist/ entry for require(/from specifiers, or read bundler config.
Testing
- SDKs: real API, real responses. No mocks, no smoke-only tests. Required env (e.g.
API_KEY) read properly — tests fail loudly when missing, never skip silently. - Native test runners —
node:test,go test. No heavy test-framework dep. - Table-driven per endpoint/method: happy path, each validation error, non-2xx + timeout mapped to SDK error types distinguishable via
errors.As/typed catches. - Coverage ≥80%, excluding auto-generated files — coverage and lint configs both exclude
gen/(.golangci.ymlpaths, vitest coverage exclude). npm:vitest run --coveragewired intonpm testitself — every run reports coverage, not just CI; Go:make coverin CI,go tool cover -func=coverage.out= source of truth. - Completeness rule: every public API/method ships ≥1 test — "do tests cover all APIs we provide?" = pre-release question; answer before tagging.
- Test layout: per-module test files mirroring source (
client_test.go,geocoding_test.go,routing_test.go,search_test.go,integration_test.go, …) +helpers_test.goshared fixtures; unit tests run without env vars where possible, integration tests behind real env keys. - Plugins/CLIs: smoke-test real local install (
claude --plugin-dir <dir>, packed tarball, orgo runfrom consumer repo); reports underdocs/smoke-tests/with findings + token cost — runs stay comparable across versions. - Consumer testing (npm): tarball method, never
npm link(symlinks cause phantom-symbol bugs — two React/peer copies):
Alternative:npm pack # builds <pkg>-<version>.tgz cd ../consumer-app && npm install ../<pkg>/<pkg>-<version>.tgzyalc publish+yalc add <pkg>. Exercise core feature in real app. - Regression rule: previous published version = behavior contract. Something breaks after bump (asset, rendering, export) → diff vs how previous version did it, match — never invent new behavior mid-version.
Pyramid layers, browser-mode pitfalls, e2e infra, pack smoke procedure: references/testing.md.
Pre-publish gate (in order)
typecheck → lint → unit → browser-mode (npm) → e2e vs dist → README example validation
→ publint → pack smoke / consumer check → dependency hygiene → CHANGELOG → user publishes- Build, lint, typecheck, full test suite green. npm enforces via
prepublishOnly(check-types && build && test); failing test blocks release — fix, don't bypass. Gated/deferred items → tracked issue, never silent skip. - README validation: extract every fenced example, compile against real package (
go vetscratch program /tsc --noEmit). Example not building = bug. Documented examples = executable specs — test each verbatim as e2e case; docs + library move together. No local toolchain → Docker (docker run --rm -v "$PWD":/app -w /app golang:… go vet …) — never skip. npx publint(npm) — fix exports/types/package.json warnings.- Consumer check: packed tarball installed in real app, core feature exercised. E2e host app imports every published entry point (main,
./styles, subpaths) — not just main; a branding element once tested "missing" because host never imported styles export. - Dependency hygiene if touched: exact pins (no
^), committed.npmrc,npm/pnpm audit --audit-level high, non-breaking upgrades only. Sweep deadpackage.jsonscripts + stray files — every script runnable + referenced; unreferenced scratch files deleted, not parked. - CHANGELOG.md complete for this version; missing shipped versions backfilled.
- User reviews, commits/publishes manually. Agent never commits/pushes/publishes unprompted — suggests commit message, waits. User may test live first.
npm publish --access public(or CI release — details in references/ci-and-upgrades.md.)
CI/CD pipelines + dependency major upgrades (engine-major contract breakage protocol): references/ci-and-upgrades.md.
Documentation (fixed set)
| File | Content |
| README.md | User-facing: description, install, quick start, per-feature examples (all validated), badges — npm/pkg.go.dev interactive labels, not bundlephobia. Feature matrix = e2e case registry's source of truth; every documented feature has a case. Never expose internal patterns as README examples. |
| CONTRIBUTING.md | Most important dev doc: quick start/setup, local package testing (tarball method), codegen workflow (if any), CI pipeline, npm hooks (prepublishOnly), test strategy with exact gate commands (typecheck → unit → browser → e2e → pack smoke), release process, drift table. |
| DEVELOPMENT.md | Optional deeper dive: architecture, internals, design decisions. Create when CONTRIBUTING crowded; no duplication between them. |
| LICENSE | MIT file at repo root, referenced from README badge. |
| CHANGELOG.md | Keep-a-Changelog ## [x.y.z] - YYYY-MM-DD. Entries land with the change (one coherent entry/version), user-facing outcomes only — no process minutiae, internal jargon, test counts not test-file lists. Single version source: package version read from here, never hand-bumped independently. |
| AGENTS.md / CLAUDE.md | Generic agent instructions only — nothing task-specific, no git permissions or instructions (agent doesn't commit; suggests messages only). |
Versioning
- Semver: breaking API change → major, new endpoint/feature → minor, fix → patch.
- Shipped versions missing from changelog → backfill before next release.
- Post-regression: patch release restoring parity with previous version's behavior, changelog entry covering regression + fix.
R&D + comparison workflow
- New feature/R&D on library surface: document first (README entry), implement against test pyramid — unit mock → browser spec → e2e case → pack smoke — every feature lands with executable spec. Spike R&D in branch; merge gate = full pyramid, never demo.
- Comparing packages: read comparison target's docs AND shipped dist — compare API surface, exports, peer-dep handling, event-payload contracts. Docs/source-surface-only comparison once missed mid-file externals + behavior deltas. Adopting pattern → note delta in README/CHANGELOG.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

