Skip to content
Back to skills

Docs Optimise

ASecurity

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".

  • 6 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added November 10, 2026
ai-agentsbashdocumentation

Works with

  • claude code

Security analysis

A100/100

Pro scans all 3 files and shows the line behind each finding

Scanned November 10, 2026

npx -y skills add LongTermSupport/fedora-desktop --skill docs-optimise --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Docs Optimise?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Docs Optimise
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/longtermsupport-docs-optimise/badge)](https://www.skillsdirectory.com/skills/longtermsupport-docs-optimise)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: docs-optimise
description: 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".
argument-hint: "[file or directory to focus on]"
disable-model-invocation: false
user-invocable: true
allowed-tools: Bash, Read, Grep, Glob, Write
---

# Documentation Optimise

This skill is a **shim**. The classification rules, the report layout and the
output paths are in [references/procedure.md](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](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.

```claude-code
/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.

Files in this skill

  • SKILL.md2.1 KB
  • references/procedure.md3.6 KB
  • scripts/footprint.sh932 B

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.