跳到正文
cccskills
免费在 GitHub 公开

git:commit

Create properly formatted commits following Rossoctl conventions

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

rossoctl/rossoctl星标 302(GitHub 302 + cccskills 0)

实测评分 未实测

查看安装方法

包含的文件(1)

  • SKILL.md3.0 KB

SKILL.md(原文)

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

Git Commit

Create commits following Rossoctl conventions with proper formatting and sign-off.

When to Use

  • Every time you commit code
  • After TDD fix iterations
  • Before creating a PR

Quick Commit

git add <files>
git commit -s -m "🌱 Short descriptive message"

The -s flag adds the required Signed-off-by line.

Commit Format

<emoji> <Short descriptive message>

<Optional longer description>

Signed-off-by: <Name> <email>
Co-authored-by: Claude <noreply@anthropic.com>

Emoji Prefixes

EmojiTypeWhen
✨FeatureNew functionality
🐛Bug fixFixing broken behavior
📖DocsDocumentation only
📝ProposalDesign proposals
⚠️Breaking changeAPI or behavior changes
🌱OtherTests, CI, refactoring, tooling

Requirements

  1. Signed-off-by is MANDATORY — always use git commit -s
  2. Co-authored-by Claude — include when Claude creates the commit
  3. Imperative mood — "Add feature" not "Added feature"
  4. Under 72 characters — subject line
  5. No "Generated with Claude Code" line — removed per team preference

Examples

🌱 Add E2E testing infrastructure and deployment health tests

Implements initial end-to-end testing framework for Rossoctl platform.

Signed-off-by: Developer <dev@example.com>
Co-authored-by: Claude <noreply@anthropic.com>
🐛 Fix VPC cleanup order: delete subnets before route tables

Signed-off-by: Developer <dev@example.com>

CVE ID Check (Pre-Commit)

Before every commit, scan the commit message for CVE references:

  • Pattern: CVE-\d{4}-\d+ (e.g., CVE-2026-12345)
  • Also check for: "vulnerability", "exploit", "security flaw" combined with a package name

If found in the commit message:

WARNING: Commit message contains CVE reference.
This will be visible in public git history.

Rewrite using neutral language:
  BAD:  "Fix CVE-2026-12345 in requests library"
  GOOD: "Bump requests to 2.32.0"

  BAD:  "Patch security vulnerability in auth module"
  GOOD: "Update auth module for compatibility"

If a cve:brainstorm hold is active, also verify the staged file diffs don't contain CVE IDs in comments, docstrings, or documentation.

Sign All Commits in Branch

If you have unsigned commits in your branch, sign them all:

git rebase --signoff HEAD~$(git rev-list --count upstream/main..HEAD)

Amending

git commit --amend -s --no-edit

After Committing

Check the commit:

git log --oneline -1

Verify sign-off:

git log -1 --format='%B' | grep 'Signed-off-by'

Related Skills

  • repo:pr - PR creation conventions
  • git:rebase - Rebase before pushing
  • tdd:ci - TDD workflow commit step
  • cve:scan - CVE scanning (invoked by other workflows)
  • cve:brainstorm - CVE disclosure gate (blocks CVE references in commits)

评价

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

评论

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

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

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

0 / 1000 字

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

同一仓库的技能

auth

免费

Authentication and authorization patterns for Rossoctl services

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

rossoctl/rossoctl3022026年10月25日 更新

Create confidential OAuth2 clients in Keycloak for server-to-service authentication

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

rossoctl/rossoctl3022026年10月25日 更新

Configure MLflow with mlflow-oidc-auth plugin for Keycloak OIDC authentication

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

rossoctl/rossoctl3022026年10月25日 更新

Configure OpenTelemetry Collector with OAuth2 authentication for trace export

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

rossoctl/rossoctl3022026年10月25日 更新

ci

免费

CI pipeline monitoring, status checks, and PR validation workflows

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

rossoctl/rossoctl3022026年10月25日 更新

Monitor running CI jobs, wait for completion, create tasks for results

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

rossoctl/rossoctl3022026年10月25日 更新

查看 rossoctl 的全部技能

报告此技能的问题