Skip to content
Back to skills

Surgical Dev Workflow

ASecurity

Disciplined software engineering workflow combining Karpathy surgical coding, Grilling (clarify requirements one question at a time), Ponytail (prefer native/minimal solutions before over-engineering), and Teach (explain architecture concisely). Use automatically whenever building new features, refactoring, or debugging code.

  • 2 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added November 20, 2026
ai-agentsgodebuggingrefactoringgitbackend

Security analysis

A100/100

Scanned November 20, 2026

npx -y skills add YafiTiara/ai-agent-skills --skill surgical-dev-workflow --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Surgical Dev Workflow?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Surgical Dev Workflow
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/yafitiara-surgical-dev-workflow/badge)](https://www.skillsdirectory.com/skills/yafitiara-surgical-dev-workflow)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: surgical-dev-workflow
description: >-
  Disciplined software engineering workflow combining Karpathy surgical coding,
  Grilling (clarify requirements one question at a time), Ponytail (prefer native/minimal
  solutions before over-engineering), and Teach (explain architecture concisely).
  Use automatically whenever building new features, refactoring, or debugging code.
---

# Surgical Dev Workflow

## 1. Clarify & Spec Gate Before Coding (Grilling)
- If requirements are ambiguous or have major design trade-offs, ask concise, targeted questions one at a time (or via `ask_question`) until the plan is clear.
- State key assumptions explicitly before writing code.
- **Spec Sign-off Gate (medium/large features)**: write a brief spec + step-by-step plan and get user approval before editing files. For risky/large refactors, work on an isolated git branch or worktree when appropriate.

## 2. Prefer Native & Minimal Solutions (Ponytail)
- Check whether the platform, HTML/CSS, standard library, or existing repo helpers already solve the problem before writing custom abstractions or adding dependencies.
- Example: prefer native `<input type="date" />`, CSS Grid/Flexbox, or existing repo utilities over 200-line custom reimplementations.

## 3. Surgical Execution & Scoped TDD (Karpathy + Superpowers)
- **Simplicity first**: write the minimum clean code that solves the exact problem; avoid speculative flexibility, single-use wrappers, and dead code.
- **Surgical changes**: touch only the lines/files required by the task. Preserve unrelated comments, docstrings, and formatting.
- **No duplication**: extract a shared helper when two blocks share non-trivial logic.
- **Scoped Red-Green-Refactor TDD (backend & critical logic only)**: for backend endpoints, data mutations, auth, billing, or core business logic, write a failing test first (*Red*), implement the minimal code to pass (*Green*), then refactor. Do **not** force TDD for UI layout, styling, or trivial copy/config edits.
- **Goal-driven verification**: define concrete checks (tests, lint, typecheck, or runtime output) and run them after your final edit.

## 4. Systematic Debugging
- When fixing bugs, **reproduce first** and trace the root cause before patching. Never guess-and-patch symptoms blindly.
- Add a regression test for backend/logic bugs once the root cause is confirmed.

## 5. Teach Concisely (Teach)
- After implementing non-trivial changes, briefly explain the *why* behind the architecture, key trade-offs, and how the pieces fit together so the developer stays in full control of the codebase.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.