# docs hygiene

> Maintain concise, accurate, and navigable repository documentation by enforcing line limits and content hygiene.

docs hygiene is a free AI agent skill on Agensi by Daniele Bordignon, in Technical Documentation. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: Free
- Creator: [Daniele Bordignon](https://www.agensi.io/creators/daniele-bordignon)
- Category: [Technical Documentation](https://www.agensi.io/skills/technical-documentation)
- Version: 1.0
- Last updated: 2026-11-23
- Security: scan passed (2026-11-23); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/docs-hygiene
- Tags: documentation, markdown, code-review, project-management

## About this skill

Stale documentation leads to developer confusion, broken links, and outdated setup instructions. This skill enforces strict documentation hygiene to ensure your repository guides remain concise, navigable, and accurately reflect current shipped behavior.

### What it does
- **Enforce conciseness** by limiting entry-point files like `README.md` to 150-200 lines.
- **Manage documentation depth** by moving technical details into dedicated topic files or subdirectories.
- **Cleanse planned features** by removing internal bug IDs and unshipped roadmaps from public-facing docs.
- **Maintain consistency** by auditing all linked guides and style instructions whenever a file is modified.
- **Verify link integrity** to ensure all relative paths and internal document references resolve correctly.

### How it works
1. **Analyze entry points** to identify files exceeding the 200-line limit for refactoring.
2. **Relocate technical depth** into specialized folders like `guides/` or `architecture/`.
3. **Audit behavior claims** against the current codebase to remove speculative or outdated content.
4. **Sync cross-references** across READMEs, contributor guides, and style rules in a single pass.

### Frameworks & tools
This skill is framework-agnostic and works with any repository using Markdown for documentation. It is particularly effective for large monorepos or projects with complex contributor guides.

### Why this beats prompting it yourself
Generic prompts often fail to maintain a strict line-count limit or overlook deep-linked dependencies in a documentation tree. This skill applies a systematic rule set that forces the agent to balance high-level navigation with granular technical detail without manual oversight.

### Use cases
- Refactoring a bloated `README.md` into a structured documentation site.
- Auditing docs after a major feature ship to remove "planned" placeholders.
- Keeping `CONTRIBUTING.md` and agent instructions in sync with codebase changes.
- Preparing a repository for public release by cleaning internal task IDs.

### Known limitations
Does not support non-Markdown formats. Requires manual confirmation for external URL validity as it focuses on relative repository links.

## How to use this skill

1. Connect your AI agent to Agensi once: add the MCP server https://mcp.agensi.io/mcp/auth and sign in with your Agensi account (OAuth, no API key). Steps for Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and other agents: https://www.agensi.io/docs/mcp-setup
2. Ask your agent: "Use the docs hygiene skill from Agensi" and describe your task.
3. Your agent loads the skill from Agensi when it needs it. Nothing is downloaded.

## Frequently asked questions

### How does this skill prevent documentation from becoming 'stale' or bloated?

This skill automatically refactors oversized files by moving technical depth into subdirectories and audits your docs to remove internal task IDs and outdated 'planned' feature claims.

### Which AI agents and environments are compatible with 'docs hygiene'?

It is designed for any AI agent that has file-system access to your repository and supports Markdown, making it ideal for use in GitHub Actions, local IDE agents, or CI/CD pipelines.

### Can I customize the strictness of the line-limit enforcement?

Yes, you can configure the specific line-count thresholds (e.g., 150 vs. 200 lines) and specify which directories should house relocated technical content.

### Does 'docs hygiene' check for broken links within my project?

The skill focuses on internal repository integrity by verifying relative paths and cross-references between your Markdown files, though it does not validate external web URLs.

### What is included in the purchase of this skill?

You receive the complete skill definition, including the logic for document refactoring, content auditing, and link verification, along with a setup guide for your preferred AI agent.

---

Source: [Agensi](https://www.agensi.io), the marketplace of skills for AI agents. Any MCP-compatible agent (Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and more) connects at https://mcp.agensi.io/mcp/auth and signs in with an Agensi account; setup for every agent: https://www.agensi.io/docs/mcp-setup. Append .md to any skill, guide or docs address on agensi.io for its markdown version.
