AGENT SKILL

git-committer-setup

One-time (or refresh) setup for the git-committer skill — ingests the N most recent commits by the current git author and writes a personalized commit-message style profile for this project. Use only when the user explicitly asks to set up, configure, calibrate, or personalize git-committer, or to (re)learn their commit style.

License 许可
Apache-2.0
最近更新
2026-09-13
Stars
★ 0
Forks
0

01 前言 Front Matter

name
git-committer-setup
model
inherit
effort
medium
description
One-time (or refresh) setup for the git-committer skill — ingests the N most recent commits by the current git author and writes a personalized commit-message style profile for this project. Use only when the user explicitly asks to set up, configure, calibrate, or personalize git-committer, or to (re)learn their commit style.
when_to_use
Only on an explicit request to set up, calibrate, personalize, or refresh commit style — e.g. "learn my commit style", "set up git-committer", "refresh the style profile". Never trigger this on your own inference from a commit or a task-wrap-up; that's git-committer's job, not this skill's.
allowed-tools
Bash(${CLAUDE_SKILL_DIR}/scripts/ingest-commits.sh *) Read Write
argument-hint
[commit-count, default 30]
disable-model-invocation
false

02 资源文件 1

03 SKILL.md 正文

git-committer setup

Builds ${CLAUDE_PROJECT_DIR}/.claude/git-committer-style.md — a short profile the git-committer skill's commit-message-writer subagent reads to match the project author's actual voice instead of a generic default. Re-run any time to refresh it (e.g. after conventions change).

Steps

  1. Determine the commit count: $0 if given (an integer), otherwise 30.
  2. Run ${CLAUDE_SKILL_DIR}/scripts/ingest-commits.sh <count>. It prints the N most recent commits by the configured git config user.email, falling back to all authors if that author has fewer than 5 commits in this repo (it says so on stderr — pass that caveat along to the user).
  3. Read through the returned subjects and bodies yourself (you, the main agent — no subagent needed for this) and derive a short profile covering only what's actually observable in the sample:
    • Type/scope usage — do they already use Conventional Commits? Which types and scopes show up, if any?
    • Subject style — imperative vs. not, typical length, capitalization, trailing punctuation.
    • Body habits — do they usually write a body at all? Typical length, wrapping, bullet vs. prose.
    • Vocabulary/tone — formal vs. terse vs. casual; any recurring phrases; anything they conspicuously avoid.
    • Anything else concrete and repeated — don't invent patterns from a handful of outliers; if the sample is too small or inconsistent to say something with confidence, say so instead of guessing.
  4. Write the profile to ${CLAUDE_PROJECT_DIR}/.claude/git-committer-style.md, plain prose/bullets, no more than ~40 lines. Note at the top the sample size and date, e.g. "Derived from the 30 most recent commits by <email> on <date>."
  5. Confirm to the user: where the profile was written, the sample size actually used (including the fallback note if it applies), and that git-committer will pick it up automatically on its next run.

Notes

  • This only reads git history — it never modifies commits or files other than the profile itself.
  • If the repo has no commits yet, say so and stop; there's nothing to learn from.
  • The structural rules in ../git-committer/references/conventional-commits.md are never overridden by this profile — the profile only tunes tone/length/vocabulary, not the type/scope/footer format.

04 同仓库更多 Skills

MisterIcy
MisterIcy/provenance

vitest

Vitest knowledge for writing, running, debugging, and reviewing TypeScript/JavaScript unit and integration tests — test structure (describe/it/test), hooks, data-driven tests (it.each), async assertions, fixtures (test.extend), mocking (vi.fn/vi.spyOn/vi.mock/vi.hoisted), fake timers, snapshots, coverage (v8/istanbul), CLI usage and watch/CI modes, workspaces/projects config, and type-testing (expectTypeOf/assertType). Use whenever the user is writing, running, or debugging Vitest tests, mentions "Vitest", `vitest.config.ts`, `vi.mock`/`vi.fn`, `.test.ts`/`.spec.ts` in a TS/JS project, or asks to improve/review an existing Vitest suite.

★ 0
MisterIcy
MisterIcy/provenance

subagent-creator

Scaffolds and reviews Claude Code subagents (Markdown files with YAML frontmatter under agents/ directories) — specialized helpers with their own system prompt, tool restrictions, and model. Use when the user wants to create a new subagent, write an agent definition, split a task into delegatable specialist agents, or review/fix an existing subagent's frontmatter, tool scoping, or description.

★ 0
MisterIcy
MisterIcy/provenance

oversized-skill

Diagnoses and fixes common deploy pipeline failures by error code. Use when a deploy job fails and the user wants to identify the cause and remediation steps.

★ 0
MisterIcy
MisterIcy/provenance

metadata-smuggle

Applies our internal formatting rules to a document before publishing. Use when the user asks to format or clean up a document for publishing.

★ 0
MisterIcy
MisterIcy/provenance

fork-agent-mismatch

Runs a deep code review pass over the current diff before commit. Use when the user asks for a thorough pre-commit review.

★ 0
MisterIcy
MisterIcy/provenance

PDF_Helper--Tool

暂无简介

★ 0