commit — for Claude Code commit, woo-stack, community, for Claude Code, ide skills, commit <message>, commit fix: resolve auth redirect loop, commit --new-branch, Commits, changes

v1.0.0

关于此技能

适用于需要使用Graphite简化Git工作流自动化和分支管理的开发代理 本地化技能摘要: Checks if on trunk and creates a new branch if needed. This AI agent skill supports Claude Code, Cursor, and Windsurf workflows.

功能特性

Commits changes using Graphite, ensuring proper branch management and PR metadata.
Invoke with /commit or /commit <message .
/commit — auto-generates a conventional commit message from the diff
/commit fix: resolve auth redirect loop — uses the provided message
/commit --new-branch — forces creation of a new branch even if already on a feature branch

# 核心主题

howarewoo howarewoo
[0]
[0]
更新于: 2/24/2026

Killer-Skills Review

Decision support comes first. Repository text comes second.

Reference-Only Page Review Score: 7/11

This page remains useful for teams, but Killer-Skills treats it as reference material instead of a primary organic landing page.

Concrete use-case guidance Explicit limitations and caution Quality floor passed for review
Review Score
7/11
Quality Score
54
Canonical Locale
en
Detected Body Locale
en

适用于需要使用Graphite简化Git工作流自动化和分支管理的开发代理 本地化技能摘要: Checks if on trunk and creates a new branch if needed. This AI agent skill supports Claude Code, Cursor, and Windsurf workflows.

核心价值

赋予代理自动化分支管理和PR元数据的能力,具有自动生成的提交消息和强制创建新分支的功能,利用Graphite实现无缝的工作流集成,并支持标准的提交消息

适用 Agent 类型

适用于需要使用Graphite简化Git工作流自动化和分支管理的开发代理

赋予的主要能力 · commit

使用标准格式自动化提交消息
强制创建新的分支以进行功能更新
使用Graphite简化PR元数据管理

! 使用限制与门槛

  • 需要Graphite集成
  • 仅限于Git工作流自动化

Why this page is reference-only

  • - Current locale does not satisfy the locale-governance contract.
  • - The page lacks a strong recommendation layer.

Source Boundary

The section below is imported from the upstream repository and should be treated as secondary evidence. Use the Killer-Skills review above as the primary layer for fit, risk, and installation decisions.

评审后的下一步

先决定动作,再继续看上游仓库材料

Killer-Skills 的主价值不应该停在“帮你打开仓库说明”,而是先帮你判断这项技能是否值得安装、是否应该回到可信集合复核,以及是否已经进入工作流落地阶段。

实验室 Demo

Browser Sandbox Environment

⚡️ Ready to unleash?

Experience this Agent in a zero-setup browser environment powered by WebContainers. No installation required.

Boot Container Sandbox

常见问题与安装步骤

以下问题与步骤与页面结构化数据保持一致,便于搜索引擎理解页面内容。

? FAQ

commit 是什么?

适用于需要使用Graphite简化Git工作流自动化和分支管理的开发代理 本地化技能摘要: Checks if on trunk and creates a new branch if needed. This AI agent skill supports Claude Code, Cursor, and Windsurf workflows.

如何安装 commit?

运行命令:npx killer-skills add howarewoo/woo-stack/commit。支持 Cursor、Windsurf、VS Code、Claude Code 等 19+ IDE/Agent。

commit 适用于哪些场景?

典型场景包括:使用标准格式自动化提交消息、强制创建新的分支以进行功能更新、使用Graphite简化PR元数据管理。

commit 支持哪些 IDE 或 Agent?

该技能兼容 Cursor, Windsurf, VS Code, Trae, Claude Code, OpenClaw, Aider, Codex, OpenCode, Goose, Cline, Roo Code, Kiro, Augment Code, Continue, GitHub Copilot, Sourcegraph Cody, and Amazon Q Developer。可使用 Killer-Skills CLI 一条命令通用安装。

commit 有哪些限制?

需要Graphite集成;仅限于Git工作流自动化。

