From claude-code-starter
Automates safe git commits: runs CLAUDE.md lint checks, scans staged files for secrets like API keys and .env, summarizes changes with git diff, generates conventional Chinese commit messages (feat/fix/etc.), and executes git commit after confirmation.
How this skill is triggered — by the user, by Claude, or both
Slash command
/claude-code-starter:commitThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
按以下步骤执行提交,每一步都要完成才能进入下一步。
按以下步骤执行提交,每一步都要完成才能进入下一步。
运行 git status 查看当前状态。如果没有任何更改,告诉用户「没有需要提交的更改」并结束。
读取 CLAUDE.md 中的 lint 命令。如果配置了 lint 命令(不是「暂无」),运行它。
检查所有 staged 文件,扫描以下内容:
.env 文件或包含 API_KEY、SECRET、PASSWORD、TOKEN 赋值的行如果发现敏感内容:
如果没有发现问题:继续下一步。
展示 git diff --staged 的摘要(改了哪些文件、大致改了什么)。不需要展示完整 diff,给出简洁的中文摘要即可。
根据更改内容,生成一个符合规范的 commit message:
type: 简短描述展示生成的 message,询问用户:
提交信息:
xxx确认提交吗?可以直接说「好」,或者告诉我你想改成什么。
用户确认后,执行 git commit。展示提交结果。
npx claudepluginhub lightpointventures/claude-code-starterGenerates conventional git commit messages with automatic type/scope detection from file changes/diffs, runs pre-commit validation for secrets/debug code/large files, stages changes, and executes commit.
Runs quality gates, reviews staged changes for issues, and creates a conventional commit. Useful when ready to commit after making changes.
Executes token-efficient git workflows: stages changes, scans for secrets, auto-splits commits by type/scope, generates conventional messages, commits, pushes, and creates PRs. Ideal for structured, secure git ops.