跳到正文
cccskills
免费在 GitHub 公开

commit

Creates project commits — Conventional Commits format, message quality (72 char subject, 80 char body), staged-change checks, and the AI co-author trailer. Use when committing changes, running /commit, creating commit messages, or reviewing commit message quality. Make sure to use this skill whenever a git commit is being created — it is the project's commit workflow and replaces the default one.

中文简介正在准备中。当前显示原文说明。

rsicarelli/fakt星标 67(GitHub 67 + cccskills 0)

实测评分 未实测

查看安装方法

包含的文件(1)

  • SKILL.md3.4 KB

SKILL.md(原文)

安装前可以查看交给 AI 代理的指令内容。

Commit

Creates commits that follow the project's Conventional Commits standard and credit AI co-authorship.

Instructions

1. Intercept Commit Intent

Detect: "commit", "git commit", "commit changes", "push this", "done, commit it". Activate immediately before any commit action.

2. Analyze Staged Changes

git diff --cached --name-only
git diff --cached

# Check for sensitive files (BLOCK if found)
git diff --cached --name-only | grep -E '\.(env|pem|key|credentials)$'

Determine commit type from changes:

  • feat — New feature files
  • fix — Bug fixes
  • docs — Only docs/comments
  • refactor — Restructure, same behavior
  • test — Test additions/fixes
  • build — Build system, dependencies
  • chore — Maintenance

Scopes (pick from the paths changed; omit for cross-cutting changes):

ScopePaths
compilercompiler/, compiler-api/
codegencodegen-runtime/
gradlegradle-plugin/, build-logic/
annotationsannotations/
samplessamples/
claude.claude/, CLAUDE.md
ci.github/
depsdependency bumps (chore(deps): ...)
releaserelease tooling

Documentation-only changes use the docs type (docs(gradle): ... when scoped to one module).

3. Validate Commit Message

Required format:

<type>[(scope)]: <description>

[optional body]

[optional footer]

Validation rules:

  • Valid type: feat|fix|docs|style|refactor|perf|test|build|ci|chore|revert
  • Subject ≤72 characters
  • No trailing period
  • Imperative mood ("add" not "added")
  • Blank line between subject and body
  • Body lines wrapped at 80 characters

4. Add the AI Co-Author Trailer

When Claude wrote or co-wrote the change, end the message with a Co-Authored-By trailer after a blank line:

Co-Authored-By: Claude <model name> <noreply@anthropic.com>

If the session already supplies attribution lines for commits, use those verbatim instead. One trailer per commit; no other attribution text is needed.

5. Execute Commit

Only after all validations pass:

git commit -m "$(cat <<'EOF'
<validated commit message>
EOF
)"

Verify:

git log -1 --format="%H %s"

6. Handle Edge Cases

Multiple logical changes — recommend splitting:

1. refactor(codegen): extract default-value lookup to its own strategy
2. feat(codegen): add a default for kotlin.time.Duration
3. test(codegen): cover the Duration default

Error Messages

Invalid Type:

COMMIT BLOCKED — Invalid Type
"update" is not valid. Use: feat, fix, docs, style, refactor, perf, test, build, ci, chore, revert

Subject Too Long:

COMMIT BLOCKED — Subject exceeds 72 characters (currently: {n})
Suggested: "{shortened version}"

Related Skills

  • bdd-test-runner — Run tests before committing
  • compilation — Validate code compiles before committing

评价

还没有评价。欢迎分享你的使用感受。

评论

无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。

还没有评论。来写第一条吧。

提交后会立即公开。请勿填写邮箱、电话等个人信息。URL 最多 2 个。

0 / 1000 字

此表单受 reCAPTCHA 保护,适用 Google 的隐私权政策和服务条款。

同一仓库的技能

Runs BDD-compliant GIVEN-WHEN-THEN tests, validates naming compliance, and analyzes coverage. Use when running tests, checking BDD compliance, validating test patterns, or verifying that test names follow GIVEN-WHEN-THEN conventions. Make sure to use this skill whenever tests need to be executed — it validates naming compliance and catches convention violations that plain test runners miss.

中文简介正在准备中。当前显示原文说明。

rsicarelli/fakt672026年10月23日 更新

codegen

免费

Documents the Fakt code generation pipeline — immutable AST model, builder DSL, renderer, default value strategies, and extension functions. Use when modifying code generation, changing generated output, adding new generated patterns, understanding builders or renderers, adding a new default value strategy, or debugging generated output. Make sure to use this skill whenever generated Kotlin code needs to change — the pipeline has strict conventions (immutable AST, builder DSL, renderer separation) that must be followed even for small changes.

中文简介正在准备中。当前显示原文说明。

rsicarelli/fakt672026年10月23日 更新

Validates compilation of generated Fakt fakes and diagnoses build failures — where fakes are generated, which path produced them, error classification, and root cause analysis. Use when compilation fails, generated code has errors, no fakes were generated, validating changes compile before committing, or checking if generated code is valid. Make sure to use this skill whenever a build error mentions generated fakes or the Fakt plugin — even if the root cause might be elsewhere, this skill's error classification pinpoints the actual source.

中文简介正在准备中。当前显示原文说明。

rsicarelli/fakt672026年10月23日 更新

Guides step-by-step through all 11 touchpoints for adding a new @Fake annotation option (like mutability or callHistory). Covers annotation enum, CLI processor, Gradle plugin, FIR metadata, FIR translator, the shared FakeDeclaration model, and code generators. Use when adding a new option to @Fake, adding a new enum to the annotation, making something configurable per-interface, implementing a new compiler plugin feature flag, adding a new Gradle extension property, or extending the three-tier resolution (annotation → plugin → default). Make sure to use this skill whenever a change touches more than one layer of the option pipeline, even for small additions like a new enum value.

中文简介正在准备中。当前显示原文说明。

rsicarelli/fakt672026年10月23日 更新

Creates well-structured GitHub issues using gh CLI with auto-detected project context (version, platform, module). Supports bug reports, feature requests, and internal tasks following repo templates. Use when creating a GitHub issue, reporting a bug, requesting a feature, logging a task, documenting a TODO as an issue, or recording a bug found during development. Make sure to use this skill whenever an issue needs to be created — it auto-detects project context and applies the correct template.

中文简介正在准备中。当前显示原文说明。

rsicarelli/fakt672026年10月23日 更新

Checks Kotlin compiler API usage against the Kotlin versions Fakt supports — which path runs on which compiler, how compat shims are written, how to verify across versions, and how to bump Kotlin. Use when calling a new FIR/IR/compiler-plugin API, seeing NoSuchMethodError, NoSuchFieldError or NoClassDefFoundError from compiler classes, bumping the Kotlin version, or checking whether an API exists in the minimum supported Kotlin. Make sure to use this skill whenever compiler plugin code starts using a Kotlin compiler API it didn't use before — these APIs change between Kotlin releases and a break only shows up on an older supported version.

中文简介正在准备中。当前显示原文说明。

rsicarelli/fakt672026年10月23日 更新

查看 rsicarelli 的全部技能

报告此技能的问题