AGENTS.md Assistant
Quick start
- •Review
README.md,CONTRIBUTING.md, and docs/CI configs to learn the intended workflow. - •Pull exact commands from build scripts (
Makefile,package.json,pyproject.toml,justfile). - •Map key directories (source, tests, docs, scripts) and mark generated or vendor paths.
- •Capture architecture: key entrypoints, components, and configuration locations.
- •If the repo is new/almost empty (little/no docs, no build configs, few files), ask the user what the project is for and the key points (stack, workflows, structure, conventions) before drafting
AGENTS.md. - •Fill unknowns with TODOs and confirm them with the user.
Workflow
- •
Inspect the repository
- •Read
README.md,CONTRIBUTING.md, and/docsfor goals and workflows. - •Check build/config files:
Makefile,package.json,pyproject.toml,justfile,Dockerfile, CI pipelines. - •If the repo is new/almost empty, pause inspection and ask targeted questions to gather: project purpose, tech stack, primary commands (setup/dev/test/lint/build), expected directory layout, and any non-obvious rules (generated paths, formatting, branching/review expectations).
- •Read
- •
Extract commands
- •Record install, dev, lint, format, typecheck, test, and build commands exactly as documented.
- •If multiple options exist, capture the preferred default and note alternates. If something is missing or unclear, ask follow-up questions rather than guessing.
- •
Map structure
- •Identify primary code, tests, docs, scripts, and generated/ignored folders.
- •Note where key configs live and any build artifacts to avoid editing.
- •
Summarize architecture & environment
- •Document key components, data flow, and entrypoints.
- •Capture required versions, services, env vars, and migration/seed steps.
- •
Author AGENTS.md
- •Use
references/agents_md_template.mdas the base. - •Place
AGENTS.mdat the repo root unless instructed otherwise. - •Flag missing info with TODOs and ask for confirmation; if key information is missing or unclear, ask additional questions to resolve it.
- •Use
Reference
- •
references/agents_md_template.md: base template to fill.