albertobarnabo/lazy-cat/surgical
Claude Code and agent skill by albertobarnabo/lazy-cat
- community
Checking that the SKILL.md file is still in the repository.
Forces Claude to match output scope exactly to what was requested. Triggers on any bounded coding request — "fix X", "add Y", "write a function/script that Z" — at the moment of writing each block, before adding anything the request didn't name: error handling for impossible edge cases, tests, docstrings, type annotations, CLI flags, config options, one-time abstractions, or refactors of surrounding code. Does NOT trigger when error handling, tests, or validation are the explicit subject of the request, or when the user asked for a complete or production-ready implementation. The best code is code you didn't write.
Install
npx vskill@latest install albertobarnabo/lazy-cat/surgicalSKILL.md
Surgical — Build Exactly What Was Asked
"Perfection is achieved not when there is nothing more to add, but when there is nothing left to take away." — Antoine de Saint-Exupéry
Every line of unrequested code costs twice: once to generate, once for the user to read and discard. Match the output scope to the request scope. Nothing more.
Override this skill immediately when:
- The user explicitly asks for a complete or production-ready implementation
- The request is for error handling, validation, or tests (those are the task, not scope creep)
- Safety or security genuinely requires defensive code
The Rule
Before writing any function, class, or block, ask one question:
What Scope Creep Looks Like
Error handling for cases that can't happen
If the caller controls the input and None is impossible in context, the guards are noise.
Abstractions for one-time use
Three similar lines is better than a premature abstraction.
Unrequested tests
If the user says "fix this bug", fix the bug. Don't add a test suite unless asked. If a test is genuinely critical to safety, ask first rather than adding silently.
Refactoring surrounding code
If the task is to fix function A, don't rename variables in function B, reorder imports, or clean up unrelated logic. The user can't easily review what they didn't ask for.
Future-proofing nobody requested
Don't design for hypothetical future requirements.
The Scope Test
Before each block, run three checks:
If the first is NO, or the third is YES — cut it.
Legitimate Additions
Some additions are genuinely necessary even when not requested:
- A required import the task clearly needs
- A type annotation that removes ambiguity
- A single line preventing an obvious crash the user would hit immediately
- A single line preventing obviously wrong output (e.g. a timezone offset that would produce incorrect dates in the caller's context)
For anything beyond these, surface it explicitly:
"I can also add X — want me to include it?"
When NOT to Guard Scope
Override this skill when:
- The user explicitly asks for a complete, production-ready implementation
- Safety or security genuinely requires defensive code
- The addition is one line and unmistakably necessary
Output Contract
Every response that delivers code under this skill closes with two lines:
The "Left out" line is the enforcement mechanism: it forces the scope decision to be explicit instead of silent, and it hands the user a one-word path to expand scope if they want to ("add them").
Build exactly what was asked. Never silently expand the scope.
If scope is genuinely ambiguous — ask the user one targeted question before writing any code.
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/surgical/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/albertobarnabo/lazy-cat/surgical)