commit

Commit current changes to a Git branch and push to the remote.

Updated Jun 5, 2024
One-click install
npx skills add https://github.com/trysmr/dotfiles --skill commit-trysmr
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: commit
Source: https://github.com/trysmr/dotfiles/tree/main/.claude/skills/commit
Command: npx skills add https://github.com/trysmr/dotfiles --skill commit-trysmr

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

このスキルは現在の変更をGitブランチにコミットしてリモートにプッシュします。

Core Features & Use Cases

  • ブランチ戦略の適用: 適切なプレフィックスを用いたブランチ名を決定
  • 変更点の確認: git status, diff で差分を把握
  • コミット情報の準備: タイトルと詳細を日本語で整理
  • リモートへプッシュ: 新規ブランチ or 既存ブランチへ push

Quick Start

現在の変更をコミットし、リモートへプッシュします。変更ファイルと推奨するコミットメッセージ案を提示します。

Frequently Asked Questions about commit

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I commit and push changes to a Git repository?

Committing and pushing changes to Git involves staging your modifications, creating a commit with a descriptive message, and pushing to the remote repository. This Skill automates that workflow by reviewing your branch strategy, inspecting the diff, composing a commit message, and executing the push after your approval.

What's the best way to organize commits when using branching strategies?

Branch-scoped commits follow a naming convention with appropriate prefixes and contain clear, focused changes. This Skill applies your project's branch strategy to suggest the right prefix, validate your changes against the current status, and ensure commits are structured for user review before pushing.

How do I review changes before committing them to version control?

Use git status to see modified files and git diff to inspect the exact changes line by line. This Skill displays both, lets you review the recommended commit message, and requires your approval before executing the commit and push to your remote branch.

Can I commit changes to different branches with the same workflow?

Yes. This Skill lists available branches and lets you choose the appropriate target—whether creating a new feature branch or pushing to an existing one. It respects your branch strategy and applies the correct prefix for the branch type you select.

What happens if I need to revise my commit message before pushing?

This Skill presents a recommended commit message and awaits your approval before executing. You can review and refine the message during this step, ensuring it accurately describes your changes before the commit and push are applied to the remote.

Does this workflow enforce any project-specific commit standards?

Yes. This Skill reads your project's branch strategy to determine naming conventions and prefixes, then applies those standards when suggesting branch names and composing commit messages, ensuring your changes follow the established workflow.