improve-layout

improve-layout is a skill for Claude Code from melodic-software/claude-code-plugins. It costs 72 tokens per session (2,603 once invoked), scanned A, original, MIT.

A code-layout analysis that studies which files change together in Git history and whether those files live near each other in the folder tree.

In plain words
What is it for?
Use it to find groups of files that frequently change together, review a proposed target layout and plan moves without performing them automatically.
Why use it?
It reveals when related code is spread across too many folders, which can make changes harder to understand and maintain.

Skill for Claude Code

Written for Claude Code: disable-model-invocation in frontmatter.

Runs only inside its plugin — its command needs a path that Claude Code sets for a plugin’s own hooks and for nothing else. Install the plugin, not this.

Part of the architecture plugin — 16 skills, 1 plugin shipped together

Good fit Use it to find groups of files that frequently change together, review a proposed target layout and plan moves without performing them automatically.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

This one installs as part of its plugin. Adding the marketplace and installing the plugin brings it with everything else the plugin ships.

Claude Code
/plugin marketplace add melodic-software/claude-code-plugins
Claude Code
/plugin install architecture

Made for: Claude Code.

Or install architecture, the plugin that ships this one along with the rest of its 16 skills, 1 plugin.

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 improve-layout

README.md
[![agentmods](https://agentmods.dev/badge/skills/melodic-software/claude-code-plugins/improve-layout/github.svg)](https://agentmods.dev/skills/melodic-software/claude-code-plugins/improve-layout)
Your own site
<a href="https://agentmods.dev/skills/melodic-software/claude-code-plugins/improve-layout"><img src="https://agentmods.dev/badge/skills/melodic-software/claude-code-plugins/improve-layout/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 improve-layout

Your own site · 80×15
<a href="https://agentmods.dev/skills/melodic-software/claude-code-plugins/improve-layout"><img src="https://agentmods.dev/badge/skills/melodic-software/claude-code-plugins/improve-layout.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 72 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,603 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.00072 $0.02603
Opus 5.5 $0.00029 $0.01041
Sonnet 5.5 $0.00014 $0.00521
Haiku 4.5 $0.00007 $0.00260

Measured yesterday against content hash 2e8d5049de88, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

improve-layout 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 yesterday.

The scan reads SKILL.md. This mod also ships 2 executable files (scripts/co-change.mjs, scripts/co-change.test.sh), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

plugins/architecture/skills/improve-layout/SKILL.md · 201 lines

How it starts

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

Arguments. [--path <dir> ...] [--<setting> <value> ...] [--repo <repo> ...]. e.g., --path src --min-revs 3. --path <dir> (repeatable, relative to the repository root) scopes the history to those folders, and a layout setting given as --<key-with-dashes> <value> (for example --min-revs 3) changes that key for this run only. exclude_authors is the exception: --exclude-author <text>, repeatable, replaces the list, and --all-authors empties it. Pass each to the script as given. --repo and the other target forms in ${CLAUDE_PLUGIN_ROOT}/reference/target-scope.md run Phases 1 to 3 once per repository ("Several repositories" below); the script gets each resolved root as --repo <root>, never the form as typed. The default stays this repository.

Variables

Arguments: $ARGUMENTS

This skill and the shared steps it cites write the plugin root as <plugin-root>, which is ${CLAUDE_PLUGIN_ROOT}, and this skill's directory as <skill-dir>, which is ${CLAUDE_SKILL_DIR}. Put those paths in place of the placeholders before running a command.

Purpose

This skill checks whether the files that change together live together. It reads which files the history changes in the same commits, groups them into clusters, measures how each cluster spreads over folders, and judges that against the layout style the repository records. It proposes a target layout for the cluster the user picks and hands it on. It never moves, renames or deletes a file.

The measures, the pattern names, the card fields and badges, and the route for each card are in reference/co-change.md. Read it before Phase 1. The steps it shares with the /architecture:improve lenses are in ../../reference/improvement-steps.md, cited here by section name.

Four phases. Each has a gate before the next.

Several repositories

With no target form, the run covers this repository, exactly as the phases below say. A target form resolves, counts and fans out the repositories as "Scope and fan-out" says, and Phases 1 to 3 run once per repository with its root anchored: its own recorded style, its own <home>, and its own script run with --repo <root>. The script reads the history of the root's checked-out HEAD; when that is not origin/HEAD after the fetch, the report says so for that repository. Each card carries its repository (owner/name), and the cards merge into one report banded on one scale, as target-scope.md "Merging findings" says. The Phase 1 style question is asked from the merged report, once per repository with no style recorded. Each repository's candidate artifact goes to its own memory root, holding only its own cards, and the report names every path. Phase 4 interviews the picked card in its own repository.

Read the full file on GitHub · 201 lines

Files

What ships with it

3 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. yesterday Changed · -42 tokens per session 2e8d5049de88
  2. 5d ago Changed 18efd85060f6
  3. 6d ago Changed · +6 lines c8239af288fd
  4. 7d ago Changed 8b3dbfb731dc
  5. 10d ago Changed · +19 lines 4e5b870a2dff
  6. 13d ago First seen · 176 lines · 114 tokens per session scan A 21d752f60ca1

Subscribe to this mod's changes

improve-layout is a skill published in the GitHub repository melodic-software/claude-code-plugins (33 stars, last pushed today), licensed MIT. It adds 72 tokens to every session and 2,603 once invoked, about $0.0003 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-11-17.

Related

improve-layout compared with skills from other repositories

improve-layout next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
improve-layoutmelodic-software/claude-code-pluginsSkill33todayMITA72Claude Code
parallel-orchestratorjimmc414/claude-code-plugin-marketplaceSkill4yesterdayMITA78Claude Code
parallel-workerjimmc414/claude-code-plugin-marketplaceSkill4yesterdayMITA59Claude Code
core-workflowtravisjneuman/.claudeSkill115yesterdayMITA52Claude Code
agent-debugging-specialisttravisjneuman/.claudeSkill115yesterdayMITA12Claude Code
commit-message-writingshopwareLabs/ai-coding-toolsSkill4813d agoMITA160Claude Code
commit-changestomoking2004/claude-pluginsSkill3todayMITA113Claude Code