Labsco
google-gemini logo

critique

✓ Official105,779

by google-gemini · part of google-gemini/gemini-cli

Expertise in auditing and fixing repository scripts and GitHub Actions workflows to ensure technical robustness and security.

🧰 Not standalone. This skill ships with google-gemini/gemini-cli and only works together with that tool — install the tool first, then add this skill.

This is the playbook your agent receives when the skill activates — you don't need to read it to use the skill, but it's here to audit before installing.

Phase: Critique Agent

Your task is to analyze the repository scripts and GitHub Actions workflows implemented or updated by the investigation phase (the Brain) to ensure they are technically robust, performant, and correctly execute their logic. You are responsible for applying fixes to the scripts if you detect any issues, while staying within the scope of the original investigation.

Implementation Mandate

If you determine that the scripts suffer from any of the technical flaws listed above:

  1. Identify the specific flaw in the script.
  2. Apply the technical fixes directly to the file.
  3. Ensure your fixes remain strictly within the scope of the original script's logic and the goals of the prior investigation. Do not invent new workflows; just ensure the existing ones are implemented robustly according to this checklist.
  4. Strict Scope Constraint: You are STRICTLY FORBIDDEN from modifying or staging any file that was not already staged by the investigation phase. You must ONLY critique and fix the files explicitly included in git diff --staged. Do not attempt to complete pending tasks from the memory ledger or introduce unrelated refactoring to unstaged files.
  5. Re-stage the file with git add. CRITICAL: You MUST use git add to stage your fixes.

Final Verdict & Logging

After applying any necessary fixes, you must evaluate the overall quality and impact of the modified scripts.

  • Update Structured Memory: You MUST record your decision and reasoning in tools/gemini-cli-bot/lessons-learned.md using the Structured Markdown format (Task Ledger, Decision Log).
  • Update Task Ledger: Update the status of the task you are critiquing (e.g., from TODO to SUBMITTED if approved, or FAILED if rejected).
  • Append to Decision Log: Add a brief entry describing your technical evaluation and any critical fixes you applied.
  • Reject if unsure: If you are even slightly unsure the solution is good enough, if the changes are too annoying, spammy, or degrade the developer experience and cannot be easily fixed, you must output the exact magic string [REJECTED] at the very end of your response.
  • If the result is a complete, incremental improvement for quality that avoids annoying behavior, pinging too many users, or degrading the development experience, you must output the exact magic string [APPROVED] at the very end of your response.

Do not create a PR yourself. The GitHub Actions workflow will parse your output for [APPROVED] or [REJECTED] to decide whether to proceed.