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 skills add jiushiwon/wg-skills --skill backend-analysis-skillgit clone --depth 1 https://github.com/jiushiwon/wg-skillsWrote 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/skills/jiushiwon/wg-skills/backend-analysis-skill)<a href="https://agentmods.dev/skills/jiushiwon/wg-skills/backend-analysis-skill"><img src="https://agentmods.dev/badge/skills/jiushiwon/wg-skills/backend-analysis-skill/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.
<a href="https://agentmods.dev/skills/jiushiwon/wg-skills/backend-analysis-skill"><img src="https://agentmods.dev/badge/skills/jiushiwon/wg-skills/backend-analysis-skill.svg" alt="Reviewed on agentmods" width="80" 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.00233 | $0.02222 |
| Opus 5.5 | $0.00093 | $0.00889 |
| Sonnet 5.5 | $0.00047 | $0.00444 |
| Haiku 4.5 | $0.00023 | $0.00222 |
Grade A, and why
backend-analysis-skill 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 25d 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.
How it starts
The opening of the file, as written. The whole thing — 134 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Backend Analysis Skill — 后端项目全景分析
本技能对已有后端项目做静态扫描(不编译、不运行),一次产出 4 份报告,用于接手老项目、技术盘点、交接文档、重构前摸底。
适用场景与边界
- 适用:接手陌生项目、盘点技术栈与接口、补交接文档、重构/迁移前摸底
- 不做:不修改目标项目代码、不运行业务、不替代运行时接口文档(Knife4j/Swagger)
- 与其他技能的区别:
deploy-detect-skill为部署生成画像(轻量),本技能为理解项目产出 4 份完整报告frontend-code-doctor审查前端代码质量,本技能盘点后端项目backend-select-skill是从零生成后端,本技能是分析已有后端
工作流程
Step 0 识别技术栈 → Step 1 接口扫描 → Step 2 技术扫描 → Step 3 数据库扫描 → Step 4 业务梳理 → Step 5 汇总总览
默认 4 份报告全出;用户指定单份时(如"只出接口报告")只跑对应 Step。
Step 0:技术栈识别(必先执行)
读取构建文件判断语言与框架,规则详见 references/detection-rules.md:
pom.xml/build.gradle(.kts)→ Javago.mod→ Gorequirements.txt/pyproject.toml/Pipfile→ Pythonpackage.json→ Node.js
识别结果(语言 + 框架 + 版本 + ORM)决定后续使用哪套扫描模式。多模块/多语言混合项目逐模块识别后分别套用。
Step 1:接口扫描 → 01-api-report.md
扫描模式详见 references/api-scan-patterns.md。要点:
- 先 Glob 定位控制器/路由文件,再 Grep 路由注解/注册语句
- 类级路由前缀 + 方法级路径拼接出完整 URL(如
@RequestMapping("/user")+@PostMapping("/login")→POST /user/login) - 提取每个接口的:HTTP 方法、完整路径、处理函数、入参(DTO/Query)、出参类型、鉴权标记
- 识别全局路由配置(context-path、统一前缀
/api、版本前缀/v1) - 标注无鉴权接口、被注释/废弃的接口
Step 2:技术栈扫描 → 02-tech-report.md
扫描模式详见 references/tech-scan-patterns.md。覆盖 6 个维度:
| 维度 | 内容 |
|---|---|
| 基础栈 | 语言与运行时版本、框架版本、构建工具 |
| 依赖清单 | 按 Web/ORM/缓存/MQ/工具/测试 分类 |
| 中间件 | Redis、Kafka/RabbitMQ/RocketMQ、ES、对象存储(OSS/S3/MinIO) |
| 第三方 API | 短信、支付、推送、地图、OAuth/SSO、邮件、AI 服务(依赖 + 配置 key 双证据) |
| 架构组件 | 拦截器/过滤器/中间件、全局异常处理、AOP、全局配置加载、跨域配置、路由注册方式、定时任务 |
| 安全隐患 | 硬编码密钥、拼接 SQL、DEBUG 开启、Actuator 暴露 |
密钥/密码类信息在报告中必须打码(如 AKIA****)。
Step 3:数据库扫描 → 03-database-report.md
扫描模式详见 references/database-scan-patterns.md。要点:
- 从连接配置(
spring.datasource.url/DATABASE_URL等)判断数据库类型 - 按 ORM 扫描实体/模型文件,提取表名、字段、索引、关联关系
- 收集 SQL 与迁移文件(
*.sql、Flywaydb/migration、Liquibase changelog、Alembic/Prisma/Django migrations) - 扫描缓存设计(Redis key 模式、
@Cacheable) - 连接串中的账号密码打码
What ships with it
6 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
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.
- 25d ago Changed 106eacb09be4
- 1mo ago Changed · +4 lines e0d0f5b0849c
- 2mo ago First seen · 130 lines · 233 tokens per session scan A a783b7f98605
backend-analysis-skill is a skill published in the GitHub repository jiushiwon/wg-skills (154 stars, last pushed 7d ago), licensed Apache-2.0. It adds 233 tokens to every session and 2,222 once invoked, about $0.0009 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-09-30.
backend-analysis-skill compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| backend-analysis-skilljiushiwon/wg-skills | Skill | 154 | 7d ago | Apache-2.0 | A | 233 | Claude Code, Codex |
| ocr-pipeline-and-qualityxberg-io/xberg | Skill | 9.6k | yesterday | MIT | A | 16 | Claude Code |
| pdf-backendsxberg-io/xberg | Skill | 9.6k | yesterday | MIT | A | 16 | Claude Code |
| add-sharepointmicrosoft/power-platform-skills | Skill | 1.2k | today | MIT | A | 39 | Claude Code |
| nw-diagramnWave-ai/nWave | Skill | 636 | 12d ago | MIT | A | 54 | Claude Code |
| excel2jsonCoderWanFeng/python-office | Skill | 1.4k | 1mo ago | Apache-2.0 | A | 51 | Claude Code, Codex |
| rag-web-fallbacklyonzin/knowledge-rag | Skill | 308 | 3d ago | MIT | A | 61 | Claude Code, Codex |