代码仓库规模侦察
project-recon
对任意代码仓库进行零依赖的 Shell 侦察——检测编程语言、统计代码行数(LOC)并报告项目规模。仅使用纯 POSIX find/wc 或 PowerShell,无需 Python 或第三方工具。 触发词:“这个项目有多大”、“用了哪些语言”、“项目规模评估”、“仓库侦察”、“LOC 统计”、“范围核查”。
- License 许可
- MIT
- 最近更新
- 2026-09-24
- Stars
- ★ 55
- Forks
- 15
01 前言 Front Matter
- name
- project-recon
- description
- Zero-dependency shell recon for any code repository — detect languages, count LOC, and report project scale. Pure POSIX find/wc or PowerShell, no Python or third-party tools required. Triggers: "how big is this project", "what languages", "project sizing", "repo recon", "LOC count", "scope check".
02 资源文件 17
- 参考文档references/bug-taxonomy.md5.3 KB
- 参考文档references/concurrency.md5.7 KB
- 参考文档references/distributed-systems.md6.2 KB
- 参考文档references/exclude-patterns.yaml1.7 KB
- 参考文档references/failure-classification.md4.1 KB
- 参考文档references/fuzzing.md6.9 KB
- 参考文档references/language-extensions.yaml2.0 KB
- 参考文档references/loc-shell.md2.5 KB
- 参考文档references/minimality-lattice.md4.8 KB
- 参考文档references/minimization.md5.4 KB
- 参考文档references/output-contract.md3.6 KB
- 参考文档references/property-based-testing.md4.8 KB
- 参考文档references/shrinking-checklist.md3.2 KB
- 参考文档references/test-patterns.md6.4 KB
- 脚本scripts/detect_context.sh4.3 KB
- 脚本scripts/shrink_text.py3.7 KB
- 脚本scripts/validate_repro.sh3.0 KB
03 SKILL.md 正文
Project Recon: Zero-Dependency Repo Sizing
What this skill does
Quickly answers: how big is this repo and what's in it. Shell-only (POSIX find + wc or PowerShell), runs anywhere, no install needed.
Output Format
Emit exactly this JSON structure — no additional fields:
{
"total_loc": <int>,
"languages": { "<lang>": <loc>, ... },
"top_level_dirs": <int>,
"primary_language": "<lang with highest LOC>",
"git": <bool>
}
total_loc: sum of non-blank lines across all detected source fileslanguages: per-language LOC breakdown (only languages actually found)top_level_dirs: count of immediate subdirectories under repo root (excluding hidden dirs)primary_language: the language key with the highest LOCgit: whether the project root is a git repository (git rev-parse --git-dirsucceeds)
Do NOT add fields beyond this schema. No descriptions, no module lists, no domain analysis.
Files
| File | Purpose |
|---|---|
references/language-extensions.yaml |
Language → file extension mapping + generated-file suffixes to skip |
references/exclude-patterns.yaml |
Directory exclude rules (global + per-language) |
references/loc-shell.md |
bash + PowerShell counting templates |
Workflow
- Detect languages. Scan for manifest files (pom.xml, *.csproj, package.json, go.mod, etc.) or dominant extensions. Look up
language-extensions.yamlfor the canonical extension list. - Resolve excludes. Union
exclude-patterns.yaml::global.dirswithper_language.<lang>.dirsfor each detected language. - Count. Use the template from
references/loc-shell.md. Run once per detected language, sum for total. - Emit JSON. Output the schema above. Nothing else.
Semantics
- Counts non-blank lines (
wc -l), comment-inclusive. This is intentional — speed and simplicity over precision. - Expect 5–15% upward bias vs comment-stripping counters on verbose languages (Java, C#). Acceptable for sizing.
04 同仓库更多 Skills
迁移后基线测试验证
verify-test-baseline
根据冻结的基线规范生成并运行迁移后测试。
团队连接信息与密钥申请
team-request
团队成员如何在团队模式下申请基础设施连接信息并处理密钥
多智能体团队角色章程
team-charters
为多智能体编码团队提供角色章程(使命、职责范围、核心原则、质量标杆)。每份章程定义该角色的使命、职责范围、核心原则(边界约束)和质量标杆。大多数角色还包含沟通规则。协调者在任务分解时读取这些章程,以将工作分配给正确的角色。 触发场景:"查找角色章程"、"架构师负责什么"、"检查角色边界"、"查找团队角色"、"哪个角色处理 X"、"列出智能体章程"、"角色职责"。 不适用于:任务分解(使用 breaking-down-tasks)、代码实现(使用 implementing-code)、架构分析(使用 analyzing-architecture)。
Struts 2 至 Spring Boot 迁移
struts-to-spring
将 Apache Struts 2 应用程序迁移到 Spring Boot 3.x 和 Spring MVC 的迁移指南。
Spring Boot 项目脚手架搭建
spring-boot-scaffolding
在重写迁移过程中创建新 Spring Boot 项目的参考指南。
项目经验教训记录与共享
sharing-learnings
介绍如何记录项目经验教训,以便后续阶段的工作者和未来的智能体运行能够参考使用。