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 agentmods add commands/orinks/accessiweather/code-simplifiergit clone --depth 1 https://github.com/Orinks/AccessiWeatherWhat 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 | $0.00034 | $0.01225 |
| Opus 5 | $0.00017 | $0.00613 |
| Sonnet 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 2d 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.
- 2d 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 8d ago), licensed MIT. It adds 34 tokens to every session and 1,225 once invoked, about $0.0002 per session on Opus 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
checklist
Generate a custom checklist for the current feature based on user requirements.
clarify
Identify underspecified areas in the current feature spec by asking up to 5 highly targeted clarification questions and encoding answers back into the spec.
specify
Create or update the feature specification from a natural language feature description.
analyze
Perform a non-destructive cross-artifact consistency and quality analysis across spec.md, plan.md, and tasks.md after task generation.
converge
Assess the current codebase against the feature's spec, plan, and tasks, then append any remaining unbuilt work as new tasks to tasks.md so implement can complete it.
implement
Execute the implementation plan by processing and executing all tasks defined in tasks.md.