跳到正文
cccskills
免费在 GitHub 公开

auto-code-review

Security scan + code quality + auto-fix on git push.

中文简介正在准备中。当前显示原文说明。

查看安装方法

包含的文件(1)

  • SKILL.md2.2 KB

SKILL.md(原文)

安装前可以查看交给 AI 代理的指令内容。

Auto Code Review Agent

Push-getriggerter Code-Review-Agent der Security-Scans, Code-Qualitätsprüfungen und Style-Checks automatisch durchführt und behebbare Issues patchen kann.

Verwendung

# Letzten Commit prüfen
python scripts/auto-code-review.py --repo /pfad/zum/repo

# Letzte 5 Commits prüfen
python scripts/auto-code-review.py --diff HEAD~5

# Nur JSON-Report ausgeben
python scripts/auto-code-review.py --json

# Mit Auto-Fix (trailing whitespace, BOM, EOF)
python scripts/auto-code-review.py --fix

# Still (nur Exit-Code)
python scripts/auto-code-review.py --quiet

Exit-Codes

CodeBedeutung
0Keine Issues gefunden
1Warnungen (Quality/Style)
2Security Issues gefunden

Security-Scan

Sucht nach:

  • Secrets: Hardcodierte Passwörter, API-Keys, Tokens, Private Keys, AWS-Keys, Connection-Strings, JWT-Tokens
  • SQL-Injection: f-string/format in execute(), String-Konkatenation in SQL-Queries
  • Dangerous APIs: os.system(), shell=True, eval(), exec(), pickle.load(), yaml.load() ohne SafeLoader, verify=False

Code-Qualität

  • Leere except: Blöcke
  • TODO / FIXME / HACK / XXX Kommentare
  • Funktionen > 50 Zeilen
  • Fehlende Return-Type-Hints
  • print() in Produktionscode
  • Auskommentierter Code

Style

  • Trailing Whitespace (auto-fixable)
  • Tabs statt Spaces (auto-fixable)
  • BOM-Marker (auto-fixable)
  • Fehlende Newline am EOF (auto-fixable)

Cron-Job

Der Cron auto-code-review-60m läuft alle 60 Minuten und prüft --diff HEAD~1 im OpenAmer-Repo.

Integration

# Als Git-Pre-Push-Hook
echo 'python scripts/auto-code-review.py --quiet --repo "$PWD"' >> .git/hooks/pre-push
chmod +x .git/hooks/pre-push

Exit-Code-Logik

  • exit 0 = sauber
  • exit 1 = Warnungen (Quality/Style Issues vorhanden)
  • exit 2 = Security Issues gefunden → sofort handeln

评价

还没有评价。欢迎分享你的使用感受。

评论

无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。

还没有评论。来写第一条吧。

提交后会立即公开。请勿填写邮箱、电话等个人信息。URL 最多 2 个。

0 / 1000 字

此表单受 reCAPTCHA 保护,适用 Google 的隐私权政策和服务条款。

同一仓库的技能

Build integrated IS/BS/CF financial workbooks in Excel.

中文简介正在准备中。当前显示原文说明。

openamer/openamer82026年10月21日 更新

a2a-swarm

免费

Run and grow the OpenAmer Agent-to-Agent swarm: identity, trust, node-to-node ask, signed skill/insight sharing, and the autonomous self-learning loop.

中文简介正在准备中。当前显示原文说明。

openamer/openamer82026年10月21日 更新

Use for A/B experiments on OpenAmer configs and skills.

中文简介正在准备中。当前显示原文说明。

openamer/openamer82026年10月21日 更新

Roleplay a hostile user to find and triage UX pain points.

中文简介正在准备中。当前显示原文说明。

openamer/openamer82026年10月21日 更新

Agent mesh: master/worker nodes, HTTP delegation, heartbeat.

中文简介正在准备中。当前显示原文说明。

openamer/openamer82026年10月21日 更新

Use for agentic commerce payments tasks. Candidate synthesized from trend radar; awaiting trial promotion.

中文简介正在准备中。当前显示原文说明。

openamer/openamer82026年10月21日 更新

查看 openamer 的全部技能

报告此技能的问题