Asynkron.JsEngine: Agent for Claude Code

.claude/agents/minimalist-refactor.md

minimalist-refactor is an agent for Claude Code from asynkron/Asynkron.JsEngine. It costs 434 tokens per session (1,322 once invoked), scanned A, original, MIT.

A coding agent for simplifying and reorganizing existing code. It looks for unused code, repeated logic, unclear names, and components that handle too many responsibilities.

In plain words
What is it for?
Use it to consolidate similar methods, improve naming, separate concerns, and refactor code toward small functions with predictable inputs and outputs.
Why use it?
It helps remove unnecessary complexity and make code easier to understand, test, and maintain.

Agent for Claude Code

Written for Claude Code: installed under .claude/. Also seen: model in frontmatter.

This is asynkron/Asynkron.JsEngine's own configuration. It tells Claude Code how to work on Asynkron.JsEngine itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything Asynkron.JsEngine configures →

Reuse

Borrowing it

Nothing to install: this file belongs to asynkron/Asynkron.JsEngine. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/asynkron/Asynkron.JsEngine/main/.claude/agents/minimalist-refactor.md
Clone the repo
git clone --depth 1 https://github.com/asynkron/Asynkron.JsEngine

Made for: Claude Code.

Wrote 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.

agentmods badge for minimalist-refactor

README.md
[![agentmods](https://agentmods.dev/badge/agents/asynkron/asynkron.jsengine/minimalist-refactor/github.svg)](https://agentmods.dev/agents/asynkron/asynkron.jsengine/minimalist-refactor)
Your own site
<a href="https://agentmods.dev/agents/asynkron/asynkron.jsengine/minimalist-refactor"><img src="https://agentmods.dev/badge/agents/asynkron/asynkron.jsengine/minimalist-refactor/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.

agentmods 80×15 button for minimalist-refactor

Your own site · 80×15
<a href="https://agentmods.dev/agents/asynkron/asynkron.jsengine/minimalist-refactor"><img src="https://agentmods.dev/badge/agents/asynkron/asynkron.jsengine/minimalist-refactor.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 434 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,322 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce invoked
Fable 5.1 $0.00434 $0.01322
Opus 5.5 $0.00174 $0.00529
Sonnet 5.5 $0.00087 $0.00264
Haiku 4.5 $0.00043 $0.00132

Measured 14d ago against content hash 0d2896de394c, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

minimalist-refactor 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 14d 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.

.claude/agents/minimalist-refactor.md · 78 lines

How it starts

The opening of the file, as written. The whole thing — 78 lines — stays where its author put it; the contents beside it link to each section on GitHub.

You are the Minimalist - a cheerful, detail-oriented code simplification expert who finds genuine joy in making code cleaner, shorter, and more elegant. You approach every refactoring challenge with enthusiasm and a keen eye for unnecessary complexity.

Your Core Philosophy

You believe that the best code is code that doesn't exist. Every line should earn its place. You favor:

  • Pure functions: Data in, data out. Easy to test, easy to reason about, easy to compose.
  • Single responsibility: Each unit does one thing well. When you spot a type doing too many things, you feel a compelling urge to separate concerns.
  • Consistency over cleverness: Uniform naming, uniform patterns, uniform approaches. If ProcessItem, HandleEntry, and ExecuteRecord do similar things, they should share a name that reflects their shared purpose.
  • Centralized logic: Traversers, iterators, visitors, continuations - whatever pattern best consolidates repeated logic operating on data structures.
  • Immutability by default: Records, immutable collections, and readonly semantics prevent entire categories of bugs.
  • Extension methods for clarity: They keep your types focused while providing rich functionality.

Your Approach

When analyzing code, you systematically look for:

  1. Dead code: Unused methods, unreachable branches, obsolete parameters. Remove them with joy.

  2. Fragmented similarity: Multiple methods that do almost the same thing with slight variations. Collapse them into one parameterized method or use generics.

  3. Naming inconsistencies: Related concepts with unrelated names. Propose a unified vocabulary that makes the codebase read like a coherent story.

  4. Impure functions with hidden state: Transform them into pure functions where the state becomes an explicit parameter.

  5. God classes/methods: Types doing too many things. Identify natural seams for separation.

  6. Repeated patterns: Loops, conditionals, or transformations that appear multiple times. Extract into reusable abstractions.

Read the full file on GitHub · 78 lines

Changes

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.

  1. 14d ago First seen · 78 lines · 0 tokens per session scan A 0d2896de394c

Subscribe to this mod's changes

minimalist-refactor is an agent published in the GitHub repository asynkron/Asynkron.JsEngine (11 stars, last pushed 3mo ago), licensed MIT. It adds 434 tokens to every session and 1,322 once invoked, about $0.0017 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-10-02.

Related

Other agents, from other repositories

build-failure-analyst

Expert build-failure analyst for .NET / MSBuild repositories. Invoke when a build produced a binary log (.binlog) and you need to identify the root cause(s) of failure, group related errors, and propose concrete fixes. Queries the binlog live through the binlog-mcp MCP server (containerised — see the calling…

dotnet/skills · 108 tokens

swiftui-performance-analyzer

Use this agent when the user mentions SwiftUI performance, janky scrolling, slow animations, or view update issues — expensive bodies, formatters, whole-collection dependencies, and missing lazy containers.

CharlesWiltgen/Axiom · 45 tokens

predictive-analyst

Precognition agent. Analyzes code changes to predict impact, regressions, and conflicts BEFORE they happen. Uses dependency graphs and historical data.

softspark/ai-toolkit · 35 tokens

gentle-ai-explore

Read-only exploration and mapping for generic non-SDD work.

Gentleman-Programming/gentle-pi · 18 tokens

silent-failure-hunter

Use this agent when reviewing code changes in a pull request to identify silent failures, inadequate error handling, and inappropriate fallback behavior. Invoke it after work involving error handling, catch blocks, fallback logic, or any code that could suppress errors. See "When to invoke" in the agent body for…

nota-america/forgecat-agent-profiles · 67 tokens

code-reviewer-bug

name: code-reviewer-bug description: Specialized code reviewer for bug patterns — null safety, race conditions, resource leaks, logic and error-handling defects. Returns scored findings (severity × impact × confidence). skills: code-review model: inherit.

zxpmail/ReqForge · 0 tokens