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.
npx agentmods add instructions/lets-mica/mica-admin/claude-mdgit clone --depth 1 https://github.com/lets-mica/mica-adminWrote 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/lets-mica/mica-admin/claude-md)<a href="https://agentmods.dev/instructions/lets-mica/mica-admin/claude-md"><img src="https://agentmods.dev/badge/instructions/lets-mica/mica-admin/claude-md.svg" alt="Measured on agentmods" 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.02552 | $0.02552 |
| Opus 5 | $0.01276 | $0.01276 |
| Sonnet 5 | $0.00510 | $0.00510 |
| Haiku 4.5 | $0.00255 | $0.00255 |
Grade A, and why
mica-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 5d 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.
This is a copy
88% identical to mica-admin AGENTS.md — 50 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.
How it starts
The opening of the file, as written. The whole thing — 143 lines — stays where its author put it; the contents beside it link to each section on GitHub.
CLAUDE.md
This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.
项目概述
mica-admin 是基于 mica 工具集的低代码权限管理平台,使用 Maven、Spring Boot 4.1、Spring Security、MyBatis-Plus(后端)+ Vben Admin 5.x(前端)。
Maven multi-module 结构:
mica-admin-server/— Spring Boot 后端(Java 17+)mica-admin-web/— 前端工程(Vite + Vue 3 + Naive UI)。这是 Vben Admin 5.x 的本地化版本,源码提取到mica-admin-web/vben/,由 pnpm workspace 协议引用。完整前端说明见mica-admin-web/CLAUDE.md。
构建命令
后端 (mica-admin-server)
从仓库根目录执行:
# 默认 dev profile,跳过前端构建
mvn package
# 生产构建:触发 pnpm install + pnpm build:prod,把 dist 打入 META-INF/resources
mvn clean package -Pprod -U -Dmaven.test.skip=true
# 单测
mvn test -Dtest=ClassName#methodName -DfailIfNoTests=false
# 本地启动
mvn spring-boot:run -Dspring-boot.run.profiles=dev
Maven profile 行为:
dev(默认激活):skipNpmBuild=true,不构建前端。prod:skipNpmBuild=false,通过exec-maven-plugin触发前端构建,并把mica-admin-web/dist复制到META-INF/resources,与后端 jar 合并。
前端 (mica-admin-web)
cd mica-admin-web
pnpm install
pnpm dev # Vite dev server,端口 5888,/api 代理到 http://localhost:8080
pnpm typecheck # vue-tsc --noEmit --skipLibCheck
pnpm lint # eslint --fix
pnpm build # 类型检查 + 生产构建
pnpm build:prod # 仅打包,跳过类型检查(Maven prod profile 调的就是这个)
pnpm build:analyze # 构建并分析包体积
后端架构 (mica-admin-server)
主包:net.dreamlu.mica.admin,源码 src/main/java/:
net.dreamlu.mica.admin.common— 公共常量(ApiCode、MicaAdminConstants)。net.dreamlu.mica.admin.framework— 框架核心:安全、MyBatis、AOP 日志、控制器基类、VO、工具类。net.dreamlu.mica.admin.project— 业务模块,目前主要是project.system(用户/角色/菜单/部门/字典/文件存储/监控/日志/通知)。
关键框架细节
- 容器:Tomcat(Spring Boot 4.1 已移除 Undertow 适配),日志 Log4j2(非 Logback)。
- ORM:MyBatis-Plus 3.5 + Druid。实体扫描
net.dreamlu.mica.admin.**.entity;Mapper XML 位于classpath:net/dreamlu/mica/admin/**/mapper/*Mapper.xml。 - 存储:MySQL(schema 见
docs/database/mysql.sql)+ Redis(localhost:6379)。 - 安全:Spring Security + JWT(HMAC,密钥在
mica.security.jwt-token.secret)+ RSA 公钥加密登录密码 + 算术图形验证码。配置见framework.config.MicaAdminSecurityConfig。- 放行白名单在
application.yml的mica.security.permit-all中。 - 表单登录端点:
POST /api/session(form-urlencoded)。 - 注销端点:
GET /api/logout。 - 认证相关组件:
framework.security.auth.*(SecAuthenticationProvider、SecAuthHandler、SecWebAuthDetailsSource、AuthUserArgumentResolver)。 - JWT:
framework.security.jwt.*(JwtTokenService、JwtTokenStore、JwtAuthenticationTokenFilter、JwtUser)。
- 放行白名单在
- 基础类:
framework.base.BaseModel(含id/created_by/created_at/updated_by/updated_at审计字段,由framework.mybatis.MybatisPlusMetaObjectHandler自动填充)和framework.base.BaseController(统一响应封装)。 - 系统日志:
@ApiLog注解 + AOP 切面(framework.syslog.SysLogAspect)→ 事件 →SysLogListener异步落库。 - API 文档:
mica-openapi(Swagger/Knife4j),访问/doc.html。 - 文件存储:
dromara.x-file-storage(本地 + OSS 抽象),控制器SysFileStorageController。
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.
- 5d ago First seen · 143 lines · 2,552 tokens per session scan A 078930d24ffe
mica-admin CLAUDE.md is an instructions file published in the GitHub repository lets-mica/mica-admin (5 stars, last pushed 15d ago), licensed Apache-2.0. It adds 2,552 tokens to every session, about $0.0128 per session on Opus 5. A static security scan graded it A with 0 findings. It is 88% identical to mica-admin AGENTS.md, differing in 50 lines, and is treated as a copy.
Other instructions, from other repositories
tiny-vue AGENTS.md
AGENTS.md instructions for opentiny/tiny-vue, covering agents.md, 项目概述, 关键目录结构, 环境要求 and 核心命令.
wot-starter AGENTS.md
AGENTS.md instructions for wot-ui/wot-starter, covering project guidelines, scope, architecture, build and test and openspec workflow.
vite-vue3-browser-extension-v3 copilot-instructions.md
Instructions for mubaidr/vite-vue3-browser-extension-v3, covering copilot ai agent instructions, project overview, key workflows, architecture & patterns and integration points.
uniapp-vue3-template CLAUDE.md
Claude Code instructions for oyjt/uniapp-vue3-template, covering claude.md, 技术栈, 目录结构, 常用命令 and 架构要点.
quail-ui CLAUDE.md
Instructions for quailyquaily/quail-ui, covering claude.md, build commands, architecture overview, entry points and component organization.
quail-ui AGENTS.md
Instructions for quailyquaily/quail-ui, covering repository guidelines, project structure & module organization, build, test, and development commands, coding style & naming conventions and testing guidelines.