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 michaelChe956/Cadence-skills --skill project-analysisgit clone --depth 1 https://github.com/michaelChe956/Cadence-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/michaelche956/cadence-skills/project-analysis)<a href="https://agentmods.dev/skills/michaelche956/cadence-skills/project-analysis"><img src="https://agentmods.dev/badge/skills/michaelche956/cadence-skills/project-analysis/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/michaelche956/cadence-skills/project-analysis"><img src="https://agentmods.dev/badge/skills/michaelche956/cadence-skills/project-analysis.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.00021 | $0.01285 |
| Opus 5 | $0.00010 | $0.00642 |
| Sonnet 5 | $0.00004 | $0.00257 |
| Haiku 4.5 | $0.00002 | $0.00128 |
Grade A, and why
project-analysis 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 9d 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 — 177 lines — stays where its author put it; the contents beside it link to each section on GitHub.
项目分析
概述
分析项目结构、依赖、Git 历史,生成项目初始化分析摘要文档。
检查清单
你必须为以下每个项目创建任务并按顺序完成:
- 收集项目信息 — 统计文件/目录数量,识别主要编程语言
- 分析目录结构 — 获取主要目录结构
- 分析依赖关系 — 读取 package.json、requirements.txt 等
- 分析 Git 历史 — 获取最近提交和统计信息
- 检测项目类型 — 识别前端/后端/全栈/其他,需要用户确认
- 生成分析报告 — 创建项目初始化分析摘要文档
下一步:将分析结果传递给 @rule-config skill 进行规则配置
处理流程
1. 收集项目信息
执行命令:
# 统计文件和目录数量
find . -type f -not -path '*/\.*' | wc -l # 文件数
find . -type d -not -path '*/\.*' | wc -l # 目录数
# 识别主要编程语言
find . -name "*.py" -o -name "*.js" -o -name "*.ts" -o -name "*.java" | head -20
# 检测项目类型标识文件
ls -la | grep -E "package.json|requirements.txt|pom.xml|go.mod|Cargo.toml|pyproject.toml"
2. 分析目录结构
执行命令:
# 获取主要目录
find . -maxdepth 2 -type d -not -path '*/\.*' | head -20
3. 分析依赖关系
读取配置文件:
- 前端项目:
package.json - Python 项目:
requirements.txt、pyproject.toml - Java 项目:
pom.xml、build.gradle - Go 项目:
go.mod - Rust 项目:
Cargo.toml
提取关键信息:
- 项目名称
- 版本号
- 主要依赖
- 脚本命令(test、lint、build 等)
4. 分析 Git 历史
执行命令:
# 最近 10 条提交
git log --oneline -10
# 提交统计
git log --oneline --since="30 days ago" | wc -l
注意:如果项目不是 Git 仓库,跳过此步骤
5. 检测项目类型
检测规则:
| 项目类型 | 检测条件 |
|---|---|
| 前端 | 存在 package.json + 前端框架配置(如 vite.config.js、next.config.js、vue.config.js) |
| 后端 | 存在后端语言文件 + 框架(如 requirements.txt + FastAPI/Django,go.mod + Gin) |
| 全栈 | 同时包含前端和后端特征 |
| 其他 | 文档、配置或工具项目 |
检测命令:
# 检测前端特征
ls -la | grep -E "package.json"
ls -la | grep -E "vite.config|next.config|vue.config|astro.config"
# 检测后端特征
ls -la | grep -E "requirements.txt|pom.xml|go.mod|Cargo.toml|pyproject.toml"
用户确认:
- 检测到项目类型后,必须展示给用户确认
- 如果检测不准确,允许用户手动指定
- 使用参数
--project-type可以手动指定项目类型
6. 生成分析报告
文件路径:cadence/analysis-docs/YYYY-MM-DD_分析报告_项目初始化摘要_v1.0.md
文件内容模板:
# 项目初始化分析摘要
**生成时间**:[当前时间]
**项目路径**:[项目路径]
## 1. 项目基本信息
- **项目类型**:[前端/后端/全栈/其他]
- **主要语言**:[语言列表]
- **项目规模**:
- 文件总数:[数量]
- 目录总数:[数量]
- 估算代码行数:[数量]
## 2. 目录结构
[主要目录树]
**目录说明**:
- `src/`:[说明]
- `tests/`:[说明]
## 3. 依赖关系
**主要依赖**:
- [依赖名称]:[版本]
## 4. 主要模块
- **模块 1**:[说明]
- **模块 2**:[说明]
## 5. Git 历史
**最近提交**:
[最近 10 条提交]
**提交统计**:
- 最近 30 天提交数:[数量]
## 6. 下一步建议
[基于分析的建议]
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.
- 9d ago First seen · 177 lines · 21 tokens per session scan A f55afde90124
project-analysis is a skill published in the GitHub repository michaelChe956/Cadence-skills (11 stars, last pushed 8d ago), licensed MIT. It adds 21 tokens to every session and 1,285 once invoked, about $0.0001 per session on Opus 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.
Other skills, from other repositories
systematic-debugging
Use when encountering any bug, test failure, or unexpected behavior, before proposing fixes.
local-ai-agents
Build local-first AI agents that run entirely on a developer workstation with Microsoft Foundry Local and Qwen function-calling models. Covers Small Language Models (SLMs), the OpenAI-compatible local endpoint, sandboxed local tools, local RAG with Chroma, local MCP servers, hybrid cloud/local routing, and the…
next-cache-components-adoption
Turn on Cache Components in a Next.js app and resolve the blocking routes it surfaces. Use when the user wants to enable, adopt, or migrate to Cache Components, flip the cacheComponents flag, work through a flood of blocking-prerender / instant validation errors, run the cache-components-instant-false codemod, or…
insight-error-page
Write or audit an insight-kind error page for the Next.js dev overlay. Use when creating a new errors/ .mdx page, auditing an existing one, or checking that a page matches the framework fix cards. Covers page structure, title alignment, FixCard cards with Copy prompt button, code snippets, terminology verification…
next-cache-components-optimizer
Drive a Next.js route to instant navigation by setting up an agentic loop, under Cache Components / PPR, on initial load (hard navigation) and client-side navigation (soft navigation). Encode the goal as a failing @next/playwright instant() e2e and work it to green, one verified route at a time; the shipped test then…
next-partial-prefetching-adoption
Turn on Partial Prefetching in a Next.js app and work through the insights it surfaces. Use when the user wants to enable or adopt Partial Prefetching, flip the partialPrefetching flag, opt routes in with export const prefetch = 'partial', audit Link prefetch={true} behavior, preserve existing prefetched UI with…