Skip to content

aiskillstore/marketplace / skills/8beeeaaat/debug-tauri

debug-tauri

Verified

Automates Tauri WebView debugging using official plugins (tauri-plugin-log + screenshots) with process verification, automated screenshots, console logs, and state analysis. Use when debugging Tauri apps, investigating WebView issues, analyzing runtime errors, or troubleshooting UI problems.

FileKindSize
SKILL.mdskill md4.8 KB
references/IPC_COMMANDS.mdmarkdown3.9 KB
references/LOGGING.mdmarkdown4.8 KB
references/MIGRATION.mdmarkdown10.4 KB
references/REFERENCE.mdmarkdown5.2 KB
references/REPORT_TEMPLATE.mdmarkdown3.1 KB
references/SCREENSHOTS.mdmarkdown4.0 KB
references/TROUBLESHOOTING.mdmarkdown2.8 KB
scripts/analyze_logs.shexecutablescript3.6 KB
scripts/capture.shexecutablescript2.4 KB
scripts/validate_setup.shexecutablescript4.9 KB
skill-report.jsonconfig225.7 KB

scripts/capture.sh

View on GitHub
#!/bin/bash
# Tauri app screenshot helper script (DEPRECATED)
# Usage: ./capture.sh
#
# ⚠️  DEPRECATED: This script is legacy and macOS-only.
#
# πŸ’‘ Migrate to official plugin API:
#    import { captureMainWindow } from "tauri-plugin-debug-tools/screenshotHelper";
#    const screenshot = await captureMainWindow();
#
# Benefits of plugin API:
#   - Cross-platform (macOS/Windows/Linux)
#   - No screen recording permissions required
#   - Programmatic access from TypeScript
#   - Base64 PNG data returned directly

APP_NAME="${TAURI_APP_NAME:-tauri-app}"
OUTPUT_DIR="/tmp"

# Show deprecation warning
echo "⚠️  WARNING: This script is deprecated"
echo "═══════════════════════════════════════"
echo ""
echo "This legacy script only works on macOS and requires Screen Recording permissions."
echo ""
echo "πŸ’‘ Recommended: Use the official tauri-plugin-screenshots API instead:"
echo ""
echo "   import { captureMainWindow } from 'tauri-plugin-debug-tools/screenshotHelper';"
echo "   const screenshot = await captureMainWindow();"
echo ""
echo "Benefits:"
echo "  βœ… Cross-platform (macOS/Windows/Linux)"
echo "  βœ… No special permissions required"
echo "  βœ… Programmatic access from TypeScript"
echo ""
echo "Press Enter to continue with legacy script, or Ctrl+C to cancel..."
read -r
echo ""

function check_app_running() {
  if ! pgrep -x "$APP_NAME" > /dev/null; then
    echo "❌ Error: $APP_NAME is not running"
    echo "πŸ’‘ Start the app with your dev command (e.g., tauri dev)"
    exit 1
  fi
  echo "βœ… $APP_NAME is running"
}

function capture_screenshot() {
  local timestamp=$(date +%s)
  local output_path="$OUTPUT_DIR/tauri_debug_$timestamp.png"

  echo "πŸ“Έ Capturing screenshot..."

  if ! screencapture -x -T 0 "$output_path" 2>/dev/null; then
    echo "❌ Failed to capture screenshot"
    echo "πŸ’‘ Check System Preferences > Security & Privacy > Screen Recording"
    exit 1
  fi

  if [ ! -f "$output_path" ]; then
    echo "❌ Screenshot file not created"
    exit 1
  fi

  echo "βœ… Screenshot saved: $output_path"
  echo "$output_path"
}

function get_process_info() {
  echo "πŸ” Process information:"
  ps aux | grep "$APP_NAME" | grep -v grep | head -1
}

function main() {
  echo "πŸš€ Tauri Debug Helper"
  echo "===================="
  echo ""

  check_app_running
  echo ""

  get_process_info
  echo ""

  capture_screenshot
}

main
finishing-a-development-branchobra/superpowersUse when implementation is complete, all tests pass, and you need to decide how to integrate the workStars: 322kUpdated Claude CodeCodexVerifiedInstall
systematic-debuggingobra/superpowersUse when encountering any bug, test failure, or unexpected behavior, before proposing fixesStars: 322kUpdated Claude CodeCodexVerifiedInstall
test-driven-developmentobra/superpowersUse when implementing any feature or bugfix, before writing implementation codeStars: 322kUpdated Claude CodeCodexVerifiedInstall
skill-creatoranthropics/skillsCreate new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an existing skill, run evals to test a skill, benchmark skill performance with variance analysis, or optimize a skill's description for better triggering accuracy.Stars: 198kUpdated Claude CodeCodexVerifiedInstall