AgentSkillsCN

tilt-logs

使用基于时间的过滤查询Tilt local_resource进程的日志。用于调试Tilt服务、查看最近日志、以跟随模式流式传输日志或按资源名过滤日志时使用。触发条件:“tilt日志”、“检查tilt输出”、“[资源]发生了什么”、“调试tilt”或任何Tilt管理进程的日志检查。

SKILL.md
--- frontmatter
name: tilt-logs
description: Query logs from Tilt local_resource processes with time-based filtering. Use when debugging Tilt services, viewing recent logs, streaming logs in follow mode, or filtering logs by resource name. Triggers on "tilt logs", "check tilt output", "what's happening in [resource]", "debug tilt", or any log inspection for Tilt-managed processes.

tilt-logs

Enhanced log viewing for Tilt with --since, --tail, and -f filtering that native tilt logs lacks.

Quick Reference

bash
# View logs from specific resource
tilt-logs <resource>

# Filter by time (5m, 1h, 30s, 1d)
tilt-logs <resource> --since 5m

# Last N lines
tilt-logs --tail 100

# Stream logs (follow mode)
tilt-logs -f
tilt-logs <resource> -f

# JSON output for parsing
tilt-logs --json | jq .

# Custom Tilt instance
tilt-logs --host 192.168.1.100 --port 10351

Environment Variables

  • TILT_HOST - Tilt API host (default: localhost)
  • TILT_PORT - Tilt API port (default: 10350)

Common Patterns

Debug recent failures:

bash
tilt-logs <resource> --since 5m

Check startup logs:

bash
tilt-logs <resource> --tail 50

Monitor live output:

bash
tilt-logs <resource> -f

Parse structured output:

bash
tilt-logs --json --since 1h | jq 'select(.level == "error")'

Options

FlagShortDescription
--since <dur>-sShow logs since duration (5m, 1h, 30s)
--tail <num>-nShow last N log lines
--follow-fStream new logs
--jsonOutput as JSON lines
--no-colorDisable colored output
--host <host>Tilt host
--port <port>Tilt port
--help-hShow help