AGENT SKILL

代码仓库规模侦察

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

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 files
  • languages: 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 LOC
  • git: whether the project root is a git repository (git rev-parse --git-dir succeeds)

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

  1. Detect languages. Scan for manifest files (pom.xml, *.csproj, package.json, go.mod, etc.) or dominant extensions. Look up language-extensions.yaml for the canonical extension list.
  2. Resolve excludes. Union exclude-patterns.yaml::global.dirs with per_language.<lang>.dirs for each detected language.
  3. Count. Use the template from references/loc-shell.md. Run once per detected language, sum for total.
  4. 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

microsoft
microsoft/github-copilot-modernization

迁移后基线测试验证

verify-test-baseline

根据冻结的基线规范生成并运行迁移后测试。

测试工程师测试与质量保障
★ 55
microsoft
microsoft/github-copilot-modernization

团队连接信息与密钥申请

team-request

团队成员如何在团队模式下申请基础设施连接信息并处理密钥

普通用户凭证与密钥管理
★ 55
microsoft
microsoft/github-copilot-modernization

多智能体团队角色章程

team-charters

为多智能体编码团队提供角色章程(使命、职责范围、核心原则、质量标杆)。每份章程定义该角色的使命、职责范围、核心原则(边界约束)和质量标杆。大多数角色还包含沟通规则。协调者在任务分解时读取这些章程,以将工作分配给正确的角色。 触发场景:"查找角色章程"、"架构师负责什么"、"检查角色边界"、"查找团队角色"、"哪个角色处理 X"、"列出智能体章程"、"角色职责"。 不适用于:任务分解(使用 breaking-down-tasks)、代码实现(使用 implementing-code)、架构分析(使用 analyzing-architecture)。

AI 工程师编码任务委派
★ 55
microsoft
microsoft/github-copilot-modernization

Struts 2 至 Spring Boot 迁移

struts-to-spring

将 Apache Struts 2 应用程序迁移到 Spring Boot 3.x 和 Spring MVC 的迁移指南。

软件开发工程师开发参考
★ 55
microsoft
microsoft/github-copilot-modernization

Spring Boot 项目脚手架搭建

spring-boot-scaffolding

在重写迁移过程中创建新 Spring Boot 项目的参考指南。

软件开发工程师开发参考
★ 55
microsoft
microsoft/github-copilot-modernization

项目经验教训记录与共享

sharing-learnings

介绍如何记录项目经验教训,以便后续阶段的工作者和未来的智能体运行能够参考使用。

项目经理知识管理与沉淀
★ 55