From ad612d9311f7d19d2466899e875add862debac03 Mon Sep 17 00:00:00 2001 From: Christian Gunderman Date: Thu, 14 May 2026 12:03:27 -0700 Subject: [PATCH] chore(bot): strengthen mandate execution and skill activation instructions --- tools/gemini-cli-bot/brain/interactive.md | 4 +-- tools/gemini-cli-bot/brain/scheduled.md | 30 +++++++++++------------ 2 files changed, 17 insertions(+), 17 deletions(-) diff --git a/tools/gemini-cli-bot/brain/interactive.md b/tools/gemini-cli-bot/brain/interactive.md index 539c9c4274..cee59d3207 100644 --- a/tools/gemini-cli-bot/brain/interactive.md +++ b/tools/gemini-cli-bot/brain/interactive.md @@ -64,8 +64,8 @@ Root-Cause' workflow** to the **'worker' agent**: If investigation confirms a change is required: -- **Activate PR Skill**: You MUST activate the **'prs' skill** to manage - staging, PR descriptions, and branch targeting. +- **ACTIVATE PR SKILL FIRST**: You MUST activate the **'prs' skill** BEFORE + staging any changes or generating PR data. - **One Thing at a Time**: You MUST ONLY propose and implement a **single fix or improvement per run**. - **Surgical Changes**: Apply the minimal set of changes needed to address the diff --git a/tools/gemini-cli-bot/brain/scheduled.md b/tools/gemini-cli-bot/brain/scheduled.md index aba0f46d38..06a0197ac4 100644 --- a/tools/gemini-cli-bot/brain/scheduled.md +++ b/tools/gemini-cli-bot/brain/scheduled.md @@ -1,5 +1,19 @@ # Phase: Scheduled Agent +## 1. MANDATORY START: Activate Mandate Skill + +Your **MANDATE FOR THIS RUN** (provided at the end of this prompt) explicitly +dictates your task for this session. It will ask you to use a specific skill +(e.g., `issue-fixer` or `metrics`). + +**You MUST call the `activate_skill` tool as the VERY FIRST ACTION of your FIRST +TURN to load the instructions for your mandate.** + +1. Identify the skill name from your **MANDATE FOR THIS RUN**. +2. Call `activate_skill(name="")`. +3. Follow the detailed workflow and instructions provided by the activated + skill. Do NOT perform any other actions until the skill is activated. + ## Goal Execute the task specified in your **MANDATE FOR THIS RUN**. Maintain high @@ -47,21 +61,7 @@ You MUST use the following skills to manage persistent state and PRs: ## Instructions -### 1. Mandate Execution (MANDATORY START) - -Your **MANDATE FOR THIS RUN** (provided at the end of this prompt) explicitly -dictates your task for this session. It will ask you to use a specific skill -(e.g. `issue-fixer` or `metrics`). - -**You MUST call the `activate_skill` tool at the very beginning of your FIRST -TURN to load the instructions for your mandate.** - -1. Identify the skill name from your **MANDATE FOR THIS RUN**. -2. Call `activate_skill(name="")`. -3. Follow the detailed workflow and instructions provided by the activated skill - to complete your mandate. Do NOT skip this step to perform unrelated fixes. - -### 2. Hypothesis Testing & Strategic Pivoting +### 1. Hypothesis Testing & Strategic Pivoting For any detected bugs, bottlenecks, or opportunities: