ensure-agents-md
БесплатноБез исполняемых скриптовНе проверен**Run FIRST (before any other skill or task)** when workspace root has no AGENTS.md and the repo is an AEM 6.5 LTS (on-prem or Adobe Managed Services)…
от adobe★ 342 звезды на GitHubОб этом скилле
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 6.5 LTS 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.
Gate check
- Look for
AGENTS.mdat the workspace root. If it exists → skip, move on. - Verify this is an AEM 6.5 LTS (or AMS 6.5) Maven project, not AEM as a Cloud Service:
- Root
pom.xmlexists. - Exclude (Cloud Service): if the project's primary AEM API dependency is
com.adobe.aem:aem-sdk-apior packaging/parent clearly targets Cloud Service only — use the cloud-serviceensure-agents-mdskill instead, not this one. - Include (6.5 / AMS):
pom.xmlreferencescom.adobe.aem:uber-jar(any classifier), orcq-quickstart/ product dependency coordinates for 6.5, or a property such asaem.version/cq.quickstart.versionin the 6.5 line, and typical AEM module names appear in<modules>(core,ui.apps,dispatcher, etc.) when present. If not an AEM project → skip.
- Root
Steps
1. Resolve project name
Check in order:
- Root
pom.xml→<name>element (preferred, usually human-readable). - Root
pom.xml→<artifactId>, then humanize: strip leadingaem-, replace-with spaces, title-case (e.g.aem-guides-wknd→WKND,my-site→My Site). - Directory name of the workspace.
- Fallback:
"AEM 6.5 LTS Project".
2. Discover modules
Read root pom.xml <modules> section. For each <module>, confirm the directory actually exists.
Build a list of present modules.
3. Detect add-ons and frontend type
Scan the project for:
| Signal | Add-on / variant |
|---|---|
pom.xml depends on cif-connector or aem-core-cif-components |
CIF (Commerce) |
ui.frontend/package.json contains react or @adobe/aem-react-editable-components |
React SPA |
ui.frontend/package.json contains @angular/core or @adobe/aem-angular-editable-components |
Angular SPA |
ui.frontend has no clientlib.config.js and pom.xml references frontend-maven-plugin but outputs no clientlibs |
Decoupled frontend |
pom.xml depends on aem-forms-* or forms.core |
AEM Forms |
Module ui.frontend.react.forms.af exists |
Headless Forms |
pom.xml uses precompiled-scripts-provider |
Precompiled Scripts |
If none of these are detected, treat as General Webpack frontend (the default archetype).
4. Generate AGENTS.md
Read the template at references/AGENTS.md.template. Apply the following adaptations:
a. Title
Replace {{PROJECT_NAME}} with the resolved project name.
b. Add-ons section
If any add-ons were detected (CIF, Forms, Headless Forms, Precompiled Scripts), insert an "Add-ons and extensions" section after the intro paragraph. Use descriptions from the references/module-catalog.md add-ons table. If none detected, omit the section entirely.
c. Modules section
Only include modules that actually exist in the project. For each module, use the matching description from the module catalog. Pay attention to:
ui.frontend— use the variant that matches the detected frontend type (General, React, Angular, Decoupled).dispatcher— only include if thedispatcherdirectory exists.it.tests/ui.tests— only include if they exist.
d. Build commands
- Include frontend commands (
npm run build,npm start) only ifui.frontendexists. - Include dispatcher validate command only if
dispatchermodule exists. Usehttpd -t -f <path-to-httpd.conf>orapachectl configtest— adjust the config path to match the project layout. - For React/Angular SPA, note that
npm startrequires AEM running.
e. Important resources
Always include the base resources from the template. Additionally:
- If React or Angular SPA detected → add SPA Editor and framework-specific resources (see module catalog).
- If CIF detected → add Commerce resources.
- If Forms detected → add Forms resources.
- If Decoupled frontend → add headless / external-frontend resources.
5. Create CLAUDE.md
If CLAUDE.md does not exist at
Установить ensure-agents-md в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл ensure-agents-md?
**Run FIRST (before any other skill or task)** when workspace root has no AGENTS.md and the repo is an AEM 6.5 LTS (on-prem or Adobe Managed Services) project. Creates AGENTS.md and CLAUDE.md (tailored via pom.xml). Applies on every user request until AGENTS.md exists — not only the first chat. Never overwrites existing files.
Как установить скилл ensure-agents-md?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл ensure-agents-md запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
от Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropicconfigure
Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
от Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropic