prepare-commit

Prepares a minimal validated change set and commit summary without committing or pushing.

Updated Aug 1, 2026
One-click install
npx skills add https://github.com/QuyDu/Skills-Orchestrator --skill prepare-commit-quydu
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: prepare-commit
Source: https://github.com/QuyDu/Skills-Orchestrator/tree/main/.github/skills/prepare-commit
Command: npx skills add https://github.com/QuyDu/Skills-Orchestrator --skill prepare-commit-quydu

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Before committing, developers often mix unrelated changes into one diff, skip validation, or write vague commit messages. This Skill isolates only the relevant files for a requested change, runs required checks, and produces an evidence-backed pre-commit summary without ever committing, pushing, or bypassing repository protections. ## Core Features & Use Cases - Scope Isolation: Inspects working tree status and diffs to exclude unrelated modifications from the proposed commit set. - Validation with Evidence: Runs required checks for the touched scope and captures failing checks rather than inferring results. - Pre-Commit Checklist: Produces a commit message summary covering intent, impact, and validation results, plus a blocked-items list when commit is unsafe. - Use Case: After a contract-only change passes review, use this Skill to confirm no unrelated risky edits slipped into the diff and to generate a commit summary before you decide whether to commit. ## Quick Start Ask the agent to prepare a commit proposal for the current change using the prepare-commit skill and show any blocked items.

Frequently Asked Questions about prepare-commit

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

FAQPage Schema
How do I prepare a clean commit without unrelated changes?

Use this Skill to inspect working tree status and staged/unstaged diffs, then isolate only files relevant to the requested change. It excludes unrelated modifications from the proposed commit set and flags scope creep before you commit.

How to generate a commit message from actual diffs?

The Skill builds a commit summary explaining intent, impact, and validation results based on the actual diff of the selected files. It never claims push or deploy execution and reflects only verified changes.

Does this Skill commit or push changes automatically?

No. It only prepares the change set and commit summary. Committing, pushing, opening pull requests, or deploying always requires explicit repository and user approval through separate approval gates.

What happens when pre-commit validation checks fail?

The Skill returns a blocked status listing the failing checks with evidence and the items preventing a safe commit. It fails closed and never implies commit readiness while protections or checks are unresolved.

What input does prepare-commit need before running?

It requires the change objective and scope boundaries, working tree status and diffs, applicable validation requirements, and the reports/change-review.json output from the change-review skill for the selected change boundary.