.agents/skills/legibility--auditor/SKILL.md
Audits a repository's documentation coverage and agent-readiness by evaluating AGENTS.md placement, progressive disclosure quality, and UX intent documentation. Use when evaluating repository structure, auditing documentation coverage, assessing agent-readiness, or onboarding a codebase to agent-first practices. Do not use when creating or editing AGENTS.md files directly (use legibility--enhancer instead).
npx skillsauth add patterninc/code-mint legibility--auditorInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Evaluate how thoroughly a repository is mapped for autonomous agent navigation and produce an Agent Readiness Report. A well-mapped repository enables an agent to understand both how something works (technical implementation) and why it exists (user experience intent). This skill identifies where that mapping is missing, incomplete, or misleading. The findings support the Navigate outcome defined in docs/outcomes.md.
README.md at the repository root and any README.md on the path from the repo root to the scope (when present). Summarize repo-wide operational notes (deploy, release, CI, smoke paths, environments) that apply to the scoped package.Scope: Evaluate the root AGENTS.md for the onboarding target (the git repository root when onboarding the entire repository, or the scoped project directory when onboarding a monorepo package or subdirectory).
Check against these criteria:
For every directory that appears complex enough to justify local guidance, evaluate whether a localized AGENTS.md should exist. Use this rubric:
AGENTS.md is usually warranted if the directory has two or more of the following:
For each directory that the rubric flags as needing local guidance:
Precedence check: Verify that subdirectory files are self-contained enough to guide an agent without the root file (subdirectory AGENTS.md files override, not merge with, parent files). That rule is about which AGENTS.md wins at runtime; it does not excuse skipping parent README files during this audit.
Monorepo / scoped-scope check: If operational documentation (deploy, release, smoke, production runbooks) appears only in a parent or repository-root README.md and is missing from the scoped AGENTS.md or from a README.md under the onboarding scope, record that as a finding (documentation gap), not as optional context.
Look for implicit knowledge that is not documented anywhere:
AGENTS.md or docs.Score the repository across eight readiness dimensions (not the three framework pillars in docs/framework.md) using the detailed checklist in references/readiness-checklist.md. Each dimension is scored as:
Ensure the report directory exists: mkdir -p .agents/reports/completed && touch .agents/reports/.gitkeep .agents/reports/completed/.gitkeep
Ensure .gitignore ignores generated report contents while preserving the directories with their .gitkeep files.
Write the report to .agents/reports/legibility--auditor-audit.md using this structure:
# Legibility Audit Report
**Repository:** [name]
**Date:** [timestamp]
**Overall Readiness Level:** [0-4]
## Summary
[2-3 sentence overview]
## Dimension Scores
| Dimension | Score | Key Finding |
|---|---|---|
| Documentation | [0-4] | [finding] |
| Build System | [0-4] | [finding] |
| Testing | [0-4] | [finding] |
| Style & Validation | [0-4] | [finding] |
| Dev Environment | [0-4] | [finding] |
| Code Quality | [0-4] | [finding] |
| Observability | [0-4] | [finding] |
| Security | [0-4] | [finding] |
## Missing AGENTS.md Files
[Directories that need AGENTS.md files, ordered by priority]
## Hidden Assumptions Found
[Undocumented assumptions with recommended documentation locations]
## Findings
### [Finding Title]
- **Severity:** [Critical / High / Medium / Low]
- **Current State:** [what exists now]
- **Required State:** [what should exist]
- **Recommended Action:** [specific step]
- **Next Skill / Step:** [e.g., Run `legibility--enhancer` for this module]
## Next Steps
Run `legibility--enhancer` to collaboratively remediate findings.
After writing the report, update docs/onboarding-checklist.md and .agents/code-mint-status.json with the current navigate outcome status and date. Optionally update docs/skills-status.md if the repository keeps the compatibility view.
See references/readiness-checklist.md for scoring criteria for each of the eight readiness dimensions.
development
Best practices and template for creating new agent skills in the code-mint framework. Use when creating a new skill, authoring SKILL.md files, or structuring skill directories. Do not use when editing an existing skill's logic (edit directly instead) or when creating AGENTS.md files (use legibility--enhancer).
development
Step-by-step playbook that transforms a repository for AI-first development. It scopes the repository, runs read-only audits, maintains an outcome-driven checklist, guides collaborative improvements, and verifies the results with evidence. Use when onboarding a new repository, when a user says "set up this repo for agents," or when starting a harness engineering transformation. Do not use when the repo is already onboarded and the goal is to run a single specific skill.
development
Collaboratively walks a human through creating high-quality AGENTS.md files throughout a codebase, implementing progressive disclosure architecture. Use when creating or updating AGENTS.md files, onboarding a repository to agent-first practices, or remediating findings from legibility--auditor. Do not use when evaluating existing documentation coverage (use legibility--auditor) or when creating agent skills (use meta--skill-creator).
development
Collaborates with a product owner, TPM, or engineer to refine vague requests into high-quality work tickets optimized for agent one-shot execution. Use when writing tickets, refining requirements, reviewing feature requests, or when a stakeholder submits a new task. Do not use when debugging an existing issue (use autonomy--sre-agent) or when auditing codebase readiness (use legibility--auditor).