docs
How to edit the agents docs on getstream.io. Use when writing or updating agents documentation pages, sidebars or the SDK switcher.
- Star
- 8,225
- 分类
- 写作与翻译
- 许可证
- Apache-2.0
- 最近提交
- 2026年12月1日
.claude/skills/docs/SKILL.md
在 GitHub 上查看Docs live in the main site repo, typically located at workspace/getstream.io, under content/docs
Some general docs tips
- Keep it short
- Show examples before explaining details
- Write from the code, not from memory. Check the SDK (
sdks/<lang>) andacceleration/api/openapi.yamlbefore documenting an API, key or default
How a page reads
Write it so it needs no deslop pass. agents/_default/02-agents/creating-an-agent.md is the reference for how a page opens and flows, and Thierry's deslop commits in getstream.io (7ee27d28eb, 21c69fd256, edf81f51f2, 1d93015abe) show the cuts.
- Open with why the reader wants it and one real example, not a definition: "Your support agent shouldn't answer: Please solve the Navier-Stokes problem", not "A guardrail screens what a caller asks"
- Example first: the
agent.yamlor the call, then the command to try it (getstream agents test support --sync) and a question to ask. Pick an example the reader can run as is, such as a connector the app owns rather than one each user signs in to. Then explain only what the example doesn't show - Real example values (
dentist_ai, "Northwind Pizza, what can I get you?", "What is your return policy?"), neverfooormy-thing - One or two sentences per paragraph, written like a person: "It returns the connection", not "The answer is the connection". Contractions are fine. State facts, not "should": "is configurable", not "should be configurable"
- Where there are options, recommend one and say when to pick the other: "We recommend each user's own account for personal data, and a shared account for company tools"
- One H2 per thing the reader wants to do. A fact lives on one page: detail that has its own page is cut to a link. End with
## Going furtherand<Cards> - Say what a feature can't do in a plain sentence, under
## Limitationswhen there are several. A limit the reader can hit stays; a cap on a field goes - A table that sums up the page is fine when its last column links each row to its page (
| Path | What it holds | Learn more |)
Leave out:
- Validation rules, field caps and error codes ("refused with a 400", length caps, "refused rather than ignored"). An error the reader sees while trying the example is shown as printed, and a troubleshooting page lists the errors people really hit, by their message
- Internal mechanics the reader never touches: channel names, sync fingerprints, our staging clusters and test apps
- Raw HTTP paths when an SDK or the CLI does it. A call with no SDK method gets one curl block
- Client setup boilerplate in snippets: show the call
- Sentences that restate the code above them, and signposting ("The next section explains")
- Which SDK supports what "for now". When only some SDKs have a feature, one
<Admonition>names them - Bold lead-ins in bullets or prose (bold is for step titles), and hype ("amazed", "effortlessly")
Only what works
- A page says only what a user can install and run today, and you saw work end to end: run every snippet, curl and command, against staging if needed. Reading the code confirms a name, not a behaviour
- "Which SDKs support X" means released packages (npm, PyPI, Maven Central, pub.dev, the released CLI), not source on
main - Not proven yet? Leave it out and ticket it. Don't caveat it ("not tested yet")
Where things live
- Content:
getstream.io/content/docs, a plain directory of the getstream.io repo (it was GetStream/docs-content). Its authoring conventions are incontent/docs/AGENTS.md - Pages:
agents/<framework>/*.md; pages shared by every SDK go inagents/_default/ - Sidebars:
_sidebars/[agents][<framework>].json(baseURL,defaultLanguages,itemsof{ title, slug, markdown }).[agents][default].jsonis the/agents/docs/home - Framework slugs:
javascript,ios(shown as Swift),android(Kotlin),flutter(Dart),python,go-golang,dotnet-csharp,ruby,rust,php. A new slug needs a label inrouting.tsand a logo inpublic/docs-assets/icons/ - SDK switcher and product menu:
getstream.io/src/docs/utils/routing.tsandproductMenu.ts. A new sidebar must be reachable from them
Writing
- The page H1 comes from the sidebar
title, so don't put a#heading in the markdown - Use
$frameworkin links (/agents/docs/$framework/quickstart/) so shared pages work under every SDK - Components:
<Cards>,<Card icon title description href>,<Admonition type="info">,<Tabs>,<Steps>, mermaid fences.icontakes Remixicon names (an unknown name fails the build);logo="go"takes SDK logos - Only ASCII, and no em dashes. Links are root-relative, and slugs are lowercase with hyphens
Gotchas
- Every server SDK reads
agent.yamland syncs the directory in one request, skipping it when.agent_syncmatches. They sync only when you callsync(Pythonagent.sync(), .NETSyncAsync); a session never syncs. Say which SDK a behaviour applies to - Client SDKs (JavaScript in the browser, Swift, Android, Flutter) never sync or configure agents. Swift and browser JavaScript are handed a config id by the backend; Android and Flutter open an agent by its stored name
SyncRoutersrejects unknown keys inrouters/*.yaml(includingdescription)
Preview and ship
npm run devin getstream.io (Node 24), then openhttp://localhost:3000/agents/docs/<framework>/. Don't run builds or checks unless asked- Commit content on a getstream.io branch, never
main, and open an ordinary PR. It deploys when merged
相似的 Skill
精选
writing-fragments
MAmattpocock/skills336k近 7 天新增 5,004 个 star
writing-shape
MAmattpocock/skills336k近 7 天新增 5,004 个 star
writing-beats
MAmattpocock/skills336k近 7 天新增 5,004 个 star
perfect-docs
MAmattpocock/skills336k近 7 天新增 5,004 个 star
writing-skills
OBobra/superpowers331k近 7 天新增 5,757 个 star