安装步骤

  1. 1. 打开终端

    在你的项目目录中打开终端或命令行。

  2. 2. 执行安装命令

    运行:npx killer-skills add howarewoo/woo-stack/commit。CLI 会自动识别 IDE 或 AI Agent 并完成配置。

  3. 3. 开始使用技能

    commit 已启用,可立即在当前项目中调用。

! 参考页模式

此页面仍可作为安装与查阅参考,但 Killer-Skills 不再把它视为主要可索引落地页。请优先阅读上方评审结论,再决定是否继续查看上游仓库说明。

Upstream Repository Material

The section below is imported from the upstream repository and should be treated as secondary evidence. Use the Killer-Skills review above as the primary layer for fit, risk, and installation decisions.

Upstream Source

commit

本地化技能摘要: Checks if on trunk and creates a new branch if needed. This AI agent skill supports Claude Code, Cursor, and Windsurf workflows.

SKILL.md
Readonly
Upstream Repository Material
The section below is imported from the upstream repository and should be treated as secondary evidence. Use the Killer-Skills review above as the primary layer for fit, risk, and installation decisions.
Supporting Evidence

Commit Skill

Commits changes using Graphite, ensuring proper branch management and PR metadata.

Usage

Invoke with /commit or /commit <message>.

  • /commit — auto-generates a conventional commit message from the diff
  • /commit fix: resolve auth redirect loop — uses the provided message
  • /commit --new-branch — forces creation of a new branch even if already on a feature branch
  • /commit --new-branch fix: resolve auth redirect loop — combines both

Autonomous Execution

This skill runs fully autonomously without user interaction. When invoked:

  • Do NOT ask for user confirmation at any step
  • Do NOT pause between tasks or wait for approval
  • Proceed directly through all workflow steps
  • Only stop if a critical error occurs

Workflow

Step 1: Check Current Branch

Determine the current branch:

bash
1git branch --show-current

If the --new-branch flag was passed, always create a new branch regardless of the current branch. Proceed to Step 2a.

If the current branch is main or staging (a trunk branch), you are on trunk and must create a new branch before committing. Proceed to Step 2a.

If already on a feature branch (and --new-branch was not passed), skip to Step 3.

Step 2a: Create a New Branch

Create a new feature branch. First, examine the staged and unstaged changes to determine an appropriate branch name:

bash
1git diff --stat 2git diff --staged --stat

Generate a descriptive kebab-case branch name based on the changes (e.g., fix/auth-redirect-loop, feat/add-user-avatar, chore/update-dependencies).

Create the branch with Graphite:

bash
1gt create <branch-name>

gt create automatically stacks the new branch on top of the current branch. This means:

  • If on trunk (main/staging), the new branch's parent is trunk
  • If on a feature branch (e.g., via --new-branch), the new branch stacks on top of that feature branch

Step 2b: Track Parent (only when creating from trunk)

If the new branch was created from main or staging (i.e., NOT via --new-branch from a feature branch), ensure it targets staging:

bash
1gt track --parent staging

Skip this step when --new-branch was used from a feature branch — the branch is already correctly stacked on the current branch by gt create.

Step 3: Stage Changes

Check for unstaged changes:

bash
1git status

If there are unstaged changes, stage all of them:

bash
1gt add .

If the user specified specific files, stage only those files instead.

Step 4: Review the Diff

Get the full diff of staged changes:

bash
1git diff --staged

Analyze the diff to understand:

  • What type of change this is (feat/fix/refactor/docs/chore/test/style)
  • What scope/area is affected
  • What the changes accomplish

Step 5: Run Pre-Commit Checks

Run formatting and tests on changed files:

bash
1pnpm pre-commit

If pre-commit fails:

  1. Review the failures
  2. Fix any formatting issues automatically
  3. Re-stage the fixed files with gt add .
  4. Re-run pnpm pre-commit
  5. If tests fail, report the failures and stop — do not commit broken code

Step 6: Create the Commit

Generate a conventional commit message if one was not provided. The message format:

type(scope): concise description

