Borrowing it
Nothing to install: this file belongs to Orinks/AccessiWeather. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/Orinks/AccessiWeather/main/.codex/prompts/code-simplifier.mdgit clone --depth 1 https://github.com/Orinks/AccessiWeatherWrote 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/orinks/accessiweather/code-simplifier)<a href="https://agentmods.dev/commands/orinks/accessiweather/code-simplifier"><img src="https://agentmods.dev/badge/commands/orinks/accessiweather/code-simplifier/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/orinks/accessiweather/code-simplifier"><img src="https://agentmods.dev/badge/commands/orinks/accessiweather/code-simplifier.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.00034 | $0.01225 |
| Opus 5.5 | $0.00014 | $0.00490 |
| Sonnet 5.5 | $0.00007 | $0.00245 |
| Haiku 4.5 | $0.00003 | $0.00122 |
Grade A, and why
code-simplifier 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.
How it starts
The opening of the file, as written. The whole thing — 135 lines — stays where its author put it; the contents beside it link to each section on GitHub.
-
Apply Project Standards: Follow the established coding conventions:
- Use ES modules with proper import sorting and
.jsextensions - Prefer
functionkeyword over arrow functions for top-level declarations - Use explicit return type annotations for top-level functions
- Maintain consistent naming conventions (camelCase for variables, PascalCase for types)
- Follow TypeScript strict mode patterns
- Use ES modules with proper import sorting and
-
Enhance Clarity: Simplify code structure by:
- Reducing unnecessary complexity and nesting
- Eliminating redundant code and abstractions
- Improving readability through clear variable and function names
- Consolidating related logic
- Removing unnecessary comments that describe obvious code
- IMPORTANT: Avoid nested ternary operators — prefer
switchstatements orif/elsechains for multiple conditions - Choose clarity over brevity — explicit code is often better than overly compact code
-
Maintain Balance: Avoid over-simplification that could:
- Reduce code clarity or maintainability
- Create overly clever solutions that are hard to understand
- Combine too many concerns into single functions or components
- Remove helpful abstractions that improve code organization
- Prioritize "fewer lines" over readability (e.g., nested ternaries, dense one-liners)
- Make the code harder to debug or extend
-
Focus Scope: Only refine code that has been recently modified or touched in the current session, unless explicitly instructed to review a broader scope. </scope_guard>
<ask_gate>
- Work ALONE. Do not spawn sub-agents.
- Do not introduce behavior changes — only structural simplifications.
- Do not add features, tests, or documentation unless explicitly requested.
- Skip files where simplification would yield no meaningful improvement.
- If unsure whether a change preserves behavior, leave the code unchanged.
- Run diagnostics on each modified file to verify zero type errors after changes.
- Treat newer user task updates as local overrides for the active simplification scope while preserving earlier non-conflicting constraints.
- If correctness depends on further inspection or diagnostics, keep using those tools until the simplification result is grounded. </ask_gate>
<execution_loop> <success_criteria> A simplification pass is complete ONLY when ALL of these are true:
- All recently modified code has been reviewed for simplification opportunities.
- Applied changes preserve exact functionality.
lsp_diagnosticsreports zero errors on modified files.- Code is demonstrably simpler and more maintainable.
- No behavior changes introduced.
- Output includes concrete verification evidence. </success_criteria>
<verification_loop> After simplification:
- Run
lsp_diagnosticson all modified files. - Confirm no type errors or warnings introduced.
- Verify functionality is preserved (no behavior changes).
- Document changes applied and files skipped.
No evidence = not complete. </verification_loop>
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 · 135 lines · 34 tokens per session scan A 168e8424fd87
code-simplifier is a command published in the GitHub repository Orinks/AccessiWeather (24 stars, last pushed 2d ago), licensed MIT. It adds 34 tokens to every session and 1,225 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-08-30.
Other commands, from other repositories
refactor
Systematic code refactoring with smart scope detection.
review-branch
Review the current branch's diff against base by dispatching atomic-reviewer. No orchestration loop, no spec required — pre-flight before /commit pr or /commit merge.
init
Install the formatters this repository needs, with every command visible before it runs.
spec-trace-requirements
You are verifying that implementation changes trace back to specification requirements.
merge-conflict-analysis
You are analyzing merge conflicts for PR #${{ pr-number }}.
boot
Start a new PromptKit prompt assembly session (alias for /bootstrap).