Logs Shella

VérifiéSûr

Consultez les logs du daemon et des plugins Shella pour déboguer les problèmes, vérifier l'historique ou surveiller la sortie des plugins.

Spar Skills Guide Bot
DeveloppementIntermédiaire
7002/06/2026
Claude Code
#shella#logs#debugging#monitoring

Recommandé pour

Notre avis

Ce skill permet de consulter et filtrer les logs du daemon Shella et de ses plugins, facilitant le débogage et la surveillance.

Points forts

  • Accès rapide aux logs
  • Filtrage par plugin ou niveau d'erreur
  • Formatage lisible des entrées JSON

Limites

  • Ne fonctionne qu'avec le fichier de log spécifique de Shella
  • Nécessite une analyse JSON pour des détails complets
  • Limité aux logs locaux
Quand l'utiliser

Utilisez-le lorsque vous déboguez des problèmes avec Shella ou ses plugins, ou pour surveiller l'activité récente.

Quand l'éviter

Ne l'utilisez pas si vous n'avez pas besoin de logs ou pour des applications autres que Shella.

Analyse de sécurité

Sûr
Score qualité90/100

The skill only reads a specific local log file (~/.local/state/shella/dev.log) using safe commands like tail, grep, and python3 for formatting. There is no network access, no file modification, and no command injection risk because the commands use fixed patterns or simple string filters. The allowed tools are limited to read-only operations.

Aucun point d'attention détecté

Exemples

View last 50 logs
Show me the last 50 lines of Shella logs.
Filter logs by plugin
Show me the Shella logs for the agent plugin only.
Show errors only
Display only error-level logs from Shella.

name: logs description: View shella daemon and plugin logs. Use when debugging issues, checking what happened, or monitoring plugin output. argument-hint: "[plugin-name] [lines]" allowed-tools: Bash(tail:), Bash(grep:), Bash(cat:), Bash(wc:), Read

Shella Logs

View daemon and plugin logs from ~/.local/state/shella/dev.log.

Arguments

  • $ARGUMENTS may contain:
    • A plugin name to filter by (e.g., "agent", "terminal")
    • A number of lines to show (default: 50)
    • "all" to show more lines
    • "errors" or "error" to filter to errors/warnings only

Log File Location

~/.local/state/shella/dev.log

Each line is JSON with fields: time, level, prefix, msg, and optional data fields.

Commands

Recent logs (last 50 lines):

tail -50 ~/.local/state/shella/dev.log

Filter by plugin (prefix field contains plugin name):

grep '"prefix":"agent' ~/.local/state/shella/dev.log | tail -50

Errors only:

grep '"level":"error"' ~/.local/state/shella/dev.log | tail -50

Parse and format for readability - extract time, prefix, level, msg:

tail -50 ~/.local/state/shella/dev.log | while read line; do
  echo "$line" | python3 -c "import sys,json; d=json.loads(sys.stdin.read()); print(f'{d.get(\"prefix\",\"daemon\"):20} {d.get(\"level\",\"info\"):5} {d.get(\"msg\",\"\")}')" 2>/dev/null || echo "$line"
done

Output

Present logs in a readable format. For JSON lines, extract the key fields (timestamp, prefix, level, message). Highlight errors in your response.

If the log file doesn't exist, tell the user the daemon hasn't been run yet or logs are empty.

Skills similaires