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.
git clone --depth 1 https://github.com/GuillemRoca/agent-skills-androidWrote 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/commands/guillemroca/agent-skills-android/code-simplify)<a href="https://agentmods.dev/commands/guillemroca/agent-skills-android/code-simplify"><img src="https://agentmods.dev/badge/commands/guillemroca/agent-skills-android/code-simplify/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/commands/guillemroca/agent-skills-android/code-simplify"><img src="https://agentmods.dev/badge/commands/guillemroca/agent-skills-android/code-simplify.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.00000 | $0.00400 |
| Opus 5.5 | $0.00000 | $0.00160 |
| Sonnet 5.5 | $0.00000 | $0.00080 |
| Haiku 4.5 | $0.00000 | $0.00040 |
Grade A, and why
code-simplify 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
/code-simplify — Code Simplification
Simplify code incrementally while preserving behavior exactly.
Instructions
Load and follow these skills:
code-simplificationfromskills/code-simplification/SKILL.mdcode-review-and-qualityfromskills/code-review-and-quality/SKILL.md
Before Starting
- Read
CLAUDE.md(if it exists) to understand project conventions - Read the target file and its tests
- Check git blame for context on complex sections
- Respect
/* simplify-ignore-start */blocks — skip them
Common Simplifications
| Pattern | Kotlin Simplification |
|---|---|
| Deep nesting | Early returns, when expressions |
| Long functions | Extract well-named private functions |
| Complex conditionals | when expression or sealed class |
| Nullable chains | ?.let { }, ?:, safe calls |
| Manual null checks | requireNotNull(), checkNotNull() |
| Mutable state | val over var, immutable collections |
| Callback nesting | Coroutines / Flow |
| Type casting chains | is smart casts, sealed hierarchies |
Process
For each simplification:
- Make one change
- Run
./gradlew test— must pass - If tests fail, revert immediately
- Commit the change
- Repeat
Rules
- Preserve behavior exactly (change form, not function)
- One simplification per commit
- Don't simplify code you don't understand (Chesterton's Fence)
- Don't mix simplification with feature changes
- Simpler means easier to understand, not necessarily shorter
Final Check
After all simplifications:
./gradlew test
./gradlew assembleDebug
./gradlew lint
Review the full diff — does it only change form, not behavior?
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 · 58 lines · 0 tokens per session scan A c2844dd008d6
code-simplify is a command published in the GitHub repository GuillemRoca/agent-skills-android (3 stars, last pushed 14d ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 400 tokens. 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-31.
Other commands, from other repositories
al-pr-prepare
Prepare a clean, documented pull request draft for AL features or fixes with summary, testing notes, and checklist. ALDC workflow (Copilot prompt al-pr-prepare); invoke explicitly.
fdk-refactor
Reduce function complexity in a Freshworks app to meet cyclomatic complexity ≤ 7 per function. Extracts helper functions, simplifies conditionals, and preserves behavior while improving code quality.
code-review
Automated code review with swarm intelligence.
pr-enhance
Command "pr-enhance" from smith-horn/skillsmith, covering pr-enhance, usage, options, examples and fetch/manage pr data via the cli escape hatch.
reviewer
Code review using batch file analysis for comprehensive reviews.
repo-analyze
Deep analysis of GitHub repository with AI insights.