ensure-agents-md
Installation
SKILL.md
Ensure AGENTS.md and CLAUDE.md (bootstrap)
Mandatory order (all cases)
Before any other work — including dispatcher, create-component, code edits, MCP, or answers — the agent MUST:
- Check whether
AGENTS.mdexists at the workspace (repository) root. - If it exists → skip this skill entirely and continue with the user’s request.
- If it does not exist and the repo is an AEM Cloud Service project (see Gate check) → run this skill completely first (create
AGENTS.mdandCLAUDE.mdif missing), then fulfill the user’s original request.
This applies to every user message and any intent (bugs, features, questions, dispatcher, etc.) until AGENTS.md is present. Do not defer bootstrap to “after” the main task.
It creates AGENTS.md and CLAUDE.md at the repository root so every AI coding agent (Claude Code, Cursor, etc.) gets project guidance, optionally tailored using the module catalog and add-on detection.