一键导入
code-review
Structured diff and PR code review with a prioritized checklist. Use when reviewing staged changes, pull requests, or any code diff before merge.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Structured diff and PR code review with a prioritized checklist. Use when reviewing staged changes, pull requests, or any code diff before merge.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
Authoritative user guide + reference map for Mux-Swarm itself (v0.12.1). Use when the user asks how Mux works, how to configure it, what a command/flag/config-key does, how modes/teams/sandbox/auth/ACP/delegation work, or how to troubleshoot Mux. Points to exact sections in the bundled DOCS.md instead of dumping it.
Profile, clean, and analyze tabular data (CSV/JSON/Parquet) with pandas/polars. Use when exploring datasets, computing aggregations, joining tables, resampling time series, or producing analysis charts.
Find vulnerable and outdated dependencies across ecosystems (Python, Node, .NET, Rust, Go). Use when auditing a project for CVEs, preparing a release, or investigating a security report.
Design distinctive, polished UI that avoids generic 'AI slop'. Use when making visual design decisions: typography, color, spacing, hierarchy, motion, and component composition.
Run real SAST and secret-scanning tools locally (semgrep, bandit, gitleaks, trivy). Use when auditing a codebase for vulnerabilities, exposed secrets, or vulnerable dependencies before shipping or on demand.
Safe schema-aware SQL querying against CSV/Parquet/JSON files, SQLite databases, and live Postgres. Use when querying structured data, profiling a schema, or building data pipelines.
基于 SOC 职业分类
| name | code-review |
| description | Structured diff and PR code review with a prioritized checklist. Use when reviewing staged changes, pull requests, or any code diff before merge. |
| requires_bins | ["git"] |
# Unstaged working-tree changes
git diff
# Staged (about to be committed)
git diff --staged
# Branch vs main
git diff main...HEAD
# Specific file
git diff HEAD -- path/to/file.py
# Between two commits
git diff abc123 def456
# Stat summary first (scope the blast radius)
git diff --stat main...HEAD
# Recent commit messages on this branch
git log --oneline main..HEAD
# Who last touched a file
git log --follow -p -- path/to/file.py
# Full file for context around a hunk
git show HEAD:path/to/file.py
Work through each category. Flag findings as P0/P1/P2 (below).
pickle, yaml.load, eval, etc.finally/with/defer)Produce a prioritized findings list. Read-only: propose changes, do not edit files directly.
## Review: <branch or description>
### Summary
<2-3 sentence overview of what the diff does and overall risk level>
### Findings
**P0 — Must fix before merge**
- [security-scan.py:42] SQL query built with f-string from user input → SQL injection.
Suggest: use parameterized query `cursor.execute(sql, (user_val,))`.
**P1 — Should fix**
- [api/orders.py:118] New `/admin/orders` endpoint missing auth check.
- [utils/parser.py:67] `yaml.load(data)` → use `yaml.safe_load(data)`.
**P2 — Nice to have / nit**
- [models/user.py:34] Variable `tmp` is unclear; rename to `normalized_email`.
- No test for the empty-input case in `parse_csv`.
### Verdict
[ ] Approve [ ] Request changes [ ] Needs discussion
| Level | Meaning |
|---|---|
| P0 | Blocks merge: security vulnerability, data loss, crash in prod |
| P1 | Should fix: correctness bug, missing auth, missing tests for new behavior |
| P2 | Improve before or after merge: style, naming, coverage gaps |
# Files changed (overview before reading hunks)
git diff --name-only main...HEAD
# Lines added/removed per file
git diff --numstat main...HEAD
# Search diff for a pattern (e.g. secret-like strings)
git diff main...HEAD | grep -i "password\|secret\|token\|api_key"
# Check for new TODO/FIXME introduced
git diff main...HEAD | grep "^+" | grep -i "todo\|fixme\|hack\|xxx"