commit

Guide Git commits, pull requests, and merges with safety exclusions.

220|358|Updated Apr 29, 2026
One-click install
npx skills add https://github.com/maxwell2732/codex-stata-for-economists --skill commit-maxwell2732
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: commit
Source: https://github.com/maxwell2732/codex-stata-for-economists/tree/main/.claude/skills/commit
Command: npx skills add https://github.com/maxwell2732/codex-stata-for-economists --skill commit-maxwell2732

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill prevents messy or unsafe Git workflows by guiding you through a clean commit-branch-PR-merge cycle, while protecting against committing secrets.

Core Features & Use Cases

  • Branch-first workflow: Creates a new branch from the current state so you never commit directly to main.
  • Focused staging discipline: Stages only explicitly specified files and avoids staging local secret or settings files (e.g., settings.local.json).
  • PR creation with a test plan: Generates a pull request with a structured body and merges using a consistent merge strategy.
  • Use Case: When you update Stata/Codex workflow files, use this Skill to stage only the intended files, commit with a rationale, open a PR, and safely merge after review.

Quick Start

Ask the AI to use the commit Skill to stage the correct files, create a descriptive commit message, open a PR, and merge it back to main with the recommended safety exclusions.

Frequently Asked Questions about commit

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

FAQPage Schema
How do I safely commit changes and open a pull request without committing secrets?

To safely commit changes and open a pull request, use a workflow that creates a feature branch, stages only explicitly specified files, and excludes local settings like settings.local.json. This prevents accidentally committing secrets while organizing your updates for review.

What's the best way to stage specific files for a git commit?

The best way to stage specific files for a git commit is using explicit git add commands for selected files after inspecting changes with git status and git diff. This ensures only intended updates are included while local secret or settings files are automatically excluded.

How does a branch-first git workflow protect the main branch?

A branch-first git workflow protects the main branch by creating a new development branch from the current state, ensuring you never commit directly to main. Changes are pushed to the feature branch, reviewed via a pull request, and safely merged back into main.

How do I create a pull request with a test plan using gh?

To create a pull request with a test plan using gh, execute gh pr create with a structured PR body that includes a descriptive commit rationale. This organizes your feature branch updates for review before safely merging them into the main branch.

How do I merge a pull request to main and clean up the branch?

To merge a pull request to main and clean up the branch, use gh pr merge with a consistent merge strategy. This safely integrates your reviewed changes into main and removes the feature branch to maintain a clean repository state.