agentleFS
Edmonds-Commerce-LimitedEdmonds-Commerce-Limited/claude-code-hooks-daemon/.claude/skills/docs-optimise/SKILL.md

docs-optimise

Skill4 starsChanged 16 days agoMITView on GitHub

Propose a restructure of this project's agent instruction files (CLAUDE.md, @-imports, .claude/rules/, nested CLAUDE.md) so less loads at session start — one canonical home per fact, progressive disclosure. Proposal only, never edits tracked files. Trigger on "optimise CLAUDE.md", "my CLAUDE.md is too big", "shrink the always-loaded context", "restructure the instruction files".

The file

We split this skill into the rules it gives an agent

1 rule. About 0 are common, 1 is distinctive, and 0 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈1

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Follow references/procedure.md to classify each always-loaded section and write the proposal.

    line 26

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Documentation Optimise

This skill is a shim. The classification rules, the report layout and the output paths are in references/procedure.md; the rules it applies are cited, not restated:

  • how Claude Code loads instruction files: contracts/claude-code-instructions/ in the daemon checkout (META.json names the audited Claude Code version)
  • the daemon's documentation ruleset (R6, R7a, R7d): CLAUDE/DocumentationStrategy.md

What to do

  1. Measure first: run .claude/skills/docs-optimise/scripts/footprint.sh (it wraps docs-qa --footprint --json). It lists what loads at session start versus on demand, with line and byte totals.
  2. Follow references/procedure.md to classify each always-loaded section and write the proposal.
  3. Tell the user where the proposal is and how to apply the patch.
/docs-optimise                 # the whole instruction-file set
/docs-optimise CLAUDE.md       # focus on one file

Contract

  • Proposal only. Everything is written under untracked/scratch/docs-optimise/<run-id>/. It never edits a tracked file and never adds an allowlist entry.
  • It never proposes edits to the daemon-injected <hooksdaemon> block, CLAUDE.local.md or files under ~/.claude/; they are counted, not moved.
  • It owns placement and footprint only. Its report ends by naming /docs-qa (re-verify SSoT on the touched files after the patch is applied) and /doctor prompt-audit (outdated, missing-reference or contradictory content); neither is re-implemented here.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.