一键导入
git-stats
Use when the user asks about their git commit activity, coding stats, co-authorship with Claude, or repository contribution history across projects
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Use when the user asks about their git commit activity, coding stats, co-authorship with Claude, or repository contribution history across projects
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
Cross-source analysis for detecting patterns across data sources. Includes intention-reality gap detection, commitment accountability tracking, and serendipity/convergence analysis. Reads vault.toml and queries normalized SQLite databases (see SCHEMAS.md).
Query the notmuch email archive for messages, threads, and patterns. Used by other skills (cross-source-queries, weekly-reflection) or invoked directly. Requires email source enabled and notmuch indexed.
Sync email via mbsync (IMAP) and index via notmuch. Run before email-analyzer queries or as part of data-sync. First-time setup requires ~/.mbsyncrc and notmuch database init — see SETUP.md.
基于 SOC 职业分类
| name | git-stats |
| description | Use when the user asks about their git commit activity, coding stats, co-authorship with Claude, or repository contribution history across projects |
Tracks commit activity across git repositories in configured superdirectories, with per-directory author filtering and co-author (Claude) detection.
# From the vault root directory:
uv run .claude/skills/git-stats/ingest.py # Last 7 days (default)
uv run .claude/skills/git-stats/ingest.py --since 2026-03-01
uv run .claude/skills/git-stats/ingest.py --since 2026-03-01 --until 2026-04-01
uv run .claude/skills/git-stats/ingest.py --all # Full history
The git source is configured in vault.toml under [sources.git]. Each scope maps a parent directory to the committer email(s) to track:
[sources.git]
enabled = true
[[sources.git.scopes]]
path = "~/Documents"
authors = ["user@personal.com"]
[[sources.git.scopes]]
path = "~/Work"
authors = ["user@company.com"]
The ingest writes to data/git-commits.db. Useful queries:
-- Commits per repo (last 7 days)
SELECT repo, COUNT(*) as commits, SUM(insertions) as added, SUM(deletions) as removed
FROM commits WHERE date >= date('now', '-7 days')
GROUP BY repo ORDER BY commits DESC;
-- Co-authorship rate (how many commits were made with Claude)
SELECT
COUNT(*) as total,
COUNT(ca.commit_hash) as co_authored,
ROUND(COUNT(ca.commit_hash) * 100.0 / COUNT(*), 1) as pct
FROM commits c
LEFT JOIN co_authors ca ON c.hash = ca.commit_hash
WHERE c.date >= date('now', '-7 days');
-- Co-author breakdown
SELECT ca.name, COUNT(*) as commits
FROM co_authors ca
JOIN commits c ON ca.commit_hash = c.hash
WHERE c.date >= date('now', '-30 days')
GROUP BY ca.name ORDER BY commits DESC;
-- Daily commit volume
SELECT DATE(date) as day, COUNT(*) as commits,
SUM(insertions) as added, SUM(deletions) as removed
FROM commits WHERE date >= date('now', '-30 days')
GROUP BY day ORDER BY day;
-- Repos by scope
SELECT scope, repo, COUNT(*) as commits
FROM commits WHERE date >= date('now', '-7 days')
GROUP BY scope, repo ORDER BY scope, commits DESC;
See _lib/SCHEMAS.md for the full data/git-commits.db schema (tables: commits, co_authors).