fastapi-react-admin: Instructions file for Claude Code

CLAUDE.md

fastapi-react-admin CLAUDE.md is an instructions file for Claude Code from yilecoding/fastapi-react-admin. It costs 8,461 tokens per session, scanned A, original, MIT.

Project instructions for a web application built with FastAPI and React, including its structure, rules, and development commands. They explain where different kinds of work belong and how to keep the documentation current.

In plain words
What is it for?
Use them when adding pages, changing navigation or settings, modifying uploads, updating branding, or working across the project's frontend and backend.
Why use it?
They help an AI coding assistant make changes consistently in a large project without breaking its architecture or silently violating project rules.

Instructions file for Claude Code

Written for Claude Code: the file is CLAUDE.md. Also seen: reads .claude/ paths; mentions CLAUDE.md; mentions Claude Code.

This is yilecoding/fastapi-react-admin's own configuration. It tells Claude Code how to work on fastapi-react-admin 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 fastapi-react-admin configures →

Reuse

Borrowing it

Nothing to install: this file belongs to yilecoding/fastapi-react-admin. 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/yilecoding/fastapi-react-admin/main/CLAUDE.md
Clone the repo
git clone --depth 1 https://github.com/yilecoding/fastapi-react-admin

Made for: Claude Code.

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 fastapi-react-admin CLAUDE.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/yilecoding/fastapi-react-admin/claude-md/github.svg)](https://agentmods.dev/instructions/yilecoding/fastapi-react-admin/claude-md)
Your own site
<a href="https://agentmods.dev/instructions/yilecoding/fastapi-react-admin/claude-md"><img src="https://agentmods.dev/badge/instructions/yilecoding/fastapi-react-admin/claude-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 fastapi-react-admin CLAUDE.md

Your own site · 80×15
<a href="https://agentmods.dev/instructions/yilecoding/fastapi-react-admin/claude-md"><img src="https://agentmods.dev/badge/instructions/yilecoding/fastapi-react-admin/claude-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 8,461 This file is loaded in full into every session.
When invoked 8,461 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.08461 $0.08461
Opus 5.5 $0.03384 $0.03384
Sonnet 5.5 $0.01692 $0.01692
Haiku 4.5 $0.00846 $0.00846

Measured 4d ago against content hash 52bab673454f, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

fastapi-react-admin CLAUDE.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.

CLAUDE.md · 401 lines

How it starts

The opening of the file, as written. The whole thing — 401 lines — stays where its author put it; the contents beside it link to each section on GitHub.

CLAUDE.md

fastapi-react-admin —— 中后台底座。产品标识集中在 apps/web/src/lib/brand.ts (改名字只动那一处 + 后端 conf.py 的 FASTAPI_TITLE / FASTAPI_DESCRIPTION;版本在 apps/web/package.json + backend/__init__.py: __version__,release.yml 打 tag 时校验两处同值)。

后端 fork 自 fastapi-best-architecture(FBA) 并新增 SQL Server 支持(现在同时支持 MySQL / PostgreSQL / SQL Server 三种数据库, 前两种沿用上游、SQL Server 是本仓库加的那一种);三层结构、插件机制、RBAC 与 数据权限模型都是 FBA 的设计,归属细节见下面「fork 管理」一节。 前端基于 React 19 + TanStack Router/Query/Table v9 + shadcn(Base UI 底座)。

架构的承重方式是榫卯:i18n ← ui ← platform ← web 严格单向,每层只暴露形状 (组件 / 契约 / 页面),不靠胶水互相粘。登录页那枚咬合标记(TenonMark) 表示的就是这个,不是项目名。

同一枚榫卯套进纯色圆形徽章,就是浏览器标签页 / 桌面端窗口与安装包用的那个 logo(登录页左上角 TenonBadge 直接引用它)—— TenonMark 本身留给有主题背景的侧边栏,继续用 currentColor 裸跑;登录页左栏的立体榫卯和它共用轮廓 tenon-outline.ts。 两者是同一份图形的两种呈现,徽章的唯一真相源是 scripts/gen-brand-icons.mjs; 改了图形或配色,跑 pnpm brand:icons 重新生成 favicon 与桌面图标,不要手改生成产物。

这份文档是踩坑记录与硬纪律的唯一一份。 全是实测出来的结论, 不是风格偏好 —— 违反了会坏,而且多数是静默地坏。

按任务导航

这份根文件只放跨模块的东西(结构 · 起服务 · 硬纪律)。模块级的踩坑记录 拆进了各自目录的 AGENTS.md —— Claude Code 读到那个目录下的文件时会自动 把它加载进上下文,不用你手动指。人要查的话按下表直接翻:

我要… 读
第一次上手 本文件的「结构」·「本地起服务」·「硬纪律」(必读)
加列表页 / CRUD 页 · 主从页 · 监控页 · 工作台卡片 / 布局 packages/platform/src/pages/AGENTS.md · dashboard 分册
加设置屏 —— 骨架本身 / 参数配置那种 _shared 分册 / config 分册
动多页签 / 标签条 / 偏好设置 / 侧边栏 packages/platform/src/shell/AGENTS.md
动文件上传 / 预览 / 附件 packages/platform/src/pages/file/AGENTS.md
动消息通知 / 铃铛 / 收件箱 · 通知公告(读者侧 / 附件 / 谁看得见) · 通知渠道路由(邮件 / 短信 / 群机器人 · 策略 · 投递) · 审批流 · 短信(接新厂商 / 调 sms_service.send()) notification · 公告后端 plugin/notice · 渠道路由 plugin/notification · 审批后端 plugin/workflow · 审批前端 pages/workflow · 短信 plugin/sms
动 AI 对话页 / 侧滑抽屉 packages/platform/src/pages/ai-chat/AGENTS.md
动查询区 / 筛选条件 packages/ui/src/components/query-bar/AGENTS.md
动富文本 / 正文里的图片 packages/ui/src/components/rich-text/AGENTS.md
挑组件 / 改尺寸覆盖不生效 packages/ui/AGENTS.md
把组件库搬进别的项目 packages/ui/PORTING.md
加文案 / 动多语言 · 显示时间 / 动时区 packages/i18n/AGENTS.md(时间一律过 src/datetime.ts)
动请求客户端 / 后端契约 / 错误判定 packages/api/AGENTS.md
动后端模型 / 接口 / SQL · 解析上传的 xlsx apps/api/AGENTS.md
动公共层(校验 / 异常 / 缓存 / 分页) apps/api/backend/common/AGENTS.md
跑 pytest / 建测试库 / 测试跑不起来 backend/tests/AGENTS.md(admin 模块自己的在 app/admin/tests/)
动权限码 / 数据范围 / token 与 cookie 时长 apps/api/backend/common/security/AGENTS.md
动数据库结构 / 写迁移 / 改种子数据 apps/api/backend/alembic/AGENTS.md
动定时任务 / Celery / 调度 apps/api/backend/app/task/AGENTS.md
动命令面板 / 快捷键 / 功能引导 packages/platform/src/shell/AGENTS.md
动构建注入 / 发版提示 / 错误页 apps/web/AGENTS.md
桌面端打包 / 发版 / 自动更新 apps/desktop/AGENTS.md
移动端 App / Expo / uniwind / Metro apps/mobile/AGENTS.md(下面还按 scripts/ · src/app/ · src/components/ 拆了三份)
发到生产服务器 / 回滚 · 动闸门脚本 / 品牌图标 · 公开文档站 / SEO deploy/AGENTS.md · scripts/AGENTS.md · apps/docs/AGENTS.md
写或跑前端 E2E apps/web/e2e/AGENTS.md
动菜单 / 权限 / 死链判定 硬纪律 6 + pages/menu/AGENTS.md

Read the full file on GitHub · 401 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 Changed · +53 tokens per session 52bab673454f
  2. 5d ago Changed · +455 tokens per session dd2a4cf5f1a8
  3. 6d ago Changed · +40 tokens per session 60e35ce0c9e3
  4. 7d ago Changed · +4 tokens per session 64844813d78b
  5. 9d ago Changed · +49 tokens per session 8f2574967ad0
  6. 10d ago Changed · +43 tokens per session 5bd35faa6bcb
  7. 12d ago Changed · +38 tokens per session c5198e4ce36e
  8. 14d ago Changed · +38 tokens per session 3f00242d3b8b
  9. 15d ago Changed · +60 tokens per session 296aa3aa96e0
  10. 17d ago First seen · 401 lines · 7,681 tokens per session scan A 9188114806c6

Subscribe to this mod's changes

fastapi-react-admin CLAUDE.md is an instructions file published in the GitHub repository yilecoding/fastapi-react-admin (82 stars, last pushed today), licensed MIT. It adds 8,461 tokens to every session, about $0.0338 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

fastapi-react-admin CLAUDE.md compared with instructions from other repositories

fastapi-react-admin CLAUDE.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
fastapi-react-admin CLAUDE.mdyilecoding/fastapi-react-adminInstructions file82todayMITA8,461Claude Code
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
deepseek-harness AGENTS.mddeepseek-ai/deepseek-harnessInstructions file274k2d agoMITA4,313Codex, OpenCode