docs/zh-CN/skills/repo-scan/SKILL.md
跨栈源代码资产审计——对每个文件进行分类,检测嵌入的第三方库,并为每个模块提供可操作的四级判定结果,附带交互式HTML报告。
npx skillsauth add affaan-m/everything-claude-code repo-scanInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
每个生态系统都有自己的依赖管理器,但没有工具能跨 C++、Android、iOS 和 Web 告诉你:有多少代码真正属于你,哪些是第三方代码,哪些是冗余负担。
# Fetch only the pinned commit for reproducibility
mkdir -p ~/.claude/skills/repo-scan
git init repo-scan
cd repo-scan
git remote add origin https://github.com/haibindev/repo-scan.git
git fetch --depth 1 origin 2742664
git checkout --detach FETCH_HEAD
cp -r . ~/.claude/skills/repo-scan
安装任何代理技能前,请先审查源码。
| 能力 | 描述 | |---|---| | 跨技术栈扫描 | 一次扫描 C/C++、Java/Android、iOS(OC/Swift)、Web(TS/JS/Vue) | | 文件分类 | 每个文件标记为项目代码、第三方代码或构建产物 | | 库检测 | 识别 50+ 已知库(FFmpeg、Boost、OpenSSL…)并提取版本号 | | 四级判定 | 核心资产 / 提取合并 / 重建 / 废弃 | | HTML 报告 | 交互式深色主题页面,支持逐层下钻导航 | | 单体仓库支持 | 分层扫描,提供摘要 + 子项目报告 |
| 级别 | 读取文件数 | 适用场景 |
|---|---|---|
| fast | 每模块 1-2 个 | 快速盘点大型目录 |
| standard | 每模块 2-5 个 | 默认审计,含完整依赖 + 架构检查 |
| deep | 每模块 5-10 个 | 增加线程安全、内存管理、API 一致性检查 |
| full | 所有文件 | 合并前全面审查 |
在一个 50,000 文件的 C++ 单体仓库中:
standard 深度开始fast 快速盘点deepdata-ai
Design task-local harnesses, eval gates, and reusable skill extraction for Claude dynamic workflow mode and other adaptive agent harnesses.
development
React component testing with React Testing Library, Vitest/Jest, MSW for network mocking, accessibility assertions with axe, and the decision boundary between component tests and Playwright/Cypress end-to-end runs. Use when writing or fixing tests for React components, hooks, or pages.
tools
React and Next.js performance optimization patterns adapted from Vercel Engineering's React Best Practices (https://github.com/vercel-labs/agent-skills). Organizes 70+ rules across 8 priority categories — waterfalls, bundle size, server-side, client fetching, re-render, rendering, JS micro-perf, advanced. Use when writing, reviewing, or refactoring React/Next.js code for performance.
tools
React 18/19 patterns including hooks discipline, server/client component boundaries, Suspense + error boundaries, form actions, data fetching, state management decision trees, and accessibility-first composition. Use when writing or reviewing React components.