Code Check Skill — Git skill for Claude Code
基于 git 提交记录做增量代码隐患检查.
How to install Code Check Skill
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open huzhw/code-check-skill and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
What Code Check Skill does
基于 git 提交记录做**增量**代码隐患检查。SQLite 记录已检查过的提交和文件,只检查新增改动,已检查的自动跳过。多项目各自独立进度。
Alternatives in Git
- 使用 Git Worktrees — 创建孤立的 Git worktrees,带有智能目录选择与安全验证 115.1k ★
- Git Worktree Docs Issue: Dependency Installation — GitHub — Community feedback on official docs with full worktree lifecycle walkthrough 81.1k ★
- Git Worktree Setup — Create isolated git worktrees with instant feedback and background Rust verification 25.5k ★
README
code-check — 增量代码隐患检查
基于 git 提交记录做**增量**代码隐患检查。SQLite 记录已检查过的提交和文件,只检查新增改动,已检查的自动跳过。多项目各自独立进度。
相关技能
- git-commit — Git 提交规范
- coding-rules — AI 编码协作规范
- daily-record-gitlab-md — 日报记录
- daily-merge-gitlab-excel — 日报合并
- reread-rules — 重新加载 CLAUDE.md 规则
- service-manager:桌面服务管理工具
- deepseek-harness-settings-curator — DSH 模型配置梳理
- deepseek-harness-plugin-doctor — DSH 插件与升级体检医生
- agent-config-sync-check:四端同步守卫:链接/硬链接/README 同步检查与修复
- daily-report-panel:日报管家(关联仓库,非 skill,自动合并/导出/发件)
解决了什么问题
写完代码想自查隐患,但**查过一次的改动下次又会全量重查**,浪费时间、浪费 token。这个技能用 SQLite 记住「查过什么」,增量差集只碰新代码。
核心能力
- 增量检查 — git log 与 SQLite 差集,只查新提交;工作区改动按内容 hash 去重
- 检查次数 —
check_count记录每个改动被检查几次,重复标记次数 +1 - 范围首查 — 只查今天提交(
scan --since today)、昨天提交(scan --since yesterday)、从某提交起(scan --from) - 重查 —
recheck二次/多次分析,怕一次检查不准时用 - 刷库建基线 —
baseline老仓库一次性归档全部历史,不实际检查 - 数据表操作清单 — 报告列出本次 diff 实际涉及的库·表·操作,UPDATE/DELETE/MERGE 重点核对:变更字段 + 定位条件(WHERE/ON),INSERT 仅核对表名
- 多项目隔离 —
repo字段区分仓库,各项目检查进度互不影响 - 已提交 + 未提交全覆盖 — 新 commit 和未提交的工作区改动都查
- amend/rebase 免疫 — hash 变了按「时间+提交说明」兜底去重,不重查
- 报告落盘 — 完整报告写入被检查项目
.code-check-reports/目录,文件名带日期、时间、提交次数与起止 commit - 零依赖 — Python 标准库 sqlite3,不用装包
命令族(同仓库 8 个 skill)
| 命令 | 脚本调用 | 作用 |
|---|---|---|
/code-check |
scan |
首查:全范围增量 |
/code-check-today |
scan --since today |
首查:今天提交 |
/code-check-yesterday |
scan --since yesterday |
首查:昨天提交 |
/code-check-from |
Related Skills
MCP Agent Mail Rust
Rust MCP server for multi-agent coordination: 34 tools, Git-backed archive, SQLite indexing, advisory file loc
Claudia Statusline
by Hagan Franks - High-performance Rust-based statusline for Claude Code with persistent stats tracking, progr
Parallel Memory MCP
A memory MCP server that survives parallel agents: SQLite-serialised writes, unified across git worktrees, mir
Cc Remote
Use cc_execute/cc_check to run tasks on the user's local machine via Claude Code. Triggers when user asks to r
Check Secrets
Scan the working tree and recent git history for accidentally-committed BFL API keys, webhook secrets, or othe
Gogogo
Start a new Claude Code session - load context, check git status, and prepare for work
Related Agents
Backend Convention Checker
Use this agent when a plan file's lint verification stage needs to be executed — specifically to check recentl
Scala Coder
Implements a single coding task end-to-end in an assigned git worktree for this Scala project. Owns the FULL l
Session Workflow
Session startup and shutdown discipline — use at the start and end of every development session to orient from