AGENT SKILL

ADK 提交信息与 PR 描述编写

adk-git

为 adk-python 仓库编写提交信息和拉取请求(PR)描述:Conventional Commits 的类型和范围、说明变更原因的标题行,以及 PR 模板要求的关联 issue 和测试计划部分。当编写或改写提交信息、在拉取请求前压缩提交、起草 PR 描述,或检查某项变更是否已成形可合并时使用。不用于通用 git 操作,如变基、解决冲突、挑选提交或分支调整;这些无需技能。不用于判断变更内容(使用 adk-review),也不用于代码风格和命名(使用 adk-style)。

License 许可
Apache-2.0
所属仓库
google/adk-python
最近更新
2026-11-14
Stars
★ 2.2w
Forks
4.4k

01 前言 Front Matter

name
adk-git
description
Writes commit messages and pull request descriptions for the adk-python repository: Conventional Commits types and scopes, subject lines that say why a change was made, and the linked-issue and testing-plan sections the PR template requires. Use when writing or rewording a commit message, squashing commits before a pull request, drafting a PR description, or checking that a change is shaped to land. Don't use for generic git mechanics such as rebasing, resolving conflicts, cherry-picking, or branch surgery; those need no skill. Don't use to judge the content of a change (use adk-review) or for code style and naming (use adk-style).

03 SKILL.md 正文

Commit and Pull Request Conventions

Commit message format

Conventional Commits:

<type>(<scope>): <description>

The type decides where the commit lands in CHANGELOG.md. release-please generates the changelog from merged commit subjects, so the wrong type either files the change under the wrong heading or drops it from the release notes entirely.

Type Changelog section
feat Features
fix Bug Fixes
perf Performance Improvements
docs Documentation
refactor, test, build, ci, style, chore hidden, no entry

The mapping lives in .github/release-please-config.json. A type that is not listed there produces no changelog entry at all.

Scope is optional. Use a short module name with no underscores (fix(cli):, feat(a2a):, fix(sessions):) or leave it off.

Subject line

Say why the change exists, not which lines moved. A reviewer who reads only the subject should understand the motivation.

Write Not
fix(sessions): prevent duplicate events when resuming HITL fix(sessions): check interrupt_id before appending
feat(workflow): support parallel tool execution feat(workflow): add asyncio.gather call in execute_tools_node
refactor: make graph public for dev UI serialization refactor: make graph a public field on Workflow

Rules:

  1. Imperative mood: add, not added.
  2. Lowercase the first word after the colon. release-please copies the subject into CHANGELOG.md verbatim, and the great majority of merged commits are lowercase, so capitalizing makes one line stand out.
  3. No trailing period.
  4. Keep the subject under about 72 characters. Nothing enforces this, but each commit renders as one changelog line.
  5. Reference the issue in the body, not the subject: Fixes #1234 or Closes #1234, or the full issue URL when the issue lives in another repository.

Self-check: read the subject back and ask whether it says why someone made the change. If it only names the edit, rewrite it.

Commit body

Add a blank line, then a short concrete explanation. For a feature, show the new capability or a usage line. For a fix, say what caused the failure and how the change addresses it.

feat(workflow): support JSON string parsing in schema validation

Parse JSON strings into dicts or Pydantic models when input_schema or
output_schema is defined on a node.
fix(sessions): prevent duplicate events when resuming HITL

interrupt_id was not checked before appending, so resuming twice appended the
same event twice. Ignore interrupts that were already processed.

Fixes #1234

Before committing

pre-commit reformats and checks staged files, and the same hooks run again in CI on every pull request, so a commit made with hooks skipped fails there.

pre-commit install                  # once per clone
pre-commit run --files {paths}      # check only what changed

The hooks include isort, pyink, addlicense, mdformat, ruff, codespell, and repository-local compliance checks; see .pre-commit-config.yaml. If pre-commit is not installed, point the user at the adk-setup skill rather than committing unformatted code.

Pull requests

  • Every PR except a small documentation or typo fix needs a linked issue. Put Closes: #{issue_number} in the PR description, or describe the problem and solution inline following the issue templates.
  • Fill in the Testing Plan section of .github/pull_request_template.md, including a summary of passing pytest results.
  • Do not merge on GitHub. The Do Not Merge on GitHub check fails on every PR to main by design; a maintainer lands the change and it is synced back to the repository. GitHub then shows the PR as closed with a merged label rather than merged, and the landed commit carries the original authorship. That red check is expected and is not something to fix.

04 同仓库更多 Skills

google
google/adk-python

BigQuery 图查询分析

bigquery-graph

针对属性图使用图查询语言(GQL)或 SQL/PGQ 进行查询的技能。包括路径查找、多跳遍历、拓扑连接、最短路径、节点可达性、边连通性和语义图查询。

数据分析师数据分析与报告
★ 2.2w
google
google/adk-python

BigQuery AI 与机器学习分析

bigquery-ai-ml

利用 BigQuery 内置的机器学习与生成式 AI 能力进行高级数据分析。当您需要编写 SQL 查询以执行时间序列预测、数值预测、异常值或异常检测、寻找关键驱动因素、语义搜索或向量搜索、文本分类、相似度计算、内容摘要、语言翻译、模型评估、按语义条件筛选、衡量干预措施的因果效应、计算列之间的相关性、检测变化点或结构性突变、提取趋势或季节性成分,或利用 BigQuery 中的生成式 AI 能力时使用。不适用于常规的 BigQuery 数据集、表或作业管理请求。

数据分析师数据分析与报告
★ 2.2w
google
google/adk-python

代码审查与定制反馈

code-review-skill

审查代码,并根据会话状态中开发者的个人画像提供量身定制的反馈。

软件开发工程师测试与质量保障
★ 2.2w
google
google/adk-python

天气信息查询

weather-skill

基于参考数据提供天气信息的技能。

通用知识岗位天气信息查询
★ 2.2w
google
google/adk-python

天气信息查询

weather-skill

基于参考数据和脚本提供天气信息的技能。

通用知识岗位天气信息查询
★ 2.2w
google
google/adk-python

天气信息查询

weather-skill

一种基于参考数据提供天气信息的技能。

知识工作者网页搜索与信息研究
★ 2.2w