Commit Policy

Enforce commit policies linking code changes to documentation and excluding sensitive data.

1|Updated Dec 21, 2025
One-click install
npx skills add https://github.com/carnaticlabs/Sangeetha-Grantha --skill commit-policy
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: Commit Policy
Source: https://github.com/carnaticlabs/Sangeetha-Grantha/tree/main/.agent/skills/commit-policy
Command: npx skills add https://github.com/carnaticlabs/Sangeetha-Grantha --skill commit-policy

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill enforces strict guidelines for committing code, ensuring traceability to documentation and preventing the inclusion of sensitive information.

Core Features & Use Cases

  • Traceability: Mandates linking every commit to a specific documentation file.
  • Security: Prevents sensitive data like API keys and configuration secrets from being committed.
  • Workflow Guidance: Provides a clear process for staging, drafting messages, and committing changes.
  • Use Case: A developer needs to commit a new feature. This Skill guides them to create a commit message that references the relevant implementation document and ensures no secrets are accidentally included.

Quick Start

Use the commit policy skill to draft a commit message for your changes, ensuring it references the correct documentation file.

Frequently Asked Questions about Commit Policy

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

FAQPage Schema
How do I enforce a git commit policy that requires documentation references?

To enforce a git commit policy, you need a system that mandates linking every commit to a specific documentation file. This ensures traceability by checking that commit messages include the required references before changes are committed.

How do I prevent API keys and configuration secrets from being committed to git?

To prevent sensitive data like API keys and configuration secrets from being committed, you need security guardrails that scan staged changes. This process blocks the inclusion of sensitive information during the commit workflow.

What is the best way to format commit messages for traceability?

The best way to format commit messages for traceability is to follow a structured workflow that guides you through staging, drafting, and committing. This ensures your message explicitly references the relevant implementation document.

Can I use commit policies to guide developers through the staging and committing workflow?

Yes, you can use commit policies to guide developers through the staging and committing workflow. They provide a clear process for drafting messages and committing changes while ensuring adherence to development workflows and security guardrails.

Why does my commit workflow need to trace code changes to documentation files?

Your commit workflow needs to trace code changes to documentation files to ensure strict traceability across the repository. This practice maintains code quality by linking every implementation change directly to its corresponding documentation.