Source profileQuality 64/100Review permissions

affaan-m/ECC/docs/zh-CN/skills/repo-scan/SKILL.md

repo-scan

Review repo-scan's use cases, installation, workflow, and original source instructions.

Source repository stars
234,327
Declared platforms
0
Static risk flags
2
Last source update
2026-07-27
Source checked
2026-07-28

Decision brief

What it does—and where it fits

每个生态系统都有自己的依赖管理器,但没有工具能跨 C++、Android、iOS 和 Web 告诉你:有多少代码真正属于你,哪些是第三方代码,哪些是冗余负担。

Best for

    Not for

    • Tasks that require unconfirmed production actions or broad system permissions.
    • Environments where the pinned source and install steps cannot be inspected.

    Compatibility matrix

    Platform support, with evidence labels

    PlatformStatusEvidenceWhat to check
    CodexNot declaredNo explicit evidencePortability before use
    Claude CodeNot declaredNo explicit evidencePortability before use
    CursorNot declaredNo explicit evidencePortability before use
    Gemini CLINot declaredNo explicit evidencePortability before use
    Open the compatibility checker

    Installation

    Inspect first. Install second.

    The source command is displayed only when detected. A safe inspection prompt is always available so your agent can explain every action before execution.

    Source-detected install commandSource
    npx skills add https://github.com/affaan-m/ECC --skill "docs/zh-CN/skills/repo-scan"
    Safe inspection promptEditorial

    Inspect the Agent Skill "repo-scan" from https://github.com/affaan-m/ECC/blob/4e973d3eaf92d97f8d2e2d8abb39d8bdc8711b38/docs/zh-CN/skills/repo-scan/SKILL.md at commit 4e973d3eaf92d97f8d2e2d8abb39d8bdc8711b38. List every install step, command, network request, credential, file read/write, external action, and rollback step. Explain whether it fits my task. Do not install or execute anything until I approve.

    Workflow

    What the source asks the agent to do

    1. 01

      适用场景

      接手大型遗留代码库,需要了解整体结构 重大重构前——识别核心代码、重复代码和废弃代码 审计直接嵌入源码(而非通过包管理器声明)的第三方依赖 为单体仓库重组准备架构决策记录

      接手大型遗留代码库,需要了解整体结构重大重构前——识别核心代码、重复代码和废弃代码审计直接嵌入源码(而非通过包管理器声明)的第三方依赖
    2. 02

      安装

      Review the “安装” section in the pinned source before continuing.

      Review and apply the “安装” source section.
    3. 03

      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 FETCHHEAD cp -r . /.claude/skills/repo-scan

      分类仓库表面:枚举文件,将每个文件标记为项目代码、嵌入的第三方代码或构建产物。检测嵌入的库:检查目录名、头文件、许可证文件和版本标记,识别捆绑的依赖及其可能版本。为每个模块评分:按模块或子系统分组文件,根据所有权、重复度和维护成本分配四种判定之一。

    Permission review

    Static risk signals and limitations

    Runs scripts

    medium · line 17

    The documentation asks the agent to run terminal commands or scripts.

    git init repo-scan

    Network access

    medium · line 19

    The documentation includes network, browsing, or remote request actions.

    git remote add origin https://github.com/haibindev/repo-scan.git

    Runs scripts

    medium · line 19

    The documentation asks the agent to run terminal commands or scripts.

    git remote add origin https://github.com/haibindev/repo-scan.git

    Evidence record

    Why each signal appears

    EvidenceSourceComputedTestedEditorial
    SignalValueEvidence typeMeaning
    Quality score64/100ComputedDocumentation, specificity, maintenance, and trust rules
    Repository stars234,327SourceRepository attention, not individual Skill quality
    Compatibility0 platformsSourceDeclared in the catalog source record
    Usage guidecatalog recordEditorialGenerated or reviewed according to the visible evidence level

    Pinned source

    Provenance and original SKILL.md

    Repository
    affaan-m/ECC
    Skill path
    docs/zh-CN/skills/repo-scan/SKILL.md
    Commit
    4e973d3eaf92d97f8d2e2d8abb39d8bdc8711b38
    License
    MIT
    Collected
    2026-07-28
    Default branch
    main
    View the original SKILL.md

    repo-scan

    每个生态系统都有自己的依赖管理器,但没有工具能跨 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所有文件合并前全面审查

    工作原理

    1. 分类仓库表面:枚举文件,将每个文件标记为项目代码、嵌入的第三方代码或构建产物。
    2. 检测嵌入的库:检查目录名、头文件、许可证文件和版本标记,识别捆绑的依赖及其可能版本。
    3. 为每个模块评分:按模块或子系统分组文件,根据所有权、重复度和维护成本分配四种判定之一。
    4. 突出结构风险:指出冗余产物、重复的封装器、过时的供应商代码,以及应提取、重建或废弃的模块。
    5. 生成报告:返回简洁摘要及交互式 HTML 输出,支持按模块下钻,便于异步审查审计结果。

    示例

    在一个 50,000 文件的 C++ 单体仓库中:

    • 发现仍在使用 FFmpeg 2.x(2015 年版本)
    • 发现同一 SDK 封装器重复了 3 次
    • 识别出 636 MB 已提交的 Debug/ipch/obj 构建产物
    • 分类结果:3 MB 项目代码 vs 596 MB 第三方代码

    最佳实践

    • 首次审计时从 standard 深度开始
    • 对包含 100+ 模块的单体仓库使用 fast 快速盘点
    • 对标记为需重构的模块增量运行 deep
    • 审查跨模块分析结果,检测子项目间的重复代码

    链接

    Alternatives

    Compare before choosing