使用
Linux x86_64
透過 uv tool install 安裝 rebrief
uv tool install rebrief
確認能用
rebrief --version 2>&1; rebrief --help 2>&1輸出應包含「rebrief, version 0.3.2」。
先試試這個
mkdir -p /tmp/testrepo && cd /tmp/testrepo && git init -q && git config user.email "test@example.com" && git config user.name "Tester"
cat > package.json <<'EOF'
{"name":"testapp","version":"1.0.0","dependencies":{"react":"18.0.0","express":"4.18.0"}}
EOF
cat > requirements.txt <<'EOF'
flask==3.0.0
fastapi==0.110.0
EOF
cat > go.mod <<'EOF'
module example.com/app
go 1.21
require github.com/gin-gonic/gin v1.9.1
EOF
mkdir -p src
cat > src/app.py <<'EOF'
# TODO: refactor this module
API_KEY = "sk_test_1234567890abcdef1234567890abcdef"
def hello():
# FIXME: handle errors
pass
EOF
echo "# Test Repo" > README.md
git add . && git commit -qm "Initial commit: add stack manifests"
echo "minor change" >> README.md && git commit -am "fix typo" -q
echo "feature code" > src/feature.py && git add . && git commit -qm "feat: add feature module with important logic"
echo "done" && ls -R /tmp/testrepo
rebrief badge /tmp/testrepo 2>&1執行 rebrief scan <repo> -o <file> 掃描儲存庫並產生 Markdown 報告。
它能做什麼
- 掃描程式碼庫並產生 Markdown 報告已測試
怎麼使用
- 執行
rebrief scan <repo> -o <file> --no-blame --skip-vulnerability-check掃描儲存庫並儲存報告。 - 開啟報告檔案,開頭是針對你儲存庫的「REBRIEF REPORT」標題。
- 執行
- 從 manifest 檔案偵測技術堆疊已測試
怎麼使用
- 執行
rebrief scan <repo> -f json -o <file> --no-blame --skip-vulnerability-check取得 JSON 報告。 - 查看
tech_stack區段中的語言、框架、manifest 與相依套件。
- 執行
- 顯示 Git 歷史時間軸與熱點已測試
怎麼使用
- 執行
rebrief scan <repo> -f json -o <file> --no-blame --skip-vulnerability-check取得 JSON 報告。 - 查看
timeline區段中的提交歷史。
- 執行
- 找出寫死的機密與技術債已測試
怎麼使用
- 執行
rebrief scan <repo> -f json -o <file> --no-blame --skip-vulnerability-check取得 JSON 報告。 - 查看
risk_map區段中的機密與技術債發現。
- 執行
pickfit 測到哪一步
Linux x86_64
- 可以安裝
- 可以啟動
- 4 項功能中 4 項可用
- 可離線使用
適合用來
- 掃描本機儲存庫或遠端 Git 網址
- 跨生態系偵測技術堆疊與相依套件
- 盤點機密資訊、技術債與缺少的測試