tui-tester

โดย google-gemini

คำแนะนำจากผู้เชี่ยวชาญสำหรับการทดสอบพฤติกรรมและผลลัพธ์ภาพของ Gemini CLI โดยใช้ระบบอัตโนมัติของเทอร์มินัล

npx skills add https://github.com/google-gemini/gemini-cli --skill tui-tester

TUI Tester Skill

This skill provides the operational manual for verifying Gemini CLI behavioral changes and visual output using terminal automation.

Core Responsibilities

  • Verify Behavior: Confirm that code changes result in the expected terminal interactions.
  • Visual Validation: Ensure the TUI renders correctly across different terminal sizes and states.
  • Regression Testing: Use automation to prevent breaking existing interactive workflows.

Critical Protocol

When performing TUI testing, you must adhere to these strict rules:

1. Initialization

YOUR ABSOLUTE FIRST ACTION MUST BE: Activate the agent-tui skill. This provides the underlying tools needed for terminal automation.

2. Environment Setup (macOS / Parallel Safe)

Ensure the global daemon is running and the live preview is open:

if ! agent-tui sessions >/dev/null 2>&1; then
  tmux kill-session -t agent-tui 2>/dev/null || true
  agent-tui daemon stop 2>/dev/null || true
  rm -f /tmp/agent-tui*
  tmux new-session -d -s agent-tui 'agent-tui daemon start --foreground > /tmp/agent-tui-daemon.log 2>&1'
  sleep 1
fi
agent-tui live start --open

3. Session Management

  • Session IDs: Always use the session_id returned by agent-tui run for subsequent interactions.
  • Atomic Execution: Execute exactly one command per turn. Do not pipeline actions.
  • The Loop: Action -> Wait -> Screenshot -> Verify -> Next Action.

4. Gemini CLI Specifics

  • Build First: Always run npm run build or npm run build:all before testing local changes.
  • Bypass Trust: Set GEMINI_CLI_TRUST_WORKSPACE=true to avoid focus-stealing modals.
  • Isolate Config: Use GEMINI_CLI_HOME to prevent interference with your personal settings.

Workflow Example

# Start the CLI
env GEMINI_CLI_TRUST_WORKSPACE=true agent-tui run node packages/cli/dist/index.js

# Wait for the prompt
agent-tui wait "│" --assert

# Send a command
agent-tui type "/help"
agent-tui press Enter

# Verify output
agent-tui wait "Available Commands" --assert

Error Recovery

If a wait times out, take a fresh screenshot to diagnose the state. If you see os error 61, restart the daemon using the tmux method.

Skills เพิ่มเติมจาก google-gemini

greeter
google-gemini
ทักษะการทักทายที่เป็นมิตร
official
code-reviewer
google-gemini
การตรวจสอบโค้ดอัตโนมัติสำหรับการเปลี่ยนแปลงในเครื่องและคำขอดึงข้อมูลระยะไกล พร้อมการวิเคราะห์เชิงโครงสร้างในด้านความถูกต้อง การบำรุงรักษา และความปลอดภัย รองรับทั้งการเปลี่ยนแปลงในระบบไฟล์ท้องถิ่น (ที่จัดเตรียมและไม่ได้จัดเตรียม) และ PR ระยะไกล (ตามหมายเลขหรือ URL) พร้อมการเช็คเอาต์อัตโนมัติผ่าน GitHub CLI วิเคราะห์โค้ดในเจ็ดมิติ: ความถูกต้อง การบำรุงรักษา ความสามารถในการอ่าน ประสิทธิภาพ ความปลอดภัย การจัดการกรณีขอบ และความครอบคลุมของการทดสอบ รันชุดตรวจสอบก่อนการทำงานแบบเลือกได้ (เช่น npm run preflight) เพื่อตรวจจับ...
official
review-duplication
google-gemini
ใช้ทักษะนี้ในระหว่างการตรวจสอบโค้ดเพื่อตรวจสอบฐานโค้ดอย่างเชิงรุกหาฟังก์ชันการทำงานที่ซ้ำซ้อน การสร้างล้อขึ้นมาใหม่ หรือการไม่นำสิ่งที่มีอยู่แล้วกลับมาใช้ใหม่…
official
reconciliation
google-gemini
กระทบยอดค่าใช้จ่ายที่โหลดแล้วกับฐานข้อมูลใบแจ้งหนี้ที่แยกวิเคราะห์ไว้ล่วงหน้า โดยระบุความไม่สอดคล้อง เช่น จำนวนเงินไม่ตรงกัน ใบแจ้งหนี้ที่ขาดหายไป และชื่อผู้ค้าไม่ตรงกัน…
official
agent-tui
google-gemini
Main Agents: Do NOT use this skill directly. If you need to test the TUI, invoke the `tui_tester` subagent. Drive terminal UI (TUI) applications…
official
async-pr-review
google-gemini
เรียกใช้ทักษะนี้เมื่อผู้ใช้ต้องการเริ่มการตรวจสอบ PR แบบอะซิงโครนัส เรียกใช้การตรวจสอบพื้นหลังบน PR หรือตรวจสอบสถานะของ async PR ที่เริ่มไว้ก่อนหน้านี้…
official
ci
google-gemini
ทักษะเฉพาะสำหรับ Gemini CLI ที่ให้ประสิทธิภาพสูงและล้มเหลวเร็ว
official
critique
google-gemini
ความเชี่ยวชาญในการตรวจสอบและแก้ไขสคริปต์ในคลังข้อมูลและเวิร์กโฟลว์ของ GitHub Actions เพื่อให้มั่นใจถึงความแข็งแกร่งทางเทคนิคและความปลอดภัย
official