aii-knowledge-hygiene

Scans reference files for bloat, duplication, and stale content, then drafts an approval-based cleanup punch-list.

Updated Aug 21, 2026
One-click install
npx skills add https://github.com/maestroventures/aiintegrator --skill aii-knowledge-hygiene-maestroventures
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: aii-knowledge-hygiene
Source: https://github.com/maestroventures/aiintegrator/tree/main/plugins/aii-blueprint/skills/aii-knowledge-hygiene
Command: npx skills add https://github.com/maestroventures/aiintegrator --skill aii-knowledge-hygiene-maestroventures

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve? Reference files rot quietly over time: sections bloat past their limits, the same fact ends up in two files, dates pass, and decisions get reversed while old notes stay. This Skill runs scheduled or on-demand scans that flag these issues and hand you a punch-list of suggested fixes — it drafts the cleanup but never auto-deletes or auto-edits anything. ## Core Features & Use Cases - Hygiene Scanning: Walks your file set and flags bloat, duplicated facts, stale content, contradictions, and orphaned links with exact file locations. - Draft-First Punch-List: Outputs a numbered list of suggested fixes you approve with a simple reply like "do 1, 3, 4" — nothing changes without your confirmation. - File Lifecycle Enforcement: Detects duplicate copies (shadows vs orphans), unregistered working directories via the included Python check, and verifies no live file references a candidate before any move. - Use Case: Run a monthly review of your personal knowledge base. The Skill reports that your preferences file has a 34-line section over its 20-line limit, a mortgage rate duplicated across two files, and three unregistered scratch directories — you pick which fixes to apply. ## Quick Start Ask the assistant to run a knowledge hygiene review of my reference files and give me the cleanup punch-list.

Frequently Asked Questions about aii-knowledge-hygiene

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I clean up bloated and duplicated reference files?

Run a hygiene scan that walks your file set and flags bloat past size limits, facts duplicated across files, stale dates, contradictions, and orphan links. You receive a numbered punch-list and approve fixes with a reply like "do 1, 3, 4" — nothing is edited automatically.

How to detect duplicate files in a workspace automatically?

The File Lifecycle sweep detects unmarked duplicates like "name (1).ext" by classifying them as shadows (has a live sibling, sweepable) or orphans (no sibling, never swept). Accepted debt is tracked as a set of paths, so new duplicates are flagged immediately even while a backlog is being worked down.

Does the knowledge hygiene scan delete files automatically?

No. The Skill is strictly draft-first: it flags issues and proposes fixes, but never deletes, merges, or rewrites anything on its own. Approved changes are applied as a safe batch with version bumps and a changed-vs-unchanged manifest.

What is the work drawer check and why does it need a snapshot?

The included Python script verifies that every visible working directory is a registered drawer name. It refuses to run without a registry snapshot (exit 6) or with a stale one (exit 7), because a hardcoded drawer list would silently drift from the actual registry.

When should I not run a full knowledge hygiene scan?

Skip it mid-task when you just want one thing done — it is a periodic review ritual, not an interruption. It is designed for scheduled cadences like monthly reviews or explicit requests such as "clean up my files."