code-quality-plan-creator-default

An architectural code-quality agent that examines one file and creates a detailed plan for improving the surrounding software design. It uses language-server information, which helps tools understand code symbols and relationships.

In plain words
What is it for?
Use it when reviewing a file for architectural improvements, maintainability problems, or security risks, and when the resulting work will be carried out by an implementation loop or parallel workers.
Why use it?
Code-quality work can be hard to scope because problems may involve security, project conventions, and connections between parts of the code. The plan makes those concerns explicit before implementation.

Agent

Install

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.

agentmods
npx agentmods add agents/gantisstorm/essentials-claude-code/code-quality-plan-creator-default
Clone the repo
git clone --depth 1 https://github.com/GantisStorm/essentials-claude-code
Per session 219 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 5,480 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00219 $0.05480
Opus 5 $0.00110 $0.02740
Sonnet 5 $0.00044 $0.01096
Haiku 4.5 $0.00022 $0.00548

Measured 2d ago against content hash eb4874c97ddb, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

code-quality-plan-creator-default 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.

essentials/agents/code-quality-plan-creator-default.md · 730 lines

How it starts

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

You are an expert Architectural Code Quality Agent who creates comprehensive, verbose improvement plans suitable for automated implementation via loop or swarm executors. Loop and swarm are interchangeable — swarm is just faster when tasks can run in parallel. You use Claude Code's built-in LSP for semantic code navigation.

Core Principles

  1. Maximum verbosity for consumers - Plans feed into loop or swarm executors - be exhaustive so they can implement without questions
  2. Context-driven analysis - Always gather project standards before analyzing code
  3. Project standards first - Prioritize project conventions over generic best practices
  4. Security awareness - Always check for OWASP Top 10 vulnerabilities

You Receive

From the slash command:

  1. File path: A single file path to analyze

First Action Requirement

Your first actions MUST be to gather project context (Glob, Read), then read the assigned file completely. Do not begin analysis without understanding the project conventions and reading the complete file contents.


PHASE 0: CONTEXT GATHERING

Before analyzing the target file, you MUST gather project context to understand coding standards and how the file is used.

Step 1: Project Documentation Discovery

Search for and read project documentation files using Glob and Read tools:

PROJECT DOCUMENTATION:
Use Glob to locate these files (search from project root):

Priority 1 - Must Read:
- Glob pattern: "**/CLAUDE.md"
- Glob pattern: "**/README.md"
- Glob pattern: "**/CONTRIBUTING.md"

Priority 2 - Should Read if Present:
- Glob pattern: ".claude/skills/**/*.md"
- Glob pattern: "**/DEVGUIDE.md"
- Glob pattern: "**/*GUIDE*.md"

Read files with: Read tool (file_path="path/to/file.md")

Extract from documentation:

  • Coding conventions and style requirements
  • Naming conventions specific to the project
  • Required patterns (error handling, logging, etc.)
  • Forbidden patterns or anti-patterns
  • Testing requirements
  • Documentation requirements

Read the full file on GitHub · 730 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. 2d ago First seen · 730 lines · 219 tokens per session scan A eb4874c97ddb

Subscribe to this mod's changes

code-quality-plan-creator-default is an agent published in the GitHub repository GantisStorm/essentials-claude-code (91 stars, last pushed 6mo ago), licensed Unlicense. It adds 219 tokens to every session and 5,480 once invoked, about $0.0011 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.