Token导航 LogoToken导航TokenDH.com
研究检索操作浏览器github未标认证来源可访问许可证需确认审计提醒

agentationagentation 命令行

Agent Skill

agentation 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

336

周安装

14

GitHub Stars

2

下载量

112
CodexClaudeCursorGemini CLI

安装说明

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

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

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

skills.shnpx skills
npx skills add https://github.com/akillness/oh-my-gods --skill agentation

简介

桥接人类视觉反馈与 Agent 代码执行,支持精确 UI 元素标注。

  • 适用于 watch 模式下的实时注释与边界框数据传递。
  • 使用时需提供 elementPath 或 reactComponents 等结构化信息。
  • 安装命令:npx skills add https://github.com/akillness/oh-my-gods --skill agentation
  • 建议在受控环境中启用,防止误操作生产系统。

SKILL.md

agentation — Visual UI Feedback Bridge for AI Agents

The missing link between human eyes and agent code. Instead of describing "the blue button in the sidebar," you hand the agent .sidebar > button.primary. It can grep for that directly.

When to use this skill

  • When a human wants to mark exact UI elements and send structured feedback to an agent
  • When MCP watch mode is available and the agent should stay in a live annotation loop
  • When a copied annotation payload includes elementPath, reactComponents, or bounding box data
  • When omg enters verify or verify_ui and UI feedback should drive the next fix

Instructions

Step 1: Respect phase and lifecycle guardrails

  1. NEVER run agentation outside verify or verify_ui phase — when used with omg, check omg-state.json phase before starting. Never run during plan phase.
  2. ALWAYS call agentation_watch_annotations as the primary entry point — do not poll REST endpoints or wait for copy-paste when MCP is available.
  3. ALWAYS use elementPath as the grep/search target — it is a valid CSS selector pointing to the exact element. Use it with Grep or Glob to find the corresponding source code.
  4. ALWAYS call agentation_acknowledge before making any code changes — signals the human that the agent is working on the annotation.
  5. ALWAYS call agentation_resolve with a summary when done — or agentation_dismiss with a required reason if the annotation cannot be acted on.

Step 2: Choose the operating mode

Choose the operating mode before proceeding:

ModeWhen to useEntry point
MCP Watch LoopMCP server is running (npx agentation-mcp server), <Agentation endpoint="..."> is mountedagentation_watch_annotations
Copy-PasteNo MCP server, human pastes markdown into chatRead the pasted markdown — elementPath, comment, boundingBox are included

MCP mode is always preferred for iterative review cycles.

To check if MCP server is running: curl -sf http://localhost:4747/health


Step 3: Use the correct runtime surface

ToolParametersDescription
agentation_watch_annotationssessionId?, batchWindowSeconds? (default 10, max 60), timeoutSeconds? (default 120, max 300)Block until new annotations arrive — primary watch-loop tool
agentation_acknowledgeannotationId: stringMark annotation as acknowledged (agent is working on it)
agentation_resolveannotationId: string, summary?: stringMark as resolved with optional summary
agentation_dismissannotationId: string, reason: stringDismiss with required reason
agentation_replyannotationId: string, message: stringAdd reply to annotation thread
agentation_get_pendingsessionId: stringGet pending annotations for a session
agentation_get_all_pendingnoneGet pending annotations across ALL sessions
agentation_get_sessionsessionId: stringGet session with all annotations
agentation_list_sessionsnoneList all active annotation sessions

Step 4: Run the MCP watch loop

This is the canonical agent workflow. Use this unless the human explicitly provides copy-pasted markdown.

1. agentation_watch_annotations()          ← blocks up to 120s for new annotations
2. For each annotation received:
   a. agentation_acknowledge(annotationId) ← signal human that agent is working
   b. Grep(elementPath)                    ← find the source code for this element
      OR search reactComponents field for component name
   c. Make the minimal code change described in annotation.comment
   d. agentation_resolve(annotationId, "Changed X to Y") ← or agentation_dismiss(id, reason)
