stage-related-files

Groups file changes into logical commits during Git staging workflows.

8|Updated Feb 4, 2026
One-click install
npx skills add https://github.com/hutchic/.cursor --skill stage-related-files
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: stage-related-files
Source: https://github.com/hutchic/.cursor/tree/main/.cursor/skills/git/stage-related-files
Command: npx skills add https://github.com/hutchic/.cursor --skill stage-related-files

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Group related changes into logical commits to improve Git history clarity and review quality.

Core Features & Use Cases

  • Group edits by feature or task and propose commit-scopes
  • Exclude non-essential files (e.g., research docs) from staging
  • Decide when to split commits for separate features or fixes, improving traceability and auditability

Quick Start

Review your changes with git status, group related files into logical sets, and stage each group before committing.

Frequently Asked Questions about stage-related-files

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

FAQPage Schema
How do I group related files into logical git commits?

To group related files into logical git commits, review your changes with git status, identify related edits by feature or task, and stage each group separately using git add before committing to improve history clarity.

What is the best way to split mixed changes into separate git commits?

The best way to split mixed changes into separate git commits is to decide when to batch or split changes based on grouping criteria, then stage and commit each feature or fix independently to improve traceability and auditability.

How do I exclude research notes and documentation from git staging?

To exclude research notes and documentation from git staging, apply grouping criteria that identify non-essential files and prevent them from being staged, ensuring only relevant code changes are included in your commits.

Can I use this workflow to improve code review quality before committing?

Yes, you can use this workflow to improve code review quality by grouping edits by feature or task, proposing commit-scopes, and following a step-by-step process to review, group, and stage files per-commit.

When should I split commits for separate features in version control?

You should split commits for separate features in version control when changes span multiple tasks or fixes, as separating them into logical commits improves traceability, auditability, and overall Git history clarity.

Why does grouping files by feature improve Git history clarity?

Grouping files by feature improves Git history clarity because it organizes changes into logical sets that reflect specific tasks or fixes, making it easier to review, audit, and trace modifications over time.