optimize-docs

A documentation review tool that checks project guides for clarity, duplication, and outdated commands for both people and coding agents.

In plain words
What is it for?
Use it to audit or restructure README files, AGENTS.md files, contribution guides, specifications, and other project documentation.
Why use it?
It helps prevent bloated instructions and mismatches between documentation and the commands the project actually uses.

Skill for Claude CodeCodexCursor

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 skills/lolay/nowline/optimize-docs
Any agent
npx skills add lolay/nowline --skill optimize-docs
Clone the repo
git clone --depth 1 https://github.com/lolay/nowline

Made for: Claude Code, Codex, Cursor.

Per session 81 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,147 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.00081 $0.01147
Opus 5 $0.00041 $0.00574
Sonnet 5 $0.00016 $0.00229
Haiku 4.5 $0.00008 $0.00115

Measured yesterday against content hash 1c069fed5db5, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

optimize-docs 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.

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.

.cursor/skills/optimize-docs/SKILL.md · 68 lines

How it starts

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

Optimize Docs

Adapted from prior art: imsanchez/agents-md-skill (read → fetch best practices → decide updates workflow), markoblogo/AGENTS.md_generator (marker-based in-place edits), anthropics/skills (structure patterns). Authoritative sources: agents.md spec, Diataxis framework, llms.txt convention.

Human vs agent docs

Audience Files Purpose
Humans README.md, CONTRIBUTING.md, specs/, ops/, CHANGELOG.md Quick start, rationale, contribution workflow, product/engineering decisions
Agents AGENTS.md (+ nested AGENTS.md in subdirs if needed) Exact commands, conventions, never-touch boundaries, non-obvious patterns

Must: never duplicate content across the two audiences. Link instead of copy. The Makefile is the single source of truth for build/test/lint/deploy command strings — docs must match make help, not raw tool invocations.

Workflow

  1. Inventory — list every doc file in scope (see "Docs in this repo" below). Note line count and obvious duplication.
  2. Classify — tag each section as human-only, agent-only, or shared (shared → pick one home, link from the other).
  3. Trim — remove content inferable from code, manifests (package.json, go.mod, versions.tf), or linter config. Remove stale commands, time-sensitive notes, and README content pasted into AGENTS.md.
  4. Verify commands — every command in docs must be copy-pasteable and match a make <target>. Prefer make pre-commit for the local gate (alias of make ci).
  5. Structure — keep AGENTS.md lean (target under 150–200 lines). Use tables, lists, explicit Must/Recommend labels, and good-vs-bad examples. Human docs follow Diataxis: tutorials, how-to, reference, explanation — each doc has one job.
  6. Cross-link — replace duplication with relative links. AGENTS.md points to CONTRIBUTING.md for full workflow; CONTRIBUTING.md points to AGENTS.md for agent-specific rules.
  7. Verify — run the checklist below before finishing.

Read the full file on GitHub · 68 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. yesterday First seen · 68 lines · 81 tokens per session scan A 1c069fed5db5

Subscribe to this mod's changes

optimize-docs is a skill published in the GitHub repository lolay/nowline (0 stars, last pushed 4d ago), licensed Apache-2.0. It adds 81 tokens to every session and 1,147 once invoked, about $0.0004 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-31.

Related

Other skills, from other repositories

meta-tags-optimizer

Optimize title tags, meta descriptions, Open Graph, and Twitter cards for maximum click-through rate. Generates multiple A/B test variations with character counting and SERP preview. Use when asked to "optimize title tag", "write meta description", "improve CTR", "Open Graph tags", "fix my meta tags", "social media…

nowork-studio/notfair-plugin · 91 tokens

setup-cms

Connect a CMS to notfair SEO tools. Guides users through configuring WordPress, Strapi, Contentful, or Ghost — tests the connection, and writes credentials to .env.local. Once set up, seo-analysis automatically cross- references CMS content against Google Search Console data. Use whenever the user says "connect my…

nowork-studio/notfair-plugin · 111 tokens

broken-link-checker

Scans a website to find broken links (404s, 500s). Crawls internal pages, identifies broken outbound links, and reports source pages for easy fixing. Use this when the user asks to "check for broken links", "find 404s", "audit my links", or "is my site healthy".

nowork-studio/notfair-plugin · 72 tokens

google-ads-audit

Google Ads account audit and business context setup. Run this first — it gathers business information, analyzes account health, and saves context that all other ads skills reuse. Trigger on "audit my ads", "ads audit", "set up my ads", "onboard", "account overview", "how's my account", "ads health check", "what should…

nowork-studio/notfair-plugin · 114 tokens

hreflang-international

International / multilingual SEO audit focused on hreflang correctness. Detects and diagnoses the most common (and ranking-damaging) hreflang mistakes: missing or broken return tags, wrong language/region codes, missing x-default, self-referencing errors, conflicts between hreflang and canonical, and inconsistent…

nowork-studio/notfair-plugin · 242 tokens

paid-ads-linkedin

Audit, diagnose, plan, and safely operate connected LinkedIn Ads accounts through the NotFair MCP, with an export-based fallback. Use for LinkedIn advertising, sponsored content, lead-generation forms, job-title or company targeting, campaign groups, creatives, conversions, lead quality, budgets, bids, or approved…

nowork-studio/notfair-plugin · 72 tokens