home / skills / dagster-io / erk / erk-diff-analysis
This skill generates concise, strategic commit messages for diffs by describing module changes, highlighting breaking changes, and noting test coverage.
npx playbooks add skill dagster-io/erk --skill erk-diff-analysisReview the files below or copy the command above to add this skill to your agents.
---
name: erk-diff-analysis
description: Internal skill for commit message generation. Only load when explicitly requested by name or invoked by commands.
---
# Diff Analysis
This skill provides the commit message generation prompt used by PR submission commands.
## When to Use
Only load this skill when:
- Explicitly requested by name (`erk-diff-analysis`)
- Invoked by commands like `/erk:git-pr-push`
## Usage
Load `references/commit-message-prompt.md` when analyzing a diff, then apply its principles to generate output.
## Key Principles
- Be concise and strategic - focus on significant changes
- Use component-level descriptions - reference modules/components, not individual functions
- Highlight breaking changes prominently
- Note test coverage patterns
- Use relative paths from repository root
This skill generates concise, high-quality commit messages from diffs for PR submissions. It is loaded only when explicitly requested or invoked by specific commands, keeping it inactive by default. The output emphasizes impactful changes, breaking notes, and repository-relative paths to aid reviewers and changelogs.
When invoked, it loads the commit-message prompt template and inspects the provided diff. It summarizes changes at the component/module level, flags breaking changes, and notes test coverage patterns. The result is a strategic, reviewer-focused commit message that follows repository conventions.
When is this skill loaded?
Only when explicitly requested by name or invoked through designated PR commands.
Should commit messages include file-level details?
Prefer component-level descriptions and repository-relative paths; avoid listing every file unless the change is small and file names add clarity.