360 Secure SkillHub
360 安全技能中心

Gitguard Skill

这是本地优先的Git仓库安全与健康审计工具,核心功能含熵基秘钥检测、0-100分健康评分、提交质量分析、陈旧分支清理、依赖新鲜度检查、GitHub工单分类。适用于推送前排查秘钥、多仓库健康概览等场景,通过POST指定工具和仓库路径的JSON请求调用,输出对应审计结果,本地数据不外传,秘钥结果仅返回脱敏预览。

welove111
welove111
热度 7.62
最近更新 2026-07-16 10:50:30
分类:开发依赖:MCP 服务 / 第三方 API / 读写文件应用场景:code-quality / DevOps / 报告撰写 / API 集成 ...

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add gitguard-skill
Metadata
name
gitguard
version
1.1.0
description
Git Security Scanner & Repo Health Auditor — entropy-based secret detection, composite health scoring, commit quality analysis, stale branch cleanup, and dependency freshness checks across all your local repos. Local-first, no data leaves your machine except optional GitHub API reads.
author
welove111
homepage
https://btc-vision.org
license
MIT
tags
["git","github","devtools","security","code-quality","repo-management"]
protocols
["mcp"]
category
developer-tools

GitGuard — Repo Intelligence for AI Agents

Give an agent the ability to audit, score, and triage your own Git repositories: exposed secrets, branch hygiene, commit quality, stale dependencies, and GitHub PR/issue backlog — all from local git data plus optional public GitHub API reads.

🔒 Scope and safety notice — GitGuard only reads files and git metadata already on your local disk in the repository you point it at. Secret scan findings are always returned as redacted previews (first/last 4 characters only); raw secret values are never stored, logged, or transmitted. The only network calls this skill makes are read-only lookups against the public npm/PyPI registries (dependency freshness) and the GitHub REST API (PR/issue triage, optional token) — no data about your code or secrets is ever sent anywhere.

What This Skill Does

  • Secret scanning — Shannon-entropy analysis plus known credential patterns (AWS keys, GitHub tokens, private key headers, Stripe/Slack keys, generic key=/secret= assignments) to catch exposed credentials before you push.
  • Composite health score — a single 0-100 grade (A-F) blending secret safety, commit hygiene, branch hygiene, dependency freshness, and recent activity, so you know which of your repos needs attention first.
  • Commit quality analysis — Conventional Commits compliance, subject length, imperative mood, and body presence, scored per commit.
  • Stale branch detection — flags merged-but-not-deleted branches, long-abandoned branches, and branches badly diverged from main, with a keep/review/delete/merge recommendation for each.
  • Dependency freshness — checks package.json and requirements.txt against live npm/PyPI registries.
  • GitHub PR/issue triage — pulls open PRs and issues via the GitHub API and flags which have gone stale.

When To Use This Skill

Use this when a user wants to audit one or more of their own Git repositories: checking for accidentally committed secrets before a push, getting an overview of repo health across many projects, cleaning up stale branches, or triaging a GitHub backlog. This is a defensive, local-first tool for maintaining your own code — it is not a scanning or reconnaissance tool for third-party targets.

Endpoint

MCP Server: https://github.com/welove111/gitguard-skill/.netlify/functions/mcp

POST a JSON body like {"tool": "health_report", "repo_path": "."}.

Available Tools

Tool Description
scan_secrets Entropy + pattern-based secret scan of a repo
health_report Composite 0-100 health score for one repo
multi_repo_dashboard Rank many local repos by health score
commit_quality Conventional Commits compliance scoring
stale_branches Branch staleness + keep/review/delete recommendation
dependency_check npm/PyPI freshness check
github_triage Open PR/issue staleness via GitHub API

Requirements

  • Python 3.9+
  • git CLI available on PATH
  • requests (optional — only needed for dependency/GitHub checks; secret scanning and commit/branch analysis work fully offline without it)
  • GITHUB_TOKEN environment variable (optional — raises GitHub API rate limits from 60/hour to 5,000/hour; not required for public repos)

Support

GitGuard is free and open source. If it saved you time or caught something useful, the project accepts voluntary support:

  • Website: https://btc-vision.org
  • BTC: bc1qtpuhwl0vnhrch5p7e5469q2ed66hlyyvh8rtsn
  • ETH: 0xf03b429d4d85896a46dd7a64b5a8ab9f0bbb4ced
  • SOL: 3G5UZHFYN8hbv3aTZt6Lr7qqx4FTTkAyLJq34HjQLraz
  • Lightning: welove@blink.sv

Links