south-admin-react: Instructions file for Codex

AGENTS.md

south-admin-react AGENTS.md is an instructions file for Codex, OpenCode from southliu/south-admin-react. It costs 1,630 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

Written for Codex and OpenCode: the file is AGENTS.md. Also seen: reads .claude/ paths; mentions CLAUDE.md; mentions AGENTS.md.

This is southliu/south-admin-react's own configuration. It tells Codex and OpenCode how to work on south-admin-react itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything south-admin-react configures →

Reuse

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.

Copy the file
curl -O https://raw.githubusercontent.com/southliu/south-admin-react/main/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/github.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/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.

agentmods 80×15 button for south-admin-react AGENTS.md

Your own site · 80×15
<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>
Per session 1,630 This file is loaded in full into every session.
When invoked 1,630 The same file — it is already loaded in full.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
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.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

Measured 1mo ago against content hash 65f867216da4, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 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.

AGENTS.md · 84 lines

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-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 承放搜索项、表格列、表单配置),文件夹划分要清晰分明。

  • 输入框必须限制长度:开发输入框前先确认对应数据库表字段的长度(查后端表结构/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 优化),组件中优先用它而非直接访问 store
  • src/locales/{zh,en}/ — i18n 翻译(react-i18next)
  • packages/ — monorepo 子包:@south/request、@south/message、@south/utils、@south/stylelint

Read the full file on GitHub · 84 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. 1mo ago Changed · +1 lines · +96 tokens per session 65f867216da4
  2. 2mo 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 (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.

Related

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

microsoft/vscode · 9,715 tokens

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.

vercel/next.js · 7,461 tokens

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

microsoft/vscode · 5,262 tokens

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.

langchain-ai/langchain · 4,680 tokens

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

microsoft/vscode · 2,750 tokens

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.

deepseek-ai/deepseek-harness · 4,261 tokens