本文へ移動
cccskills
無料GitHub で公開

minimalist-surgical-development

Use when editing an existing codebase and the goal is minimal, standard, and non-invasive changes — prioritizes simplest solution, standard libraries first, and surgical modification without unsolicited refactors

インストール方法を見る

含まれるファイル(1)

  • SKILL.md4.5 KB

SKILL.md(原文)

インストールする前に、エージェントに与えられる指示の中身を確認できます。

Minimalist & Surgical Development

Code like Kent Beck. Solve the stated problem with the least code and the least disruption to the existing structure.

When to Use

  • Task emphasizes "minimal changes", "surgical fix", "preserve structure", "don't refactor"
  • Modifying existing code rather than building from scratch
  • Temptation exists to introduce new abstractions, frameworks, or large rewrites
  • Bug fixes where scope creep is the real risk

When NOT to Use

  • Greenfield development (building from scratch)
  • Explicit refactoring requests ("restructure this module")
  • Performance work that requires architectural change

Minimalist Code Generation

Simplicity First

Always provide the most straightforward solution possible. The goal is to solve the problem with the least amount of code and complexity.

// ❌ Over-engineered
class ConfigurableRetryStrategy {
  constructor(private config: RetryConfig) {}
  async execute<T>(fn: () => Promise<T>): Promise<T> {
    // 40 lines of retry logic with exponential backoff...
  }
}

// ✅ Minimalist (if you only retry once)
try {
  result = await fetchData();
} catch {
  result = await fetchData(); // One retry
}

Standard Library First

Heavily favor standard library functions and widely accepted common patterns. Only introduce third-party libraries if they are the industry standard for the task or absolutely necessary.

// ❌ Adding lodash for one function
import { groupBy } from "lodash";
const grouped = groupBy(items, "category");

// ✅ Standard library
const grouped = Object.groupBy(items, (item) => item.category);
// Or if targeting older runtimes:
const grouped = items.reduce((acc, item) => {
  (acc[item.category] ??= []).push(item);
  return acc;
}, {} as Record<string, typeof items>);

Focus on the Core Request

Generate code that directly addresses the user's request. Do not add extra features or handle edge cases that were not mentioned.

Surgical Code Modification

Preserve Existing Code

The current codebase is the source of truth. Respect its structure, style, and logic.

Minimal Necessary Changes

When adding a feature or fixing a bug, alter the absolute minimum amount of existing code required.

 // The user asked: "add a createdAt timestamp to new users"
 function createUser(data: UserInput): User {
   return db.users.insert({
     ...data,
+    createdAt: new Date(),
     status: "active",
   });
 }
 // That's it. Don't refactor the function, rename variables,
 // add types, or "improve" unrelated code.

Explicit Instructions Only

Only modify, refactor, or delete code that has been explicitly targeted by the user's request. Do not perform unsolicited refactoring, cleanup, or style changes on untouched code.

Integrate, Don't Replace

Whenever feasible, integrate new logic into the existing structure rather than replacing entire functions or blocks.

Navigation Before Modification

Before making any change, understand what you're modifying:

  1. Read the target — view the specific function/class being changed
  2. Check call sites — grep for usages to understand impact
  3. Respect patterns — if the codebase does X one way, continue that way
  4. Verify after — run the relevant tests, not the whole suite unless needed

Quick Checklist

Before submitting a change:

  • Is this the smallest diff that satisfies the requirement?
  • Did I avoid modifying unrelated code?
  • Did I use existing utilities/abstractions instead of adding new ones?
  • Did I avoid adding new dependencies?
  • Does the change follow existing code style and patterns?
  • If I added an abstraction — was it explicitly requested?

Anti-Patterns

Don'tDo
"While I'm here, let me also..."Only change what was requested
Introduce new abstractions unpromptedUse existing patterns
Add a library for one utility functionUse standard library
Replace an entire function for a one-line fixSurgical single-line edit
"Improve" naming in unrelated codeRespect existing conventions
Handle edge cases not mentionedSolve the stated problem
Add types/docs to untouched functionsLeave existing code alone

レビュー

まだレビューはありません。使ってみた感想をお寄せください。

同じリポジトリのスキル

概要と使いどころ

Audit and improve web accessibility following WCAG 2.1 guidelines. Use when asked to "improve accessibility", "a11y audit", "WCAG compliance", "screen reader support", "keyboard navigation", or "make accessible".

日本語の概要は準備中です。原文の説明を表示しています。

RepairYourTech/cfsa-antigravity62026年8月16日 更新

Structured methodology for adversarial thinking — generating attack scenarios, abuse cases, race conditions, and security edge cases against specs and implementations. Produces spec-level gap items, not code-level fixes.

日本語の概要は準備中です。原文の説明を表示しています。

RepairYourTech/cfsa-antigravity62026年8月16日 更新

Orchestrate multiple Antigravity skills through guided workflows for SaaS MVP delivery, security audits, AI agent builds, and browser QA.

日本語の概要は準備中です。原文の説明を表示しています。

RepairYourTech/cfsa-antigravity62026年8月16日 更新

Master REST and GraphQL API design principles to build intuitive, scalable, and maintainable APIs that delight developers. Use when designing new APIs, reviewing API specifications, or establishing API design standards.

日本語の概要は準備中です。原文の説明を表示しています。

RepairYourTech/cfsa-antigravity62026年8月16日 更新

Manage API versioning and evolution with URL/header/query strategies, deprecation workflows, breaking change classification, sunset headers, and consumer-driven contract testing. Use when designing versioning strategy, deprecating endpoints, or evolving API contracts.

日本語の概要は準備中です。原文の説明を表示しています。

RepairYourTech/cfsa-antigravity62026年8月16日 更新

Analyzes codebase structure, data flow, module relationships, and key patterns to generate and maintain a living architecture document (ARCHITECTURE.md).

日本語の概要は準備中です。原文の説明を表示しています。

RepairYourTech/cfsa-antigravity62026年8月16日 更新

RepairYourTech のスキルをすべて見る

このスキルの問題を報告する