agent-init

Initialize or improve AGENTS.md files that define how coding agents operate in a repo. Use when asked to set up or replace an agent init command (Codex, Claude), standardize multi-agent behavior, or audit an existing AGENTS.md for clarity, commands, boundaries, and repo-specific context. For Claude Code, also create CLAUDE.md as a symlink to AGENTS.md.

16 stars

Best use case

agent-init is best used when you need a repeatable AI agent workflow instead of a one-off prompt.

Initialize or improve AGENTS.md files that define how coding agents operate in a repo. Use when asked to set up or replace an agent init command (Codex, Claude), standardize multi-agent behavior, or audit an existing AGENTS.md for clarity, commands, boundaries, and repo-specific context. For Claude Code, also create CLAUDE.md as a symlink to AGENTS.md.

Teams using agent-init should expect a more consistent output, faster repeated execution, less prompt rewriting.

When to use this skill

  • You want a reusable workflow that can be run more than once with consistent structure.

When not to use this skill

  • You only need a quick one-off answer and do not need a reusable workflow.
  • You cannot install or maintain the underlying files, dependencies, or repository context.

Installation

Claude Code / Cursor / Codex

$curl -o ~/.claude/skills/agent-init/SKILL.md --create-dirs "https://raw.githubusercontent.com/diegosouzapw/awesome-omni-skill/main/skills/ai-agents/agent-init/SKILL.md"

Manual Installation

  1. Download SKILL.md from GitHub
  2. Place it in .claude/skills/agent-init/SKILL.md inside your project
  3. Restart your AI agent — it will auto-discover the skill

How agent-init Compares

Feature / Agentagent-initStandard Approach
Platform SupportNot specifiedLimited / Varies
Context Awareness High Baseline
Installation ComplexityUnknownN/A

Frequently Asked Questions

What does this skill do?

Initialize or improve AGENTS.md files that define how coding agents operate in a repo. Use when asked to set up or replace an agent init command (Codex, Claude), standardize multi-agent behavior, or audit an existing AGENTS.md for clarity, commands, boundaries, and repo-specific context. For Claude Code, also create CLAUDE.md as a symlink to AGENTS.md.

Where can I find the source code?

You can find the source code on GitHub using the link provided at the top of the page.

Related Guides

SKILL.md Source

# AGENTS.md Guide

## Overview

Provide a repeatable workflow and quality bar for writing or updating AGENTS.md files so agents receive concrete, repo-specific instructions.

## Trigger examples

- "Create an AGENTS.md for this repo and include exact test commands."
- "Replace our agent init command with a proper AGENTS.md file."
- "Audit our existing AGENTS.md for missing boundaries and commands."
- "Update AGENTS.md to reflect the current build and lint commands."
- "Create CLAUDE.md as a symlink to AGENTS.md for Claude Code."

## Core Principles (condensed)

- Be concrete: prefer executable commands and code examples over prose.
- Put commands early and include flags/options.
- Use real code examples over explanations.
- Remove ambiguity: state boundaries and non-goals explicitly.
- Be specific about the tech stack; include versions and key dependencies.
- Define the agent's role/persona and how it fits the team.
- Cover the six core areas: purpose, code organization, run/test/validate, change management, dependencies/environment, and avoid list.
- Use three-tier boundaries: Always / Ask first / Never.
- Start small and iterate as the repo evolves.

## Brainstorming Mode (divergent Q&A)

Use this mode when requirements are unclear or the repo structure will influence the document shape.

- Ask one question at a time. Prefer multiple choice when possible.
- Base questions on the actual repo shape (single app vs monorepo).
- Confirm which agents will consume the docs and their expectations.
- If Claude Code is in scope, plan a CLAUDE.md symlink to AGENTS.md.
- Ask for exact commands (with flags) and a real code example.
- Propose 1-2 AGENTS.md layouts (section order) with tradeoffs, then converge.
- Keep questions short and actionable, then confirm before drafting.
- Read `references/agents-md-brainstorm.md` for question banks and decision heuristics.

## Workflow

### 1) Clarify scope and placement

- Confirm whether the task is to create new docs or revise existing ones.
- Default output is root `AGENTS.md`.
- If the user asks for a different location, confirm the exact path and proceed.
- If Claude Code is in scope, create `CLAUDE.md` as a symlink to `AGENTS.md`.
- Still maintain a single AGENTS.md (no per-agent files unless explicitly requested).
- Confirm which agents will consume the docs and align content with their workflows.
- If the repo uses a different location or filename, ask before proceeding.

### 2) Gather repo-specific facts

Collect only what will make the file actionable:
- Stack and versions (language/runtime/package manager).
- Key directories and ownership.
- Build, test, lint, and format commands.
- Environment variables, secrets, and local setup details.
- Git/PR expectations (branching, commit style, approvals).

### 2a) Shape the doc by repo structure

- If monorepo, add per-app or per-team sections inside AGENTS.md.
- If multiple roles are needed, use role-specific subsections inside AGENTS.md.
- If the repo is small, keep a single concise AGENTS.md.
- If a multi-file layout is requested, confirm the target paths before writing.

### 3) Draft with the six core areas

Write sections that map to the six core areas, keeping each section short and command-focused. Use the template if needed.

### 4) Add concrete commands and examples

