name: yoyopod-logs description: Tail YoYoPod runtime/service logs from Raspberry Pi disable-model-invocation: true allowed-tools:
- Read
- Bash(yoyopod target:*) argument-hint: "[line_count] [--errors] [--filter <subsystem>] [--follow]"
Config
Use deploy/pi-deploy.yaml as the shared deploy contract and
deploy/pi-deploy.local.yaml for machine-specific overrides such as
host, SSH user, dev lane checkout, and branch. The tracked dev default
is /opt/yoyopod-dev/checkout; prod slots live under /opt/yoyopod-prod.
yoyopod target merges the files directly, and yoyopod target config edit is the preferred way to create or update the local override.
If the file does not exist yet, run yoyopod target config edit first.
That command creates deploy/pi-deploy.local.yaml automatically before
opening it.
Argument Parsing
Parse the arguments string provided after /yoyopod-logs:
- Line count: If a bare number is present (for example
/yoyopod-logs 100), map it to--lines <count>. Default: 100. - --errors flag: Pass through to
yoyopod target logs --errors. - --filter value: Pass through to
yoyopod target logs --filter <value>. - --follow flag: Pass through to
yoyopod target logs --follow.
Multiple flags can be combined.
Steps
-
Build the helper command. Use:
yoyopod target logs ...Add
--lines,--errors,--filter, and--followbased on the parsed arguments. -
If lane state matters, also run:
yoyopod target mode status -
Present the log output. Return the raw log lines directly. Do not summarize or truncate unless the user explicitly asks.
After presenting the logs, remind the user they can ask follow-up questions about the log content, such as "why did the call drop?" or "what errors happened in the last minute?"
Architecte Docker Compose
DevOps
Concoit des configurations Docker Compose optimisees.
Rapport de Post-Mortem
DevOps
Rédige des rapports post-mortem d'incidents structurés et blameless.
Créateur de Runbooks
DevOps
Crée des runbooks opérationnels clairs pour les procédures DevOps courantes.