Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add athola/claude-night-market --skill elegant-codegit clone --depth 1 https://github.com/athola/claude-night-marketWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/athola/claude-night-market/elegant-code)<a href="https://agentmods.dev/skills/athola/claude-night-market/elegant-code"><img src="https://agentmods.dev/badge/skills/athola/claude-night-market/elegant-code/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/athola/claude-night-market/elegant-code"><img src="https://agentmods.dev/badge/skills/athola/claude-night-market/elegant-code.svg" alt="Reviewed on agentmods" width="80" height="20"></a>- NVIDIA SkillSpector pass
What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00037 | $0.02490 |
| Opus 5.5 | $0.00015 | $0.00996 |
| Sonnet 5.5 | $0.00007 | $0.00498 |
| Haiku 4.5 | $0.00004 | $0.00249 |
Grade A, and why
elegant-code scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured yesterday.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 235 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Elegant Code
Write the minimal, elegant code that fully solves the problem: its performance, its edge cases, and its failure cases. Minimal is not fewest lines. It is no incidental complexity, with nothing essential omitted.
What this skill is (and is not)
This skill codifies a discipline that strong models already exhibit some of the time. Its value is not teaching a missing capability. Its value is three things:
- A shared vocabulary (the rungs, the floor) that review skills can point at, so "you skipped rung 2" is a concrete, auditable note.
- Consistency: the ladder is applied every time, not just when the model happens to think of it.
- A guard: the negligence floor below is never traded away for brevity.
It is the generative counterpart to the review-side contract in
leyline:additive-bias-defense.
When To Use
- Before adding a function, file, class, abstraction, or dependency.
- When choosing between reuse and writing new code.
- When auditing a diff for lines that can be deleted.
When NOT To Use
- Throwaway scripts or one-time migrations where review cost is near zero.
- Cases where the negligence floor (below) is in play: there, add the guard first and optimize length second.
The Decision Ladder
Walk the rungs in order. Climb down only when the current rung does not hold. Stop at the first rung that solves the problem.
| # | Rung | Ask | Stop here when | Example |
|---|---|---|---|---|
| 1 | Need-to-exist | Does this need to exist at all? | The requirement is speculative or already met. Delete or defer. | "Config loader for a value used once" -> inline the value |
| 2 | Already in this repo | Does this codebase already do this somewhere? | A helper, module or convention here covers it. Reuse it. | an existing estimate_tokens before writing another |
| 3 | Builtin / stdlib | Can a language builtin or the standard library do it? | The stdlib covers it. | str.zfill, f"{n:05d}", pathlib, itertools |
| 4 | Native platform | Is there a native platform or framework feature? | The platform already ships it. | URLSession retry, fetch, framework validators |
| 5 | Installed dependency | Is an already-installed, audited dependency enough? | A dep in the lockfile covers it. | reuse requests/urllib3 backoff before adding tenacity |
| 6 | A few lines | Can it be one line or a small explicit block? | A short, obvious block solves it. | a 20-line retry loop over a retry framework |
What ships with it
1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- yesterday Changed · -1 lines ea44df52f205
- 10d ago Changed · +34 lines 9ee2a1e25bbb
- 2mo ago First seen · 202 lines · 37 tokens per session scan A 48d53a1c599f
elegant-code is a skill published in the GitHub repository athola/claude-night-market (348 stars, last pushed yesterday), licensed MIT. It adds 37 tokens to every session and 2,490 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.
elegant-code compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| elegant-codeathola/claude-night-market | Skill | 348 | yesterday | MIT | A | 37 | Claude Code |
| chameleonccplugins/awesome-claude-code-plugins | Skill | 998 | 2mo ago | Apache-2.0 | A | 168 | Claude Code |
| explainerccplugins/awesome-claude-code-plugins | Skill | 998 | 2mo ago | Apache-2.0 | A | 155 | Claude Code |
| fact-checkerccplugins/awesome-claude-code-plugins | Skill | 998 | 2mo ago | Apache-2.0 | A | 178 | Claude Code |
| historianccplugins/awesome-claude-code-plugins | Skill | 998 | 2mo ago | Apache-2.0 | A | 184 | Claude Code |
| claudex-second-opinionccplugins/awesome-claude-code-plugins | Skill | 998 | 2mo ago | Apache-2.0 | A | 74 | Claude Code |
| judgesaadshahd/moo.md | Skill | 38 | yesterday | MIT | A | 25 | Claude Code |