Borrowing it
Nothing to install: this file belongs to guokaigdg/react-seed. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/guokaigdg/react-seed/main/AGENTS.mdgit clone --depth 1 https://github.com/guokaigdg/react-seedWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/instructions/guokaigdg/react-seed/agents-md)<a href="https://agentmods.dev/instructions/guokaigdg/react-seed/agents-md"><img src="https://agentmods.dev/badge/instructions/guokaigdg/react-seed/agents-md/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/instructions/guokaigdg/react-seed/agents-md"><img src="https://agentmods.dev/badge/instructions/guokaigdg/react-seed/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.05241 | $0.05241 |
| Opus 5.5 | $0.02096 | $0.02096 |
| Sonnet 5.5 | $0.01048 | $0.01048 |
| Haiku 4.5 | $0.00524 | $0.00524 |
Grade A, and why
react-seed AGENTS.md scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 411 lines — stays where its author put it; the contents beside it link to each section on GitHub.
AGENTS.md
本文档面向 AI 编码助手(Claude / Cursor / Comate / Copilot 等),用于在最短时间内建立对本仓库的准确认知,并在生成 / 修改代码时遵守一致的工程约定。人类读者请优先阅读
README.md与docs/README.en.md。
目录
1. 项目概览
react-seed 是一套企业级 React SPA 前端模板,目标是为新业务直接复用其工程化基建(Vite / TS / 路由 / 状态 / 请求 / 规范)。
- 类型:单页应用(SPA),构建产物为静态文件,可通过
gh-pages一键发布 - 入口:
src/index.tsx→src/App.tsx→src/router/index.tsx - 在线 Demo:https://guokaigdg.github.io/react-seed/
- 姊妹分支:移动端版
本仓库不是业务项目;新增内容时优先思考是否对模板"通用"。
2. 技术栈
| 分类 | 选型 | 版本 / 备注 |
|---|---|---|
| 框架 | React + ReactDOM | 19.x(启用 react-jsx 自动 JSX 运行时,无需 import React) |
| 语言 | TypeScript | 6.x,strict: true,并启用 noUnusedLocals / noUnusedParameters |
| 构建 | Vite 8 + @vitejs/plugin-react |
配置位于 vite.config.ts(根目录,Vite 8 默认 Rolldown 打包) |
| 开发服务 | vite 内置 dev server |
端口 3000;server.host: true |
| 路由 | react-router |
v8,从 react-router 导入(不是 react-router-dom) |
| 状态管理 | MobX + mobx-react-lite |
mobx 7 / lite 5,enforceActions: 'always' |
| 网络请求 | axios + axios-retry |
全局封装见 src/api/request.ts |
| 样式 | Less + CSS Modules | Vite 内置,*.module.less 自动开启 CSS Modules |
| 图标 | @phosphor-icons/react + 本地 svg as React 组件(vite-plugin-svgr) |
svg 资源:src/assets/icons/svg/ |
| 代码质量 | ESLint 9(flat config)+ Prettier + Stylelint + husky + lint-staged + commitlint | 配置:eslint.config.mjs |
| 环境变量 | Vite .env.[mode] |
三套环境:development / qa / production,通过 import.meta.env 访问 |
| Node | ≥ 24.0.0;npm ≥ 7;volta 固定 24.19.0 | 见 package.json#engines / volta |
⚠️ 两个刻意保留的大版本上限(截至 2026-10,非遗漏,是生态 peer 依赖尚未放开):
- TypeScript 停留在 6.x:
@typescript-eslint(最新 8.x)的 peer 为typescript >=4.8.4 <6.1.0,暂无 v9 版本,放开 TS 7 会直接冲突。- ESLint 停留在 9.x:
eslint-plugin-react(最新 7.37.5)的 peer 上限是eslint ^9.7,不支持 ESLint 10。强装后eslint.config.mjs会因ERR_MODULE_NOT_FOUND直接失败。另外:
eslint.config.mjs直接import '@eslint/js',但它未在package.json声明,仅靠 eslint 的传递依赖提升可用。ESLint 10 不再提升该包,届时必须显式声明@eslint/js。
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 1mo ago Changed · +7 lines · +234 tokens per session c72fef6ba205
- 2mo ago First seen · 404 lines · 5,007 tokens per session scan A a009970d9d1a
react-seed AGENTS.md is an instructions file published in the GitHub repository guokaigdg/react-seed (525 stars, last pushed 1mo ago), licensed MIT. It adds 5,241 tokens to every session, about $0.0210 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
react-seed AGENTS.md compared with instructions from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| react-seed AGENTS.mdguokaigdg/react-seed | Instructions file | 525 | 1mo ago | MIT | A | 5,241 | Codex, OpenCode |
| create-trimble-app typescript.instructions.mdjulianoczkowski/create-trimble-app | Instructions file | 3 | 4mo ago | MIT | A | 583 | GitHub Copilot |
| vscode buildNext.instructions.mdmicrosoft/vscode | Instructions file | 195k | yesterday | MIT | A | 9,719 | GitHub Copilot |
| next.js AGENTS.mdvercel/next.js | Instructions file | 143k | today | MIT | A | 7,461 | Codex, OpenCode |
| langchain AGENTS.mdlangchain-ai/langchain | Instructions file | 149k | yesterday | MIT | A | 4,680 | Codex, OpenCode |
| vscode oss-third-party-notices.instructions.mdmicrosoft/vscode | Instructions file | 195k | yesterday | MIT | A | 5,516 | GitHub Copilot |
| vscode copilot-instructions.mdmicrosoft/vscode | Instructions file | 195k | yesterday | MIT | A | 3,093 | GitHub Copilot |