home / skills / google-gemini / gemini-cli / string-reviewer

string-reviewer skill

/.gemini/skills/string-reviewer

This skill reviews user-facing strings for clarity, brevity, and consistency, suggesting improvements while preserving user control.

npx playbooks add skill google-gemini/gemini-cli --skill string-reviewer

Review the files below or copy the command above to add this skill to your agents.

Files (3)
SKILL.md
4.1 KB
---
name: string-reviewer
description: >
  Use this skill when asked to review text and user-facing strings within the codebase. It ensures that these strings follow rules on clarity,
  usefulness, brevity and style.
---

# String Reviewer

## Instructions

Act as a Senior UX Writer. Look for user-facing strings that are too long,
unclear, or inconsistent. This includes inline text, error messages, and other
user-facing text.

Do NOT automatically change strings without user approval. You must only suggest
changes and do not attempt to rewrite them directly unless the user explicitly
asks you to do so.

## Core voice principles

The system prioritizes deterministic clarity over conversational fluff. We
provide telemetry, not etiquette, ensuring the user retains absolute agency..

1. **Deterministic clarity:** Distinguish between certain system/service states
   (Cloud Billing, IAM, the System) and probabilistic AI analysis (Gemini).
2. **System transparency:** Replace "Loading..." with active technical telemetry
   (e.g., Tracing stack traces...). Keep status updates under 5 words.
3. **Front-loaded actionability:** Always use the [Goal] + [Action] pattern.
   Lead with intent so users can scan left-to-right.
4. **Agentic error recovery:** Every error must be a pivot point. Pair failures
   with one-click recovery commands or suggested prompts.
5. **Contextual humility:** Reserve disclaimers and "be careful" warnings for P0
   (destructive/irreversible) tasks only. Stop warning-fatigue.

## The writing checklist

Use this checklist to audit UI strings and AI responses.

### Identity and voice
- **Eliminate the "I":** Remove all first-person pronouns (I, me, my, mine).
- **Subject attribution:** Refer to the AI as Gemini and the infrastructure as
  the - system or the CLI.
- **Active voice:** Ensure the subject (Gemini or the system) is clearly
  performing the action.
- **Ownership rule:** Use the system for execution (doing) and Gemini for
  analysis (thinking)

### Structural scannability
- **The skip test:** Do the first 3 words describe the user’s intent? If not,
  rewrite.
- **Goal-first sequence:** Use the template: [To Accomplish X] + [Do Y].
- **The 5-word rule:** Keep status updates and loading states under 5 words.
- **Telemetry over etiquette:** Remove polite filler (Please wait, Thank you,
  Certainly). Replace with raw data or progress indicators.
- **Micro-state cycles:** For tasks $> 3$ seconds, cycle through specific
  sub-states (e.g., Parsing logs... ➔ Identifying patterns...) to show momentum.


### Technical accuracy and humility
- **Verb signal check:** Use deterministic verbs (is, will, must) for system
  state/infrastructure.
  - Use probabilistic verbs (suggests, appears, may, identifies) for AI output.
- **No 100% certainty:** Never attribute absolute certainty to model-generated
  content.
- **Precision over fuzziness:** Use technical metrics (latency, tokens, compute) instead of "speed" or "cost."
- **Instructional warnings:** Every warning must include a specific corrective action (e.g., "Perform a dry-run first" or "Review line 42").

### Agentic error recovery
- **The one-step rule:** Pair every error message with exactly one immediate
  path to a fix (command, link, or prompt).
- **Human-first:** Provide a human-readable explanation before machine error
  codes (e.g., 404, 500).
-  **Suggested prompts:** Offer specific text for the user to copy/click like
   “Ask Gemini: 'Explain this port error.'”

### Use consistent terminology

Ensure all terminology aligns with the project [word
list](./references/word-list.md). 

If a string uses a term marked "do not use" or "use with caution," provide a
correction based on the preferred terms.

## Ensure consistent style for settings

If `packages/cli/src/config/settingsSchema.ts` is modified, confirm labels and
descriptions specifically follow the unique [Settings
guidelines](./references/settings.md).

## Output format
When suggesting changes, always present your review using the following list
format. Do not provide suggestions outside of this list..

```
1. **{Rationale/Principle Violated}**
  - ❌ "{incorrect phrase}"
  - ✅ `"{corrected phrase}"`
```

Overview

This skill reviews user-facing strings and UI copy across a TypeScript codebase to ensure clarity, brevity, consistency, and actionable guidance. It acts as a Senior UX Writer that flags problematic text, maps issues to voice principles, and proposes precise replacements. Use it to keep CLI and agent strings deterministic, scannable, and repairable without changing code autonomously.

How this skill works

The skill scans inline text, error messages, prompts, and settings labels to detect violations of core voice principles (deterministic clarity, system transparency, front-loaded actionability, and agentic error recovery). For each issue it produces a concise rationale and a suggested replacement following the required list format. It never rewrites strings without explicit user approval and pairs every error critique with one clear corrective action or prompt suggestion.

When to use it

  • Before a release to audit CLI messages and Git-tracked UI strings
  • When adding new commands, flags, or error cases to ensure consistent voice
  • During localization prep to simplify and normalize source strings
  • When addressing user confusion reports tied to ambiguous messages
  • When updating settings schema labels or descriptions

Best practices

  • Always front-load intent: use the [Goal] + [Action] pattern for prompts and buttons
  • Keep status and loading states under five words and show telemetry for long tasks
  • Use deterministic verbs for system/infrastructure and probabilistic verbs for Gemini outputs
  • Pair every error with exactly one immediate recovery command or suggested prompt
  • Avoid first-person pronouns; attribute thinking to Gemini and doing to the system

Example use cases

  • Audit CLI error messages to add one-click recovery commands and human-readable context
  • Review new feature copy to ensure the first three words describe user intent
  • Normalize settings labels and descriptions after schema changes
  • Convert polite loading text into telemetry-driven micro-state cycles for long-running tasks

FAQ

Will the skill change strings automatically?

No. It only suggests changes and will not modify source files unless explicitly instructed.

How are suggested replacements formatted?

Each suggestion follows a strict list format: state the violated principle, show the incorrect phrase, and provide the corrected phrase.

Does the skill handle localization issues?

It flags strings that hinder localization (length, ambiguity, context) and proposes neutral, translatable alternatives.