mcpField
A
adk-style

adk-style

github.com/googleDevelopment22.0k107 installsUpdated today
Repository

About adk-style

A style reference for contributors working in `src/google/adk/` and `tests/unittests/`. It maps common Python development tasks and failed checks to focused conventions.

Key features

  1. 01Topic-based references for ADK conventions
  2. 02Guidance on imports and visibility
  3. 03Typing and Pydantic guidance
  4. 04Formatting, docs, and logging rules
  5. 05Testing and file-organization guidance

Use cases

  1. 01Checking conventions before editing ADK code
  2. 02Finding guidance for a failed pre-commit or CI check

Install

Copy the command and run it in a terminal.

$npx skills add https://github.com/google/adk-python --skill adk-style

After installing, type/adk-stylein Claude Code to confirm it loaded.

Bundled files

References and scripts installed along with SKILL.md.

references/
async.md
documentation.md
file-organization.md
formatting.md
imports.md
logging.md
pydantic.md
testing.md
typing.md
visibility.md

Details

From the project README

ADK Style Guide

Conventions for src/google/adk/ and tests/unittests/. Most are enforced by a pre-commit hook or a CI job, so a violation blocks the PR rather than surfacing in review. Read the one reference for the topic you are touching.

Pick a reference

TaskReference
Adding a .py file; deciding public vs private; __init__.py and __all__visibility.md
Writing import lines; relative vs absolute; circular imports; TYPE_CHECKING; lazy importsimports.md
Annotating args and returns; AgentMode vs raw mode strings; _NodePathBuilder, _BranchPath, and build_node; Optional vs | None; keyword-only args; isinstance; asserts; mypy; # type: ignore and casttyping.md
Defining a Pydantic model, validator, private attribute, or on-wire payloadpydantic.md
Indentation, line length, quotes; running the formatter; what each hook checksformatting.md
Writing a docstring or an explanatory commentdocumentation.md
Emitting a log record; naming the module logger; picking a levellogging.md
Anything that performs I/O — network, disk, databaseasync.md
Where a new file goes; license header; where its test goes and what to call itfile-organization.md
Writing or restructuring a unit test; the testing_utils fakestesting.md

A check failed — where to look

Failing checkReference
check-new-py-prefixvisibility.md
compliance-checkslogging.md (logger name), typing.md (from __future__ import annotations), imports.md (cli/ import direction)
pyink, isort, ruff, addlicense, codespellformatting.md
Mypy Check CI jobtyping.md
tests/unittests/test_import_loading.pyimports.md

Comments

Markdown supported