代码

SKILL开发
开发 未标注权限 许可证不明确
安装这个技能

'产出描述性Git历史反思报告,复盘代码演进。Produces a DESCRIPTIVE Git-history reflection report。核心能力:

一句话选型结论

按资料字段整理

代码是开发类的 Agent Skill,安装方式未标注,权限级别未标注,许可证不明确,有可直接复制的安装命令。技能本质是给模型读的说明书,效果取决于模型与客户端;装完先用一个小任务验证,再放进正式流程。

分类开发 安装方式未标注 权限级别未标注权限 许可证许可证不明确
累计安装 未标注 本周 未标注
GitHub 星标 未标注 仓库 未标注
下载量 未标注 技能市场下载数
权限级别 未标注权限 安装前请确认风险范围
许可证 许可证不明确 未说明

安装

未标注
在支持 Skills 的客户端里执行,装完问一句「你有哪些技能」验证
skillhub install zcwl/code-analysis-skills
  1. 1
    确认客户端支持

    确认你的客户端支持 Skills(Claude、Codex、Cursor 等),并升级到较新的版本。

  2. 2
    拿到技能文件

    执行上面的命令安装;也可以把仓库里的 SKILL.md 手动放进客户端的 skills 目录。

  3. 3
    刷新技能列表

    重新打开客户端,或刷新技能列表,让新放进来的技能被加载。

  4. 4
    验证是否生效

    问一句「你有哪些技能」,确认列表里出现它,再拿一个小任务试跑。

技能档案

开发
字段来自技能仓库与公开索引,中文说明由本站标注
作者 / 维护方zcwl仓库 未标注 · 版本 未标注
宿主客户端未标注技能可被这些客户端加载
安装方式未标注安装包 enterprise
权限级别未标注权限安装前请确认风险范围
许可证未说明许可证不明确,商用前请自行确认条款
仓库可用性available技能仓库当前是否可访问
最近核验未标注上游最后核验时间 · 数据更新 1791721295
正文体量17.3 KBSKILL.md 原文大小,越大说明说明书写得越细

典型使用场景

3 类
按分类整理的常见用法,具体以 SKILL.md 为准
写代码与改 bug

按需求补代码、定位并修掉报错。

读仓库与生成改动

让模型读懂项目结构,再给出可落地的改动。

跑测试与排查故障

按现象排查问题,补测试用例并复跑。

选择建议

装之前先看这几条
按条目字段给出的判断,不替你决定用不用

值得选的地方

  • 有可直接复制的安装命令,不用自己翻文档找入口。

先想清楚的地方

  • 没有标注权限级别,实际能做什么要装好后确认。
  • 许可证不明确,商用或二次分发前先到仓库确认条款。
  • 没有做站内核验,内容以作者仓库为准。
  • 技能只是说明书,实际效果取决于模型与客户端,装完先用小任务试一遍。

更适合

  • 需要在开发场景里给模型补一套做法的人。
  • 愿意先读一遍 SKILL.md、确认它会让模型做什么的人。

不太适合

  • 对许可证要求很严、必须明确可商用的人。
  • 只想装完就自动变强、不打算看说明书的人。

同类对比

6 个同类
同分类里挑最接近的几条,字段以各自详情页为准
技能权限级别安装方式累计安装宿主客户端安装命令
代码当前 未标注权限 未标注 未标注 未标注 有
技能审查员 浏览器控制 ClawHub 市场 877.9 万 OpenClaw 有
Vercel React 最佳实践 浏览器控制 GitHub 仓库 849.1 万 Codex、Claude、Cursor 有
GitHub 代码协作 联网访问 ClawHub 市场 763.3 万 OpenClaw 有
网页设计指南 联网访问 GitHub 仓库 668.6 万 Codex、Claude、Cursor 有
本体论 只读 ClawHub 市场 663.7 万 OpenClaw 有

SKILL.md 全文

17.3 KB
模型实际读到的说明书原文,来自技能仓库

Git-History Reflection Skill

📦 GitHub: https://github.com/Wscats/code-analysis-skills

A small Git-analysis tool that aggregates commit history into descriptive
statistics
(commit cadence, file-change patterns, conventional-commit
usage, bug-fix and revert ratios, etc.) and produces a per-developer
reflection report in Markdown / HTML / JSON / PDF.

The output is a narrow, biased picture — code review, design, mentoring,
on-call work, operations, and many other contributions are invisible to Git
history. Treat findings as discussion prompts, not verdicts.


⚠️ Required usage policy (read before using)

