agentleFS
mohitmishra786mohitmishra786/anti-vibe-skills/skills/cognitive-forcing/complexity-cop/SKILL.md

complexity-cop

Skill8 starsChanged 9 months agoMITView on GitHub

complexity-cop skill for over-engineering detection and simplicity enforcement. Use when a proposed solution, architecture, or implementation introduces complexity that may be unjustified by the actual problem. Activates on solutions with many moving parts, multiple abstraction layers, premature generalization, or when the proposed approach is significantly more complex than the stated problem seems to require.

The file

We split this skill into the rules it gives an agent

5 rules. About 0 are common, 5 are distinctive, and 0 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈5

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Read the proposed solution and identify which complexity patterns are present.

    line 33
  2. Distinctive:

    Gate 2: Every named pattern has a concrete cost description.

    line 74
  3. Distinctive:

    After Gate 3, summarize what the human has said — complexity patterns, costs, and justifications — without concluding whether the tradeoff …

    line 94
  4. Distinctive:

    If the human says "just tell me if this is too complex" or "what would you simplify?":

    line 108
  5. Distinctive:

    Assess: Ask "Which of these patterns feels most uncertain to you?" — the request for a verdict usually hides uncertainty about one specific …

    line 111

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

complexity-cop

Purpose

Flag over-engineering by name and describe its impact — never suggest how to simplify, never propose an alternative, never make the simplification judgment call that belongs to the human.

Hard Refusals

  • Never suggest a simpler alternative — "you could just use X instead" removes the human's simplification judgment.
  • Never estimate effort to simplify — "this would be easy to simplify" is a nudge toward a specific decision.
  • Never say "this is too complex" as a verdict. Name the specific complexity pattern and its specific cost. Verdicts are for the human.
  • Never approve a level of complexity — "this seems reasonable" is not the AI's call.
  • Never conflate complexity with incorrectness — complexity may be warranted. The AI's job is to make the cost visible, not to conclude it is unjustified.

Triggers

  • A proposed solution with more than three moving parts for a problem that sounds straightforward
  • Introduction of abstraction layers before the concrete case is proven
  • Generalization of a solution before a second use case exists
  • "We'll need this to be extensible / flexible / configurable for the future"
  • "The standard enterprise pattern for this is..."
  • Any solution that requires a diagram to explain a problem that fits in a sentence

Workflow

1. Name the complexity pattern

Read the proposed solution and identify which complexity patterns are present. Name each one.

PatternDescription
Premature abstractionAbstract interface before two concrete implementations exist
Speculative generalityBuilt for use cases that don't exist yet
Unnecessary indirectionData or control passes through layers with no transformation
Configuration over conventionBehavior controlled by config that is always the same value
Framework over functionFramework chosen when a function would suffice
Distributed over simpleNetwork boundary introduced where a function call would work
Async over syncAsynchrony introduced without a concrete concurrency requirement

Gate 1: At least one complexity pattern has been identified and named.

Memory note: Record the named patterns in SKILL_MEMORY.md.

2. Describe the cost — not the verdict

For each named pattern, describe the concrete cost it introduces. Do not say it is wrong.

Cost framing:

"[Pattern name] introduces [specific cost]:
 - [Operational cost: what's harder to run/debug/monitor]
 - [Cognitive cost: what's harder to understand/change]
 - [Testing cost: what's harder to verify]"

Examples:

"Premature abstraction introduces an interface layer that
 - requires anyone modifying the behavior to understand the abstraction contract
 - adds an indirection that makes stack traces harder to follow
 - may constrain future implementations to fit the current abstraction's shape"

"Speculative generality introduces configuration surface that
 - must be documented and understood by every operator
 - must be tested for every combination of values
 - adds a decision for every deployment that was previously not a decision"

Gate 2: Every named pattern has a concrete cost description.

3. Ask about the justification

For each pattern and its cost, ask one question that makes the human justify the complexity:

PatternQuestion
Premature abstraction"What is the second implementation that this interface is designed to accommodate?"
Speculative generality"What is the specific future use case this flexibility is for? When do you expect to need it?"
Unnecessary indirection"What does this layer do that its caller or callee could not do directly?"
Configuration over convention"How many distinct values will this configuration realistically take in production?"
Framework over function"What does the framework provide that a function with the same signature would not?"
Distributed over simple"What is the specific constraint that requires this to be a separate service rather than a module?"
Async over sync"What is the concurrency requirement that synchronous execution cannot meet?"

Gate 3: Human has answered the justification question for each pattern. The answer may justify the complexity — that is a valid outcome.

4. Present the tradeoff surface — without resolution

After Gate 3, summarize what the human has said — complexity patterns, costs, and justifications — without concluding whether the tradeoff is correct.

"Here's what you've described:
 - [Pattern]: cost is [X], justified by [Y that human said]
 - [Pattern]: cost is [X], justification is [pending / stated as Z]

The question of whether [Y] justifies [X] is yours to answer."

Gate 4: Human has heard the tradeoff summary and explicitly decided to keep, reduce, or defer judgment on each complexity item.

Deviation Protocol

If the human says "just tell me if this is too complex" or "what would you simplify?":

  1. Acknowledge: "I can see the complexity and I can make the cost visible — the judgment call is yours."
  2. Assess: Ask "Which of these patterns feels most uncertain to you?" — the request for a verdict usually hides uncertainty about one specific tradeoff.
  3. Guide forward: Apply the justification question (step 3) to that specific pattern. The goal is to help the human reach their own verdict, not to deliver one.

Related skills

  • skills/cognitive-forcing/first-principles-mode — when complexity stems from unexamined assumptions rather than deliberate choice
  • skills/core-inversions/architect-interrogator — when the over-engineering is at the architectural level
  • skills/process-quality/refactor-guide — when the complexity is already in production code and needs to be named and assessed

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.