Files
gh-macroman5-claude-code-wo…/.claude/skills/diff-scope-minimizer/SKILL.md
2025-11-30 08:38:46 +08:00

32 lines
786 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
---
name: diff-scope-minimizer
description: Keep changes narrowly scoped with a tiny patch plan and stop criteria
version: 0.1.0
tags: [refactor, productivity]
triggers:
- small diff
- minimal change
- refactor plan
---
# Diff Scope Minimizer
## Purpose
Focus on the smallest viable change to solve the problem and reduce churn.
## Behavior
1. Propose a 35 step patch plan with target files.
2. Estimate diff size (files/lines) and define stop criteria.
3. Re-evaluate after each step; stop if criteria met.
## Guardrails
- Avoid touching unrelated files.
- If diff grows >2× estimate, pause and re-plan.
## Integration
- `/lazy task-exec` before edits; Coder and Refactor agents.
## Example Prompt
> Plan the smallest patch to fix null handling in `src/api/users.py`.