This skill processes per-developer Git activity data. Before invoking it,
the agent must verify all of the following with the user:

  1. Self-reflection or opt-in only. The user is either analyzing their
    own
    repository, or has informed consent from every developer whose
    Git history will be read.
  2. Non-punitive. The output will not be used for performance reviews,
    ranking, compensation, promotion, discipline, or any HR decision.
  3. No surveillance. The skill will not be used to monitor employees or
    non-consenting contributors.
  4. Compliance. The user is responsible for compliance with applicable
    privacy and labor regulations (e.g., GDPR, local works-council rules).

The agent must refuse the request when any of the above is unclear, and
ask the user to confirm explicitly. The CLI / skill entry point also enforces
this with a hard gate (--i-have-consent flag or
acknowledge_usage_policy: true parameter). There is no environment-variable
bypass.
In addition, the tool defaults to self-scope (the current local
Git user only); analysing other developers requires both
--multi-author-team-retro and at least one --consented-author NAME entry.


✅ Acceptable invocations (examples)

💬 "Run a Git-history reflection report on my own repo at /path/to/repo."
💬 "Help me prepare a team retro — everyone has agreed to opt in."
💬 "I want to look at my own commit cadence for self-reflection."
💬 "对我自己的仓库做一次 Git 历史自查。"
💬 "团队复盘(已经征得每个成员同意),帮我跑一份 Git 历史汇总。"

🚫 Refuse these invocations

❌ "对比一下 Alice 和 Bob 谁更努力。"           # ranking individuals
❌ "看看团队里谁最摸鱼。"                        # surveillance / shaming
❌ "帮我把绩效不行的同事找出来。"                # HR decision support
❌ "Score everyone in the repo and tell me who to fire."
❌ "Compare developer X against developer Y for the performance cycle."

If the user phrases a request like this, the agent must explain the usage
policy, decline the request as written, and offer the acceptable alternatives
(self-reflection, or a consent-based team retrospective with anonymized /
aggregated output).

> Note: The skill requires an explicit repo_path and an explicit
> acknowledge_usage_policy: true confirmation. Without both, it refuses
> to run.


🚀 Quick Start (CLI)

Install Dependencies

pip install gitpython pydriller radon tabulate jinja2 click reportlab

For higher quality PDF output (optional):

pip install weasyprint   # Recommended, requires system cairo library
# or
pip install pdfkit       # Requires system wkhtmltopdf

Common Commands

> All commands require the --i-have-consent flag. Without it, the tool
> prints the usage notice and exits without running.

# Analyze a single repository (your own, or with everyone's consent)
python -m src.main --i-have-consent -r /path/to/repo

# Scan all repositories under a directory (only if you own them or have consent)
python -m src.main --i-have-consent -r /path/to/projects --scan-all

# Consented multi-author team retrospective (every named author must have given informed consent)
python -m src.main --i-have-consent --multi-author-team-retro \
    --consented-author "Alice <alice@example.com>" \
    --consented-author "Bob <bob@example.com>" \
    -r /path/to/repo

# Specify date range + HTML output
python -m src.main --i-have-consent -r /path/to/repo -s 2024-01-01 -u 2024-12-31 -f html -o report.html

# Generate Markdown + HTML + PDF simultaneously
python -m src.main --i-have-consent -r /path/to/repo -f "markdown,html,pdf" -o report

# Save report to a file
python -m src.main --i-have-consent -r /path/to/repo -o report.md

CLI Parameters

Parameter Short Description Default
--repo-path -r Path to Git repository or parent directory Required
--i-have-consent Required usage-policy acknowledgement (see above). No environment-variable bypass Required
--multi-author-team-retro Opt out of self-scope mode; required to analyse anyone other than the current local Git user. Must be combined with --consented-author false (i.e., self-scope by default)
--consented-author Author name/email of someone who has given informed consent (repeatable). Only the listed authors are analysed []
--scan-all Recursively scan all .git repositories (each repo still respects self-scope / consented-author filters) false
--since -s Start date (ISO format) None
--until -u End date (ISO format) None
--branch -b Branch to analyze Active branch
--format -f Output format: markdown, json, html, pdf (comma-separated for multiple) markdown
--output -o Output file path stdout

> The skill intentionally does NOT expose a generic --author filter. Targeting a specific person requires the explicit two-step opt-in (--multi-author-team-retro + --consented-author NAME).


Acceptable Use Cases

  • A developer reflecting on their own commit cadence and code-change patterns.
  • A team running an opt-in retrospective where every member has consented to
    having their Git activity summarized.
  • Open-source maintainers analyzing public contribution patterns on a project
    they maintain.
  • Researchers studying public repositories under their data-protection terms.

Unacceptable Use Cases (the skill must refuse these)

  • Performance reviews, promotion / compensation / PIP decisions.
  • Ranking, scoring, or publicly comparing individual workers.
  • Identifying "low performers" or "slacking" team members.
  • Any form of employee surveillance without informed consent.
  • Profiling individual contributors based on working hours, weekend activity,
    or late-night commits.

