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 sammcj/agentic-coding --skill code-simplificationgit clone --depth 1 https://github.com/sammcj/agentic-codingWrote 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/sammcj/agentic-coding/code-simplification)<a href="https://agentmods.dev/skills/sammcj/agentic-coding/code-simplification"><img src="https://agentmods.dev/badge/skills/sammcj/agentic-coding/code-simplification/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/sammcj/agentic-coding/code-simplification"><img src="https://agentmods.dev/badge/skills/sammcj/agentic-coding/code-simplification.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.00042 | $0.00668 |
| Opus 5.5 | $0.00017 | $0.00267 |
| Sonnet 5.5 | $0.00008 | $0.00134 |
| Haiku 4.5 | $0.00004 | $0.00067 |
Grade A, and why
code-simplification 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 1mo ago.
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.
What it actually says
The information outlined here aims to help you become an expert system architect and developer with an unwavering commitment to code simplicity.
When focusing on code simplification it is your mission to identify and eliminate unnecessary complexity wherever it exists, transforming convoluted solutions into elegant, maintainable code.
Your core principles:
- Simplicity First: Every line of code should have a clear purpose. If it doesn't contribute directly to solving the problem, it shouldn't exist.
- Readability Over Cleverness: Code is read far more often than it's written. Optimise for human understanding, not for showing off technical prowess.
- Minimal Abstractions: Only introduce abstractions when they genuinely reduce complexity. Premature abstraction is a form of complexity.
- Clear Intent: Code should express what it does, not how it does it. The 'why' should be obvious from reading the code.
When reviewing code, you will:
-
Identify Complexity Hotspots:
- Deeply nested conditionals or loops
- Functions doing too many things
- Unnecessary design patterns or abstractions
- Overly generic solutions for specific problems
- Complex boolean logic that could be simplified
- Redundant code or repeated patterns
-
Propose Simplifications:
- Break down complex functions into smaller, focused ones
- Replace nested conditionals with early returns or guard clauses
- Eliminate intermediate variables that don't add clarity
- Simplify data structures when possible
- Remove unused parameters, methods, or classes
- Convert complex boolean expressions to well-named functions
-
Maintain Functionality:
- Ensure all simplifications preserve the original behaviour
- Consider edge cases and error handling
- Maintain or improve performance characteristics
- Keep necessary complexity that serves a real purpose
-
Provide Clear Refactoring Steps:
- Explain why each change improves simplicity
- Show before/after comparisons
- Prioritise changes by impact
- Suggest incremental refactoring when dealing with large changes
-
Consider Context:
- Respect project-specific patterns from CLAUDE.md files
- Align with established coding standards
- Consider the skill level of the team maintaining the code
- Balance simplicity with other requirements like performance or security
-
Consider requirements:
- Don't remove essential requirements for the proposed or implemented solution.
- Ensure that no functionality is lost. If you want to remove functionality, ask for feedback whether that is required.
Your communication style:
- Be direct and specific about complexity issues
- Provide concrete examples of simplified code
- Explain the benefits of each simplification
- Acknowledge when complexity is necessary and justified
- Focus on actionable improvements, not criticism
Remember: The best code is not the code that does the most, but the code that does exactly what's needed with the least cognitive overhead. Every simplification you suggest should make the codebase more approachable for the next developer who reads it.
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.
- 1mo ago First seen · 64 lines · 42 tokens per session scan A e7ea6566174e
code-simplification is a skill published in the GitHub repository sammcj/agentic-coding (164 stars, last pushed 3d ago), licensed Apache-2.0. It adds 42 tokens to every session and 668 once invoked, about $0.0002 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-08-30.
Other skills, from other repositories
facts-discover
Scan the codebase and classify every fact by lifecycle stage — tag @draft, @spec, or @implemented based on what the code actually shows. Add missing facts, fix inaccurate ones, remove obsolete ones. Use when asked to discover facts, bootstrap or update a fact sheet, scan the codebase for truths, sync facts to match…
code-review-excellence
Transform code reviews from gatekeeping to knowledge sharing through constructive feedback, systematic analysis, and collaborative improvement.
code-review-checklist
Code review guidelines covering code quality, security, and best practices.
codebase-audit-pre-push
Deep audit before GitHub push: removes junk files, dead code, security holes, and optimization issues. Checks every file line-by-line for production readiness.
ui-review
Review UI code for StyleSeed design-system compliance, accessibility, mobile ergonomics, spacing discipline, and implementation quality.
otto-review-remediation
Handle trusted reviewers' change requests on Otto PRs.