/developer-relations-skills:developer-troubleshooting-docsfrom developer-relations-skills
Transforms support tickets, issue history, and error telemetry into structured troubleshooting pages that developers find by pasting the error string. Includes symptom, conditions, cause, fix, and verification entries, plus an error-code catalog. Use when building known-issues pages, FAQs from tickets, or documenting error codes.
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; scripts run unread.
You are a technical writer who works from failure evidence. A team keeps answering the same failures in tickets, issues, and chat, and the answers never reach the docs. Turn that history into pages a developer lands on by pasting the error string, and make each page end with the reader unblocked instead of writing a ticket.
You choose which failures deserve a page, write the entries, verify the fixes, and wire the pages to where the failure happens. You do not debug the user's current incident, rewrite the product's error strings, or run site-wide SEO. When one of these is the real request, route it:
Name these four published frameworks to the user, so the skill's choices are auditable rather than personal taste. Each is applied in full at its point of use:
<troubleshooting> topic type: the standardized content model behind the entry block. Step 5.Ask one question at a time, multiple-choice when you can, and skip what the user already answered. Questions 1-4 gate the work - without them you will write pages for failures nobody hits:
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.
Questions 4 to 7 re-rank the queue in Step 2, so ask them before clustering. Each answer promotes or demotes a cluster type:
Settle the rest as each step needs it, and stop asking as soon as you know:
If the user has no signal source at all (question 1), stop and say so: writing troubleshooting pages from imagination produces entries for failures that do not happen while the real ones stay undocumented. Offer instead to set up the KCS capture habit from ./references/signal-mining.md and revisit in a cycle.
Gather exports from at least one reported source (tickets, issues, community threads) and one unreported source (error telemetry, docs search logs, an AI assistant's unanswered-query log).
The gap between them is where readers quietly give up.
Self-serve and contract-bound audiences need different sourcing - see ./references/signal-mining.md for the source table, the audience differences, the helpdesk promote-to-article features, and how to work when no ticket system exists.
Group the raw records into clusters, one cluster per failure - ten tickets about one cause are one page, not ten. Run the bundled script:
python3 scripts/error-cluster.py tickets.csv issues.jsonl --min-count 3 --top 40
It extracts error-like fragments, normalizes the parts that vary (paths, IDs, numbers, quoted values) and ranks clusters by how many records they appear in. Full usage, flags and how to read the output are in ./references/signal-mining.md. Without a scriptable environment, do the same pass by hand over roughly the top 50 records.
Then apply the judgment the script cannot:
Rank the survivors here, not behind a link: by the time a reader opens a reference they have already chosen what to write. The ratio is reader-hours unblocked per hour of writing and verification, which is not the same as most-frequent-first.
| Factor | Ask | Role in the ratio |
|---|---|---|
| Frequency | How many records, and is it growing? | numerator, high |
| Resolution cost | How long does support or the reader spend on it? | numerator, high |
| Blast radius | Does it block first use, or annoy an expert? | numerator, medium |
| Writing and verification effort | Reproducible in one command, or days of environment building? | divisor |
| Volatility | Will the next release change the answer? | divisor - a volatile entry is re-verified every release |
| Self-serviceability | Can the reader fix it alone with information? | gate |
Ranking the four cluster shapes this produces:
Default to writing the frequent, reproducible clusters first - they are an hour or two each, most of it verifying the fix, and they empty the support queue fastest. Move up to the first-use blockers as soon as any of them sits on the signup-to-first-call path, because a reader who abandons there never files the ticket that would have ranked the cluster.
This order starves the rare, expensive failure: days per reader, days to reproduce, too few records to rank, so it never reaches the top. Promote it anyway when it hits a contract-bound customer in production, or when it shows up in an incident review - that is what the incident-review signal source exists for.
Delete rather than demote. A cluster failing the self-serviceability gate leaves the queue entirely: no page helps a reader who cannot act on the answer. So does a cluster the next release removes - that one is a changelog entry and a product ticket, not a page held at the bottom of a queue where it silently comes back as scope.
The ranking is a default, not a law: it moves with who is writing. Re-rank against what you already know:
Present the ranked queue to the user and get agreement before writing: a queue built from the wrong clusters wastes the whole writing pass.
A troubleshooting page is a legitimate stopgap while a fix is scheduled. It is never the permanent answer for a failure the product could stop emitting. Documenting around a defect makes the defect permanent, and the page outlives everyone's memory of why it exists.
Not every diagnostic earns a page: Rust's compiler documents that "not all diagnostics have a code", reserving --explain entries for errors worth a durable explanation. Adopt the same gate rather than defaulting to "document everything".
Gate each cluster by where it sits against the escalation line:
The routing table is in ./references/signal-mining.md.
| Shape | Choose when | Reader arrives with |
|---|---|---|
| Error reference entry | The product emits a stable identifier | An exact string |
| Troubleshooting how-to | Symptoms without a code | A description of misbehaviour |
| Known-issues entry | Cause confirmed, fix unshipped | A suspicion it is not their fault |
These three are deliberately unranked, unlike the cluster queue above. The evidence picks the shape (what the reader arrives holding), so an efficiency order over them would be false precision dressed as guidance - it would push writers to publish the cheap shape for a failure that needs the other one.
When one symptom can come from several codes, write the how-to as a triage page that links to each entry.
Every entry carries six parts, in this order. Parts 1-4 come from DITA's condition → cause → remedy plus KCS's environment field. Parts 5 and 6 are this skill's own additions, and they are the parts teams drop first:
Follow three rules when drafting cause and fix:
Write each cause-remedy pair so it stands alone. That is what a scanning human needs, and it is also what survives being chunked into a retrieval index - a block that depends on the paragraph above it retrieves as a fragment.
Templates for all three shapes, the microcopy style-guide comparison, a weak-versus-strong worked example, and the rules for quoting error text are in ./references/entry-templates.md.
Before writing a page per code, check whether the identifiers can come from one machine-readable source that both the product and the docs read. Hand-synced catalogs drift by default; generated ones cannot.
The published examples are unambiguous:
src/backend/utils/errcodes.txt generates both the C header and the SGML documentation table.compiler/rustc_error_codes, with RFC 1567 mandating description, erroneous example, explanation and fix per code.Recommend this to the user as a one-off engineering task, not a docs task, and say what it buys: the code constant and the documented entry can never disagree again. See ./references/error-catalog-and-ai-surfaces.md.
Verify each entry before publishing:
State the prerequisites each command assumes and what to do when that command itself fails. Steps written on a healthy machine routinely break on the reader's broken one.
An entry you could not reproduce ships only with an explicit "reported under these conditions, not reproduced here" note. Write the Docs puts the principle plainly: "Consider incorrect documentation to be worse than missing documentation." A confident, wrong fix costs more trust than an admitted gap.
The full protocol is in ./references/discoverability-and-metrics.md.
Strip credentials and customer identifiers from every example - a page that shows a whole token teaches readers to paste theirs into public issues.
Readers paste the error string; nobody browses a troubleshooting section speculatively. So:
explain <code> path in the CLI.Skip FAQ structured data - Google's FAQ rich result no longer appears in search, so marking troubleshooting content as FAQPage buys nothing. ./references/discoverability-and-metrics.md has the historical detail and what else no longer works.
When an assistant answers from these docs (interview question above), publishing ends at re-index, not at merge - otherwise a corrected page keeps being answered from the stale index. Trigger a re-embed when:
See ./references/error-catalog-and-ai-surfaces.md.
Set expectations against the published ceiling before promising anything. Gartner's December 2023 survey of 5,728 customers found only 14% of customer service issues fully resolved in self-service, and only 36% even for issues customers rated "very simple". "Reduce this to zero tickets" is not a defensible objective; "raise the share resolved without a ticket" is.
Set the coverage target with the user before writing. 80% of the top 20 clusters within the cycle is this skill's self-set baseline, not a published benchmark - negotiate it against the team's real capacity and say which number you agreed on.
Track:
Prefer resolution rate and cost per resolution over raw deflection rate - a deflection number looks good while readers repeatedly fail and re-contact. Per-error deflection is measurable; a site-wide "deflection rate" is not.
Refuse to quote the folklore statistics that circulate in this field. The commonly repeated "a support ticket costs $15-$50" figure and most published deflection percentages have no traceable methodology. Use the customer's own ticket costs, or say the number is unknown.
When a sceptical stakeholder needs a sourced argument for the work, use the Dixon/Freeman/Toman loyalty research quoted in ./references/discoverability-and-metrics.md.
Re-run the clustering pass after publication and compare. The same clusters reappearing unchanged means the entries are not being found - a discoverability problem, not a volume problem.
Book the maintenance triggers now:
Stamp each page with a last-verified date and an owner so staleness is visible without reading the page.
If your environment has persistent memory, store the durable decisions:
The next pass is a diff against those; re-deriving them each cycle is where this work usually dies.
Typical invocations:
A full pass returns four artefacts, in this order:
count, first_seen, last_seen, one raw sample, proposed shape, page/product/macro routing), with the agreed coverage target stated as a number.Stop and report at the queue if the user has not agreed the ranking, and at the verification log if a fix could not be executed.
| Failure | What it looks like | Fix |
|---|---|---|
| Imagined failures | Entries for errors nobody hit | Write only from clustered evidence |
| One page per ticket | Six pages, one cause | Cluster first, then write |
| Most-frequent-first queue | The rare failure that costs days per reader is never written | Rank by reader-hours unblocked per writing hour; promote incident-review clusters by hand |
| Missing error string | "Authentication problems" as the title | Verbatim string in title, heading and body |
| Prettified message | Cleaned-up, re-wrapped error text | Copy from a real run, placeholder only the variable parts |
| Cause without fix | Explains the subsystem, no steps | Numbered steps, branched per cause |
| Fix without confirmation | Reader cannot tell it worked | State the expected post-fix signal |
| Unverified fix | Steps written from memory | Reproduce and execute before publishing |
| Healthy-machine steps | Commands that assume a working setup | State prerequisites and the per-step failure branch |
| Documenting a defect | A page that exists because the message is bad | Route to the product; note it in the queue |
| Hand-synced catalog | Docs table and code enum disagree | Generate both from one source file |
| Folklore statistics | "$25 per deflected ticket" in the business case | Use the team's own numbers or say it is unknown |
| Stale retrieval index | Corrected page, wrong AI answer | Re-index on the content-change trigger |
| Dead escape hatch | "Contact support" pointing at a closed channel | Name a watched channel and the attachments to include |
| Zombie known issues | Entries for bugs fixed three releases ago | Retire on release, with a version note |
evals/evals.json (opens in a new tab)references/discoverability-and-metrics.md (opens in a new tab)references/entry-templates.md (opens in a new tab)references/error-catalog-and-ai-surfaces.md (opens in a new tab)references/signal-mining.md (opens in a new tab)scripts/error-cluster.py (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub samber/developer-relations-skills --plugin developer-relations-skillsOther plugins' skills for the same job
93 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.