Skip to content

Commit 278bc05

Browse files
committed
Release of v2.1.0
1 parent e3e7c84 commit 278bc05

3 files changed

Lines changed: 22 additions & 2 deletions

File tree

.gemini/commands/explain.toml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,15 @@
11
description = "Explains the code or text provided in plain English."
22

33
prompt = """
4-
You are a helpful coding tutor.
5-
Please explain the following code or text in simple, easy-to-understand terms:
4+
You are a senior technical educator who specializes in holistic system design.
5+
When explaining the following code or concept, ensure your explanation encompasses its complete functional scope within the product ecosystem, rather than focusing on a single sub-feature or use case.
66
7+
Follow these guidelines:
8+
1. **The Big Picture:** Explain the fundamental problem this concept solves for the entire system.
9+
2. **Comprehensive Analogies:** Use real-world analogies that illustrate the full breadth of its capabilities.
10+
3. **Interconnectedness:** Describe how it interacts with other core components.
11+
4. **Simple Language:** Keep it accessible but technically accurate.
12+
13+
Concept to explain:
714
{{args}}
815
"""

ChangeLog

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
* 2.1.0
2+
- Updated Workflow: API Versioning & Pre-Task Validation
3+
- Added anti-pattern to Configuration Protocol
4+
- Modified explain command to return structured explanations.
5+
16
* 2.0.1
27
- Added unit tests for custom_config.py hook script.
38
- Added unit tests for cleanup_config.py hook script.

GEMINI.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,15 @@
2424
- **NO PERSISTENCE:** Never save the confirmed API version to `save_memory`.
2525
- **READ-ONLY:** Only execute `search`, `search_stream`, or `get` methods.
2626
- **SURYGICAL UPDATES:** When modifying files, use the `replace` tool with minimal context to avoid unintended regressions.
27+
- **PROTOCOL ADHERENCE:** Strictly prohibited from executing un-linted Python code or un-validated GAQL queries.
2728

2829
#### 1.3. Workflow: API Versioning & Pre-Task Validation
30+
...
31+
#### 1.4. Technical Gatekeeping (Protocol Enforcement)
32+
- **NO BYPASS:** Bypassing the GAQL Validation (3.1) or Python Linting (3.2) protocols is a **System Failure**.
33+
- **EXPLICIT LOGGING:** Before calling `run_shell_command` for Python or any API search tool, you MUST explicitly state which protocol step you are currently executing (e.g., "Protocol 3.2: Executing Ruff linting on /tmp/script.py").
34+
- **PRE-FLIGHT GATE:** For every Python script, the `ruff` check is a blocking operation. If `ruff` returns an error, you MUST fix it and re-lint before the script is even considered for the `saved/code/` directory.
35+
- **GAQL INTEGRITY:** Any GAQL query presented in chat or sent to the API MUST be preceded by a "Validation Block" confirming it has passed the 4-step sequence in Section 3.1.
2936
1. **Search (Exact):** `google_web_search` with query `google ads api release notes`.
3037
2. **Fetch (Source):** Extract content from `developers.google.com/google-ads/api/docs/release-notes`.
3138
3. **Identify:** Find the latest MAJOR stable version (e.g., `v23`).
@@ -56,6 +63,7 @@ If the `web_fetch` tool is unavailable and you cannot complete the standard vali
5663
#### 2.2. Configuration Protocol
5764
- **Discovery:** Check `config/` for language-specific files (`google-ads.yaml`, `google_ads_config.rb`, etc.).
5865
- **Execution:** Always set `GOOGLE_ADS_CONFIGURATION_FILE_PATH` to the absolute path in `config/` when running `python3`.
66+
- **Anti-Pattern [CRITICAL]:** NEVER point to configuration files inside `client_libs/`. These are unconfigured templates. Using them will trigger a `ValueError` due to placeholders like `INSERT_USE_PROTO_PLUS_FLAG_HERE`.
5967
- **Generation:** Do NOT include a hardcoded path in `load_from_storage()`. Use environment variables or default search paths.
6068

6169
#### 2.3. File Persistence

0 commit comments

Comments
 (0)