react-seed: Instructions file for Codex

AGENTS.md

react-seed AGENTS.md is an instructions file for Codex, OpenCode from guokaigdg/react-seed. It costs 5,241 tokens per session, scanned A, original, MIT.

Repository instructions for guokaigdg/react-seed, an enterprise React single-page application template. They describe its TypeScript, Vite, routing, state, API, directory, and development conventions.

In plain words
What is it for?
Use them when adding or changing React components, routes, state, API code, build settings, scripts, documentation, or other template files.
Why use it?
They help coding assistants understand how the template is organized and avoid changes that conflict with its shared engineering rules.

Instructions file for CodexOpenCode

Written for Codex and OpenCode: the file is AGENTS.md. Also seen: mentions AGENTS.md.

This is guokaigdg/react-seed's own configuration. It tells Codex and OpenCode how to work on react-seed 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 react-seed configures →

Needs its repository: it reads a path above its own folder, which exists only inside the repository. The line is import request from '../request';.

Reuse

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.

Copy the file
curl -O https://raw.githubusercontent.com/guokaigdg/react-seed/main/AGENTS.md
Clone the repo
git clone --depth 1 https://github.com/guokaigdg/react-seed

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 react-seed AGENTS.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/guokaigdg/react-seed/agents-md/github.svg)](https://agentmods.dev/instructions/guokaigdg/react-seed/agents-md)
Your own site
<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.

agentmods 80×15 button for react-seed AGENTS.md

Your own site · 80×15
<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>
Per session 5,241 This file is loaded in full into every session.
When invoked 5,241 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.05241 $0.05241
Opus 5.5 $0.02096 $0.02096
Sonnet 5.5 $0.01048 $0.01048
Haiku 4.5 $0.00524 $0.00524

Measured 1mo ago against content hash c72fef6ba205, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

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.

AGENTS.md · 411 lines

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. 项目概览
  2. 技术栈
  3. 目录结构
  4. 路径别名
  5. 脚本与环境变量
  6. 运行与构建
  7. 开发约定(必读)
  8. 代码规范与提交规范
  9. AI 修改代码须知
  10. 常见任务剧本(Cookbook)
  11. 外部参考

1. 项目概览

react-seed 是一套企业级 React SPA 前端模板,目标是为新业务直接复用其工程化基建(Vite / TS / 路由 / 状态 / 请求 / 规范)。

本仓库不是业务项目;新增内容时优先思考是否对模板"通用"。

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。

Read the full file on GitHub · 411 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 · +7 lines · +234 tokens per session c72fef6ba205
  2. 2mo ago First seen · 404 lines · 5,007 tokens per session scan A a009970d9d1a

Subscribe to this mod's changes

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.

Related

react-seed AGENTS.md compared with instructions from other repositories

react-seed AGENTS.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
react-seed AGENTS.mdguokaigdg/react-seedInstructions file5251mo agoMITA5,241Codex, OpenCode
create-trimble-app typescript.instructions.mdjulianoczkowski/create-trimble-appInstructions file34mo agoMITA583GitHub Copilot
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA9,719GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file143ktodayMITA7,461Codex, OpenCode
langchain AGENTS.mdlangchain-ai/langchainInstructions file149kyesterdayMITA4,680Codex, OpenCode
vscode oss-third-party-notices.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA5,516GitHub Copilot
vscode copilot-instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA3,093GitHub Copilot