marketplace/bundles/plan-marshall/skills/ref-agentfile-hygiene/SKILL.md
Agentfile context-hygiene rubric — objective criteria classifying every CLAUDE.md/AGENTS.md section as always-on-justified, demotable-to-skill, or inert/deletable, plus the always-on line budget and directory-tree anti-pattern; the shared source of truth for the recipe and the plugin-doctor backstop rules
npx skillsauth add cuioss/plan-marshall ref-agentfile-hygieneInstall 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.
REFERENCE MODE: This skill provides reference material. Load the rubric on-demand when auditing, trimming, or gating an agentfile.
An agentfile is an always-on instruction file an AI coding assistant loads into context every session — CLAUDE.md (Claude Code) and AGENTS.md (OpenAI / OpenCode spec). Because the file is always-on, every line carries a fixed per-session token cost and competes for the context window; agentfiles drift upward over time as rules accrue. This skill carries the objective, domain-invariant rubric for deciding which sections earn that always-on cost.
The rubric is the single normative source of truth consumed by BOTH halves of the agentfile-hygiene capability:
plan-marshall:recipe-agentfile-hygiene, which classifies each section and emits one remediation deliverable per offending section; andpm-plugin-development:plugin-doctor backstop rules agentfile-line-count-over-budget and agentfile-directory-tree-present.Consumers reference the rubric — they MUST NOT restate its content — so the LLM recipe and the deterministic rules stay in sync by construction.
Execution mode: Reference library; load the rubric standard on-demand.
Prohibited actions:
standards/rubric.md instead.Constraints:
standards/rubric.md is the single normative source for every enforcement-critical hygiene criterion.CLAUDE.md (every nesting level) and AGENTS.md alike.Read: standards/rubric.md
The rubric covers: the empirical grounding for agentfile hygiene; the three section classifications (always-on-justified | demotable-to-skill | inert/deletable) with concrete criteria; the always-on line budget (default 200 lines, with the per-consumer budget note); and the directory-tree anti-pattern.
plan-marshall:recipe-agentfile-hygiene — cognitive sweep that consumes this rubric and emits remediation deliverablespm-plugin-development:plugin-doctor — deterministic backstop rules that embody the rubric's line-budget and directory-tree criteriaplan-marshall:tools-sync-agents-file — distinct concern: creates/updates AGENTS.md per the OpenAI spec (this skill audits and trims existing agentfiles)development
Domain-owned OpenRewrite log-line finding parser for the java-cui domain — parses the
development
Domain-owned OpenRewrite marker detection for the java-cui domain — scans Java/Kotlin sources for cui-rewrite TODO markers, categorizes them by recipe, and fails the gate on any detected marker
development
Operator control surface for the marshalld build server — enrol/drop a project in the machine-global registry (the opt-in enable signal and anti-laundering wall), manage the daemon lifecycle (start, stop, drain, status, install, upgrade) version-pinned to the verified bundle copy, and inspect the daemon's per-project interaction-audit log (read-only)
tools
The tiny build-consumption client for the marshalld build server — submit a build job, bounded long-poll for its result, ping the daemon identity, and preflight registry-plus-liveness in one call; consumption only, never provisioning or enrolment