一键导入
agentation
Add Agentation visual feedback toolbar to any React project
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Add Agentation visual feedback toolbar to any React project
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
amis 低代码框架专家和知识库。**严格触发条件**:用户必须明确提到 'amis'、'低代码'、'百度 amis' 等关键词。**核心能力**:(1) 回答 amis 使用问题(组件用法、属性配置、表达式、事件等),(2) 生成 amis JSON schema(CRUD、表单、卡片、对话框等),(3) 生成 amis 静态 HTML 预览页面(仅当用户明确要求 amis + 预览/静态HTML 时),(4) 调试和优化 amis 配置。**严格禁止触发**:(1) 用户未提及 amis 或低代码,(2) 用户明确要求其他框架(React、Vue、Angular、Vite 等工程化项目),(3) 用户只说'生成表单'但没提 amis。**关键词**:amis、低代码、百度 amis、aisuda、amis schema、amis 组件、amis 预览。
当用户需要对前端代码进行全面审查时使用此技能,包括 React、Vue、Angular 或原生 JavaScript/TypeScript 项目。适用于代码审查、Pull Request 评审、性能审计、安全检查等场景。
| name | agentation |
| description | Add Agentation visual feedback toolbar to any React project |
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 project type
app/layout.tsx or app/layout.jspages/_app.tsx or pages/_app.jsvite.config.ts/js and src/main.tsx/jsxsrc/index.tsx/jsx or src/App.tsx/jsxAdd the component
For Next.js App Router, add to app/layout.tsx:
import { Agentation } from "agentation";
export default function RootLayout({ children }) {
return (
<html>
<body>
{children}
{process.env.NODE_ENV === "development" && <Agentation />}
</body>
</html>
);
}
For Next.js Pages Router, add to pages/_app.tsx:
import { Agentation } from "agentation";
export default function App({ Component, pageProps }) {
return (
<>
<Component {...pageProps} />
{process.env.NODE_ENV === "development" && <Agentation />}
</>
);
}
For Vite + React, add to src/main.tsx:
import { Agentation } from "agentation";
ReactDOM.createRoot(document.getElementById('root')!).render(
<React.StrictMode>
<App />
{import.meta.env.DEV && <Agentation />}
</React.StrictMode>
);
For Create React App, add to src/index.tsx:
import { Agentation } from "agentation";
const root = ReactDOM.createRoot(document.getElementById('root'));
root.render(
<React.StrictMode>
<App />
{process.env.NODE_ENV === "development" && <Agentation />}
</React.StrictMode>
);
For other React projects, add to the root component or main entry file:
import { Agentation } from "agentation";
// Add at the end of your root component
{process.env.NODE_ENV === "development" && <Agentation />}
Confirm setup
import.meta.env.DEV instead of process.env.NODE_ENVprocess.env.NODE_ENV === "development"