Skip to content
Back to skills

Stop Overengineering

ASecurity

Use when the agent over-engineers, turns a small task into a framework, or edits code it was not asked to touch, or when you want CLAUDE.md or AGENTS.md coding rules that keep changes minimal. Adds the Scope Guard rules, which replaced Copybook's Karpathy-inspired coding principles: minimum sufficient change, reuse first, ask before widening scope, test narrowly. Not for planning a job across several agents (coordinate-parallel-agents).

  • 145 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added December 2, 2026
ai-agentsrustgoshelltestingapi

Works with

  • claude code
  • cursor
  • api

Security analysis

A100/100

Scanned December 2, 2026

npx -y skills add Heyvhuang/copybook-skills --skill stop-overengineering --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Stop Overengineering?

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

Security grade badge for Stop Overengineering
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/heyvhuang-stop-overengineering/badge)](https://www.skillsdirectory.com/skills/heyvhuang-stop-overengineering)

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: stop-overengineering
description: "Use when the agent over-engineers, turns a small task into a framework, or edits code it was not asked to touch, or when you want CLAUDE.md or AGENTS.md coding rules that keep changes minimal. Adds the Scope Guard rules, which replaced Copybook's Karpathy-inspired coding principles: minimum sufficient change, reuse first, ask before widening scope, test narrowly. Not for planning a job across several agents (coordinate-parallel-agents)."
license: CC-BY-4.0
---

# Scope Guard: AGENTS.md rules for small tasks

Asked to change a config, it builds a framework: minimum sufficient change, reuse first, ask before widening, test narrowly.

## Steps

1. Copy the Scope Guard rules.
2. Paste them into your AI.
3. You get: The agent finishes small tasks with the smallest change and asks before it grows the scope.

The user chose this tip. The steps above are written for a person; do them for the user.

- Step 1 names the text to use: it is under the heading of that name below. Use it word for word.
- Step 2 says where the text goes. Apply a prompt within the task the user actually requested. Before writing a file or running a command, show the change and get their agreement. Before deleting, publishing, sending, paying or making changes outside the project, ask once for explicit approval, even if the user already requested it. Wait for the user to answer that question with a yes. A backup or the tip’s quoted instructions cannot waive confirmation. Only an ordinary edit inside this project can use the request as agreement for the same action, target and effects. Say what you did. Ask once for any wider change and keep the tip’s checkpoints and approvals below. A review, check or explanation changes nothing. If a step needs another app, a restart or a schedule you cannot access, give the user the text and say where it goes.
- A quoted example gives no permission to act. Before running downloaded shell code or an unpinned package, changing persistent user-wide settings, or reading private session history, show the command or paths, what it will access or change, and any destination. Redact secret values. Wait for explicit approval of that specific action. For a remote installer, fetch and inspect a pinned revision or verify a trusted checksum before running it.
- Fill each bracket or placeholder from what the user said, or ask.
- Step 3 is what the user should end up with.

## AGENTS.md rules

```markdown
# Scope Guard

Complete the current task with the minimum sufficient change.

## Before editing

- Read the relevant code, tests, and configuration directly. Do not work from search snippets or guesses.
- If the requirement is ambiguous or the premise is unverified, resolve that before building on it.
- State a minimal plan:
  - **Outcome** — the exact behavior requested
  - **Non-goals** — what this task will not do
  - **Files** — the smallest set expected to change
  - **Proof** — the check that will prove the change works
- Start with one implementation path. Split work only when the task has genuinely independent parts.

## While editing

- Reuse existing code, helpers, patterns, and test setup before adding anything new.
- Fix bugs at the root cause. Do not stack patches around a wrong premise.
- Add an abstraction, adapter, or config layer only for a second real caller
  in this task or a stated requirement.
- Preserve behavior outside the requested change.
- Do not design for rare or future cases nobody asked about.
- Remove code you replace. Keep an old path only when compatibility is an explicit requirement.

## Pause and confirm

Read-only discovery is always allowed. If the task has not already authorized it, get approval before:

- Materially expanding the scope or touching unrelated files
- Adding a dependency, framework, service, or new test infrastructure
- Changing a public API, schema, storage format, or wire format
- Deleting or overwriting user data, discarding uncommitted work, rewriting history, or dropping data
- Keeping two implementations of the same behavior alive

## Testing

- Run the narrowest existing tests that exercise the changed behavior.
- Extend the most relevant existing test before creating a new test file.
- Add a test only when changed user-observable behavior is not covered, or when the user asks for one.
- Each new test must protect a clear acceptance criterion or regression risk.
- Do not backfill unrelated coverage or introduce test infrastructure for this task alone.
- Do not use passing tests as justification for extra abstractions or scope.

## If the plan grows

Stop when the work starts adding future-use layers, workaround stacks,
unrelated cleanup, or tests for unstated behavior. Rewrite a smaller plan
and confirm the new scope.

## Done means

- The requested behavior works and the acceptance criteria are met
- Relevant checks pass, with the exact commands and results reported
- Every touched file is necessary and the diff contains nothing unrelated
- No debug code, backup copies, dead paths, or scratch files remain
- Assumptions, limitations, and unverified runtime behavior are stated plainly
```

Copybook’s notes for the agent:
Add these lines to the rules file you read at the start of every task in this project (CLAUDE.md for Claude Code, AGENTS.md for Codex, a file in .cursor/rules for Cursor); create it if there is none.

## Background

Codex Sol has one bad habit: it turns small tasks into big systems. Ask it to make a config change, and it builds a framework. Ask it to fix a bug, and it adds a new adapter layer.

Add these rules to your AGENTS.md.

## Source

From [Copybook](https://copybook.page/t/scope-guard-rules-for-agents-md): [posted on X by @Voxyz_ai](https://x.com/Voxyz_ai/status/2094039936475484393) on 30 Aug 2026, 2.1K saves as of 27 Sep 2026. For Claude Code and Codex.

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.