Skip to content

secondsky/claude-skills / plugins/gemini-cli/skills/gemini-cli

gemini-cli

Verified

Google Gemini CLI for second opinions, architectural advice, code reviews, security audits. Leverage 1M+ context for comprehensive codebase analysis via command-line tool.

FileKindSize
SKILL.mdskill md11.0 KB
references/gemini-experiments.mdmarkdown12.7 KB
references/helper-functions.mdmarkdown1000 B
references/models-guide.mdmarkdown3.9 KB
references/prompting-strategies.mdmarkdown1.7 KB
scripts/install-gemini-coach.shexecutablescript4.1 KB
scripts/setup-slash-command.shexecutablescript3.8 KB
scripts/test-connection.shexecutablescript3.1 KB

scripts/test-connection.sh

View on GitHub
#!/bin/bash
# Test Gemini CLI and gemini-coach installation
# Part of gemini-cli-integration skill

echo "━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━"
echo "Testing Gemini CLI Integration"
echo "━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━"
echo ""

# Test 1: Check if Gemini CLI is installed
echo "1️⃣  Checking Gemini CLI installation..."
if ! command -v gemini &> /dev/null; then
  echo "   ❌ Gemini CLI not found"
  echo ""
  echo "   Install with:"
  echo "     npm install -g @google/gemini-cli"
  echo ""
  exit 1
else
  echo "   ✅ Gemini CLI found"
  gemini --version 2>&1 | sed 's/^/   /'
fi

echo ""

# Test 2: Check if gemini-coach is installed
echo "2️⃣  Checking gemini-coach installation..."
if ! command -v gemini-coach &> /dev/null; then
  echo "   ❌ gemini-coach not found"
  echo ""
  echo "   Install with:"
  echo "     ./scripts/install-gemini-coach.sh"
  echo ""
  exit 1
else
  echo "   ✅ gemini-coach found at: $(which gemini-coach)"
fi

echo ""

# Test 3: Check if ~/.local/bin is in PATH
echo "3️⃣  Checking PATH configuration..."
if echo "$PATH" | grep -q "$HOME/.local/bin"; then
  echo "   ✅ ~/.local/bin is in PATH"
else
  echo "   ⚠️  ~/.local/bin is NOT in PATH"
  echo ""
  echo "   Add to ~/.bashrc or ~/.zshrc:"
  echo "     export PATH=\"\$HOME/.local/bin:\$PATH\""
  echo ""
fi

echo ""

# Test 4: Test gemini-coach quick command
echo "4️⃣  Testing gemini-coach with quick question..."
echo "   Running: gemini-coach quick \"What is 2+2?\""
echo ""

if output=$(gemini-coach quick "What is 2+2?" 2>&1); then
  echo "   ✅ gemini-coach executed successfully"
  echo ""
  echo "   Response preview:"
  echo "$output" | head -5 | sed 's/^/   /'
  echo ""
else
  echo "   ❌ gemini-coach failed"
  echo ""
  echo "   Error:"
  echo "$output" | sed 's/^/   /'
  echo ""
  echo "   Common issues:"
  echo "   • Not authenticated: Run 'gemini' and follow auth prompts"
  echo "   • Rate limit exceeded: Wait 1-5 minutes"
  echo "   • Network issue: Check internet connection"
  echo ""
  exit 1
fi

# Test 5: Check if /ask-gemini slash command is installed
echo "5️⃣  Checking /ask-gemini slash command..."
if [ -f "$HOME/.claude/commands/ask-gemini.md" ]; then
  echo "   ✅ /ask-gemini command found"
else
  echo "   ⚠️  /ask-gemini command not found"
  echo ""
  echo "   Install with:"
  echo "     ./scripts/setup-slash-command.sh"
  echo ""
fi

echo ""
echo "━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━"
echo "✅ All tests passed!"
echo "━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━"
echo ""
echo "You can now use:"
echo "  gemini-coach quick \"Your question\""
echo "  gemini-coach review src/file.ts"
echo "  gemini-coach architect \"Question\" ."
echo "  gemini-coach security-scan ./src"
echo ""
echo "Or from Claude Code sessions:"
echo "  /ask-gemini Your question here"
echo ""
rea-analysis-optimizationmorluto/reaOptimize REA providers and shared analysis workflows for agent context, latency, CPU, and memory while preserving correctness and Evidence. Use for analysis bottlenecks and cache or query design; CI/test-suite optimization belongs to rea-ci-tests-audit.Stars: 469kUpdated Claude CodeCodexVerifiedInstall
rea-ci-tests-auditmorluto/reaAudit REA CI and test suites for correctness, fixture drift, false passes, and measured performance; use for suite or workflow investigations and efficiency changes, rather than ordinary feature testing or a single test failure.Stars: 469kUpdated Claude CodeCodexVerifiedInstall
rea-tool-designmorluto/reaAudit, investigate, design, or change REA investigation tools, CLI/MCP contracts, provider capabilities, and Evidence semantics.Stars: 469kUpdated Claude CodeCodexVerifiedInstall
ponytail-auditDietrichGebert/ponytailQuality audit of the whole repo: bugs, security, real load, missing tests, speed, and what to delete. Most important first.Stars: 194kUpdated Claude CodeCodexVerifiedInstall