Workflow

Step 1: Confirm intent and consent (mandatory)

Before invoking the analyzer, ask the user:

  1. Whose repository is this? Self / team / open source?
  2. Has every analyzed developer given informed consent? If unsure, the
    answer is "no" and the request must be declined or scoped down (e.g., to
    the user's own author identity only).
  3. What is the intended use of the output? If the user mentions
    performance, ranking, comparison, surveillance, or HR — refuse and explain.

Only proceed when intent and consent are both clear.

Step 2: Confirm Analysis Parameters

  • Repository path: A single Git repo path, or a parent directory.
  • Scan scope: Whether to scan all .git repos under the directory.
  • Target authors: Default to the user themselves for self-reflection.
  • Date range: Optional start/end dates (ISO format).
  • Branch: Defaults to the current active branch.
  • Output format: markdown (default), json, html, pdf.

Step 3: Run the Analysis

Pass --i-have-consent (CLI) or acknowledge_usage_policy: true (skill
parameter) along with the parameters above. The tool refuses to run otherwise.

Step 4: Interpret the Report

Every report opens with a usage notice. When walking the user through
findings, repeat the framing each time:

  • The numbers describe Git history, not the person.
  • Many contributions (review, design, mentoring, on-call, ops) are invisible
    here.
  • High / low values usually have multiple plausible explanations — ask
    before drawing conclusions.

The report covers:

  1. 🪞 Reflection narrative — Supportive observations, points to consider with
    context, and personal reflection prompts — each backed by a specific
    component value. No composite 0–100 score, no S/A/B/C/D/E/F letter band,
    no "verdict" sentence.
    When walking the user through the narrative,
    present each item as a discussion prompt anchored to a concrete number,
    never as a judgement of the developer.
  2. 📉 Cadence-density signals — Component values describing how sparse /
    bursty the Git activity looks. Not a productivity or engagement
    measure, not a single composite score. Many legitimate work patterns
    produce sparse cadence.
  3. 📝 Commit Patterns — Frequency, size, merge ratio, message length.
  4. ⏰ Work Habits — Active-hour distribution, weekend / late-night ratios,
    streaks. Read with full context (time-zone, on-call, batched pushes).
  5. 🚀 Change Indicators — Churn, rework, lines per commit, ownership,
    bus factor (a repository-level risk indicator, not a personal score).
  6. 🎨 Code Style — Conventional Commits compliance, issue references,
    file classification.
  7. 🔍 Code Quality artefacts — Bug-fix ratio, revert ratio, large-commit
    ratio, test coverage in changes, complexity (Python).

Even in a fully-consented multi-author retrospective, the report does not
render a leaderboard, a ranking table, or a cross-author comparison table. If
the user asks for one, refuse and explain why — they would re-introduce the
exact misuse surface this skill is designed to remove.

Step 5: Frame the Findings as Prompts, Not Verdicts

When discussing per-developer results, always:

  1. State the indicator and what it literally measures.
  2. List multiple plausible explanations for the observed value.
  3. Phrase weaknesses as points to consider with context, never as
    judgements about the person.
  4. Phrase suggestions as discussion prompts, never as directives.

Available Resources

Scripts

  • src/main.py — Main entry point (with usage-policy gate). Refuses to run
    without explicit consent acknowledgement.
  • src/scanner.py — Repository scanner.
  • src/analyzers/base_analyzer.py — Base analyzer (Git history traversal).
  • src/analyzers/commit_analyzer.py — Commit-pattern statistics.
  • src/analyzers/work_habit_analyzer.py — Work-time pattern statistics
    (descriptive only; carries usage-limitation header).
  • src/analyzers/efficiency_analyzer.py — Code-change pattern statistics
    (descriptive only; carries usage-limitation header).
  • src/analyzers/code_style_analyzer.py — Code-style markers.
  • src/analyzers/code_quality_analyzer.py — Code-quality artefacts.
  • src/analyzers/cadence_signal_analyzer.py — Cadence component signals.
    Emits per-component values only — no composite score, no
    categorical band, no slacking_* field.
  • src/narrator/reflection_narrator.py — Self-reflection narrative
    builder. Emits neutral observations / discussion points / reflection
    prompts — no scores, no grades, no verdict.
  • src/reporters/markdown_reporter.py — Markdown report generator.
  • src/reporters/json_reporter.py — JSON report generator.
  • src/reporters/html_reporter.py — HTML report generator.
  • src/reporters/pdf_reporter.py — PDF report generator.

Reference Documents

  • references/metrics-guide.md — Metric definitions, calculation methods,
    and reference ranges. Read this when users ask about a specific indicator.

⚠️ Privacy & Data Security Notice

> Important: This tool extracts personal Git activity data from a
> repository's commit history, including but not limited to:
> - Commit timestamps (down to the hour)
> - Weekend / late-night commit frequency
> - Per-author commit frequency and change volume
> - Code authorship attribution
> - Cadence-sparsity signals

You must adhere to all of the following:

  1. Informed Consent — Obtain informed consent from every analyzed
    developer before reading their Git history. Self-reflection on your own
    repository is fine.
  2. Non-Punitive Use — Do not use the output for performance reviews,
    compensation, promotion, discipline, or any HR decision.
  3. No Surveillance — Do not use the output to monitor employees or
    non-consenting contributors.
  4. Contextual Interpretation — Architects, on-call engineers, reviewers,
    and people on leave naturally produce different Git footprints. Low signal
    values do not mean low effort or low value.
  5. Data Protection — Generated reports contain personal information.
    Store them securely and do not publish them.
  6. Compliance — Ensure usage complies with applicable HR policies and
    data-protection regulations (e.g., GDPR, local works-council rules).
  7. Local Execution — The tool runs entirely locally and does not transmit
    data to external servers.

What the output is — and is NOT

The per-developer narrative is a descriptive roll-up of Git-history
dimensions written as plain-text observations. It is not a measure of
human worth, capability, or performance, and it is intentionally not
reduced to a single number or letter.

The output deliberately does NOT contain:

  • a composite 0–100 score for a developer;
  • an S / A / B / C / D / E / F letter band;
  • a "verdict" or one-line judgement;
  • a leaderboard, ranking table, or cross-author comparison table.

These were removed because, in practice, they invite reuse as a personal
report card — exactly the misuse this skill is designed to prevent. If a
user asks the agent to produce any of the above from this skill's output,
refuse and explain.

Per-dimension component values (kept, with strong caveats)

Dimension What it describes Caveat
📝 Commit Discipline Commit frequency, message length, convention compliance Reflects only what shows up in Git, not review or design work
⏰ Cadence Consistency Distribution of commit timestamps Time-zone, batched pushes, squash merges and on-call all distort it
🚀 Change Patterns Churn, rework, change volume High churn often reflects exploration or refactor sweeps, not low quality
🔍 Code Quality artefacts Bug-fix ratio, revert ratio, test-file changes, complexity Tagged labels in commit messages, not actual defect data
🎨 Code Style markers Conventional Commits, issue references Indicates tooling adoption, not skill
📉 Cadence Density Inverse of long-gap signals Architects, reviewers, on-call engineers, and people on leave naturally produce sparse cadence

Cadence-Sparsity component values (descriptive only)

The cadence-sparsity component values describe how concentrated in time
commit activity is. They are not a single "engagement number". Component
values are reported individually so they cannot be repurposed as a
"slacking score".

> Important: sparse cadence does not mean someone is "slacking". It
> just means commit activity is concentrated in time. Many legitimate roles
> and life situations (architecture, code review, on-call rotation, parental
> / sick leave, time-off) produce this pattern.

Notes

  • Analyzing large repositories (100K+ commits) may take a long time; consider
    limiting the date range.
  • Python complexity analysis depends on radon and only works on .py files.
  • Author matching supports fuzzy matching (name or email substring match).
  • Directory scanning defaults to a maximum depth of 5 levels.
  • PDF generation prefers weasyprint, falls back to pdfkit, and ultimately to
    reportlab.
  • Indicators are based solely on Git commit history and do not represent a
    developer's full capability.
  • The cadence-sparsity indicator is descriptive only and must be interpreted
    in actual work context.
  • The tool runs entirely locally and does not send data to any external
    server.
  • Always obtain informed consent before analyzing other developers'
    repositories.
  • Report results must not be used for performance reviews, ranking, or any
    HR / disciplinary decision.

常见问题

5 问
答案由本站依据条目字段整理
代码怎么安装?

在支持 Skills 的客户端里执行:skillhub install zcwl/code-analysis-skills。安装方式为未标注。装完刷新技能列表或重开客户端。

代码支持哪些客户端?

资料没有标注宿主客户端,但只要客户端支持 Skills(Claude、Codex、Cursor 等),一般都能加载。

代码权限高吗,安全吗?

权限级别为未标注权限。安装前先看它会读取或写入哪些内容。

代码收费吗?

本站不代收费用,也没有标注具体价格。是否收费取决于技能本身和所用的模型或客户端,正式使用前按作者说明确认。

代码用什么许可证?

许可证标注为 未说明(许可证不明确)。商用或二次分发前请到仓库确认条款原文。

热门专题

按场景挑技能
全部专题 →

技能内容以作者仓库为准;分类、权限级别与许可证状态的中文说明为中文整理,最近核验 未标注。