بنقرة واحدة
commit-workflow
Systematic commit process with pre-commit checks, atomic commits, and conventional commit messages
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
القائمة
Systematic commit process with pre-commit checks, atomic commits, and conventional commit messages
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
استنادا إلى تصنيف SOC المهني
Use boolean decision trees instead of imperatives for 100% compliance under pressure
Use when creating or developing, before writing code or implementation plans - refines rough ideas into fully-formed designs through collaborative questioning, alternative exploration, and incremental validation. Don't use during clear 'mechanical' processes
Use when completing tasks, implementing major features, or before merging to verify work meets requirements - dispatches cipherpowers:code-review-agent subagent to review implementation against plan or requirements before proceeding
Establish workflow boundary checklists with clear pass/fail criteria and escalation procedures
Use when you've developed a broadly useful skill and want to contribute it upstream via pull request - guides process of branching, committing, pushing, and creating PR to contribute skills back to upstream repository
Use when starting feature work that needs isolation from current workspace or before executing implementation plans - creates isolated git worktrees with smart directory selection and safety verification
| name | Commit Workflow |
| description | Systematic commit process with pre-commit checks, atomic commits, and conventional commit messages |
| when_to_use | when committing code changes, before creating pull requests, when another agent needs to commit work |
| version | 1.0.0 |
Structured commit process ensuring code quality through pre-commit verification, atomic commit composition, and conventional commit message formatting.
Before committing:
Commit composition:
Note: Quality gates (PostToolUse, SubagentStop hooks) automatically enforce pre-commit checks, so code quality is already verified.
Read these before committing:
${CLAUDE_PLUGIN_ROOT}standards/conventional-commits.md - Commit message format${CLAUDE_PLUGIN_ROOT}standards/git-guidelines.md - Git workflow standardsNote: Pre-commit quality checks (linters, tests, build) are enforced automatically by quality gates (PostToolUse, SubagentStop hooks). By the time you're committing, gates have already verified code quality.
Review what's staged:
git status
If 0 files staged:
git add .git add <specific-files>Understand what's being committed:
# See staged changes
git diff --staged
# See all changes (staged + unstaged)
git diff HEAD
Analyze for logical grouping:
Single commit: All changes are logically related (one feature, one fix)
Multiple commits: Multiple distinct changes detected:
If splitting, stage selectively:
# Stage specific files
git add file1.py file2.py
git commit -m "..."
# Stage remaining files
git add file3.py
git commit -m "..."
Format (from standards/conventional-commits.md):
<type>(<optional-scope>): <description>
[optional body]
[optional footer]
Common types:
feat: New featurefix: Bug fixrefactor: Code change that neither fixes bug nor adds featuredocs: Documentation changestest: Adding or updating testschore: Maintenance tasksExample messages:
git commit -m "feat(auth): add password reset functionality
Implement forgot-password flow with email verification.
Includes rate limiting to prevent abuse."
git commit -m "fix: handle null values in user profile endpoint"
git commit -m "refactor: extract validation logic into separate module
Improves testability and reduces duplication across endpoints."
Execute commit:
git commit -m "type(scope): description"
Verify commit:
git log -1 --stat
NEVER skip:
Common rationalizations that violate workflow:
Note: Pre-commit quality checks are enforced by quality gates automatically - no need to run them manually at commit time.
See test-scenarios.md for pressure tests validating this workflow resists shortcuts.