adk-unit-design
БесплатноБез исполняемых скриптовНе проверенWrites an as-built architecture document for one ADK code unit — purpose, execution flow, data flow, cross-class dependencies, extension points, and the parts…
от google★ 22 468 звёзд на GitHubОб этом скилле
ADK code unit design
A unit design documents a code unit as implemented, the way a unit test exercises it as implemented. Nothing proposed or aspirational belongs in one. The reader is deciding what they may safely change, so answer "what breaks if I touch this?" — not "how do I call this?".
Inputs
Require the source file, or a class or method named inside it. Also read, when they exist: the base classes and interfaces the unit implements, its unit tests (the best evidence of intended behaviour), and example usage.
Analyse before writing
Answer each of these from the source. Anything the code does not show stays out of the document — do not infer a design intent from a name.
- Purpose and intended use of the unit.
- Execution flow, and the data that flows in and out.
- Upstream dependencies, and which classes depend on this unit.
- Extension surfaces: abstract methods, hooks, callbacks, configurable fields.
- Constraints — what a subclass or caller must not change, and why.
- Operational limitations.
Where the document goes
Mirror the source path under docs/design/, one directory per unit, document
named index.md. Drop the leading underscore of a private module:
| Source | Design document |
|---|---|
src/google/adk/workflow/_function_node.py |
docs/design/workflow/function_node/index.md |
src/google/adk/events/event.py |
docs/design/events/event/index.md |
If a document already exists at that path, update it in place and keep the existing wording wherever the code has not changed, so the diff shows only what the change actually altered.
docs/design/ does not exist in this repository yet — the first design document
creates it. docs/guides/ is the established sibling tree; match its directory
shape.
Link to GitHub, not to local paths
These documents render on GitHub, where a local filesystem path is dead.
Rewrite {repo_root}/src/google/adk/{topic}/{unit}.py#L93 as
https://github.com/google/adk-python/blob/main/src/google/adk/{topic}/{unit}.py#L93.
Structure
Follow references/design-template.md section by section.
Установить adk-unit-design в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл adk-unit-design?
Writes an as-built architecture document for one ADK code unit — purpose, execution flow, data flow, cross-class dependencies, extension points, and the parts that must not change — to `docs/design/{topic}/{unit}/index.md`. It describes the code as implemented, not a proposed design, and its reader is a developer about to change or extend that unit. Use when asked to "write a design doc for {file}", "document the architecture of {class}", "document the extension points of {unit}", or after adding a core class, node type, or plugin base. Don't use for documentation aimed at developers who only call the unit from their own application — that is a usage guide with runnable examples under `docs/guides/` (use `adk-unit-guide`). Don't use to answer a framework-wide architecture question (use `adk-architecture`).
Как установить скилл adk-unit-design?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл adk-unit-design запускает скрипты?
Нет, скилл состоит только из инструкций (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