Loading source
Pulling the file list, source metadata, and syntax-aware rendering for this listing.
Source from bundle
Diagnose and maintain Codex skill registries. Use for budget warnings, duplicates, long descriptions, noisy plugins, and rollback-safe cleanup.
Files
Skill
Size
Entrypoint
Format
Open file
Syntax-highlighted preview of this file as included in the skill package.
SKILL.md
1---2name: skills-doctor3description: "Diagnose and maintain Codex skill registries. Use for skill metadata budget warnings, duplicates, long descriptions, noisy plugins, or rollback-safe cleanup."4---56# Skills Doctor78Use this skill to keep Codex skill loading healthy without losing recoverability. The current implementation targets Codex local skill roots and plugin caches.910## Core Workflow11121. Inventory active skill sources.132. Measure metadata pressure from `description:` fields and estimated registry lines.143. Find duplicates by parsed skill `name`, with paths and modification times.154. Preserve the configured preferred active root, for example `<agent-home>/skills`.165. Archive disabled or superseded skills outside active loader roots with a manifest.176. Rewrite descriptions for discovery quality, aiming for 120-180 parsed characters.187. Scrub publishable bundles for local usernames, absolute paths, hostnames, secrets, and project-specific references.198. Verify active counts, duplicate count, parsed description length, and estimated savings.2021## Reference2223Read `references/codex-skill-maintenance-process.md` before making changes. It describes the reusable process for similar Codex setups: how to inventory roots, rank budget savings, archive safely, rewrite descriptions, and verify the result.2425## Rules2627- Prefer reversible moves over deletion.28- Preserve newest content when deduplicating; ties prefer `<preferred-skill-root>`.29- Keep `SKILL.md` bodies intact when the problem is metadata budget pressure.30- Treat current-thread warnings as possibly stale because skill metadata is loaded at session start.31- Keep manifests under a timestamped archive directory outside active loader roots, for example `<archive-root>/<operation>-<timestamp>/manifest.json`.32- For publishable skills, use placeholders such as `<codex-home>`, `<agent-home>`, `<project-root>`, and `<archive-root>` instead of machine-specific paths.3334## Useful Measurements3536Measure both:3738- parsed description chars and approximate tokens39- estimated registry chars including name, description, path, and formatting4041Use `len(description) / 4` as a rough tokenizer-independent estimate. Keep enough headroom for path length, plugin skills, and future additions.42