AgentStack
Browse Sign in
Browse Why AgentStack Sell Docs
Sign in
SKILL verified MIT Self-run

Minimal Diff Fix

skill-ggbdpq-agent-skills-minimal-diff-fix · by ggbdpq

最小改动修复与轻量回归。Use when fixing a clear bug, startup failure, field mapping bug, Android compatibility issue, local environment blocker, ffmpeg or task-state bug, controlled console debugging, or when the user asks to only change necessary files, avoid refactors, keep the diff small, or get the path running first.

No reviews yet
0 installs
41 views
0.0% view→install

Install

$ agentstack add skill-ggbdpq-agent-skills-minimal-diff-fix

✓ scanned · ✓ verified, works with Claude Code, Cursor, and more.

Security review

✓ Passed

No issues found. Passed automated security review. · v0.1.0 How review works →

  • Prompt-injection patterns
  • Secret / credential exfiltration
  • Dangerous shell & filesystem operations
  • Untrusted network calls
  • Known-malicious package signatures

What it can access

  • Network access No
  • Filesystem access No
  • Shell / process execution No
  • Environment & secrets No
  • Dynamic code execution No

From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.

View the full security report →

Verified badge

Passed review? Show it. Paste this badge into your README, it links to the public security report.

AgentStack Verified badge Links to your public security report.
[![AgentStack Verified](https://agentstack.voostack.com/badges/verified.svg)](https://agentstack.voostack.com/security/report/skill-ggbdpq-agent-skills-minimal-diff-fix)

Reliability & compatibility

Security review passed
0 installs to date
no reviews yet
2mo ago

Declared compatibility

Claude CodeClaude Desktop

Compatibility is declared by the source manifest. End-to-end runtime verification is coming, see below.

Preview Execution monitoring

We're building live execution health for every listing: tool-call success rate, median latency, uptime, and last-checked timestamps, measured, not self-reported. It isn't live yet, so we don't show numbers we can't stand behind.

How agent discovery & health will work →
Are you the author of Minimal Diff Fix? Claim this listing to set pricing, connect Stripe payouts, and keep 70% of every sale.
Sign up to claim

About

最小改动修复

使用定位

只解决当前目标的直接阻断点。优化目标是最小可审阅 diff,改到阻断解除就停下。

如果目标是模块蓝图、目录规范、文档体系迁移或新 skill 提炼,切到对应 skill。

铁律

  • Fail fast and loudly. Do not add fallback logic unless the user explicitly requires fallback behavior.
  • Let exceptions and real errors surface early. Do not absorb business-layer errors just to make the UI look calmer.
  • Write tests only when they first prove the current bug exists by failing. Do not expand scope with test infrastructure when the user's goal is immediate unblocking.

直接阻断链

动手前把候选改动分三类:

| 分类 | 判断 | 处理 | | --- | --- | --- | | required | 不做它,当前目标仍失败 | 本轮实现 | | optional | 更整洁、更完整,但当前不阻断 | 列为后续 | | off-scope | 重构、文档、脚本、相邻问题、测试基建 | 本轮不做 |

受控诊断打点

当用户只要求调试、排查、找原因、看为什么、debug 或加 console 时,先进入诊断模式:

  1. 只在用户指定文件、直接调用方或一层被调方加最少 console。
  2. 统一使用 [DEBUG-myshow] 前缀,必要时只补紧邻的 eslint-disable-next-line no-console
  3. 禁止在诊断模式下改业务分支、返回值、异常处理、请求参数、状态写入、依赖版本或目录结构。
  4. 用户贴新日志时,只调整诊断点继续缩小范围,直到根因链路足够清楚。
  5. 用户说已找到原因、OK、明白了、调试结束、删 console,或转入梳理机制时,先删除 [DEBUG-myshow] 及对应 eslint 注释,再继续下一步。

诊断输出只说明复现路径、应该看哪些 Console 或 Network 证据、下一轮需要贴回哪些日志。只有用户明确要求修复时,才从诊断模式切回最小改动修复。

Test-first 流程

  1. 抽取最小失败现象。
  2. 找到可独立运行的函数、样式、配置、schema、route 或 contract。
  3. 先写会失败的轻量测试,确认失败原因和 Bug 对齐。
  4. 只改 required 文件。
  5. 只运行相关测试,再按风险补人工验收。
  6. 报告未改事项和原因。

常见判断

| 场景 | 最小修复点 | | --- | --- | | 字段缺失或展示异常 | 先查接口事实、类型、mapper,再改消费层 | | 任务状态异常 | 先定位 route schema、service、worker、processor、repository、storage 或 CLI | | 样式兼容问题 | 只改触发问题的 selector 和组件 | | 环境变量、代理、员工缓存、ffmpeg 缺失 | 先说明前置条件,未经要求不写绕过逻辑 | | README、脚本、依赖名不一致 | 不阻断当前路径时不顺手统一 |

反模式

  • 不顺手清理。
  • 不为了小修复新增大型测试体系。
  • 不把一个 Bug 修成通用框架。
  • 不捕获异常后发明新 UI 状态解释它。
  • 不改脚本名、依赖版本或目录结构来显得更整齐。
  • 不把真实外部接口混进普通轻量测试,除非目标就是集成验收。

输出格式

  1. 结论摘要
  2. 根因链路
  3. 修改文件清单
  4. 必须改的原因
  5. 测试命令和结果
  6. 未改事项

Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

Install and usage instructions live in the source repository linked above.

Reviews

No reviews yet, be the first.

Versions

  • v0.1.0 Imported from the upstream source.