Token导航 LogoToken导航TokenDH.com
前端设计操作浏览器github未标认证来源可访问许可证需确认审计异常

setup-agent-tail设置 Agent 尾部

Agent Skill

setup-agent-tail 用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要围绕仓库状态、代码变更或协作事项进行整理时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

294

周安装

12

GitHub Stars

1,204

下载量

94
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:setup-agent-tail(设置 Agent 尾部)
来源仓库:https://github.com/qdhenry/claude-command-suite
仓库路径:skills/setup-agent-tail
安装命令:
npx skills add https://github.com/qdhenry/claude-command-suite --skill setup-agent-tail
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/qdhenry/claude-command-suite --skill setup-agent-tail

简介

setup-agent-tail 用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息,适合在 Codex、Claude、Cursor、Gemini CLI 中围绕仓库状态、代码变更或协作事项进行整理时使用。

  • 它支持按来源仓库、安装命令和原始 README 核验具体用法,适用于开发协作与代码管理场景。
  • 通过 npx skills add 命令从指定 GitHub 仓库安装,需确认权限范围和维护状态后再部署。
  • 安装前建议检查是否会触发联网、命令执行或文件读写,避免误操作影响系统安全。
  • 适用宿主包括 Codex、Claude、Cursor、Gemini CLI,接入前应确认版本、权限和运行环境要求。

SKILL.md

<quick_start> Run the auto-detect workflow below. The skill will:

  1. Detect project framework and structure
  2. Propose a configuration
  3. Install agent-tail after user confirms
  4. Configure framework plugins, CLI scripts, and gitignore </quick_start>

<essential_principles>

  • Logs are written to tmp/logs/latest/ — this is agent-tail's standard output directory
  • The tmp/ directory must be gitignored
  • Browser log capture requires a framework plugin (Vite or Next.js) in addition to the CLI
  • For monorepos, use agent-tail-core init at root and agent-tail-core wrap in each package
  • Always confirm the proposed configuration with the user before making changes </essential_principles>

Read these files to determine the project setup:

  • package.json — check for framework dependencies (vite, next, react, etc.) and existing scripts
  • vite.config.ts / vite.config.js — Vite project indicator
  • next.config.ts / next.config.js / next.config.mjs — Next.js project indicator
  • turbo.json / nx.json / pnpm-workspace.yaml / lerna.json — monorepo indicators
  • .gitignore — check if tmp/ 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(), add AgentTailScript to layout, create browser log API route
  • Monorepo: Add agent-tail init to root dev script, wrap each package with agent-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.log are created
  • If browser logging was enabled, verify console output appears in the browser log file

<configuration_options> These options can be presented to the user during setup:

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 browser

Log format: All logs use timestamp + level + message format: [10:30:00.123] [LOG] Message here

Gitignore warning: Agent-tail warns on startup if tmp/ is not gitignored. Disable with warnOnMissingGitignore: false in plugin options. </configuration_options>

<anti_patterns> For Vite/Next.js projects, the CLI alone does not capture browser console logs. The framework plugin is required for browser log capture.

<success_criteria> Setup is complete when:

  • agent-tail is installed as a dev dependency
  • Framework plugin configured (if Vite or Next.js)
  • package.json dev script wraps services with agent-tail
  • tmp/ is in.gitignore
  • User has been told how to verify the setup works </success_criteria>

<reference_guides> Framework-specific configuration code: See references/framework-configs.md </reference_guides>

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

35.32%
按下载量换算33

Claude

33.54%
按下载量换算32

Cursor

19.73%
按下载量换算19

Gemini CLI

9.21%
按下载量换算9

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

未通过

权限和风险

操作浏览器

该 Skill 可能涉及浏览器控制能力,使用时可能读取或操作网页内容,需要在受控环境中确认权限边界。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills