К основному содержанию
скилл CX Codex

agentation — скилл для Claude Code: панель отзывов в Next.js

Ставит в Next.js-проект панель визуальных отзывов и по запросу связывает её с кодинг-агентом через MCP.

Установить в Claude Code · Через Skills CLI (Vercel) Все способы и платформы ↓
npx skills add benjitaylor/agentation --skill agentation -a claude-code
Открыть на GitHub

Что делает agentation

Скилл проводит агент по шагам: сначала тот читает инструкции проекта и определяет пакетный менеджер, проверяет, нет ли уже agentation и смонтированного <Agentation>. Если компонент на месте, агент смотрит его endpoint и текущую настройку MCP, а дублирующий монтаж не добавляет. Пакет ставится тем менеджером, чей lockfile лежит в проекте.

Дальше выбирается режим связи. Для живых отзывов от агента нужен тот же HTTP-адрес, что и у агента: локальный сервер по умолчанию — http://localhost:4747, свой порт или прокси сохраняются. Если проект удалённый, считать, что браузер и агент на одной машине, нельзя. Для ручного копирования endpoint не указывают, и тогда отзывы остаются в браузере.

В App Router компонент рендерится в body корневого layout после children, в Pages Router — после Component в pages/_app. Пакет несёт собственную клиентскую границу, поэтому корневой layout остаётся серверным. Для MCP команда запуска включает подкоманду server: npx -y agentation-mcp server. Нужен React 18 или новее, а сама установка панели MCP-сервер не поднимает и не настраивает. Проверка не сводится к зелёной диагностике: npx agentation-mcp doctor показывает состояние службы, но живой канал подтверждает только тестовая аннотация, прочитанная через agentation_get_all_pending.

Какие задачи решает

  • встроить панель визуальных отзывов в Next.js-приложение
  • связать браузерные аннотации с кодинг-агентом по MCP
  • не создать второй HTTP-сервер на занятом порту
  • отличить рабочую синхронизацию от просто живого сервера
  • оставить панель только в режиме разработки

Примеры запросов агенту

  • Добавь панель Agentation в наш Next.js-проект и подключи её к агенту через MCP.
  • Проверь, что аннотации из браузера доходят до агента, и покажи, что именно осталось непроверенным.
  • Настрой Agentation в режиме ручного копирования, без сервера.

Как установить agentation

1Через Skills CLI (Vercel)

npx skills add benjitaylor/agentation --skill agentation -a claude-code

2Вручную: положить файлы

~/.claude/skills/agentation/SKILL.md

Папка скилла целиком; для одного проекта — .claude/skills/agentation/

По шагам, с командами для каждой платформы: Как установить скилл в Claude Code: пять способов

Вопросы о agentation

Как установить agentation в Claude Code?

Выполните npx skills add benjitaylor/agentation --skill agentation -a claude-code. Скилл окажется в ~/.claude/skills/agentation/SKILL.md.

Что делает agentation?

Добавляет в Next.js-проект панель визуальных отзывов и по запросу связывает её с кодинг-агентом через MCP-сервер.

Нужен ли MCP-сервер для работы панели?

Нет. Есть режим ручного копирования без запущенного сервера, но тогда отзывы остаются в браузере и до агента не доходят.

Исходный текст

SKILL.md · MIT
---
name: agentation
description: Add Agentation visual feedback toolbar to a Next.js project
---

# Agentation Setup

Set up the toolbar and, when requested, connect it to the user's coding agent.
A visible toolbar and a healthy MCP server do not prove that browser feedback
reaches the agent. Verify that final step before calling setup complete.

## Steps

1. **Inspect the project**
   - Read the project's instructions and detect its package manager.
   - Look for `agentation` and an existing `<Agentation>` mount before installing.
   - If already mounted, inspect its `endpoint` and current MCP setup. Do not
     exit just because the component exists, and do not add a duplicate mount.
   - Install `agentation` if missing, using the existing lockfile's package manager.

2. **Choose the connection mode from the request**
   - For MCP or live agent feedback, use the same HTTP server URL as the agent.
     The default local server is `http://localhost:4747`; preserve an existing
     custom port or proxy URL. Never assume the browser and agent use the same
     machine when the project is remote.
   - For manual copy/paste only, omit `endpoint` and explain that feedback remains
     in this browser. Do not silently enable a server connection.
   - If the intended mode is unclear, ask one brief question while inspecting
     the existing project. Keep working on independent setup checks.

3. **Add or update the component**

   For a Next.js App Router project, render in the root layout's body after
   children. For Pages Router, render after `Component` in `pages/_app`.
   Preserve any existing callbacks and options.

   ```tsx
   import { Agentation } from "agentation";

   // Use the actual server URL selected above for MCP sync:
   {process.env.NODE_ENV === "development" && (
     <Agentation endpoint="http://localhost:4747" />
   )}
   ```

   The package provides its own client boundary. Keep the application's root
   layout server-rendered unless the project has another reason to change it.

4. **Configure the agent when MCP was requested**
   - Use the project's existing MCP client and configuration conventions.
   - The launch command must include the `server` subcommand:
     `npx -y agentation-mcp server`.
   - For supported agents, `npx add-mcp "npx -y agentation-mcp server"` is one
     setup option. For Claude Code, use
     `claude mcp add agentation -- npx -y agentation-mcp server` or the init wizard.
   - Apply the same custom port to the server command and component endpoint.
   - Restart or reconnect the agent when its configuration requires it. Do not
     create a second HTTP server on a port already owned by the working server.

5. **Verify the complete connection**
   - Run `npx agentation-mcp doctor` for service diagnostics. For a custom URL,
     use `doctor --http-url <url>` when supported by the installed version.
   - Open the app and create one clearly identified test annotation through the
     toolbar. Read it with `agentation_get_all_pending` or session-scoped tools.
   - Check the exact test comment and page, not just a nonzero count or health
     response. Leave unrelated annotations alone.
   - If annotations are empty, check the component endpoint, browser network
     failures/CORS, and whether the agent and browser point to the same server.
   - If browser or MCP tools are unavailable, say exactly which part remains
     unverified and give the user this final check. Do not claim live sync works.

## Notes

- The development guard prevents the toolbar from appearing in production.
- Agentation requires React 18 or newer.
- Installing the toolbar does not install, configure or connect an MCP server.
- Manual copy mode is supported and does not need a running server.

© benjitaylor · MIT · benjitaylor/agentation

Похожие скиллы

Все скиллы по теме «Настройка агента: память, контекст, субагенты» →
setup-matt-pocock-skills Matt Pocock Скилл настраивает репозиторий для инженерных скиллов Matt Pocock: задаёт трекер задач, метки триажа и расположение доменной документации. Запустите его перед первым использованием остальных скиллов. 1 052 851установок ask-matt Matt Pocock Помогает выбрать подходящий скилл или рабочий поток из набора Matt Pocock. Пригодится, когда непонятно, с чего начать задачу: от идеи до разбора бага. 766 587установок to-tickets Matt Pocock Разбивает план, спецификацию или переписку на небольшие сквозные задачи и отмечает, какие из них блокируют остальные. Пригодится, когда нужно согласовать порядок работы до публикации задач в трекере. 711 230установок writing-plans Jesse Vincent Скилл превращает требования к многошаговой задаче в подробный план реализации до начала работы с кодом. Пригодится, когда исполнителю нужно зафиксировать файлы, интерфейсы и проверки. CX Codex 282 859установок caveman-review JuliusBrussee Пишет замечания к коду одной строкой: место, проблема, исправление. Пригодится, когда ревью диффа или PR надо пройти быстро и без воды. CX Codex +1 411 800установок caveman-compress JuliusBrussee Сжимает CLAUDE.md, списки задач и другие текстовые файлы в краткий формат, сохраняя читаемую резервную копию. CX Codex +1 411 500установок

Из того же набора2

Спонсоры проекта

Компании, которые помогают держать аналитику открытой