readme-restructure

readme-restructure is a skill for Claude Code from jamestexas/agents. It costs 59 tokens per session (2,095 once invoked), scanned B, original, Apache-2.0.

A README reorganization tool that moves the main value near the beginning and creates a reviewable diff while keeping the original information.

In plain words
What is it for?
It is for restructuring repository README files for people who skim and for systems that process documentation.
Why use it?
It helps readers and language models find the important purpose before implementation details, without rewriting the content.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Good fit It is for restructuring repository README files for people who skim and for systems that process documentation.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/jamestexas/agents/readme-restructure
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.

Any agent
npx skills add jamestexas/agents --skill readme-restructure
Clone the repo
git clone --depth 1 https://github.com/jamestexas/agents

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 readme-restructure

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/jamestexas/agents/readme-restructure"><img src="https://agentmods.dev/badge/skills/jamestexas/agents/readme-restructure.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 59 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,095 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 1 finding. 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.00059 $0.02095
Opus 5.5 $0.00024 $0.00838
Sonnet 5.5 $0.00012 $0.00419
Haiku 4.5 $0.00006 $0.00210

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

Security

Grade B, and why

readme-restructure scanned grade B with 1 finding 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 3mo 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.

Strips warnings and disclaimersmediumAnti-refusal

Omitting safety caveats hides risk from the user and is a common jailbreak preamble.

- **Never invent claims.** If the README says "stable on macOS" and you can't verify, leave that claim alone. Don't add caveats it didn't have, don't drop caveats it did.
skills/readme-restructure/SKILL.md · 222 lines

How it starts

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

/readme-restructure — README Information Architecture

Restructure a README so the value prop and audience signal land before any internals. This skill does not rewrite content — it re-orders sections and pushes dense detail behind <details> or into separate docs.

Arguments

$ARGUMENTS

  • <path-to-README.md> — the file to restructure. Defaults to README.md in the current working directory.
  • --dry-run (default) — produce a structure diff and a written restructure plan; do not write.
  • --apply — after approval, rewrite the file in place. The original is preserved as README.md.bak.
  • --target (default: both) — optimize for human, llm, or both. Affects ordering heuristics: humans skim, LLMs read top-down.

What this solves

A README's job is to land three signals in the first 200 tokens:

  1. What is this? (category noun + defining trait)
  2. Who is it for? (audience)
  3. How do I try it in 30 seconds? (quick-start or one-line install)

The user's mache/README.md is the motivating example. Its first 1000 chars are good — until paragraph 4:

"Seventeen MCP tools wrap the projected graph (sixteen read-surface plus write_file). Fourteen work standalone; three (semantic_search, get_type_info, get_diagnostics) require ley-line-open enrichment. find_smells covers nine structural code-smell rules (dead_code, cyclomatic_complexity, god_file, fan_out_skew, untested_function, …); four of those require a .db built by ley-line-open."

That paragraph is accurate and useful — but it requires the reader to already know what an MCP tool is, what ley-line-open enrichment is, and what "structural code-smell rules" means. A first-time reader bounces. This skill moves that paragraph behind a <details> or into a ## Tools section further down, without deleting it.

Hard rules

  • Never delete content. Every paragraph from the original must appear in the output. Re-order, fold into <details>, or move to a sub-page — but don't drop.
  • Never invent claims. If the README says "stable on macOS" and you can't verify, leave that claim alone. Don't add caveats it didn't have, don't drop caveats it did.
  • Preserve all links. A restructure that breaks an internal anchor link is worse than the original.
  • Preserve all code blocks verbatim. No editing example commands, paths, or shell snippets.
  • Don't reorder ADRs, CHANGELOG, or LICENSE references — those have conventional positions.

Read the full file on GitHub · 222 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. 3mo ago First seen · 222 lines · 59 tokens per session scan B 833e3083d194

Subscribe to this mod's changes

readme-restructure is a skill published in the GitHub repository jamestexas/agents (2 stars, last pushed today), licensed Apache-2.0. It adds 59 tokens to every session and 2,095 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it B with 1 finding (strips warnings and disclaimers). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

readme-restructure compared with skills from other repositories

readme-restructure next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
readme-restructurejamestexas/agentsSkill2todayApache-2.0B59Claude Code
soul-gradercobibean/soul-grader-skillSkill603mo agoMITA45Codex
markdown-ui-dslMegaByteMark/markdown-ui-dslSkill258mo agoMITA25Claude Code, Codex
research-dspyGrayCodeAI/starlingSkill23mo agoMITA36Claude Code
research-guidanceGrayCodeAI/starlingSkill23mo agoMITA39Claude Code
research-instructorGrayCodeAI/starlingSkill23mo agoMITA39Claude Code
reviewvercel/eveSkill6.1ktodayApache-2.0A31Claude Code, Codex