mica-admin CLAUDE.md

mica-admin CLAUDE.md is an instructions file for coding agents from lets-mica/mica-admin. It costs 2,552 tokens per session, scanned A, a copy of mica-admin AGENTS.md, Apache-2.0.

Project instructions for mica-admin, a low-code permissions-management platform with a Java/Spring Boot backend and a Vue frontend. They describe the project structure, build commands, development profile, tests, and local startup.

In plain words
What is it for?
Use them when working on mica-admin, including Maven builds, production builds, backend tests, local startup, frontend installation, development, and type checking.
Why use it?
They give a coding assistant the repository-specific rules needed to build and test the correct backend or frontend parts.

Instructions file

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/lets-mica/mica-admin/claude-md
Clone the repo
git clone --depth 1 https://github.com/lets-mica/mica-admin

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

README.md
[![agentmods](https://agentmods.dev/badge/instructions/lets-mica/mica-admin/claude-md.svg)](https://agentmods.dev/instructions/lets-mica/mica-admin/claude-md)
Your own site
<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>
Per session 2,552 This file is loaded in full into every session.
When invoked 2,552 The same file — it is already loaded in full.
Security scan A 0 findings. Scan, not verified.
Origin 88% copy Near-identical to another mod 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.02552 $0.02552
Opus 5 $0.01276 $0.01276
Sonnet 5 $0.00510 $0.00510
Haiku 4.5 $0.00255 $0.00255

Measured 5d ago against content hash 078930d24ffe, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-05, from the pricing page.

Security

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.

Origin

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.

CLAUDE.md · 143 lines

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,不构建前端。
  • prodskipNpmBuild=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 — 公共常量(ApiCodeMicaAdminConstants)。
  • 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.ymlmica.security.permit-all 中。
    • 表单登录端点:POST /api/session(form-urlencoded)。
    • 注销端点:GET /api/logout
    • 认证相关组件:framework.security.auth.*SecAuthenticationProviderSecAuthHandlerSecWebAuthDetailsSourceAuthUserArgumentResolver)。
    • JWT:framework.security.jwt.*JwtTokenServiceJwtTokenStoreJwtAuthenticationTokenFilterJwtUser)。
  • 基础类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

Read the full file on GitHub · 143 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. 5d ago First seen · 143 lines · 2,552 tokens per session scan A 078930d24ffe

Subscribe to this mod's changes

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.