om-create-agents-md
БесплатноБез исполняемых скриптовНе проверенWrite, rewrite, or refresh an AGENTS.md (repo root or one package/module) from the actual codebase — Always / Ask First / Never / Validation Commands rules…
от open-mercato★ 284 звезды на GitHubОб этом скилле
Create AGENTS.md
Write AGENTS.md files that tell coding agents what to do, what to ask
about first, what never to do, and how to prove their work — derived
from the code that is actually in the repository, never copied from another
project. An AGENTS.md is an instruction set, not documentation: every
sentence directs, constrains, or gives a step-by-step procedure.
Input — a target directory (repo root by default) or an existing
AGENTS.md. Output — one AGENTS.md written or updated after the user saw
the result, plus, for a package/module file, a proposed row for the root Task
Router. The handover follows references/report-templates.md.
Relationship to om-setup-agent-pipeline. Setup generates a root
AGENTS.md starter (overview + task-routing table) only when none exists,
and never touches an existing file. This skill owns full authoring and
refresh: it writes package/module files, rewrites an existing file to the
house structure without losing content, and re-syncs a file whose facts drifted
from the code. Run setup first for the pipeline config; run this skill to turn
the starter into a complete file, or any time an AGENTS.md needs writing.
Where this skill stops. It writes instruction files. It does not change code, config, the pipeline config, or other skills' files, and it does not commit unless the user asks.
Arguments
{target}(optional) — a directory (write<dir>/AGENTS.md) or a path to an existingAGENTS.md. Default: the repository root.--mode <create|rewrite|refresh>(optional) — override the auto-detected mode.--template <path>(optional) — use this repo template for this run.--dry-run(optional) — show the proposed file or diff, write nothing.
Workflow
ALWAYS check first: Apply .ai/skills/om-create-agents-md/SKILL.md when present; safety rules still win.
Agentic setup — follow
references/agentic-setup.md: optional config load, repo-local override contract, untrusted-content boundary, and the knowledge-source slot. Shared communication rules:references/rules.md. This skill uses: configvalidation.commandsand the optional keysagentsMd.templateandknowledge.sources; no tracker operations.Resolve the target and the mode. Validate the target path (inside the repo,
^[A-Za-z0-9._/-]+$). Decide the scope: root (the repo root) or scoped (a package, app, or module directory). Pick the mode —--modewins:- no
AGENTS.mdat the target → create; - a file whose structure does not match the template (missing required headings, legacy rule headings, descriptive tone) → rewrite;
- a file that matches the structure but whose facts may have drifted →
refresh.
When a sibling
CLAUDE.mdor equivalent exists, read it and ask whether it should import the new file, be merged into it, or stay separate.
- no
Resolve the template. First match wins:
--template→ configagentsMd.template→ the conventional file.ai/agents-md-template.md→ the built-in default inreferences/default-template.md. Resolution order, what a repo template may declare, and how its rules layer over the built-in defaults:references/template-contract.md. Say which template you use.Read the code for the target scope. Gather facts, not impressions — full checklist in
references/codebase-discovery.md: the manifest and its real scripts (the scoped validation commands), the directory layout, the entry points and public surfaces, the conventions the existing code actually follows, the generated files, the tests, and the relatedAGENTS.mdfiles (parent, siblings, knowledge sources). Every rule you will write must trace to something you read here.Draft. Fill the template from the facts, following the writing rules in
references/writing-rules.md(prescriptive tone, one force per boundary section, "When to use" tables, numbered checklists, constraint-framed data models, contract-only code snippets, sizing). Per mode:- create — build from the facts; where a boundary item cannot be
inferred, leave a
TODO(team):marker instead of inventing a rule. - rewrite / refresh — follow
references/rewrite-and-refresh.md: reclassify content into the template's sections without losing any rule; in refresh, fix only drifted facts and list every removal for the user. Cross-reference instead of duplicating: a topic already owned by anotherAGENTS.md(or a knowledge source) gets a one-line pointer, not a copy.
- create — build from the facts; where a boundary item cannot be
inferred, leave a
Ask what only the team knows. Show the counts per boundary section and ask the few questions the code cannot answer — typically the
Ask Firstdecisions (who approves what), hardNeverlines, and anyTODO(team):left in step 4. Keep it to the questions that change the file; fold the answers in.Verify. Run the checklist in `r
Установить om-create-agents-md в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл om-create-agents-md?
Write, rewrite, or refresh an AGENTS.md (repo root or one package/module) from the actual codebase — Always / Ask First / Never / Validation Commands rules, task checklists, real paths and commands. Follows a repo template when present, else a built-in default. Use for "write AGENTS.md for this package", "rewrite our AGENTS.md", "refresh AGENTS.md".
Как установить скилл om-create-agents-md?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл om-create-agents-md запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
doc-coauthoring
Guide users through a structured workflow for co-authoring documentation. Use when user wants to write documentation, proposals, technical specs, decision…
от Anthropicacademy-guide
Stop and check this skill before finishing any reply to a question about how to use Claude or a Claude product — it recommends matching courses, tutorials…
от Anthropicinternal-comms
A set of resources to help me write all kinds of internal communications, using the formats that my company likes to use. Claude should use this skill…
от Anthropicskill-development
This skill should be used when the user wants to "create a skill", "add a skill to plugin", "write a new skill", "improve skill description", "organize skill…
от Anthropic