You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: .agents/skills/adk-review/SKILL.md
+15-8Lines changed: 15 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -24,24 +24,30 @@ This skill guides AI assistants in performing a comprehensive, rigorous review o
24
24
-**Boundary and Null Conditions**: Ensure robust handling for boundary conditions and null values (e.g., `None`, empty collections, zero, or empty strings) using validation or fallback defaults.
25
25
-**Preconditions & Invariants**: Validate that preconditions and state invariants are checked before performing core logic.
26
26
27
-
### 2. Style and Convention Compliance
27
+
### 2. Code Quality & Design
28
+
-**Complexity & Readability**: Identify overly complex functions or classes. Suggest refactoring (e.g., splitting functions, extracting helper classes) to improve readability and maintainability. Ensure code is self-documenting.
29
+
-**Design Patterns**: Check if appropriate design patterns are used. Avoid anti-patterns. Ensure high cohesion and low coupling.
30
+
-**Performance & Efficiency**: Look for performance bottlenecks, such as unnecessary database queries, redundant computations, inefficient loops, or excessive memory allocation.
31
+
-**Security & Privacy**: Verify that inputs are validated, sensitive data is handled securely, and there are no potential security vulnerabilities (like injection, resource exhaustion, or exposure of internal state).
32
+
33
+
### 3. Style and Convention Compliance
28
34
-**ADK Style Guide**: Cross-reference all code changes with the guidelines in the `adk-style` skill (including Pydantic v2 patterns, lazy logging evaluation, and file structure).
29
35
-**Pre-commit Hooks**: Ensure changed files are formatted and linted. Remind the user to run `pre-commit run --files <files>` if hooks like `isort`, `pyink`, `addlicense`, or `mdformat` are not configured automatically.
-**Public API Stability**: Verify whether changes modify, remove, or restrict public-facing interfaces, classes, methods, argument lists, or CLI structures (e.g., in the public package namespaces under `src/google/adk/`). Breaking changes are unacceptable without a formal deprecation cycle under Semantic Versioning.
33
39
-**Execution & Resumption**: If changing workflows, nodes, or state management, ensure compatibility with the ADK 2.0 event execution lifecycle and session resumption (HITL/checkpoints).
34
40
-**Concurrency & Safety**: Check for race conditions or resource leaks. Ensure long-running or shared resources (like plugins, exporters, and connections) are closed/disposed of safely.
35
41
36
-
### 4. Documentation Impact (`docs/design` and `docs/guides`)
42
+
### 5. Documentation Impact (`docs/design` and `docs/guides`)
37
43
-**Design & Architecture**: Determine if the change updates a core design contract. If so, check if design docs under `docs/design/` require updates or new documents need to be written.
38
44
-**Guides**: If the changes introduce a new feature or change a public API/workflow pattern, check if the guides under `docs/guides/` need updates.
39
45
40
-
### 5. Sample Compatibility & Updates
46
+
### 6. Sample Compatibility & Updates
41
47
-**Sample Integrity**: Verify if existing samples under `contributing/samples/` are affected by the change.
42
48
-**New Samples**: If the changes introduce a key new capability, assess whether a new sample should be added to demonstrate the feature (following `adk-sample-creator` conventions).
43
49
44
-
### 6. Test Coverage & Quality
50
+
### 7. Test Coverage & Quality
45
51
-**Coverage**: Ensure that all modified or new code paths have corresponding unit or integration tests under `tests/`.
46
52
-**ADK Test Rules**: Ensure test implementations adhere to the 9 rules in the `adk-style` testing reference (e.g., using deterministic IDs, event normalization, and clean up utilities).
47
53
@@ -55,12 +61,13 @@ When the `adk-review` skill is triggered, you MUST execute the following steps:
55
61
Run `git status` and `git diff` to identify exactly which files have been modified, added, or deleted.
56
62
57
63
### Step 2: Perform the Multi-Dimensional Review
58
-
Analyze the retrieved diffs file-by-file against the six dimensions in the Checklist. Identify any errors, deviations, or missing files (such as docs, tests, or samples).
64
+
Analyze the retrieved diffs file-by-file against the seven dimensions in the Checklist. Identify any errors, deviations, or missing files (such as docs, tests, or samples).
59
65
60
66
### Step 3: Generate and Present a Review Report
61
67
Generate a clear, beautifully formatted Markdown report categorized by priority:
62
-
- 🔴 **Critical Errors / Bugs**: Syntax, type safety violations, race conditions, or resource leaks.
Copy file name to clipboardExpand all lines: .agents/skills/adk-sample-creator/SKILL.md
+4-2Lines changed: 4 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -91,6 +91,7 @@ Each sample should have a `README.md` with the following structure:
91
91
-**Sample Inputs**: Examples of inputs to test with. Each prompt must be wrapped in backticks. If a prompt has an explanation, always add a blank line between the prompt and the explanation, and indent the explanation by two spaces.
92
92
-**Graph**: Visualization of the graph flow (Mermaid recommended for workflows).
93
93
-**How To**: Explanation of key techniques used (e.g., `ctx.run_node`).
94
+
-**Related Guides**: Links to relevant developer guides in `docs/guides/` that explain the concepts or classes used.
94
95
95
96
#### README Example Template:
96
97
@@ -116,12 +117,13 @@ graph TD
116
117
START --> MyNode
117
118
```
118
119
119
-
````
120
-
121
120
## How To
122
121
123
122
Explain the details.
124
123
124
+
## Related Guides
125
+
126
+
-[Guide Title](../../docs/guides/path/to/guide.md) - Brief description of what the guide covers.
Copy file name to clipboardExpand all lines: .agents/skills/adk-unit-guide/SKILL.md
+10-2Lines changed: 10 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -28,6 +28,7 @@ This skill creates a detailed developer guide for new or updated code file or di
28
28
- Look for an existing guide in the `/docs/guides/***` directory of this repository.
29
29
- If a guide already exists, update the existing guide incrementally and prioritize preserving the previous content as much as possible.
30
30
- If no guide exists, create a guide file for the new code unit in the `/docs/guides/***` directory of this repository, using the relative path of the code unit. For example, if the code unit is called `/topic/function/class.ext`, create a guide in the location `/docs/guides/topic/function/class/index.md`.
31
+
-**Update the Index**: Whenever a new guide is created, or an existing guide's title/summary changes, update the index file `/docs/guides/README.md`. Ensure the guide is listed under the correct category with a link and a brief summary.
31
32
32
33
### Guide structure and content
33
34
@@ -50,6 +51,8 @@ Use the following structure and instructions to create the guide for the code un
50
51
- Present a single, minimum implementation of the code unit to demonstrate its use.
51
52
- Show enough of the containing classes to make it clear where the code could be used.
52
53
- Use unit test code as a starting point for the code example, if available.
54
+
- When writing a sample agent, do not set the `model` attribute.
55
+
- For workflow node samples, prefer using a simple Python function rather than extending `BaseNode` to demonstrate the node's logic, unless class extension is explicitly required for the use case.
53
56
54
57
## How it works
55
58
@@ -60,7 +63,8 @@ Use the following structure and instructions to create the guide for the code un
60
63
61
64
## Configuration options
62
65
63
-
- If the code unit has configuration options, document them in a table detailing parameters, types, default values, and descriptions.
66
+
- If the code unit has configuration options (e.g., settings, configuration objects), document them in a table detailing parameters, types, default values, and descriptions.
67
+
- **Do NOT** list references of all attributes or methods of the classes. Exhaustive API references belong in auto-generated reference documentation, not in guides. Guides should focus on how to use the code unit.
64
68
65
69
## Advanced applications
66
70
@@ -73,4 +77,8 @@ Use the following structure and instructions to create the guide for the code un
73
77
74
78
- Mention any limitations of the code unit, if known.
75
79
76
-
```
80
+
## Related samples
81
+
82
+
- Link to relevant samples in the `contributing/` directory that demonstrate the use of this code unit.
Copy file name to clipboardExpand all lines: AGENTS.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -51,4 +51,4 @@ For detailed architecture patterns, component descriptions, and core interfaces,
51
51
52
52
## Development Setup
53
53
54
-
The project uses `uv` for package management and Python 3.11+. Please refer to the **`adk-setup`** skill at `.agents/skills/adk-setup/SKILL.md` for detailed instructions.
54
+
The project uses `uv` for package management and Python 3.10+. Please refer to the **`adk-setup`** skill at `.agents/skills/adk-setup/SKILL.md` for detailed instructions.
0 commit comments