Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

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от 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 existing AGENTS.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.

  1. 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: config validation.commands and the optional keys agentsMd.template and knowledge.sources; no tracker operations.

  2. 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 — --mode wins:

    • no AGENTS.md at 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.md or equivalent exists, read it and ask whether it should import the new file, be merged into it, or stay separate.
  3. Resolve the template. First match wins: --template → config agentsMd.template → the conventional file .ai/agents-md-template.md → the built-in default in references/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.

  4. 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 related AGENTS.md files (parent, siblings, knowledge sources). Every rule you will write must trace to something you read here.

  5. 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 another AGENTS.md (or a knowledge source) gets a one-line pointer, not a copy.
  6. Ask what only the team knows. Show the counts per boundary section and ask the few questions the code cannot answer — typically the Ask First decisions (who approves what), hard Never lines, and any TODO(team): left in step 4. Keep it to the questions that change the file; fold the answers in.

  7. Verify. Run the checklist in `r

Полный SKILL.md на GitHub

Установить om-create-agents-md в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

references/agentic-setup.mdreferences/codebase-discovery.mdreferences/default-template.mdreferences/report-templates.mdreferences/rewrite-and-refresh.mdreferences/rules.mdreferences/template-contract.mdreferences/verification.mdreferences/writing-rules.md

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), без исполняемых скриптов.

Похожие скиллы

Сравнить om-create-agents-md с