agentleFS
mmccallammccalla/coding-agent-skill-library/skills/kiss-principle/SKILL.md

kiss-principle

Skill4 starsChanged 5 months agoApache-2.0View on GitHub

Applies KISS to simplify code, architecture, workflows and agent designs without losing required behaviour. Use when reducing over-engineering, speculative abstractions, or unnecessary agent complexity.

2 other projects use a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

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

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈8

    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:

    Use this skill when simplifying code, reviewing design complexity, reducing cognitive load, choosing between alternative implementations, …

    line 13
  2. Distinctive:

    Remove or reduce accidental complexity first.

    line 24
  3. Distinctive:

    Prefer direct code, explicit names, small functions, local reasoning and boring dependencies.

    line 25
  4. Distinctive:

    Keep abstractions only when they demonstrably reduce change cost, isolate volatility, improve testability, or protect a stable boundary.

    line 26
  5. Distinctive:

    Do not simplify by weakening correctness, security, validation, observability, error handling or tests.

    line 31
  6. Distinctive:

    Do not introduce a framework where a function or small module is sufficient.

    line 32
  7. Distinctive:

    Do not introduce generality for hypothetical future requirements.

    line 33
  8. Distinctive:

    Prefer readable duplication over premature abstraction when the duplication is small and likely to evolve differently.

    line 34

≈ “Common” is an estimate: at least 1 in 5 of the 213,897 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

KISS Principle

When to use

Use this skill when simplifying code, reviewing design complexity, reducing cognitive load, choosing between alternative implementations, or preventing over-engineering.

Objective

Deliver the simplest maintainable solution that satisfies the current requirement, preserves required behaviour, and remains testable.

Procedure

  1. State the required behaviour and constraints.
  2. Identify accidental complexity: unused layers, speculative abstractions, redundant configuration, excessive indirection, unclear control flow, and unnecessary dependencies.
  3. Identify essential complexity: domain rules, security controls, validation, observability, error handling, concurrency, persistence and compatibility requirements.
  4. Remove or reduce accidental complexity first.
  5. Prefer direct code, explicit names, small functions, local reasoning and boring dependencies.
  6. Keep abstractions only when they demonstrably reduce change cost, isolate volatility, improve testability, or protect a stable boundary.
  7. Validate behaviour with the narrowest useful tests.

Rules

  • Do not simplify by weakening correctness, security, validation, observability, error handling or tests.
  • Do not introduce a framework where a function or small module is sufficient.
  • Do not introduce generality for hypothetical future requirements.
  • Prefer readable duplication over premature abstraction when the duplication is small and likely to evolve differently.
  • Preserve existing public behaviour unless the requested change explicitly requires otherwise.

References

Verification

  • Simplification described with rationale.
  • Retained complexity justified.
  • Tests or checks run reported.
  • Residual risks or assumptions stated.

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.