demand-elegance
Skill54 starsChanged 6 months agoMITView on GitHub
Challenges hacky fixes on non-trivial changes.
1 other project uses a version of this.
Adopted by
Most recently taken up by
- unional/skillstheir own version, first seen Sep 8, 2026
Other versions1 project uses a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 1
- unional/skills★ 1same 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 repository31 other files it gives its agents.
- AGENTS.mdAGENTS.md
- .github/copilot-instructions.mdCopilot instructions
- architecture-sketchingSkill
- autonomous-bug-fixSkill
- behavioral-foundationSkill
- brainstormingSkill
- codebase-onboardingSkill
- code-reviewSkill
- debuggingSkill
- derive-nfr-from-driverSkill
- derive-security-from-riskSkill
- dispatching-parallel-agentsSkill
- durable-workSkill
- executing-plansSkill
- finishing-a-development-branchSkill
- plan-before-codeSkill
- pr-workflowSkill
- receiving-code-reviewSkill
- refactoringSkill
- requesting-code-reviewSkill
- requirements-elicitationSkill
- safety-guardrailsSkill
- security-auditSkill
- self-improvementSkill
- subagent-strategySkill
- test-writingSkill
- traceability-gateSkill
- using-git-worktreesSkill
- using-superpowersSkill
- verify-before-doneSkill
- template-skillSkill
The file
We split this skill into the rules it gives an agent
7 rules. About 0 are common, 5 are distinctive, and 2 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.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 23
NOT for: typos, one-line bugfixes, comment edits, formatting, production hotfires.
- Distinctive: line 73
When picking between solutions, prefer the upper rungs:
- Distinctive: line 75
No code change (the bug isn't a bug, or the requirement is wrong).
- Very specific: line 82
If you land on rung 6, justify why 1–5 do not work in a comment or in tasks/todo.md.
- Very specific: line 86
Run git diff via the powershell tool and read your own diff as if reviewing a stranger's PR.
- Distinctive: line 90
If the diff still feels hacky after Step 3, throw it away and start over with the simpler approach.
- Distinctive: line 96
DO NOT: run this skill on trivial changes.
≈ “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.
Files
Demand Elegance Skill
Forces the agent to challenge its own non-trivial diff before presenting it: fewer moving parts, standard patterns over custom abstractions, boring over clever. Does NOT apply to typos, one-line fixes, or hotfixes — over-engineering trivial work is the failure mode this skill explicitly avoids.
When to Use
- A fix feels hacky, fragile, or "barely working".
- Multiple solutions exist and the tradeoffs aren't obvious.
- The diff is large and includes infrastructure the original task didn't ask for.
- Refactoring with simplification as the explicit goal.
- Self-review before presenting any non-trivial solution.
- NOT for: typos, one-line bugfixes, comment edits, formatting, production hotfires.
Prerequisites
- A working solution (or near-working) to challenge — don't run this on a blank canvas.
- The full diff visible (
git diffvia thepowershelltool). - Willingness to throw work away if a simpler approach exists.
How to Run
1. Confirm the change is non-trivial. If trivial, skip — see Pitfalls.
2. Run the Elegance Check (4 questions in Procedure §1).
3. Apply the Simplicity Ladder (Procedure §2) to choose between options.
4. Self-review the diff as if it were someone else's PR.
5. If hacky, restart with the elegant approach — don't deodorize the smell.Quick Reference
| Question | If answer is "yes" → action |
| Is there a more elegant way? | Try it before shipping. |
| Knowing what I know now, would I build it this way? | If no, refactor before presenting. |
| Can I reduce moving parts? | Cut them. |
| Would a senior engineer raise an eyebrow? | They would. Fix it. |
| Choose | Over |
| Fewer lines | More lines (all else equal) |
| Standard patterns | Custom abstractions |
| Fewer dependencies | More dependencies |
| Readable | Clever |
| Boring & correct | Exciting & fragile |
Procedure
Step 1: The Elegance Check
For non-trivial work, before presenting the diff, ask in order:
- Is there a more elegant way?
- Knowing everything I know now, would I build it this way?
- Can I reduce the number of moving parts?
- Would a senior reviewer raise an eyebrow at this?
A "yes" to any means: pause and try the simpler path.
Step 2: The Simplicity Ladder
When picking between solutions, prefer the upper rungs:
- No code change (the bug isn't a bug, or the requirement is wrong).
- Configuration change.
- Small, local code change inside one function.
- Localized refactor inside one module.
- Cross-module change with explicit motivation.
- New abstraction (only if 1–5 are insufficient).
If you land on rung 6, justify why 1–5 do not work in a comment or in tasks/todo.md.
Step 3: Self-Review the Diff
Run git diff via the powershell tool and read your own diff as if reviewing a stranger's PR. Identify the smelliest part — there is always one. Ask whether that smell can be eliminated, not just covered up.
Step 4: Restart If Hacky
If the diff still feels hacky after Step 3, throw it away and start over with the simpler approach. Resist the sunk-cost reflex.
A useful self-prompt: "Knowing everything I know now, implement the elegant solution."
Pitfalls
- DO NOT run this skill on trivial changes. A typo fix doesn't need an architecture review.
- DO NOT premature-abstract. Build for the requirements that exist, not the ones you imagine.
- DO NOT gold-plate. The user asked for a button fix, not a component-system redesign.
- DO NOT confuse cleverness with elegance. If you need a comment to explain what (not why) the code does, it's too clever.
- DO NOT apply during production hotfires. Stabilize first; log a
tasks/lessons.mdentry to revisit. - DO NOT deodorize a smell — eliminate it. Wrapping bad code in a clean interface still leaves bad code.
Verification
- Diff size is justified by the task description in
tasks/todo.md. - No new abstractions without explicit justification.
- No new dependencies without explicit justification.
- Self-review pass completed (
git diffread end-to-end). - No
tasks/lessons.mdentry taggedover-engineeringfor this task.
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.

