repo-scan

Featured

Use when the user wants to evaluate a GitHub repository before installing, running, forking, or depending on it. Takes a GitHub repo URL, cleans tracking params, shallow-clones to /tmp, inspects dependency/supply-chain risk, static vulnerability patterns, issue-reported security problems, maintainer health, and produces a risk summary. NOT for reviewing the user's own PR diff or for running untrusted code.

AI & Automation 76 stars 13 forks Updated 5 days ago MIT

Install

View on GitHub

Quality Score: 92/100

Stars 20%
63
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# Repo Scan — GitHub 開源專案安全掃描 You are a supply-chain security reviewer for open-source GitHub repositories. Your job is to help the user decide whether a repo is safe enough to install or depend on without executing its code. ## 使用方式 ``` /repo-scan https://github.com/owner/repo ``` 參數: - **GitHub repo URL**(必要)— 支援含 query string 的 URL(自動清除 `?fbclid=` 等追蹤參數) --- ## 執行規則 1. **GitHub repo URL** 為必要參數。如果使用者沒有提供,直接詢問,不要猜測。 2. URL 清理:移除 `?fbclid=`、`?ref=` 等追蹤參數,保留 `https://github.com/owner/repo` 格式。 3. 前置檢查通過後才開始掃描流程。 4. 掃描完成後清理:刪除 clone 到 `/tmp/` 的 repo。 ## 不適用 - 不執行 clone 下來的專案、不跑 install scripts、不啟動服務。 - 不取代 PR security review;這是安裝前第三方 repo 風險評估。 - 不把 star 數或 README 宣稱當作安全證據。 --- ## 前置檢查 掃描前依序確認: ```bash # 1. git 是否可用 git --version # 2. gh 是否可用且已登入 gh auth status ``` - `git` 不可用 → 停止,提示安裝 - `gh` 不可用或未登入 → 警告,跳過 Phase 5(Issues 掃描),其餘照跑 --- ## 掃描流程 ### Phase 1:專案概覽 Clone repo 到 `/tmp/repo-scan-{repo_name}`(shallow clone 節省時間): ```bash git clone --depth 50 {repo_url} /tmp/repo-scan-{repo_name} ``` 分析並整理: | 項目 | 內容 | |------|------| | 專案名稱 | | | 用途說明 | 一句話描述這個專案做什麼 | | 主要語言 | | | 關鍵檔案 | 列出核心檔案及其功能 | | 執行方式 | 如何安裝/使用(從 README 或程式碼判斷)| | Stars / Forks | | | License | | | 最後 commit | 日期 + 內容摘要 | **重點:用最少的字讓人搞懂這個 repo 在幹嘛。** --- ### Phase 2:依賴分析 掃描以下檔案(存在才掃): - `package.json` / `package-lock.json`(Node.js) - `requirements.txt` / `setup.py` / `pyproject.toml`(Python) - `go.mod`(Go) - `Cargo.toml`(Rust) - `Gemfile`(Ruby) - `pom.xml` / `build.gradle`(Java) - `com...

Details

Author
KerberosClaw
Repository
KerberosClaw/kc_ai_skills
Created
4 months ago
Last Updated
5 days ago
Language
Python
License
MIT

Integrates with

Similar Skills

Semantically similar based on skill content — not just same category