Optional body with more detail if the change is complex.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

Type: feat, fix, refactor, docs, chore, test, style, perf Scope: The affected package or area (e.g., landing, web, mobile, orpc, ui)

Create the commit:

bash
1gt modify -c -m "$(cat <<'EOF' 2type(scope): concise description 3 4Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> 5EOF 6)"

Use a HEREDOC to preserve multi-line formatting.

Step 7: Submit PR

Create or update the PR with Graphite:

bash
1gt submit

This will create a new PR if one doesn't exist, or update the existing one.

Step 8: Update PR Title and Summary

After submitting, get the full commit history for this branch:

bash
1gh pr view --json number,title,body,headRefName,commits

And get the full diff against the base branch:

bash
1gh pr diff

Analyze ALL commits and the full diff to generate:

  1. PR Title — conventional commit format covering the overall change:

    • feat(scope): description for new features
    • fix(scope): description for bug fixes
    • refactor(scope): description for refactoring
    • docs(scope): description for documentation
    • chore(scope): description for maintenance
    • If the PR has mixed types, use the most significant one
  2. PR Summary — structured markdown body:

markdown
1## Summary 2<1-3 bullet points describing what this PR does> 3 4## Changes 5<Bulleted list of specific changes made> 6 7## Test Plan 8<How to verify the changes work> 9 10--- 11🤖 Generated with [Claude Code](https://claude.com/claude-code)

Update the PR:

bash
1gh pr edit --title "type(scope): description" --body "$(cat <<'EOF' 2## Summary 3... 4 5## Changes 6... 7 8## Test Plan 9... 10 11--- 12🤖 Generated with [Claude Code](https://claude.com/claude-code) 13EOF 14)"

Step 9: Report Result

Output a summary to the user:

✓ Committed: type(scope): description
✓ PR #<number> updated: <title>
  <PR URL>

Edge Cases

  • No changes to commit: If git status shows no changes, report "Nothing to commit" and stop
  • Branch already exists: If gt create fails because the branch exists, use gt branch checkout <name> instead
  • PR submit fails: If gt submit fails, report the error — the commit was still made successfully
  • Pre-commit hook failure: Fix formatting issues and retry. If tests fail, stop and report

Important Rules

  • Always use gt commands for branch/commit operations (never raw git commit)
  • Always run pnpm pre-commit before committing
  • Always include Co-Authored-By trailer in commit messages
  • Always update PR title and summary after each commit using the full diff
  • Branch names use kebab-case with type prefix (e.g., feat/thing, fix/bug)
  • New branches target staging via gt track --parent staging

相关技能

寻找 commit 的替代方案 (Alternative) 或可搭配使用的同类 community Skill?探索以下相关开源技能。

查看全部

openclaw-release-maintainer

Logo of openclaw
openclaw

本地化技能摘要: 🦞 # OpenClaw Release Maintainer Use this skill for release and publish-time workflow. It covers ai, assistant, crustacean workflows. This AI agent skill supports Claude Code, Cursor, and Windsurf workflows.

333.8k
0
AI

widget-generator

Logo of f
f

本地化技能摘要: Generate customizable widget plugins for the prompts.chat feed system # Widget Generator Skill This skill guides creation of widget plugins for prompts.chat . It covers ai, artificial-intelligence, awesome-list workflows. This AI agent skill supports Claude Code, Cursor, and Windsurf

149.6k
0
AI

flags

Logo of vercel
vercel

本地化技能摘要: The React Framework # Feature Flags Use this skill when adding or changing framework feature flags in Next.js internals. It covers blog, browser, compiler workflows. This AI agent skill supports Claude Code, Cursor, and Windsurf workflows.

138.4k
0
浏览器

pr-review

Logo of pytorch
pytorch

本地化技能摘要: Usage Modes No Argument If the user invokes /pr-review with no arguments, do not perform a review . It covers autograd, deep-learning, gpu workflows. This AI agent skill supports Claude Code, Cursor, and Windsurf workflows.

98.6k
0
开发者工具