setup-agent-tail
БесплатноБез исполняемых скриптовНе проверенConfigure agent-tail log aggregation for the current project. Auto-detects framework (Vite, Next.js, plain Node, monorepo) and sets up CLI runner, browser log…
от qdhenry★ 1 360 звёзд на GitHubОб этом скилле
- Detect project framework and structure
- Propose a configuration
- Install agent-tail after user confirms
- Configure framework plugins, CLI scripts, and gitignore
Read these files to determine the project setup:
package.json— check for framework dependencies (vite, next, react, etc.) and existing scriptsvite.config.ts/vite.config.js— Vite project indicatornext.config.ts/next.config.js/next.config.mjs— Next.js project indicatorturbo.json/nx.json/pnpm-workspace.yaml/lerna.json— monorepo indicators.gitignore— check iftmp/is already ignored
Classify the project as one of:
- vite — Vite-based project (React, Vue, Svelte, etc.)
- nextjs — Next.js project
- monorepo — Turborepo, Nx, pnpm workspaces, or Lerna
- node-cli — Plain Node.js / any other project (CLI-only setup)
Step 2: Gather user preferences
Use AskUserQuestion to confirm detection and gather preferences:
Question 1: "I detected a [framework] project. Is this correct?"
- Yes, proceed
- No, it's actually [other options]
Question 2: "Which services should agent-tail manage?"
- Based on detected scripts in package.json (e.g., "dev", "api", "worker")
- Let user add custom service names and commands
Question 3: "Configure output destinations?"
- Default (tmp/logs/latest/) (Recommended)
- Custom directory
- Custom directory with combined.log disabled
Question 4: "Set up browser console log capture?"
- Yes (Recommended) — if Vite or Next.js detected
- No, server logs only
- [Skip this question for node-cli projects]
Step 3: Install agent-tail
# Detect package manager from lockfile
# bun.lock → bun
# pnpm-lock.yaml → pnpm
# yarn.lock → yarn
# package-lock.json → npm
<pkg-manager> add -D agent-tail agent-tail-core
Important: The agent-tail umbrella package has a broken bin field that prevents the CLI from being linked. You must also install agent-tail-core explicitly — this is the package that provides the actual agent-tail-core CLI binary. Use agent-tail-core (not agent-tail) as the command name in all scripts.
Step 4: Configure framework plugin
For each detected framework, apply the appropriate configuration. See references/framework-configs.md for exact code.
- Vite: Add
agentTail()plugin to vite.config - Next.js: Wrap config with
withAgentTail(), addAgentTailScriptto layout, create browser log API route - Monorepo: Add
agent-tail initto root dev script, wrap each package withagent-tail wrap - Node CLI: No plugin needed, just CLI configuration
Step 5: Configure package.json scripts
Update package.json scripts to use agent-tail-core CLI. Transform existing dev scripts:
{
"scripts": {
"dev": "agent-tail-core run '<service1>: <original-command>' '<service2>: <original-command>'"
}
}
If user specified excludes or muting, add flags:
{
"scripts": {
"dev": "agent-tail-core run --exclude '[HMR]' --mute worker '<services>'"
}
}
Step 6: Update .gitignore
Add tmp/ to .gitignore if not already present.
Step 7: Verify setup
After configuration, tell the user:
- Run their dev script to verify logs appear in
tmp/logs/latest/ - Check that individual service logs and
combined.logare created - If browser logging was enabled, verify console output appears in the browser log file
Output directory: Where logs are written (default: tmp/logs/latest/)
Excludes: Filter noisy log lines by substring or regex:
- Common Vite excludes:
[HMR],[vite],Download the React DevTools - Common Next.js excludes:
[Fast Refresh],compiled successfully
Service muting: Hide specific services from terminal output while preserving log files:
- Useful for noisy frontend dev servers when focused on backend work
Browser log capture: Capture console.*, unhandled errors, and unhandled promise rejections from the b
Установить setup-agent-tail в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл setup-agent-tail?
Configure agent-tail log aggregation for the current project. Auto-detects framework (Vite, Next.js, plain Node, monorepo) and sets up CLI runner, browser log plugins, and output destinations. Use when setting up agent-tail, configuring dev server logging, or piping logs for AI agent consumption.
Как установить скилл setup-agent-tail?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл setup-agent-tail запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic