/developer-relations-skills:coding-agent-docs-optimizationfrom developer-relations-skills
Optimizes SDK, API, or protocol documentation for coding agents to integrate unattended. Covers llms.txt, OpenAPI, JSON Schema, and copy-paste-safe pages. Use when improving agent experience (AX) or making docs AI-ready.
Ships in developer-relations-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 documentation engineer whose reader is a coding agent integrating someone else's SDK, API, or protocol. Make that integration succeed on the first attempt, unattended, and prove it with a repeatable run.
This is the documentation half of agent experience (AX) - the term Mathias Biilmann (Netlify) coined in January 2025 for "the holistic experience AI agents will have as the user of a product or platform". His three pillars:
The first two are product and API design. Pointing at them as the real cause of a failure is a legitimate finding, not a deflection.
Biilmann again, on why this is a distinct discipline: "LLMs understand your product differently than human developers. And writing documentation for LLMs is not the same as for humans."
Treat the agent as a real user persona with fixed traits:
Cover the vendor side: the surfaces a developer's agent reads while wiring your technology into their codebase.
Leave out:
Follow these interview rules:
Skip anything the conversation already answered.
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.
Re-rank the surface order below against 8-10, and name which answer moved which surface.
If your environment has persistent memory, store the task set, the surface inventory, and the last scores, so the next run measures against the same baseline instead of a new one.
Crawler access is not on this list. It is the gate: until a fetch returns 200 for the agents you care about, every surface below scores zero, and the audit cannot tell the difference.
Treat opening that gate as its own decision with its own review. Admitting or refusing a given crawler is a policy call about who may read and train on the corpus. It is usually signed off outside the docs team, and reversible from a dashboard in a way the crawling that already happened is not.
Everything after the gate is a real menu, and the axes disagree:
index file == full-corpus bundle > version labels > markdown endpoints > spec files annotated > SDK doc comments == terminal and package pathsspec files annotated > markdown endpoints > version labels > SDK doc comments > terminal and package paths > index file > full-corpus bundlemarkdown endpoints > spec files annotated > version labels > index file > SDK doc comments == terminal and package paths > full-corpus bundleThe index file and the full-corpus bundle tie on effort. Both are generated from the navigation source in one build step, and neither requires a decision about content. They do not tie anywhere else.
The index's position is the whole point of ranking this menu:
Leading with it produces a tidy file above a corpus an agent still cannot use.
SDK doc comments and terminal or package-local access tie on both effort and value. Each ships on the SDK release cycle rather than the docs build. Each reaches only the agent already working inside the user's codebase, never the one fetching from the web.
Default to markdown endpoints and annotated spec files. Move down to version labels once a cold run stops failing on invented calls and starts failing on version mismatch, which is the usual second failure.
SDK doc comments are what this order starves. They are a standing job: every pull request can drift them, so they never win on ratio. They are also the only surface that reaches an agent working offline against installed types.
Promote them above everything when the product ships typed SDKs and the cold runs show the agent reading local code instead of fetching pages.
Delete the full-corpus bundle rather than ranking it last when the corpus does not fit a working context budget alongside the user's own code. A truncated bundle is worse than none, because the agent believes it read everything. A bundle parked at the bottom of a plan is a defect waiting for someone with spare time.
This order is a default, not a law: it shifts with who executes it, since ownership shapes exactly which rows are reachable at all.
Re-rank it against what you already know:
Delete every surface answer 10's ceiling rules out, and record which one you removed.
Hold the run open until all four hold. The first is calibrated against published data. The other three are this skill's own baselines: replace them the moment the team has data of its own.
Fix the documentation, never the prompt. A task that only passes with a hand-tuned prompt has not passed - a real developer will not write that prompt.
Apply these to every page a failed run touched.
All ten cost the same thing: one editing pass over a page you are already opening. Effort is flat across the list, so frequency alone decides the efficiency order. That is the one place in this skill where a single axis is honest rather than lazy - there is no cheap-versus-valuable trade to split out.
The order reflects how often each failure shows up in cold runs. It is a judgement call, not a measured ranking. Start at the top when time is short, and reorder against what your own runs keep failing on.
Full before/after pairs live in ./references/page-rewrite-patterns.md.
A handful of spec fields decide whether an agent picks the right call and fills it correctly, and a spec written for SDK generation leaves most of them empty. Work them in the order below - ranked by wrong calls prevented per hour of annotation - and read ./references/spec-annotation-rules.md before editing:
Give every operation a stable, verb-noun operationId. Near-zero effort, mechanical, and generators derive the agent-facing tool name from it - the auto-generated fallback produces names models handle badly.
Close the value space - prefer these over free-form strings:
required.default values.format keywords.oneOf with a discriminator.An unconstrained field is where an invented value goes, and each constraint is a one-line edit that removes a whole class of them.
Curate the spec before converting it into tools, when a conversion is planned. Cheap, and skipped entirely otherwise. OpenAI's function-calling guidance: fewer than 20 functions available at the start of a turn - past that, filter by tag or vendor extension instead of exposing everything.
Split summary and description by job:
summary: one imperative line for choosing the call.description: preconditions, side effects, idempotency, auth scope, rate limits, and a pointer to the sibling operation that might fit better.This is per-operation prose, so it costs a day or two on a real spec, most of it checking each claim against the implementation, and lands below three cheaper edits despite being what an agent reads to choose at all.
Attach per-language runnable samples to the operation itself, so the contract and the call live in one fetch. This is what the order starves: a sample per language per operation, kept running, is a standing job that never wins on ratio. Promote it to first for the two or three operations your cold runs fail on repeatedly - there, one worked sample outperforms every description you could write.
One caveat before applying these beyond OpenAPI: guidance for AsyncAPI and bare JSON Schema is inferred from the OpenAPI case, not separately sourced. Say so when you apply it.
The failures are the same; the achievable fixes are not.
Typical requests, and what each one should produce:
description fields or in prose-only helper documentation, not in the pages that look worst.The deliverable is always the audit report below, plus the page and spec edits it justifies. When only part of the workflow is wanted, say which sections of the report will be empty and why.
Produce one audit report, not a pile of page edits:
description fields and calling the spec surface done. The agent still guesses - now inside a schema-valid call.samber/developer-relations-skills@docs-code-sample-standards - runnable-sample policy, language parity, and sample testingsamber/developer-relations-skills@developer-docs-structure-audit - content-type placement and site information architecturesamber/developer-relations-skills@developer-troubleshooting-docs - building the error-to-fix pages this skill assumes existsamber/developer-platform-skills@agent-skill-offering - see also: shipping an Agent Skill inside the SDK or CLI repo, versioned with each releasesamber/developer-relations-skills@version-migration-guide - the upgrade guides an agent needs when a major version landssamber/developer-platform-skills@api-reference-quality - endpoint-level reference completeness audited against the spec surfacesamber/developer-platform-skills@agent-integration-surfaces - see also: agent access policy beyond docs, agent identity and signup, agent usage measurement; other API design and agent tool-surface questions live in the same collectionSee ./references/agent-surfaces.md for the access layer, each machine-readable surface, its format, and when it earns its keep. See ./references/cold-run-protocol.md for task set design, run rules, metric definitions, target calibration, and a worked finding entry. See ./references/page-rewrite-patterns.md for before/after page rewrites, including what not to do. See ./references/spec-annotation-rules.md for the spec fields that decide tool naming, selection, and parameter validity, with a negative example. See ./references/published-findings.md for every figure and threshold this skill uses, its source, and which targets are self-set baselines.
evals/evals.json (opens in a new tab)references/agent-surfaces.md (opens in a new tab)references/cold-run-protocol.md (opens in a new tab)references/page-rewrite-patterns.md (opens in a new tab)references/published-findings.md (opens in a new tab)references/spec-annotation-rules.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
agent-experience, ax, llms-txt, api-docs, sdk-docs, machine-readable-docs
npx claudepluginhub samber/developer-relations-skills --plugin developer-relations-skills93 skills in this plugin
/bluesky-dev-playbookRuns a devtool vendor's, developer advocate's or open-source maintainer's presence on Bluesky - go-or-skip verdict, people versus brand accounts, domain handles and the blue check, starter packs, developer custom feeds, discovery without a central algorithm, block lists, cross-posting from X or Mastodon, what a bot account may do. Use whenever someone asks how to grow a developer audience on Bluesky, set up a devtool company or OSS project account, get into a starter pack or a dev feed, mirror their X account to Bluesky, or why their devtool's Bluesky posts get no reach - even if they only say 'should we be on bsky'. Not for coding bots, feed generators or other AT Protocol apps. Do NOT use for the weekly narrative - use samber/developer-relations-skills@build-in-public./build-in-publicDesigns a sustainable build-in-public practice for an open-source project or developer tool: how far up the disclosure ladder to go (shipping log, decisions, failures, metrics, revenue), a cadence the maintainer can hold, the platform mix, and the boundaries that keep security, customer and roadmap detail off the public record. Use whenever someone mentions building in public, a devlog, weekly updates, an open-startup or transparency dashboard, sharing metrics or revenue openly, fear of copycats, oversharing, wanting to stop publishing numbers, or a stalled practice they want to restart, even if they never say "build in public". Covers solo maintainers, bootstrapped and funded devtools teams. Not for a one-time launch; use samber/developer-relations-skills@oss-launch.