Borrowing it
Nothing to install: this file belongs to southliu/south-admin-react. 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/southliu/south-admin-react/main/AGENTS.mdgit clone --depth 1 https://github.com/southliu/south-admin-reactWrote 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/southliu/south-admin-react/agents-md)<a href="https://agentmods.dev/instructions/southliu/south-admin-react/agents-md"><img src="https://agentmods.dev/badge/instructions/southliu/south-admin-react/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/southliu/south-admin-react/agents-md"><img src="https://agentmods.dev/badge/instructions/southliu/south-admin-react/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.01630 | $0.01630 |
| Opus 5.5 | $0.00652 | $0.00652 |
| Sonnet 5.5 | $0.00326 | $0.00326 |
| Haiku 4.5 | $0.00163 | $0.00163 |
Grade A, and why
south-admin-react 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 — 84 lines — stays where its author put it; the contents beside it link to each section on GitHub.
AGENTS.md
中后台管理前端项目:React 19 + TypeScript + Vite 7 + Ant Design 6 + Zustand,pnpm monorepo。详细说明可参考 CLAUDE.md 与 README.md。
常用命令
pnpm dev # 启动开发服务器
pnpm build # 生产构建(tsc + vite build)
pnpm lint # ESLint 检查并自动修复
pnpm lint:stylelint # 样式检查
pnpm prettier # 格式化代码
- 安装依赖必须加
-w(monorepo 根):pnpm i <package> -w;pnpm 10+ 构建脚本被拦截时执行pnpm approve-builds。 - 无测试框架,验证方式为
pnpm lint+pnpm dev/pnpm build。 - Git 提交遵循 conventional commits(husky + commitlint 强制,如
feat: xxx);提交失败先执行npx husky install。
新建页面(重要约定)
-
pages 目录按菜单结构命名:一级菜单 → 父文件夹,二级菜单 → 子文件夹(kebab-case)。如菜单为「系统管理-菜单管理、系统管理-用户管理、商城管理-商品类型、商城管理-商品列表」,对应:
src/pages/system/menu/index.tsx # 系统管理-菜单管理 src/pages/system/user/index.tsx # 系统管理-用户管理 src/pages/mall/goods-type/index.tsx # 商城管理-商品类型 src/pages/mall/goods/index.tsx # 商城管理-商品列表即
src/pages/<一级菜单>/<二级菜单>/index.tsx;同菜单层级的页面必须落在同一父文件夹下,路由/system/menu由目录自动生成。 -
优先使用
/demo-createskill(.claude/skills/demo-create/SKILL.md)生成标准 CRUD 页面,不要手写整套模板。 -
【强制】每次创建新的路由页面,必须使用
/demo-createskill 生成(.claude/skills/demo-create/SKILL.md),不要手写整套 CRUD 模板。仅以下情况可以不用 demo-create:页面非标准 CRUD 结构(如仪表盘、自定义复杂布局),此时在 AGENTS.md 或对话中说明原因。 -
每页固定
index.tsx + model.ts(model 承放搜索项、表格列、表单配置),文件夹划分要清晰分明。 -
输入框必须限制长度:开发输入框前先确认对应数据库表字段的长度(查后端表结构/API 文档,不清楚时向用户确认),并在表单/搜索 schema 的
componentProps.maxLength中设置该长度(如varchar(50)→maxLength: 50,参考src/pages/system/user/model.tsx);不允许出现没有maxLength的文本输入框。 -
能组件化就组件化:
- 仅当前页面使用的组件 → 放在该页面子文件夹的
components/中(参考src/pages/system/menu/components/)。 - 全局/跨页面使用的组件 → 放
src/components/,公共二次封装组件以Base开头(如BaseTable、BaseForm、BaseModal)。
- 仅当前页面使用的组件 → 放在该页面子文件夹的
-
接口文件放
src/servers/,目录结构必须与src/pages/保持一致:如src/pages/system/user/对应src/servers/system/user.ts。 -
样式尽量使用 UnoCSS 原子类,避免写冗余 less。
目录结构
src/pages/— 页面(路由按目录结构自动生成,见下)src/servers/— API 接口,结构与 pages 一致src/components/— 全局公共组件(Base 前缀)src/stores/— Zustand 状态(user/menu/tabs/public)src/hooks/useCommonStore.ts— 聚合各 store(useShallow优化),组件中优先用它而非直接访问 storesrc/locales/{zh,en}/— i18n 翻译(react-i18next)packages/— monorepo 子包:@south/request、@south/message、@south/utils、@south/stylelint
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 · +1 lines · +96 tokens per session 65f867216da4
- 2mo ago First seen · 83 lines · 1,534 tokens per session scan A 15c039da1327
south-admin-react AGENTS.md is an instructions file published in the GitHub repository southliu/south-admin-react (583 stars, last pushed today), licensed MIT. It adds 1,630 tokens to every session, about $0.0065 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.
Other instructions, from other repositories
vscode buildNext.instructions.md
Working notes and architecture documentation for the new esbuild-based build system in build/next. Use when making changes to the new build pipeline (transpile/bundle commands, NLS plugin, source-map handling, resource copying, or self-hosting watch tasks).
next.js AGENTS.md
AGENTS.md instructions for vercel/next.js, covering next.js development guide, codebase structure, monorepo overview, core package: packages/next and other important packages.
vscode oss-third-party-notices.instructions.md
Instructions for microsoft/vscode, covering vs code oss third-party-notices pipeline, architecture, pipeline flow in ci, cache eligibility and rollout and applying the notice (cutover).
langchain AGENTS.md
AGENTS.md instructions for langchain-ai/langchain, covering global development guidelines for the langchain monorepo, corridor security analysis, project architecture and context, monorepo structure and development tools & commands.
vscode copilot-instructions.md
Copilot instructions for microsoft/vscode, covering vs code copilot instructions, project overview, root folders, core architecture (src/ folder) and built-in extensions (extensions/ folder).
deepseek-harness AGENTS.md
AGENTS.md instructions for deepseek-ai/deepseek-harness, covering agents.md, pre-stable apis and released session data, repository layout, commands and host sandbox failures.