kiss
Skill10 starsChanged 9 months agoMITView on GitHub
When writing or reviewing code to reduce complexity and improve readability. Use when the user says "simplify this," "too complex," "hard to read," "clean up," "what does this do," or "can't follow this code." For over-engineering concerns, see yagni. For structural clarity, see separation-of-concerns.
4 other projects use a version of this.
Adopted by
Most recently taken up by
- eranltd/kisstheir own version, first seen Nov 8, 2026
- jerseycheese/agent-skillstheir own version, first seen Oct 28, 2026
- Pr1m4lc0d3/KiSYSTEMtheir own version, first seen Oct 11, 2026
- tizee/skillstheir own version, first seen Mar 12, 2026
Other versions4 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 4
- jerseycheese/agent-skills★ 4same name
- tizee/skills★ 2same name
- eranltd/kiss★ 0same name
- Pr1m4lc0d3/KiSYSTEM★ 0same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository10 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- boy-scout-ruleSkill
- convention-over-configurationSkill
- detect-stackSkill
- drySkill
- law-of-demeterSkill
- separation-of-concernsSkill
- solidSkill
- yagniSkill
The file
We split this skill into the rules it gives an agent
7 rules. 0 are common, 6 are distinctive, and 1 is very specific to this project.
0
Common
Most of the 4 edited versions we read keep these.
6
Distinctive
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 12
If .agents/stack-context.md exists, read it first.
- Distinctive: line 29
Use boring technology: Prefer well-understood tools, patterns, and libraries over novel ones.
- Distinctive: line 30
Limit nesting depth: If a function has more than 3 levels of nesting, flatten it with early returns, guard clauses, or extraction into …
- Distinctive: line 31
One function, one job: If you need the word "and" to describe what a function does, split it.
- Distinctive: line 97
yagni: When the complexity comes from building things you don't need yet
- Distinctive: line 98
separation-of-concerns: When complexity comes from mixed responsibilities
- Distinctive: line 99
solid: When complexity comes from poor module design
“Common” is measured: kept by at least 6 in 10 of the 4 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
KISS — Keep It Simple
Before Applying
If .agents/stack-context.md exists, read it first. Apply this principle using idiomatic patterns for the detected stack. For framework-specific details, use context7 MCP or web search — don't guess.
Principle
Given two solutions that produce the same result, prefer the one that is easier to read, understand, and change.
Why This Matters in Production
Simple code survives contact with production. Complex code breaks in ways that are hard to diagnose, hard to fix, and hard to verify the fix didn't break something else. Every incident response starts with someone reading code under pressure — if they can't understand it quickly, the outage gets longer.
Complexity compounds. A "slightly clever" solution today becomes an "incomprehensible" solution after six months of patches by three different developers.
The most dangerous bugs hide in code that's too complex for any single person to hold in their head.
Rules
- Optimize for reading, not writing. Code is read 10x more often than it's written. A few extra lines of clear code beats a one-liner that requires a comment to explain.
- Use boring technology. Prefer well-understood tools, patterns, and libraries over novel ones. Novel solutions carry hidden costs in debugging, hiring, and documentation.
- Limit nesting depth. If a function has more than 3 levels of nesting, flatten it with early returns, guard clauses, or extraction into helper functions.
- One function, one job. If you need the word "and" to describe what a function does, split it.
- Name things for what they do, not how they do it.
get_active_users()notquery_db_filter_status_map_results(). - Avoid clever tricks. Bitwise hacks, regex one-liners for complex parsing, operator overloading for non-obvious operations — these optimize for the writer's ego, not the reader's comprehension.
- Prefer explicit over implicit. Magic values, hidden state, implicit type conversions, and action-at-a-distance make code unpredictable.
Anti-Patterns
- Premature optimization: Sacrificing readability for performance without profiling data showing it matters
- Abstraction astronautics: Factory factory patterns, deeply nested generics, frameworks for simple tasks
- Clever one-liners: Dense expressions that compress logic to the point of obscurity
- God functions: 200+ line functions that handle multiple concerns
- Stringly typed systems: Using raw strings where enums, types, or constants would add clarity
- Hidden control flow: Decorators, middleware chains, or event systems that make it impossible to trace what happens when a request arrives
Examples
-- Overly clever
users = {u.id: u for u in db.query(User) if u.active and u.role in roles and not u.banned}
-- Simple and scannable
active_users = db.query(User).where(active=true, banned=false)
users = filter_by_role(active_users, roles)
users_by_id = index_by(users, key="id")-- Deeply nested
def process(data):
if data:
if data.valid:
if data.type == "order":
if data.items:
# actual logic buried 4 levels deep
-- Flattened with guard clauses
def process(data):
if not data:
return
if not data.valid:
return
if data.type != "order":
return
if not data.items:
return
# actual logic at top levelBoundaries
- Simple does not mean naive. Error handling, input validation, and proper data structures are not "complexity" — they're correctness. Don't strip away safety in the name of simplicity.
- Simple does not mean primitive. Using a well-chosen library or pattern (like a state machine for complex state transitions) can be simpler than hand-rolling the equivalent logic.
- Some domains are inherently complex. Cryptography, distributed consensus, and financial calculations have irreducible complexity. KISS means don't add unnecessary complexity on top.
- Tension with DRY: Sometimes duplicating a few lines is simpler than introducing an abstraction. Prefer the version a new team member could understand in 30 seconds.
Code Review Checklist
- Can a new team member understand this code without asking the author?
- Are there any "clever" shortcuts that save lines but cost clarity?
- Is nesting depth 3 or less throughout?
- Does every function have a single, clear responsibility?
- Could any complex logic be replaced with a well-named helper function?
- Are there any comments explaining "what" instead of "why"? (If so, the code itself isn't clear enough.)
Related Skills
- yagni: When the complexity comes from building things you don't need yet
- separation-of-concerns: When complexity comes from mixed responsibilities
- solid: When complexity comes from poor module design
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
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.

