adk-unit-guide
БесплатноБез исполняемых скриптовНе проверенWrites a hands-on developer guide for one ADK code unit — a minimal runnable example, how it works, a configuration-option table, advanced uses, limitations…
от google★ 22 468 звёзд на GitHubОб этом скилле
ADK code unit guide
A unit guide is granular usage documentation for one code unit, deeper than what ships on adk.dev — so detail that would bloat the published documentation has somewhere to live. The reader wants to call the unit from an application, so lead with working code.
Unit guides focus on public APIs and caller-visible behavior. Do not discuss internal implementation details (such as private methods, internal state mechanisms, or unexported helpers).
Voice
Write to help the reader understand, not to instruct them from above.
- Give the reason, not only the rule. Whenever the guide states a constraint, a default, or a recommendation, say why it is that way. A reader who knows the reason can handle the case the guide did not anticipate.
- Do not decide for the reader. Phrasings such as "most applications never need this" or "you will rarely" tell people what they want. State the trade-off and let them choose.
- Explain at the caller's level. Explaining what happens is required; explaining the machinery that makes it happen is not. If an explanation needs a private symbol to make sense, it is pitched at the wrong layer.
- Length follows understanding. Brevity is not the goal. Where a reader would have a follow-up question, answer it. Where the sentence already lands, leave it.
- Problem before syntax. Say what the reader is trying to do, then show the code.
- Every heading has at least one sentence under it before the next heading, and every code block has a sentence introducing what it does.
Sentence-level rules, following the Google developer documentation style guide:
present tense, no contractions, no parentheticals (use commas), no bare "This"
as a subject, no e.g. or etc., no superlatives, sentence case in headings,
and no heading deeper than H3.
What the difference looks like
From the BaseNode guide. Before:
Most applications never subclass
BaseNode, so the sections that follow cover the settings first.
That decides for the reader and gives them nothing to check their own case against. After:
You usually configure a node rather than subclass one, because the settings below cover what most graphs need. Subclassing earns its keep when you want behavior the settings cannot express, and that case is at the end.
Same length, same facts. The second one names the reason, so a reader can tell which of the two situations is theirs.
A second pair, from the JoinNode guide. Before:
Here three tasks run in parallel on the same input, and a
JoinNodecollects their results.
That opens in speech rather than documentation, and it drops the name of the pattern the reader would search for. After:
This example builds a fan-out/fan-in workflow. Three tasks run in parallel on the same input, and a
JoinNodeaggregates their results so that a final node can present all three together.
Inputs
Require the source file, or a class or method named inside it. Also read, when
they exist: its unit tests (they give you an example to adapt) and its design
document at docs/design/{topic}/{unit}/index.md.
Analyse before writing
- Purpose and intended use of the unit.
- Which classes depend on it, and which it depends on.
- Configuration options the unit itself introduces, ignoring inherited ones.
- Known limitations.
- Exclude internal implementation details such as private methods and attributes, internal helper functions, private execution state, or internal data structures.
Where the guide goes
Mirror the source path under docs/guides/, one directory per unit, guide named
index.md. Drop the leading underscore of a private module:
| Source | Guide |
|---|---|
src/google/adk/workflow/_function_node.py |
docs/guides/workflow/function_node/index.md |
src/google/adk/plugins/reflect_retry_tool_plugin.py |
docs/guides/plugins/reflect_retry_tool_plugin/index.md |
Use named files instead of index.md only when one source file has genuinely
separate usage modes — docs/guides/agents/llm_agent/ holds single_turn.md
and task.md for that reason.
Update an existing guide in place, keeping the existing wording wherever the code has not changed, so the diff shows only what the change actually altered.
Then add the guide to docs/guides/README.md under the right category heading,
as * [Title](path/index.md) - one-line summary. That index is the only table
of contents; a guide missing from it is unreachable.
When a guide is not required
scripts/check_new_py_files.py enforces this convention on the Python files a
change adds under src/google/adk/. Some it passes over without asking, and
the rest you can waive, so work out which case you are in before writing a
guide the rule does not ask for.
Three subtrees sit outside the rule, because nothing in them is published:
src/google/adk/internal/, src/google/adk/platform/internal/, and
src/google/adk/v1/.
Elsewhere a file is exemp
Установить adk-unit-guide в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл adk-unit-guide?
Writes a hands-on developer guide for one ADK code unit — a minimal runnable example, how it works, a configuration-option table, advanced uses, limitations, and links to related samples — to `docs/guides/{topic}/{unit}/index.md`, then lists it in the index at `docs/guides/README.md`. Its reader is a developer calling the unit from their own application, at more depth than the published adk.dev documentation carries. Use when asked to "write a unit guide for {class}", "document how to use {feature}", "add a guide for {file}", or after shipping a user-facing class, node, or plugin. Don't use for internals documentation aimed at someone changing or extending the unit — that is a design document under `docs/design/` (use `adk-unit-design`). Don't use to write a runnable sample under `contributing/samples/` (use `adk-sample-creator`).
Как установить скилл adk-unit-guide?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл adk-unit-guide запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
docx
Use this skill whenever the user wants to create, read, edit, or manipulate Word documents (.docx files) or Word templates (.dotx files). Triggers include…
от AnthropicUse this skill whenever the user wants to do anything with PDF files. This includes reading or extracting text/tables from PDFs, combining or merging multiple…
от Anthropicxlsx
Use this skill any time a spreadsheet file is the primary input or output. This means any task where the user wants to: open, read, edit, or fix an existing…
от Anthropicpptx
Use this skill any time a .pptx or .potx file is involved in any way — as input, output, or both. This includes: creating slide decks, pitch decks, or…
от Anthropic