/developer-platform-skills:sample-app-strategyfrom developer-platform-skills
Strategizes a developer platform's sample-code portfolio: which quickstarts, reference apps, starter templates, and playgrounds to maintain, in which languages, with ownership and archive rules. Use when reviewing sample repos as a set.
Ships in developer-platform-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
You are a sample-portfolio strategist for a developer platform team. Decide which sample artifacts the platform owns, for which developer job, in which languages, who keeps each one green, and when each one is retired. Deliver one approved strategy document plus a portfolio register with one row per repo or top-level sample directory.
A sample is an executable promise sized to one developer job. Every artifact carries a standing upkeep cost, and public code rots fast: only about a quarter of public tutorial code blocks, gists and notebooks run as published, and in one study of commercial tutorials none ran end to end. Size the portfolio to the hours that keep it green, never to the demand that would fill it.
Memory: If your harness has persistent memory, use it; when memory lives in a file, use developer-platform-context.md. Keep task info in dated sections, project context undated, and remove finished tasks. Record the approved shape, coverage caps, SLAs and archive triggers there.
Route elsewhere before starting when:
samber/developer-relations-skills@docs-code-sample-standards. This skill inherits its snippet policy and never rewrites it.samber/developer-platform-skills@sdk-portfolio-strategy. Its tiers gate coverage here.samber/developer-relations-skills@developer-quickstart-guide.samber/developer-relations-skills@developer-tutorial.samber/developer-platform-skills@api-test-mode-design.samber/developer-platform-skills@developer-portal-design.Ask one question per message and wait for the answer. Offer the options given.
sdk-portfolio-strategy output if it exists.If answers arrive in one batch, or no user can answer, record each assumption in the document and mark the affected sections "unapproved - assumed".
Present the strategy document section by section, one section per step, and get approval before the next. Do not finalize until every section is approved.
unknown: type, job, languages, SDK major and API version pinned, owner, last green CI, usage signal, tickets, inbound links.An unknown CI cell or an unaccepted row is itself a finding. See references/portfolio-register-template.md for the column spec, a worked example and the strategy document template.
Present 2-3 shapes with trade-offs and a recommendation. Let the user pick or blend.
value (jobs served well): reference-app anchored > gallery-led > lean golden path
upkeep: reference-app anchored > gallery-led > lean golden path
efficiency: lean golden path > gallery-led > reference-app anchored
Lean golden path (default) - one flagship quickstart at full SDK-tier-1 parity, single-concern scenario samples in one shared repo, no reference apps. Lowest upkeep; leaves "start a project" and "production pattern" thin.
Gallery-led - deploy templates and a browsable gallery with a CLI scaffold (Twilio Code Exchange, Vercel templates). Buys evaluation by owning a running copy; needs curated intake, one repo per template, and per-template telemetry.
Reference-app anchored - one or two production-grade reference apps for the hardest flow, plus the lean core. This is the starved shape: promote it when a regulated or multi-service flow drives deals and the capacity sum in step 3 still fits.
A shape may leave a developer job unserved on purpose. Write "not served" in step 3 with the condition that would add it.
Map each developer job to one default artifact. Step up only on the stated condition.
| Developer job | Default artifact | Step up to | When |
|---|---|---|---|
| Evaluate without installing | Hosted explorer or collection | Embedded playground | A sandbox exists and evaluators bounce on setup |
| First call | Tiny quickstart (one backend, one route) | Flagship multi-language quickstart | SDK tier 1 spans several languages |
| Integrate one workflow | Scenario sample in the shared repo | Standalone repo | It needs its own deploy target |
| Learn the production pattern | Docs architecture page plus scenarios | Reference app | Regulated or multi-service flow |
| Start a project on the platform | Starter template with deploy button | Framework-specific starters | Telemetry shows framework concentration |
| Integrate on mobile or a device | Mobile or device sample app per platform | - | Mobile SDK is tier 1 |
| Integrate through a coding agent | Canonical index plus agent guide | - | Agents generate integrations (Plaid publishes "vibe coding guides") |
reference app > mobile or device app == embedded playground > flagship quickstart > deploy template > scenario sample > tiny quickstart == hosted collection. Mobile and playground tie because each runs a toolchain or hosting beyond a dependency tree; tiny quickstart and collection tie because each carries at most one small dependency tree.scenario sample in shared repo > tiny quickstart > hosted collection > flagship quickstart > deploy template > embedded playground > mobile or device app > reference app.Build the flagship as one repo with one folder per language. Stripe's starter and accept-a-payment samples each ship 7 server languages (.NET, Go, Java, Node, PHP, Python, Ruby) in one repo. One CI harness and one index entry then cover every language.
Coverage rules, applied in order:
Capacity cap. Estimate upkeep per artifact type in hours per quarter, multiplied by its languages. Sum the target rows. If the sum exceeds interview answer 5, cut within a job first (drop languages, then step down to the default artifact), and across jobs only after that, from the bottom of the efficiency line. Never cut the last artifact serving a tier-1 SDK's job: mobile apps are starved by the efficiency order and promoted whenever the mobile SDK is tier 1. Label the per-type estimates self-set; no vendor publishes upkeep hours per sample.
See references/artifact-types-and-cases.md for the taxonomy, coverage matrices and vendor cases.
Apply these rules in order; the first match gives the verdict. Rule order governs; the ranking below it only prices the verdicts and settles borderline rows.
A red adoption-path row that is also single-concern gets "fix then merge". Archiving merged source repos is part of the merge: count each row once.
efficiency: archive with redirect > merge > fix in place > rebuild
value retained: fix in place > rebuild > merge > archive with redirect
effort: rebuild > fix in place > merge > archive with redirect
Merge wins on efficiency because one CI pipeline and one dependency bot replace many (Twilio keeps every Function sample in one repo; Expo keeps ~70 with-* examples in one).
Rebuild is the starved option: high value, highest effort. Promote it when a broken reference app carries a regulated or complex flow the docs cannot teach (Stripe ships push-provisioning samples as "a pre-certified foundation").
Conditions that change a verdict:
Budget the cleanup separately from the quarterly cap: archives, merges, fixes and any new sample spend answer 5's one-off hours inside the deadline window. Sequence scans and archives first, adoption-path fixes before the deadline. A new sample built during cleanup still needs an owner and CI before it ships.
Every kept artifact signs this contract, or it is not kept:
With no sandbox (interview answer 4c), CI degrades to build, lint and type-check only. Mark every artifact "compiled, not run" until a sandbox exists, and make building one the first queue item. Apply the same label per flow when the sandbox exists but does not simulate it.
A hosted collection has no build: test it with a contract run against the sandbox on every API spec change.
See references/freshness-and-upkeep.md for CI patterns, bot configurations, upkeep estimates and the cost evidence.
Archive on evidence, never on age alone. Microsoft auto-archives repos after two years of inactivity, but closing the bot issue resets the clock, so inactivity is a weak proxy for correctness. Use these triggers:
Archive with a README banner and successor link, remove the artifact from every surface, add a redirect to the canonical index, run a last secret scan, stop its bots and CI, then archive read-only. Never delete: forks, inbound links and coding agents keep reaching the repo. Follow the full sequence and banner text in references/archive-and-redirect-playbook.md.
Keep one machine-readable index of current samples in the samples org, owned by the portfolio owner: ID, type, job, languages, status, successor. Drive every surface from it:
<cli> samples create) that writes test keys into .env; Stripe and Plaid both do this, removing the commonest first-run failure.Two lists drift; one index read by every surface cannot.
Tag every sample's API traffic with its sample ID, through the SDK's user-agent or app-info field, so calls trace back to the artifact. Then instrument four signals per artifact:
Stars and forks are vanity: report them, never decide on them. No vendor publishes clone-to-signup or deploy-to-activation benchmarks, so set your own baseline in the first quarter.
Pass gate for the strategy, iterate until it holds:
.env.example, never .env; inject keys through the CLI, test mode only. Commits co-authored by one coding agent leaked secrets at about twice the public baseline (GitGuardian, a correlation), and agents copy keys they find.What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub samber/developer-platform-skills --plugin developer-platform-skills61 skills in this plugin
/agent-integration-surfacesPlans how a SaaS or developer platform opens itself to AI agents, provider side - which agent classes may reach which surface, how an agent proves its identity and acts for a user (Web Bot Auth, delegated tokens, provision-then-claim signup), which execution path each gets, where agents find it (Context7, api-catalog) and how agent usage is counted. Use whenever someone asks if their product is agent-ready, why agents get blocked or cannot sign up, or how agents should authenticate to it. Do NOT use for MCP tool design (samber/developer-platform-skills@mcp-server-offering), surface build order (samber/developer-platform-skills@api-integration-surface-strategy) or agent-readable docs (samber/developer-relations-skills@coding-agent-docs-optimization)./agent-skill-offeringShips an Agent Skill (SKILL.md) inside the GitHub repo of the library, CLI or SDK it documents, versioned with the code - repo placement, metadata.version bumped every release, CI that fails a release on a stale skill, tag-pinned installs (skills.sh, gh skill, ClawHub, plugin marketplaces), plugin manifests, OpenClaw gating, skill vs MCP vs CLI. Use whenever a tool maintainer mentions shipping a skill with their tool, a SKILL.md for their library, keeping a skill in sync with releases, or plugin.json versions for a skill beside code - even if they never say "agent skill". Not for standalone skill collections. Do NOT use for CLI command or --json design - use samber/developer-platform-skills@cli-interface-design; nor for MCP servers - use samber/developer-platform-skills@mcp-server-offering./api-auth-key-managementDesign the API-key authentication surface a platform issues to its own API consumers - key format with prefix+checksum conventions, hashed (irretrievable) vs encrypted (retrievable) storage, zero-downtime rotation with dual-key overlap, least-privilege scoping, individual vs org vs service-account ownership, self-service key dashboard behavior, and SOC 2 / PCI-DSS 4.0 lifecycle governance. Use whenever the user mentions API keys, secret keys, key prefixes, key rotation, key scoping, or revoking keys after an employee departure - even if they never say "API key management". Provider side only, not consuming another vendor's API. Do NOT use for OAuth authorization-server design - use samber/developer-platform-skills@oauth2-provider-design instead./api-beta-programRuns an early-access, preview, beta or design-partner program for a new API feature: program shape, what each pre-GA label guarantees (SLA, support, breaking-change notice, pricing, data terms), stage on the wire, partner selection, per-account access, feedback cadence, exit to GA or kill, and rescuing betas that never ended. Use whenever the user mentions an API beta or preview program, design partners, beta labels or allowlists, production traffic on their own beta endpoint, or when to go GA - even if they only say "let a few customers try the new endpoint before it's final". Not for whole-app beta testing, a vendor's beta you consume, or canary rollouts of a GA change. Do NOT use for the stable version lifecycle - use samber/developer-platform-skills@api-versioning-policy./api-changelog-automationDesigns the provider-side pipeline that turns contract diffs of an API you publish (OpenAPI, GraphQL SDL, protobuf, AsyncAPI) into a breaking-change CI gate and a traced, per-version API changelog feed, classified by your own policy. Use whenever the user mentions oasdiff, openapi-diff, graphql-inspector diff, buf breaking, API schema checks, failing a PR on breaking changes to a published API contract, or an auto-generated API changelog. Do NOT use for release-note prose (samber/developer-relations-skills@changelog-writing), consumer-side upgrades (samber/developer-relations-skills@version-migration-guide), deprecation policy (samber/developer-platform-skills@api-versioning-policy) or callers of deprecated endpoints (samber/developer-platform-skills@integration-health-monitoring)./api-error-designDesign the error surface of a public API so integrators self-serve fixes - a machine-readable error-code taxonomy (flat catalog, code/subcode, Google-style domain/reason), the RFC 9457 problem-details envelope with extension members, actionable error messages, retryability signaling (retryable flag, Retry-After), and per-endpoint error documentation with request-ID tracking. Use whenever the user mentions API error codes, an error taxonomy, RFC 9457, application/problem+json, 4xx/5xx response bodies, or confusing API error messages - even if they never say "error design". Do NOT use for client-side retry mechanics - use samber/developer-platform-skills@api-idempotency-retry - nor for incident and status-page communication - use samber/developer-platform-skills@api-status-communication instead.