agentation by benjitaylor/agentation
npx skills add https://github.com/benjitaylor/agentation --skill agentation在本项目中设置 Agentation 标注工具栏。
检查是否已安装
agentationnpm install agentation(或根据 lockfile 使用 pnpm/yarn)检查是否已配置
<Agentation 或 import { Agentation }检测框架
app/layout.tsx 或 app/layout.js广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
pages/_app.tsx 或 pages/_app.js添加组件
对于 Next.js App Router,添加到根布局:
import { Agentation } from "agentation";
// 在 body 内,children 之后添加:
{process.env.NODE_ENV === "development" && <Agentation />}
对于 Next.js Pages Router,添加到 _app:
import { Agentation } from "agentation";
// 在 Component 之后添加:
{process.env.NODE_ENV === "development" && <Agentation />}
5. 确认组件设置
* 告知用户 Agentation 工具栏组件已配置完成
6. 推荐 MCP 服务器设置
* 说明为了与 AI 代理进行实时标注同步,还应设置 MCP 服务器
* 推荐以下方法之一:
* **通用(支持 9+ 种代理,包括 Claude Code、Cursor、Codex、Windsurf 等):** 参见 [add-mcp](https://github.com/neondatabase/add-mcp) — 运行 `npx add-mcp` 并按照提示添加 `agentation-mcp` 作为 MCP 服务器
* **仅限 Claude Code(交互式向导):** 安装包后运行 `agentation-mcp init`
* 告知用户在 MCP 设置完成后重启其编码代理以加载服务器
* 说明一旦配置完成,标注将自动同步到代理
NODE_ENV 检查确保 Agentation 仅在开发环境中加载agentation_get_all_pending、agentation_resolve 和 agentation_watch_annotationsagentation-mcp doctor 以验证设置每周安装量
5.5K
代码仓库
GitHub 星标
2.8K
首次出现
2026年1月22日
安全审计
安装于
claude-code4.7K
opencode4.4K
codex4.3K
gemini-cli4.2K
cursor3.8K
github-copilot3.4K
Set up the Agentation annotation toolbar in this project.
Check if already installed
agentation in package.json dependenciesnpm install agentation (or pnpm/yarn based on lockfile)Check if already configured
<Agentation or import { Agentation } in src/ or app/Detect framework
app/layout.tsx or app/layout.jspages/_app.tsx or pages/_app.jsAdd the component
For Next.js App Router, add to the root layout:
import { Agentation } from "agentation";
// Add inside the body, after children:
{process.env.NODE_ENV === "development" && <Agentation />}
For Next.js Pages Router, add to _app:
import { Agentation } from "agentation";
// Add after Component:
{process.env.NODE_ENV === "development" && <Agentation />}
5. Confirm component setup
* Tell the user the Agentation toolbar component is configured
6. Recommend MCP server setup
* Explain that for real-time annotation syncing with AI agents, they should also set up the MCP server
* Recommend one of the following approaches:
* **Universal (supports 9+ agents including Claude Code, Cursor, Codex, Windsurf, etc.):** See [add-mcp](https://github.com/neondatabase/add-mcp) — run `npx add-mcp` and follow the prompts to add `agentation-mcp` as an MCP server
* **Claude Code only (interactive wizard):** Run `agentation-mcp init` after installing the package
* Tell user to restart their coding agent after MCP setup to load the server
* Explain that once configured, annotations will sync to the agent automatically
NODE_ENV check ensures Agentation only loads in developmentagentation_get_all_pending, agentation_resolve, and agentation_watch_annotationsagentation-mcp doctor to verify setup after installingWeekly Installs
5.5K
Repository
GitHub Stars
2.8K
First Seen
Jan 22, 2026
Security Audits
Gen Agent Trust HubWarnSocketFailSnykPass
Installed on
claude-code4.7K
opencode4.4K
codex4.3K
gemini-cli4.2K
cursor3.8K
github-copilot3.4K
97,600 周安装