commit

Enforce conventional commit formatting and branch checks before git add and commit.

Updated Aug 27, 2026
One-click install
npx skills add https://github.com/promptlylabs/skills --skill commit-promptlylabs
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: commit
Source: https://github.com/promptlylabs/skills/tree/main/plugins/promptly-skills/skills/commit
Command: npx skills add https://github.com/promptlylabs/skills --skill commit-promptlylabs

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Ensures that code changes are committed with discipline, preventing risky direct commits to protected branches and enforcing conventional commit formatting.

Core Features & Use Cases

  • Branch discipline enforcement: automatically prompts feature-branch creation when on main/master and validates the branch before committing.
  • Change review and safety: examines git status and staged changes, preventing commits that include sensitive files (.env, credentials) or unrelated changes.
  • Conventional commit guidance: enforces type(scope): description syntax and optional body, with optional Co-Authored-By attribution.
  • End-to-end commit workflow: adds changes, commits with the properly formatted message, and verifies history with git log.

Quick Start

Use this skill to ensure a safe, conventional-commit compliant workflow when committing changes, including branch checks, staged changes review, and properly formatted messages.

Frequently Asked Questions about commit

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

FAQPage Schema
How do I enforce conventional commits in my git workflow?

To enforce conventional commits in your git workflow, this Skill automates type(scope): description syntax validation, reviews staged changes, and blocks commits to protected branches. It ensures formatting discipline and prevents sensitive files from being committed.

What is the best way to prevent accidental commits to main or master branches?

The best way to prevent accidental commits to main or master branches is using automated branch discipline. This Skill checks your current branch, prompts feature-branch creation if you are on a protected branch, and validates branch state before allowing any git commit operations to proceed.

Can I automatically block sensitive files like .env from being committed in git?

Yes, you can block sensitive files like .env from being committed in git. This Skill examines git status and staged changes before committing, automatically detecting and preventing the inclusion of sensitive files, credentials, and unrelated changes to maintain repository security.

How do I add a Co-Authored-By attribution to my conventional commit messages?

To add Co-Authored-By attribution to your conventional commit messages, this Skill provides optional formatting guidelines during the commit workflow. It automatically applies the attribution alongside the required type(scope): description syntax and body guidelines during the git commit operation.

Does this automated commit workflow work for solo developers or is it designed for teams?

This automated commit workflow works for both solo developers and teams. It scales across Git workflows requiring feature-branch discipline, staged changes review, and conventional commit formatting, making it suitable for maintaining code quality in any software project size or team structure.