minimal-change

仓库创建 2026年7月27日最近提交 1 天前SkillHot 收录 1 天前
▸ 精选理由

防止过度设计,适用于实现、修复和小规模重构场景。

这个 Skill 做什么

在改动前优先评估并实施最小且正确的变更方案。

优先找出并只做最小且正确的改动,先查现有代码、标准库和已装依赖,避免无谓引入抽象或新包。适合实现功能、修复 bug 或重构时,尤其当提案倾向增加封装、配置或额外依赖时。原则是先理解再收敛,别为了未来可能的扩展过早设计复杂方案。

▸ 展开 SKILL.md 英文原文

Chooses and implements the smallest correct change by checking YAGNI, existing code, the standard library, native platform features, and installed dependencies before adding abstractions or packages. Use when implementing features, fixes, or refactors, especially when a proposal adds wrappers, factories, configuration, dependencies, boilerplate, or speculative flexibility.

Skill 开发管理最小改动YAGNI变更策略代码审查通用
0
Stars
0
Forks
21
仓库内 Skill
积累中
7 日增星
安装 / 使用
给你的 Agent 一句话(通用)
帮我安装这个 skill:https://raw.githubusercontent.com/Ludenox-GIT/portable-agent-skills/main/skills/minimal-change/SKILL.md
或 curl 直取 SKILL.md
curl -fsSL "https://raw.githubusercontent.com/Ludenox-GIT/portable-agent-skills/main/skills/minimal-change/SKILL.md"
SKILL.MD 节选查看完整文件 ↗
# Minimal Change

## Iron Law

**UNDERSTAND THE REAL FLOW, THEN STOP AT THE EARLIEST SAFE SOLUTION.**

Minimize the solution, never the understanding. Do not propose a one-liner before
reading the code it changes, its callers, tests, constraints, and existing helpers.

## Workflow

### 1. Restate the required behavior

- Separate the explicit requirement from imagined future requirements.
- Name the observable behavior that must change and the behavior that must remain.
- Ask only when an unresolved choice would materially change the result.

### 2. Trace the real path

- Read the target code and its direct callers.
- Search for existing helpers, components, conventions, and dependencies.
- 
via SKILL·HOT · 数据来自 GitHub 公开信息 · 原文版权归作者所有