- Prefer copy/paste commands over prose.
- Include example file paths and typical change patterns.
- Show expected outputs if ambiguity is likely.
- Include at least one real code example that matches repo style.

### 5) Add boundaries and safety

State what the agent must not do, what requires approval, and any data/credential constraints.

### 6) Review for clarity

- Eliminate vague statements ("run tests" -> specify the exact command).
- Ensure every requirement is tied to a command, path, or policy.
- Keep it short enough to scan quickly.

## Output Requirements

Include, at minimum:
- Role/purpose of the agent and its scope.
- Repo map (key paths, entry points, ownership).
- Run/test/validate commands (copyable, placed early, include flags).
- Tech stack with versions and key dependencies.
- Change management rules (branching, commits, PR expectations).
- Dependencies and environment setup.
- Code style example (real snippet).
- Explicit avoid list and approval gates with Always / Ask first / Never.

## Cross-agent compatibility

- Keep instructions in plain Markdown with explicit commands and paths.
- Avoid agent-specific fields or features unless the target agent requires them.
- Keep a single root AGENTS.md as the source of truth.
- If Claude Code is in scope, create CLAUDE.md as a symlink to AGENTS.md.

## Multi-platform support

- Ask which agents are in scope (Codex, Claude, GitHub Copilot, Cursor, etc.).
- Use one shared AGENTS.md that works across those agents.
- Do not assume tool-specific directories; only update AGENTS.md unless the user asks otherwise.
- When showing examples, label tool-specific details as optional (not required).
- If Claude Code is in scope, add a CLAUDE.md symlink to AGENTS.md.
- If GitHub Copilot coding agent is in scope, consider adding `.github/copilot-instructions.md` and keep it minimal (ideally pointing to AGENTS.md as the source of truth).

## References

- Read `references/agents-md-template.md` when drafting a new file.
- Read `references/agents-md-example.md` for a complete AGENTS.md example.
- Read `references/agents-md-checklist.md` when reviewing or auditing an existing file.
- Read `references/agents-md-brainstorm.md` when running a divergent Q&A gap analysis.

Related Skills

minitest-testing

16
from diegosouzapw/awesome-omni-skill

Write, review, and improve Minitest tests for Ruby on Rails applications. Covers model tests, controller tests, system tests, fixtures, and best practices from Rails Testing Guide.

init

16
from diegosouzapw/awesome-omni-skill

Initialize warehouse schema discovery. Generates .astro/warehouse.md with all table metadata for instant lookups. Run once per project, refresh when schema changes. Use when user says "/data:init" or asks to set up data discovery.

aix-init

16
from diegosouzapw/awesome-omni-skill

Initialize or upgrade aix framework in a project. Detects tech stack, generates appropriate tier structure, and sets up Claude Code integration.

session-init

16
from diegosouzapw/awesome-omni-skill

Initializes session with environment check and task status overview. Use when user mentions セッション開始, 作業開始, 状況確認, what should I work on, start session. Do NOT load for: 実装作業, レビュー, セッション途中の作業.

always-init

16
from diegosouzapw/awesome-omni-skill

Universal task initializer that automatically loads PAI context for all user requests. Ensures complete context availability (contacts, preferences, protocols) before responding to any task. (project, gitignored)

agentuity-cli-project-auth-init

16
from diegosouzapw/awesome-omni-skill

Set up Agentuity Auth for your project. Requires authentication. Use for managing authentication credentials

affinity-mcp-workflows

16
from diegosouzapw/awesome-omni-skill

Use when working with Affinity CRM via MCP tools - find entities, manage workflows, log interactions, prepare briefings, find warm intros. Also use when user mentions "pipeline", "deals", "relationship strength", or wants to prepare for meetings.

init-agents

16
from diegosouzapw/awesome-omni-skill

Initialize or update AGENTS.md (or CLAUDE.md for Claude Code) with AI agent guidance. Use when user says 'init agents', 'create AGENTS.md', 'setup agent instructions', or wants project-specific AI coding assistant configuration.

agent-sdk-definitions

16
from diegosouzapw/awesome-omni-skill

Programmatic agent definitions for the Claude Agent SDK in TypeScript and Python. Use when creating agents for SDK-based applications rather than filesystem-based Claude Code.

bgo

10
from diegosouzapw/awesome-omni-skill

Automates the complete Blender build-go workflow, from building and packaging your extension/add-on to removing old versions, installing, enabling, and launching Blender for quick testing and iteration.

Coding & Development

obsidian-daily

16
from diegosouzapw/awesome-omni-skill

Manage Obsidian Daily Notes via obsidian-cli. Create and open daily notes, append entries (journals, logs, tasks, links), read past notes by date, and search vault content. Handles relative dates like "yesterday", "last Friday", "3 days ago".

obsidian-additions

16
from diegosouzapw/awesome-omni-skill

Create supplementary materials attached to existing notes: experiments, meetings, reports, logs, conspectuses, practice sessions, annotations, AI outputs, links collections. Two-step process: (1) create aggregator space, (2) create concrete addition in base/additions/. INVOKE when user wants to attach any supplementary material to an existing note. Triggers: "addition", "create addition", "experiment", "meeting notes", "report", "conspectus", "log", "practice", "annotations", "links", "link collection", "аддишн", "конспект", "встреча", "отчёт", "эксперимент", "практика", "аннотации", "ссылки", "добавь к заметке".