/personal:diff-minimalityfrom personal
Simplify an implementation or proposed diff while preserving its required behavior. Use before implementation to choose a smaller solution, when asked to simplify code, or before publishing code changes to a PR. Remove unnecessary structure and reuse existing code without weakening correctness or tests.
Ships in personal. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Optimize for less conceptual complexity and a reviewable diff. Fewer lines alone do not justify losing clarity, domain distinctions, or guarantees.
Identify the accepted request or plan and observable behavior that must remain. Read repository instructions and inspect local changes before editing. For a PR, use its actual base; a stacked PR uses its parent branch. Include staged, unstaged, and relevant untracked changes when simplifying work in progress.
If the requested contract is ambiguous, use existing behavior and tests as the preservation baseline; ask only when a simplification would require choosing new behavior.
Inspect comparable implementation and test files in the repository before choosing a pattern. Follow their directory structure, naming, factories, helpers, mocking conventions, and test level, subject to documented repository rules. Introduce a different pattern only when the existing one cannot meet the current need; explain that limitation.
Before implementation, or for each candidate simplification, answer in order:
Prefer deleting unused structure and speculative configuration. Inline wrappers that add no meaningful boundary. Reuse existing helpers only when their semantics match. Similar syntax alone does not establish shared domain meaning.
Apply justified changes inside the requested scope. Preserve public behavior, error semantics, authorization, atomicity, idempotency, observability, and distinctions such as absent versus zero when they matter.
Apply minimality to tests as well as implementation:
For money, authentication, ledgers, or other correctness-sensitive code, trace the protected invariant before removing a branch or abstraction. A simplification request does not authorize changing that invariant. Existing approval for an intentional behavior change counts.
When invoked to assess a proposal, return the simpler approach without editing source. When invoked to simplify an implementation, make the changes. Do not expand into unrelated cleanup.
Run checks appropriate to the affected behavior and required repository checks. Report what actually ran, its result, and any limitation. Read the final diff for unrelated edits and accidental loss of behavior.
Return what was removed or simplified, why behavior is preserved, and what remains necessary. If no useful simplification exists, explain that briefly; do not manufacture a change to satisfy the skill.
When this is part of preparing a PR, return control to that workflow after verification. Commit or publish only as authorized by the surrounding task. Any repository-installed hook remains a local integration: follow its documented procedure where applicable, without making this skill depend on one hook or provider.
What SKILL.md sets; muted values are Claude Code's defaults
10 skills in this plugin
/code-reviewReview a PR, branch, or working diff adversarially against its intent and repository conventions. Look for concrete failure cases, challenge each candidate finding against the surrounding code, and report supported defects separately from design suggestions. Use for PR reviews, second opinions, or requests to challenge an implementation./create-prOpen a pull request with a concise review format — draft, self-assigned, English title and Spanish body by default, an issue ID prefix, the issue tracker's suggested branch when available, and a body under 120 words that signposts the diff instead of summarizing it. Use when the user asks to create/open/raise a PR, says "PR this", "abre un PR", "subamos el PR", or runs `/create-pr`./Other plugins' skills for the same job
npx claudepluginhub adolfovillalobos/agents --plugin personal