Skip to main content

commit

Select applicable checks and validate or create a focused conventional commit

跳到安装

来源信息

仓库
okou-ai/okou
最近来源活动
2026年9月20日 12:53
检测到的 SKILL.md 语言
英语
星标
1,154
分支
71

安装方式

默认使用会先检查来源的 Prompt;你也可以切换为直接命令,或下载本地副本。

检查来源文件

决定是否安装前,请先阅读 SKILL.md,以及 SkillsMP 当前展示的配套文件。

文件资源管理器
2 个文件

正在显示 SKILL.md

SKILL.md
来源说明 · 只读预览
name
commit
description
Select applicable checks and validate or create a focused conventional commit
context
fork
# Commit Use `check` to verify staged work, `message` to propose or validate its message, or both when a commit is requested. ## Scope and Checks 1. Inspect `git status --short`, `git diff`, and `git diff --cached`. Stage only the requested change; preserve unrelated worktree and staged content. 2. Follow [development and verification](../../../CLAUDE.md#development-and-verification) for the affected files, workspaces, generated outputs, and runtime consumers. Read the matching [testing guide](../../../docs/testing.md) when behavior changes. 3. Run applicable formatting, lint/static analysis, type checks, and tests. Await each heavy check; run one Vitest or Cargo check at a time. 4. Fix actual failures. After checks pass, repeat them only if a new change, failure, or unresolved concern warrants it. Documentation does not require unrelated language suites. `lefthook.yml` is the staged-file hook configuration. Hooks do not replace behavior verification. For local Rust `ENOMEM` failures, check for competing compiler/linker processes and retry once with `CARGO_BUILD_JOBS=1`; investigate actual compiler failures separately. Do not delete installed dependencies as a generic response to a slow hook. ## Message Use `<type>[optional scope]: <description>`. The authoritative rules and allowed types are in [commitlint.config.mjs](../../../commitlint.config.mjs): lowercase type and subject, no final period, and at most 100 header characters. Use an imperative description of the actual change. Examples: - `feat: add agent sharing` - `fix(api): preserve webhook idempotency` - `docs: simplify testing guidance` Choose the type from the change, not from a desired version bump. See [release behavior](release-triggers.md) when release impact matters. Before committing, review the complete staged diff and relevant check results. Report the commit SHA, scope, and validation; distinguish failed or unrun checks from passes. Push or open a PR when requested by the caller.
在 GitHub 查看