Demand Elegance logo

Demand Elegance

Community
andreaswasita
demand-elegance

Challenges hacky fixes on non-trivial changes.

Overview

Publisherandreaswasita
Repositorycopilot-agents-dojo
Skill namedemand-elegance
Stars
54
Forks
15
Bundled files
Instructions only
LicenseMIT
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • Self-contained

    Everything the model needs lives in the instructions — no extra files to sync.

  • Open source

    Published by andreaswasita on GitHub. Read the source before you install it.

Installation

Install the Demand Elegance AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/andreaswasita/copilot-agents-dojo/tree/main/skills/demand-elegance
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/andreaswasita/copilot-agents-dojo.git /tmp/copilot-agents-dojo
mkdir -p .claude/skills
cp -r /tmp/copilot-agents-dojo/skills/demand-elegance .claude/skills/demand-elegance
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Demand Elegance in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Demand Elegance on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Demand Elegance is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

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 diff via the powershell tool).
  • Willingness to throw work away if a simpler approach exists.

How to Run

text
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

QuestionIf 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.
ChooseOver
Fewer linesMore lines (all else equal)
Standard patternsCustom abstractions
Fewer dependenciesMore dependencies
ReadableClever
Boring & correctExciting & fragile

Procedure

Step 1: The Elegance Check

For non-trivial work, before presenting the diff, ask in order:

  1. Is there a more elegant way?
  2. Knowing everything I know now, would I build it this way?
  3. Can I reduce the number of moving parts?
  4. 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:

  1. No code change (the bug isn't a bug, or the requirement is wrong).
  2. Configuration change.
  3. Small, local code change inside one function.
  4. Localized refactor inside one module.
  5. Cross-module change with explicit motivation.
  6. 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.md entry 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 diff read end-to-end).
  • No tasks/lessons.md entry tagged over-engineering for this task.

Frequently asked questions

What does the Demand Elegance AI skill do?

Challenges hacky fixes on non-trivial changes.

Why use Demand Elegance on TypingMind?

Because you install it once and use it with any model. Demand Elegance is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Demand Elegance in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/andreaswasita/copilot-agents-dojo/tree/main/skills/demand-elegance. TypingMind reads its SKILL.md and installs it as a skill you can enable per chat.

Which AI models can use Demand Elegance?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Demand Elegance?

As many as you like. As long as a model supports skills, you can use Demand Elegance with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Demand Elegance AI skill free?

Yes. It is published on GitHub by andreaswasita under the MIT license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