3. agentation_watch_annotations()          ← loop again

elementPath → Code Search

annotation.elementPath = "body > main > section.hero > button.cta"
→ Grep(".cta", src/)                  # search by CSS class
→ Grep("button.cta", src/)            # more specific
→ Grep(reactComponents, src/)         # "App > Dashboard > HeroButton" → search component name

elementPath is always a valid CSS selector. Start with the most specific class or ID, broaden if no match.

Annotation Lifecycle

pending → acknowledged → resolved
                      ↘ dismissed (requires reason string)

Process severity: "blocking" annotations first within a batch.

Watch Loop Instruction Block (add to CLAUDE.md / GEMINI.md / Codex developer_instructions)

When I say "watch mode", "annotate", or "agentation watch", call agentation_watch_annotations in a loop.
For each annotation received:
  1. Call agentation_acknowledge(annotationId)
  2. Use elementPath to locate the code: Grep(elementPath) or search for CSS class/component name
  3. Make the minimal change described in the comment
  4. Call agentation_resolve(annotationId, "<brief summary of what changed>")
Continue watching until I say stop, or until timeout.

Step 5: Handle copy-paste fallback

When the human clicks "Copy" in the toolbar and pastes markdown into chat:

1. Read the pasted markdown — it contains:
   - elementPath: CSS selector for the element
   - comment: human's feedback
   - boundingBox: pixel coordinates
   - reactComponents: component tree (React apps)
2. Use elementPath or reactComponents to grep the codebase
3. Make the change
4. Reply with summary (no MCP tool calls needed)

No agentation_acknowledge / agentation_resolve calls are needed in copy-paste mode.


Step 6: Handle hook-injected annotations

Platform hooks (UserPromptSubmit on Claude, AfterAgent on Gemini) auto-inject pending annotations into every agent message. No "watch mode" needed — annotations appear in context automatically. Respond to them using the watch loop flow (acknowledge → fix → resolve).


Step 7: Support autonomous critique loops

Two-agent setup for fully autonomous UI review:

  • Session 1 (Critic): agent-browser navigates app, clicks elements via agentation toolbar, adds critique annotations — which flow to MCP server automatically.
  • Session 2 (Fixer): agentation_watch_annotations → acknowledge → edit → resolve → loop.

Examples

Example 1: MCP watch mode during UI verification

Input:

Watch agentation annotations for this session and fix anything marked blocking first.

Output shape:

  • checks the health endpoint or otherwise confirms MCP watch mode is available
  • calls agentation_watch_annotations
  • acknowledges each annotation before editing
  • uses elementPath or reactComponents to locate the code
  • resolves or dismisses each annotation with a short summary

Example 2: Copy-pasted annotation with no server

Input:

The user pasted an agentation payload for `body > main > button.cta` and wants the button label fixed.

Output shape:

  • reads the pasted payload directly instead of waiting on MCP
  • searches by elementPath or reactComponents
  • makes the requested UI change
  • replies with a concise summary without MCP acknowledgment calls

Example 3: omg phase guard

Input:

Run agentation while omg is still in plan phase.

Output shape:

  • refuses to start the watch loop in plan
  • points the run back to plannotator or the planning surface
  • preserves agentation for verify or verify_ui

Annotation Schema (compact)

type Annotation = {
  id: string;
  comment: string;           // human's feedback text
  elementPath: string;       // CSS selector → PRIMARY GREP TARGET
  element: string;           // tag name: "button", "div", etc.
  reactComponents?: string;  // "App > Dashboard > Button" → component grep target
  boundingBox?: { x: number; y: number; width: number; height: number };
  selectedText?: string;
  nearbyText?: string;
  cssClasses?: string;
  intent?: "fix" | "change" | "question" | "approve";
  severity?: "blocking" | "important" | "suggestion";
  status?: "pending" | "acknowledged" | "resolved" | "dismissed";
  sessionId?: string;
  url?: string;
  thread?: { role: string; message: string; timestamp: string }[];
  createdAt?: string;
  resolvedAt?: string;
  resolvedBy?: "human" | "agent";
};

omg Integration

agentation is the VERIFY_UI phase of the omg skill. It never runs during plan phase (plannotator's domain).

ToolAllowed phaseGuard
plannotatorplan onlyomg-state.jsonphase === "plan"
agentationverify / verify_ui onlyomg-state.jsonphase === "verify_ui"

omg Evaluation Flow

omg "<task>"
 [1] PLAN      → plannotator loop (approve plan.md)
 [2] EXECUTE   → team/bmad
 [3] VERIFY
     ├─ agent-browser snapshot
     ├─ Pre-flight: GET /health, GET /sessions, GET /pending
     └─ annotate → VERIFY_UI (agentation watch loop)
         ├─ ACK → FIND (elementPath grep) → FIX → RESOLVE
         ├─ RE-SNAPSHOT (agent-browser)
         └─ update agentation fields in omg-state.json
 [4] CLEANUP

Pre-flight Check (before entering VERIFY_UI)

curl -sf http://localhost:4747/health    # server running?
curl -sf http://localhost:4747/sessions  # component mounted?
curl -sf http://localhost:4747/pending   # annotations waiting?

Pass all three → set omg-state.json: phase: "verify_ui", agentation.active: true.

Trigger Keywords

KeywordPlatformAction
annotateClaude Codeagentation_watch_annotations MCP blocking call
annotateCodexANNOTATE_READY signal → omg-notify.py HTTP polling
annotateGeminiGEMINI.md instruction: HTTP REST polling pattern
/omg-annotateOpenCodeopencode.json mcp.agentation + instructions
agentuiAllDeprecated alias — same behavior as annotate
UI reviewAllSame as annotate

Platform Support

PlatformMCP config locationHook type
Claude Code~/.claude/claude_desktop_config.json or .claude/mcp.jsonhooks.UserPromptSubmit in settings.json
Codex CLI~/.codex/config.tomldeveloper_instructions
Gemini CLI~/.gemini/settings.json or .gemini/settings.jsonhooks.AfterAgent
OpenCode~/.config/opencode/opencode.jsonSkills system
Cursor / Windsurf.cursor/mcp.json / .windsurf/mcp.json

Fastest setup (auto-detects all platforms):

npx add-mcp "npx -y agentation-mcp server"

Full setup instructions: references/setup-guide.md


Best practices

  1. Gate <Agentation> with NODE_ENV === 'development' — never ship to production.
  2. Use MCP watch-loop over copy-paste for iterative cycles — eliminates context switching.
  3. Call agentation_acknowledge immediately when starting a fix — signals the human.
  4. Include a summary in agentation_resolve — gives human traceability.
  5. Process severity: "blocking" annotations first in each batch.
  6. Use elementPath as the primary grep target — it is a valid CSS selector.
  7. Use reactComponents field for React codebases — matches component names directly.
  8. For autonomous self-driving: use agent-browser in headed mode with agentation mounted.

References

Metadata

  • Version: 1.2.0
  • Source: benjitaylor/agentation (PolyForm Shield 1.0.0)
  • Packages: agentation@2.2.1, agentation-mcp@1.2.0
  • Last updated: 2026-03-22
  • Scope: UI annotation bridge for human-agent feedback loops — Claude Code, Codex, Gemini CLI, OpenCode

适合场景

01

用户想查找某类 Agent Skill 时

02

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

03

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

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

能力 4

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

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

平台分布

Codex

35.98%
按下载量换算40

Claude

31.65%
按下载量换算35

Cursor

19.18%
按下载量换算21

Gemini CLI

10.62%
按下载量换算12

安全审计

Gen Agent Trust Hub

可疑

Socket

通过

Snyk

可疑

权限和风险

操作浏览器

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

安装前确认

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

来源信息

继续浏览同类 Skills