From productivity-skills
Maintain project-local AGENTS.md files through deterministic audit and bounded apply modes. Use when a repository's AGENTS.md needs auditing, normalization, or bounded fixes for durable repo guidance, grounded commands, review expectations, or safety boundaries. This is the default baseline AGENTS workflow for most repos unless a narrower plugin owns that repo shape.
How this skill is triggered — by the user, by Claude, or both
Slash command
/productivity-skills:maintain-project-agentsThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Maintain project-local `AGENTS.md` files through one deterministic AGENTS workflow.
agents/openai.yamlassets/AGENTS.template.mdconfig/agents-customization.template.yamlreferences/agents-config-schema.mdreferences/agents-customization.mdreferences/fix-policies.mdreferences/output-contract.mdreferences/project-agents-maintenance-automation-prompts.mdreferences/section-schema.mdreferences/style-rules.mdscripts/maintain_project_agents.pytests/test_maintain_project_agents.pyMaintain project-local AGENTS.md files through one deterministic AGENTS workflow.
This skill is the default baseline path for AGENTS.md maintenance across most repositories. Reach for a narrower plugin only when the target repo has a specialized shape that deserves its own maintainer contract, such as a skills-export or plugin-export repository.
--project-root <path>--run-mode <check-only|apply>--agents-path <path>--config <path>AGENTS.md.config/agents-customization.template.yaml, then merge any explicit override or project-local customization file.check-only, audit the required AGENTS sections, required subsection structure, command formatting, workflow routing guidance, and safety boundaries.apply, keep edits bounded to the target AGENTS.md while creating a missing file from the bundled template and normalizing the document to the canonical structure.The source of truth for the base AGENTS contract lives in:
config/agents-customization.template.yamlassets/AGENTS.template.mdThe base contract requires:
Repository Scope > Where To Look First should route Codex toward the few highest-value files or directories, not try to summarize the whole repo.Commands should prefer fenced code blocks with language info strings for setup and validation commands.Review and Delivery should explain what good handoff looks like and what “done” means in this repo, including grounded verification and nearby updates when they matter.Safety Boundaries should stay concrete, high-signal, and easy to scan.Local Overrides should briefly explain whether more specific AGENTS files or fallback instruction files exist below this root, and make clear that closer guidance refines this root file later in the instruction chain.README.md; contributor workflow belongs in CONTRIBUTING.md; milestone, backlog, and small-ticket planning belong in ROADMAP.md; detailed architecture or release procedures belong in linked maintainer docs when they would bloat this file.The base contract is shaped to match the official Codex AGENTS.md guidance:
AGENTS.md when repeated mistakes or recurring review feedback reveal missing guidanceUse the shared trigger and sandbox policy in docs/maintainers/codex-subagent-guidance.md. This skill is a good fit for bounded read-heavy checks before the main workflow edits or reports: auditing command accuracy, comparing repo instructions against nearby docs, checking safety boundaries, or reading nested guidance files in separate directories.
Keep apply edits in the main thread because this skill owns one target AGENTS.md file and needs one coherent policy voice. If a target AGENTS.md mentions subagents, make the wording match OpenAI's current Codex rule: subagents need an explicit trigger, are best for bounded parallel discovery, tests, triage, and summarization, and may be called for by narrower plugin guidance that tells the agent to ask and receive permission before delegation.
When a target AGENTS.md mentions OpenAI Codex Hooks, keep the wording narrow and operational. Hooks are lifecycle scripts loaded from hooks.json or inline [hooks] config; they are enabled by default and can be disabled with features.hooks = false. Project-local hooks load only from trusted .codex/ layers.
Use hooks guidance in AGENTS.md only when the repo actually owns hook behavior or wants to warn contributors about repo-local Codex runtime checks. Name the event, matcher, script location, and user-visible effect. Do not present hooks as a replacement for AGENTS.md, approval policy, tests, or ordinary validation commands.
run_contextschema_contractschema_violationsworkflow_drift_issuesvalidation_drift_issuesboundary_and_safety_issuesfixes_appliedpost_fix_statuserrorsNo findings.AGENTS.md.AGENTS.md as maintainer and agent guidance, not as public README content.agents/openai.yamlreferences/section-schema.mdreferences/output-contract.mdreferences/fix-policies.mdreferences/style-rules.mdreferences/agents-customization.mdreferences/agents-config-schema.mdreferences/project-agents-maintenance-automation-prompts.mdnpx claudepluginhub gaelic-ghost/socket --plugin productivity-skillsCreates, edits, and verifies skills using a test-driven development approach with pressure scenarios and subagents.