Agent Skills › AjayIrkal23/agentic-mercy-10x › agentation-react

agentation-react

GitHub

验证并修复React应用中缺失的Agentation开发工具栏依赖、包装组件及挂载点,确保其仅在开发环境生效且不进入生产构建。

skills/agentation-react/SKILL.md AjayIrkal23/agentic-mercy-10x

Trigger Scenarios

检查React项目是否包含agentation依赖和开发专用覆盖层 恢复缺失的AgentationOverlay组件及其在根应用的挂载逻辑

Install

npx skills add AjayIrkal23/agentic-mercy-10x --skill agentation-react -g -y
More Options

Use without installing

npx skills use AjayIrkal23/agentic-mercy-10x@agentation-react

指定 Agent (Claude Code)

npx skills add AjayIrkal23/agentic-mercy-10x --skill agentation-react -a claude-code -g -y

安装 repo 全部 skill

npx skills add AjayIrkal23/agentic-mercy-10x --all -g -y

预览 repo 内 skill

npx skills add AjayIrkal23/agentic-mercy-10x --list

SKILL.md

Frontmatter
{
    "name": "agentation-react",
    "metadata": {
        "schema": 1,
        "category": "frontend",
        "surfaces": [
            "frontend"
        ],
        "triggers": {
            "intents": [
                "VERIFY"
            ],
            "keywords": [
                "agentation",
                "agentation-react",
                "agentation overlay",
                "agentation toolbar",
                "annotation toolbar",
                "AgentationOverlay",
                "dev overlay"
            ]
        },
        "platforms": [
            "linux",
            "darwin",
            "windows"
        ]
    },
    "description": "Verifies, and restores when missing, the dev-only Agentation annotation overlay in a React web app: the agentation dependency, one wrapper component and its development-gated mount in the root app shell.",
    "when_to_use": "Use when a repo's docs require Agentation (\"use agentation-react\"), before React web work in such a repo, or when a change touches the root app shell, package.json or the dev overlay wrapper."
}

Agentation (React web)

Agentation is a development-only toolbar that lets a person annotate DOM elements in the running web app so an agent gets exact targets. In repos that adopt it, it is tooling the team depends on: never remove it, never ship it to production, never move it into feature components.

The repo's own doc is the contract (in site-sync-vista: frontend_docs/18-agentation-react.md). Read it first; it names the wrapper path, the mount point and the endpoint. What follows is the generic check.

1. Check (read-only, no server)

grep -n '"agentation"' package.json                       # dependency present
git ls-files | grep -i 'AgentationOverlay'                # one wrapper component
grep -rn 'AgentationOverlay' src/App.tsx src/main.tsx 2>/dev/null   # mounted from the shell

Then read the mount and the wrapper and confirm:

Check Pass when
Dependency agentation is in package.json (and the lockfile)
Single wrapper exactly one wrapper (e.g. src/components/dev/AgentationOverlay.tsx) imports agentation; no feature file imports the package directly
Root mount the root shell (src/App.tsx or src/main.tsx) renders the wrapper once
Dev-only the render is gated on import.meta.env.DEV (Vite) or process.env.NODE_ENV !== "production", so production builds drop it
Endpoint the endpoint matches the repo doc; do not change it unless the task is about the tooling

grep -rn "from 'agentation'\|from \"agentation\"" src lists every importer: more than the wrapper is drift.

2. Restore (only when a check fails)

  1. Missing dependency: add it with the repo's package manager (npm i agentation), never by editing the lockfile.
  2. Missing wrapper: recreate it at the path the repo doc names: a small component that imports the toolbar from agentation, passes the documented endpoint, and returns null outside development.
  3. Missing mount: render the wrapper once in the root shell, after the router/providers, behind the dev gate.
  4. Extra direct imports: route them through the wrapper.

Keep the diff to those files. Record the restore in the repo's doc if it changed paths.

3. Verify without starting anything

Run the repo's own commands (site-sync-vista: npm run lint, npm run test, npm run build). After the build, confirm the overlay is absent from production output:

grep -rl 'agentation' dist/ | head

No hits = the gate works. Hits mean the package is imported statically outside the gate (Vite only drops code behind a compile-time import.meta.env.DEV branch or a dynamic import() inside it); report that and fix it only if the task covers the tooling.

A live look at the toolbar is the user's step (they run the dev server); say so instead of starting one.

Scope

Web React surface only. React Native / Expo apps and servers do not mount Agentation unless their own docs say so.

Version History

  • 2315578 Current 2026-10-18 19:20

Same Skill Collection

skills/baseline-ui/SKILL.md
skills/brand/SKILL.md
skills/context7-mcp/SKILL.md
skills/create-design-md/SKILL.md
skills/debug-broken-ui/SKILL.md
skills/design-system-compliance/SKILL.md
skills/design-taste-frontend/SKILL.md
skills/design/SKILL.md
skills/docker-compose/SKILL.md
skills/ensure-repo-docs/SKILL.md
skills/expo-react-native/SKILL.md
skills/false-green-tests/SKILL.md
skills/fastify-patterns/SKILL.md
skills/fixing-accessibility/SKILL.md
skills/fixing-metadata/SKILL.md
skills/fixing-motion-performance/SKILL.md
skills/grill-with-docs/SKILL.md
skills/higgsfield-brandkit/SKILL.md
skills/higgsfield-video-explainer/SKILL.md
skills/higgsfield-youtube-thumbnail/SKILL.md
skills/idea-refine/SKILL.md
skills/img2threejs/SKILL.md
skills/improve-ui/SKILL.md
skills/invoke-audit/SKILL.md
skills/invoke-clean/SKILL.md
skills/invoke-debug/SKILL.md
skills/invoke-design/SKILL.md
skills/invoke-docs/SKILL.md
skills/invoke-impl/SKILL.md
skills/invoke-plan/SKILL.md
skills/invoke-refactor/SKILL.md
skills/invoke-review/SKILL.md
skills/invoke-security/SKILL.md
skills/invoke-session/SKILL.md
skills/invoke-spec/SKILL.md
skills/invoke-status/SKILL.md
skills/invoke-test/SKILL.md
skills/invoke-update/SKILL.md
skills/invoke-verify/SKILL.md
skills/invoke/SKILL.md
skills/kokonutui/SKILL.md
skills/mmx-cli/h3-video/SKILL.md
skills/modern-web-guidance/SKILL.md
skills/mongoose-patterns/SKILL.md
skills/no-ai-slop/SKILL.md
skills/slides/SKILL.md
skills/test-error-states/SKILL.md
skills/threejs-r3f/SKILL.md
skills/to-issues/SKILL.md

Metadata

Files
0
Version
2315578
Hash
b0d6436e
Indexed
2026-10-18 19:20

Home - Wiki
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-10-19 03:45
浙ICP备14020137号-1