south-admin-react AGENTS.md

south-admin-react AGENTS.md is an instructions file for Codex, OpenCode from southliu/south-admin-react. It costs 1,534 tokens per session, scanned A, original, MIT.

Repository instructions for a React and TypeScript admin dashboard built with Vite, Ant Design, Zustand, and pnpm. They describe commands, folders, routes, page-generation rules, and commit requirements.

In plain words
What is it for?
Use them when adding pages, installing packages, running checks, building the app, or preparing commits.
Why use it?
They give coding agents the project’s conventions so changes fit the existing structure and can be checked consistently.

Instructions file for CodexOpenCode

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add instructions/southliu/south-admin-react/agents-md
Clone the repo
git clone --depth 1 https://github.com/southliu/south-admin-react

Made for: Codex, OpenCode.

Wrote 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.

agentmods badge for south-admin-react AGENTS.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/southliu/south-admin-react/agents-md.svg)](https://agentmods.dev/instructions/southliu/south-admin-react/agents-md)
Your own site
<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="Measured on agentmods" height="20"></a>
Per session 1,534 This file is loaded in full into every session.
When invoked 1,534 The same file — it is already loaded in full.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce invoked
Fable 5 $0.01534 $0.01534
Opus 5 $0.00767 $0.00767
Sonnet 5 $0.00307 $0.00307
Haiku 4.5 $0.00153 $0.00153

Measured 4d ago against content hash 15c039da1327, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

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 4d 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.

AGENTS.md · 83 lines

How it starts

The opening of the file, as written. The whole thing — 83 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.mdREADME.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-create skill.claude/skills/demo-create/SKILL.md)生成标准 CRUD 页面,不要手写整套模板。

  • 【强制】每次创建新的路由页面,必须使用 /demo-create skill 生成.claude/skills/demo-create/SKILL.md),不要手写整套 CRUD 模板。仅以下情况可以不用 demo-create:页面非标准 CRUD 结构(如仪表盘、自定义复杂布局),此时在 AGENTS.md 或对话中说明原因。

  • 每页固定 index.tsx + model.ts(model 承放搜索项、表格列、表单配置),文件夹划分要清晰分明。

  • 能组件化就组件化

    • 仅当前页面使用的组件 → 放在该页面子文件夹的 components/ 中(参考 src/pages/system/menu/components/)。
    • 全局/跨页面使用的组件 → 放 src/components/,公共二次封装组件以 Base 开头(如 BaseTableBaseFormBaseModal)。
  • 接口文件放 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 优化),组件中优先用它而非直接访问 store
  • src/locales/{zh,en}/ — i18n 翻译(react-i18next)
  • packages/ — monorepo 子包:@south/request@south/message@south/utils@south/stylelint

Read the full file on GitHub · 83 lines

Changes

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.

  1. 4d ago First seen · 83 lines · 1,534 tokens per session scan A 15c039da1327

Subscribe to this mod's changes

south-admin-react AGENTS.md is an instructions file published in the GitHub repository southliu/south-admin-react (578 stars, last pushed 13d ago), licensed MIT. It adds 1,534 tokens to every session, about $0.0077 per session on Opus 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.