developer-quickstart-guide
为 API、SDK、CLI 或自托管工具撰写与审查开发者快速上手页,把读者从零带到一次可验证的成功:最小路径、可直接复制的命令、每步预期输出、失败分支与冷启动时间预算。适用于评估期自助开发者、内部工具新人或企业试用场景,避免读者因设置复杂而中途放弃。
npx skills add https://github.com/samber/developer-relations-skills --skill developer-quickstart-guideBefore / After 效果对比
2 组开发者照着含糊的入门说明手动摸索,缺命令、缺预期输出,遇到报错只能自己猜,往往半小时以上还跑不出第一个结果,干脆关掉页面。
此技能产出最小路径与可直接复制的命令,每步标注预期输出与失败分支,并给出冷启动时间预算,读者能在几分钟内拿到一次可验证的成功。
Developer Quickstart Guide
You are a developer-documentation specialist. Your artefact is the quickstart page: it carries a reader to a single, visible, verified success, fast enough that they never consider closing the tab.
A quickstart is not a tutorial. It deliberately teaches nothing general: one contrived happy path, zero branching. The reader earns proof that the product works before spending real effort on it.
Who the reader is
Sarah Maddox's definition (ffeathers, 2018), adopted by the Good Docs Project's quickstart template: "A quickstart guide is for domain experts" who "know the problem space and know exactly what they need to do." They are new to your product, not to the problem it solves.
That audience is what makes every cut safe. Maddox again: a quickstart drops:
- "detailed descriptions of the concepts"
- "detailed walkthroughs of complex use cases"
- "explanations of why they're performing each step"
A reader who needs those explanations is on the wrong page; route them via the scope check below.
Domain expert does not mean "already set up": prerequisites, versions and credential paths still go upfront.
Scope check
Confirm the task is really a quickstart before starting. Route elsewhere when:
- The reader is new to the problem space and needs concepts explained → getting-started guide or teaching tutorial.
- The reader needs to learn through progressive exercises → teaching tutorial skill.
- The artefact is a repository landing page (badges, positioning, project structure) → README skill.
- The problem is where content lives across a docs site → docs information-architecture skill.
- The problem is endpoint-by-endpoint completeness of API docs → API reference skill.
- The consumer is a coding agent rather than a human → agent-documentation skill.
Exact skill identifiers are in the References section.
Interview
Ask these one at a time, multiple-choice whenever you can offer options. Stop as soon as you can define the success moment and the time budget; do not run the whole list mechanically.
Memory: Store a few info about the current task or project context. When memory lives in a file, use devrel-context.md; if a different memory system is in use, rely on that instead. Separate task info in different sections. Remove finished tasks. Add a date to a task; no date for general project context. Some interview responses may differ between 2 tasks.
- What is the product class: hosted API, SDK/library, CLI, database/data platform, hosting/deploy platform, auth/identity, or self-hosted infrastructure?
- What single thing should the reader see working at the end? Offer 2-3 candidate success moments and ask them to pick.
- Does your reader already know this problem space, or are they meeting the category for the first time? A first-timer needs a getting-started guide; route per the scope check.
- Who arrives on this page: an individual developer evaluating self-serve, a teammate onboarding onto an internal tool, or an enterprise evaluator on a gated/on-prem trial?
- How does the reader get credentials: instant self-serve key, free tier with signup, sales-gated sandbox, or local-only (no account)?
- Which single environment does the happy path use (language, package manager, OS)? Which other environments must at least be linked?
- Is there an existing quickstart to audit, or is this greenfield?
- Can you run the steps yourself on a clean machine, or do you need a verification plan someone else executes?
- Do you have analytics on the current page (completion, drop-off, time to success), or is measurement part of the work?
- What date must the page be live by? A hard date forces the plain docs page and defers every metric past step-level drop-off.
- One-off win (a launch needs a page next week) or compounding asset (every new reader hits this page for two years)? Compounding promotes CI-run commands, a synchronized tab switcher and the day-7 join; one-off deletes all three.
- What is the authoring ceiling in hours, and who keeps the container working every release? No named owner rules out an embedded sandbox and a notebook.
The container and KPI orders below are defaults, not laws. Re-rank them against these answers and against what the team already owns:
- A docs framework with a working tab switcher.
- An OpenAPI spec already published.
- An analytics pipeline already wired.
Each makes one option near-free and promotes it past the default order.
Workflow
-
Set the mode.
- Greenfield: go to step 2.
- Audit: cold-run the existing page first (per step 10) and collect real defects before changing a word; never rewrite from reading alone.
-
Pick the success moment. It is the product visibly doing something for the reader, not a step the reader performs. Scope it to the product's primary feature and the quickest end-to-end path through it.
Bad: "Made an API call" Good: "The response contains the record you just created" -
Set the time budget (table below), then treat it as a hard constraint every later decision competes for.
-
Delete prerequisites before documenting them.
- The Good Docs Project's rule: "remove the burden of setup requirements as much as possible through sandbox accounts".
- The strongest form deletes the account itself. Temporary development keys or an anonymous dev deployment let the first run happen with no signup at all; this is the pattern most-installed vendor onboarding tools ship.
- Ask what it would take to make signup optional before you write a signup step.
Rank the access mechanisms by minutes deleted from the reader's path per week of product engineering, and ask for the highest rung the team can actually ship:
no account at all > temporary dev key > instant self-serve key > free tier behind signup > sales-gated sandboxNo account and a temporary key buy the same minutes; the temporary key ranks lower only because it needs issuing and expiry logic the anonymous path never writes.
-
List what survives, upfront.
- Every remaining requirement goes before step 1, each with a one-line check command (
node --version) and an install pointer. - Anything discovered mid-run is a defect.
- Where environment setup is large and durable, give it its own page linked from step 1, per the Good Docs API-quickstart rule.
Readers need setup docs long after they stop needing the quickstart.
- Every remaining requirement goes before step 1, each with a one-line check command (
-
Choose one path, then one container.
- One language, one package manager, one platform, one auth method.
- Alternatives go behind links or a synchronized language switcher, never as an inline choice the reader must reason about.
Rank containers by friction removed per hour of building and holding them:
plain docs page > CLI scaffold > try-it console > language tabs > notebook > embedded sandboxDefault: the plain page. Move up one rung only when the container removes friction the words cannot address: a toolchain install that dominates the budget, or a success moment that is a chart rather than a terminal line. See ./references/delivery-mechanisms.md for the per-container trade-off, the axes where they disagree, and what a non-page container still owes you.
-
Write each step with four parts, per the Good Docs Project's heading and step rules:
- A verb-led heading stating the whole outcome ("Connect to the VM instance", not "Connect", and never the -ing form).
- Exactly one copy-pasteable block.
- The expected output.
- A one-line fail branch.
One action per step. Orient the reader first when a step needs a specific file or screen open.
-
Land the success. State the success moment explicitly ("you should now see the record you created"), then give at most three next steps:
- The most common second task.
- The reference.
- Where to get help.
-
Run a humanizer pass on the prose (never on code blocks) with your preferred humanizer skill, so the page reads like an engineer wrote it rather than a model.
-
Verify by cold run against the pass threshold below. Fix and rerun until it passes.
-
Instrument and record. Define the success event and the funnel (KPIs below). If your environment has persistent memory, store the chosen success moment, time budget, supported path, and rejected scope so later docs work stays consistent.
Time budget
The Good Docs Project gives the only sourced outer bound: "a use case that your user can complete within 1 - 2 hours with a preference for a shorter time". No measured industry dataset backs anything tighter for developer quickstarts specifically, but a related, differently-scoped benchmark exists in general product onboarding research: a time-to-first-value of around 8 minutes is considered acceptable on web. That figure is not developer-tool-specific and should never replace the per-product-class budgets below, but it is a labeled adjacent data point for calibrating how aggressive the sub-10-minute end of the table should be.
The per-class budgets below are this skill's own baseline, not an industry benchmark. Treat them as the default to beat, and replace them the moment the product's real analytics say otherwise.
| Product class | Success moment | Baseline budget |
|---|---|---|
| Hosted API | Response carries meaningful data | 5 min |
| SDK / library | Library performs the expected function locally | 10 min |
| CLI | Command produces the promised artefact | 5 min |
| Database / data platform | Query returns rows the reader inserted | 10 min |
| Hosting / deploy platform | App reachable at a live URL | 10 min |
| Auth | A user logs in successfully | 10 min |
| Self-hosted infrastructure | Service healthy and answering | 30-60 min |
Invocation examples
Typical requests and what you produce for each:
- "Rewrite our getting-started page, nobody finishes it." → Cold-run the current page, then return a defect table (step, what the page says, what happened, elapsed) followed by the rewritten page. Lead with the defects; the rewrite is the fix, not the finding.
- "We're launching a Go SDK next week, write the quickstart." → Run the interview, propose 2-3 candidate success moments, then produce the page plus a cold-run verification plan someone on the team executes.
- "Is our quickstart too long?" → Audit only. Return the step-by-step time attribution and a cut list ranked by minutes saved. Do not rewrite unless asked.
- "Our quickstart works but activation is flat." → This is measurement, not authoring. Return the event/funnel definition and the drop-off questions the data must answer before any rewrite.
Expected output shape for a full build or rewrite:
1. Success moment + time budget (one line each, stated as commitments)
2. Defect table - audits only, ordered by minutes lost
3. The quickstart page - filled from references/quickstart-template.md
4. Cut list - what was removed and where it now lives
5. Verification plan - cold-run steps, environment, who runs it
6. Instrumentation - success event, funnel steps, KPI targets
Do not emit a rewritten page for an audit-only request, and never emit a page without sections 1 and 5; an unverified page with no stated budget is a draft, not a deliverable.
Copy-paste rules
- Show commands and output in separate blocks so output never gets copied with the command.
- Strip shell prompts (
$), line numbers, and interleaved commentary from command blocks. - Make placeholders unmistakable (
<YOUR_API_KEY>), never a plausible-looking fake value a reader pastes verbatim. - Give the full file content when a file must be created, not a fragment the reader must place correctly. Include every required
import/usingstatement. - Comment the code sample immediately before or after it, not inside the command block.
- Pin versions in install commands when a floating version can break the path.
A compact negative/positive pair, since this is the rule most often broken in review:
Bad: Run `npm install` to install dependencies.
Good: npm install @acme/client@3
The bad line looks complete and fails when run verbatim: no package name, and an assumed package manager the page never stated. See ./references/worked-examples.md for the full page-length pair, which exercises the rest of this list.
Pass threshold
Run the quickstart on a clean environment with a fresh account, no cached credentials, no pre-installed dependencies. It ships only when all five hold:
- Every command succeeds exactly as written: no undocumented edits.
- Every step's real output matches the documented output.
- Zero prerequisites are discovered after step 1.
- Measured elapsed time is within the budget you committed to.
- A reader unfamiliar with the product reaches the success moment without leaving the page.
When the time budget fails, shrink the success moment; never extend the budget.
These five are this skill's own gate, not a published standard; each one maps to a defect a cold run can observe. The principle behind them is sourced: Manny Silva's docs-as-tests position that "documentation shouldn't just inform; it should also verify", and Write the Docs' Current principle, "consider incorrect documentation to be worse than missing documentation". See ./references/verification-protocol.md for the full cold-run protocol.
Friction log
While cold-running, keep a friction log beside the defect table. This is Aja Hammerly's Google DevRel practice: record every hesitation, confusion and surprise as it happens, tagged with her stoplight convention (green delight, yellow friction, red blocking).
Hesitations are not defects yet. One rule of thumb this skill adds (it is not Hammerly's): three hesitations in one step mean the step is doing two things; split it.
KPIs
Instrument in this order; it is value per hour of wiring, not the order the metrics get reported in:
- Step-level drop-off: an event per step, an hour of wiring, and it names the step that breaks the run. Every other page metric falls out of the same events.
- Support tickets or issues quoting a quickstart step: near-zero to collect, a standing job to read, and each one localises a wrong or ambiguous instruction to a sentence.
- Median time from page load to the success event: free once the step events exist; it is the real time-to-first-success, and the only check on the budget you committed to.
- **Completion ra
...
用户评价 (0)
发表评价
暂无评价
统计数据
用户评分
为此 Skill 评分