agentsclimarketplace

Prepare commit

Skill victoriacheng15/dev-toolchain/prepare-commit

A portable library of standardized AI agent skills and orchestration scripts, built on the SKILL.md open standard to streamline consistent engineering workflows across diverse LLM clients.

Install
npx -y skills add victoriacheng15/dev-toolchain --skill prepare-commit

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

One thing to look at

  • 0 stars0 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.

What its author says it does

Copied from the file, not written here

Prepares standardized commits by checking repository state, enforcing staging hygiene, and drafting structured commit.md specs.

SKILL.md

4.9 KB, as published. Nobody here has run it

Prepare Commit

Overview

The prepare-commit skill establishes a standardized workflow for checking repository state, staging changes cleanly, and drafting a high-signal commit.md metadata file. This ensures that every integration is fully documented and conforms to the project's commit message rules.


Automated Execution

For autonomous agents or developer loops, execution of this skill is automated via the companion orchestration script. This script automatically runs the repository audits (git status, git diff HEAD, and git log -n 3) to capture state telemetry.

Invocation Pattern

The agent discovers the script path from this skill directory and executes it within the repository workspace:

bash prepare-commit/prepare-commit.sh

Telemetry Processing

Upon execution, the script runs the core workflow queries and automatically outputs the audited state and drafts the compliant commit.md file pre-filled with suggested git staging commands.


Commit Message Standard

Commit messages must strictly adhere to the following semantic layout:

  • Format: type(scope): imperative subject
  • Length Constraint: The subject line must be kept strictly under 72 characters.
  • Allowed Types: feat, fix, refactor, chore, docs

Branching & Staging Guidelines

To maintain clean and precise pull requests, follow these practices:

  • Branch Uniqueness: The target branch name must not be the same as the previous (or current) branch.
  • Folder-Level Staging (Critical Priority): Prefer adding directories when it is safe and helps keep staging clean. Prioritize directory-level git add <dir> commands when the directory contains only changes intended for the target commit.
  • Path Precision: Use specific, file-level paths when granular precision is required.
  • Exclusion Rule: Avoid broad or wildcard adds (git add . or git add -A) if they risk staging unrelated changes, temporary files, or local secrets.
  • Strict Constraint: Do not include planning documents or commit.md itself in the final execution staging commands.

commit.md Writing Guidelines

The commit.md file provides peer reviewers with immediate, high-level structural context.

List of Changes & Verification Requirements

  1. Writing Style:
    • Clear and concise.
    • Natural and professional.
    • Easily digestible for reviewers.
  2. List of Changes:
    • Strategic & High-Level Context:
      • Focus on why the changes matter.
      • Explain the primary purpose of the changes.
    • System & Process Impact:
      • Describe overall improvements to the system, workflow, safety, or review process.
      • Avoid low-level, line-by-line technical details.
      • Strict Constraint: Do NOT utilize labels such as Strategic Impact: or Operational Resilience: within the bullets.
  3. Verification:
    • Keep it Short and Simple:
      • Only include the command(s) that verify the state on test, formatting, linting, or any specific part of the code that changed.
      • Do not include the final results of the commands.

Mandatory Structure for commit.md

# Git Commit Info

## PR Description

### Summary
[Write 2 to 3 sentences explaining the problem being solved and the value of the change.]

### List of Changes
- [One bullet describing the main improvement or purpose]
- [One bullet describing system, workflow, safety, or review benefit]

### Verification
[Use Markdown checklist syntax for verification items. Verification items must directly verify the current PR's scope. Treat the items below as examples, not required slots to fill mechanically.]

- [ ] [At least one automated test or check that was completed]
- [ ] [At least one manual validation step that still needs to be completed]

## Execution Commands
[Include only the exact git commands used to:
1. git switch -c <branch-name>
2. git add <paths>
3. git commit -m "<type>(<scope>): <subject>"
Do not include commit.md in the staged files.]

Verification Checklist

Prior to completing the staging and commit phase, verify that:

  1. Repository Baseline Audited: The three status, diff, and log commands have been executed.
  2. Metadata Compliance: The commit.md file follows the mandatory structure and does not contain illegal labels.
  3. Commit Message Boundary: The proposed commit subject line is semantic and under 72 characters.
  4. Exclusion Verified: The commit.md file and planning documents are excluded from the staging commands.
  5. Execution Commands Documented: The execution commands section lists the three required git commands (switch, add, and commit).
  6. Branch Uniqueness Verified: The new branch name is not the same as the previous (or current) branch.

Keep looking

Skills are one crate of 328,083. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.