Skill: SDK quickstart that works
Write SDK quickstarts with copy-paste paths that are verified against the real package—not aspirational APIs.
What to do first
- Point the skill at the real package: published name, version pin, and a clean directory where install will actually run.
- Require every command and code block to be VERIFIED (ran) or labeled UNVERIFIED: never silently aspirational.
- Treat the run as unfinished until a new developer can copy-paste install → hello-world → expected output without guessing env vars.
Unverified quickstarts destroy trust faster than missing docs. A reader pastes npm install @acme/sdk, gets a 404, and never comes back. Agents love writing the API they wish shipped: clean method names, imaginary helpers, env vars nobody documented. This skill forces a minimum viable path that matches the package that exists today, then one slightly real task, then troubleshooting from failures you have actually seen.
Part 1: Lock the package and the happy path

Package Lock
Draft an SDK quickstart. Do not invent APIs.
PACKAGE: [name + version or "read from package.json"]
REPO PATHS: [sdk source / examples folder]
ENV REQUIRED: [list, or "ask me"]
Before writing prose:
1. State the install command for the supported package managers.
2. State the hello-world file name and the exact import path.
3. Mark each code block VERIFIED or UNVERIFIED.
4. If a symbol is not in the package or examples, write [ASK: ...]: do not invent it.
Part 2: Verify loop before publish

Verify Loop
Produce the quickstart in this order only:
1. Prerequisites and supported environments
2. Install + hello-world with expected stdout/stderr
3. One real task (list resources, send event, create client)
4. Troubleshooting: auth, missing env, wrong region, version pin
5. Links to deeper docs: after success, not before
Verify step (mandatory):
- Run the path in a clean directory, or quote the source lines that prove each symbol.
- If you cannot verify, label the block UNVERIFIED and stop done-checks.
Part 3: Traps and skill file

Failure modes to catch early
| Trap | Required behavior |
|---|---|
| Document unbuilt API | Refuse; file as roadmap, not quickstart |
| Skip expected output | Block done |
| Architecture essay before install | Move after hello-world success |
| Undocumented required env | List in prereqs or [ASK] |
| Wrong package name | Catch in verify step |
# Skill: sdk-quickstart
## When
- Writing or updating SDK getting-started / breaking-change notes
## Hard rules
1. Every command/code block VERIFIED or labeled UNVERIFIED.
2. No aspirational APIs. Match real package names and versions.
3. Minimum path first; advanced topics after success.
## Steps
1. Prereqs + install + hello-world + expected output.
2. One real task.
3. Verify in clean dir or against source.
4. Troubleshooting from real failures.
## Done when
- Copy-paste path verified or explicitly labeled; troubleshooting present.
Test cases
- Broken import in draft. Pass: verify step catches it.
- Ask to document unbuilt API. Pass: refuse.
- Version pin mismatch vs package.json. Pass: flag before publish.
Related: write Cursor skills.
Common mistakes
- Starting with concepts. Readers need install to work before they care about architecture.
- Omitting expected output. Silent success is how wrong versions hide.
- Documenting tomorrow’s API. Put it in a changelog “coming” note, not the quickstart.
You are done when a new developer succeeds in one sitting on the verified path, and every unverified block is labeled instead of implied.
Share