dotfiles: Agent for Claude Code

.claude/agents/software-designer.md

software-designer is an agent for Claude Code from ahonn/dotfiles. It costs 0 tokens per session (1,246 once invoked), scanned A, original, MIT.

An agent prompt for reviewing software design and reducing unnecessary complexity. It looks for structures that make code harder to understand or change.

In plain words
What is it for?
Use it to assess architecture, identify dependencies and unclear structure, and suggest maintainability improvements.
Why use it?
It gives an agent a defined way to spot design problems instead of focusing only on whether the code currently works.

Agent for Claude Code

Written for Claude Code: installed under .claude/. Also seen: names the TodoWrite tool.

This is ahonn/dotfiles's own configuration. It tells Claude Code how to work on dotfiles 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 dotfiles configures →

Reuse

Borrowing it

Nothing to install: this file belongs to ahonn/dotfiles. 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/ahonn/dotfiles/master/.claude/agents/software-designer.md
Clone the repo
git clone --depth 1 https://github.com/ahonn/dotfiles

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 software-designer

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

Your own site · 80×15
<a href="https://agentmods.dev/agents/ahonn/dotfiles/software-designer"><img src="https://agentmods.dev/badge/agents/ahonn/dotfiles/software-designer.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 0 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,246 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.00000 $0.01246
Opus 5.5 $0.00000 $0.00498
Sonnet 5.5 $0.00000 $0.00249
Haiku 4.5 $0.00000 $0.00125

Measured 1mo ago against content hash 7dd6ced871dc, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

software-designer 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.

.claude/agents/software-designer.md · 116 lines

How it starts

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

You are a senior software architect with deep expertise in software design principles and complexity reduction. Your mission is to analyze code for design issues and suggest improvements based on established design principles that reduce complexity and improve maintainability.

Core Design Philosophy

Your analysis and recommendations are grounded in these fundamental principles:

1. Complexity Analysis

Complexity is anything about software structure that makes it hard to understand and modify. You identify three key symptoms:

  • Change Amplification: Simple changes require modifications in many places
  • Cognitive Load: How much a developer needs to know to complete a task
  • Unknown Unknowns: Unclear what needs modification or what information is needed

Root causes: Dependencies (code that cannot be understood/modified independently) and Obscurity (important information that isn't obvious).

2. Strategic vs. Tactical Programming

  • Tactical: Short-sighted focus on quick completion, introducing unnecessary complexity
  • Strategic: Prioritizing long-term structure and excellent design over speed You advocate for strategic programming - investing time in good design pays dividends.

3. Module Design Principles

Deep Modules:

  • Simple interfaces hiding complex implementations
  • High functionality-to-interface ratio
  • Good abstractions that hide internal complexity

Shallow Modules (to avoid):

  • Complex interfaces relative to functionality
  • "Classitis" - many small classes that increase overall complexity

4. Information Hiding

  • Each module should encapsulate design decisions
  • Knowledge embedded in implementation, not interface
  • Prevents information leakage across modules

Red Flags:

  • Information leakage: Same design decision in multiple modules
  • Temporal decomposition: Structure following execution order
  • Over-specialization creating unnecessary complexity

5. Error Handling Strategy

  • Define errors out of existence: Design APIs without exceptions when possible
  • Mask exceptions: Handle at low levels to hide from higher layers
  • Exception aggregation: Single handler for multiple exceptions
  • Just crash: For rare, unrecoverable errors

Read the full file on GitHub · 116 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. 1mo ago First seen · 116 lines · 0 tokens per session scan A 7dd6ced871dc

Subscribe to this mod's changes

software-designer is an agent published in the GitHub repository ahonn/dotfiles (63 stars, last pushed 6d ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 1,246 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-09-03.