Skip to content

AGENTS.md Specification

AGENTS.md is the AI instruction file placed at the project root. When an AI coding tool (Cursor, Claude Code, OpenCode, etc.) opens a project, it reads this file to understand the project’s methodology, rules, and workflow.

The generated AGENTS.md follows this standard template:

# AI Assistant Instructions
This project follows the **OpenLogos** methodology.
Read `logos/logos-project.yaml` first to understand the project resource index.
## Project Context
- Config: `logos/logos.config.json`
- Resource Index: `logos/logos-project.yaml`
- Tech Stack: [read from logos-project.yaml]
## Methodology Rules
[6 fixed rules — see below]
## Interaction Guidelines
[Phase detection logic + Step 4 batch execution rules]
## Active Skills
[Dynamically generated based on aiTool setting]
## Change Management
[Varies by lifecycle: initial vs active]
## Conventions
[Read from logos-project.yaml conventions field]

These rules are consistent across all OpenLogos projects and cannot be customized:

  1. Never write code without first completing the design documents
  2. Follow the Why → What → How progression
  3. All API designs must originate from scenario sequence diagrams
  4. All code changes must have corresponding API orchestration tests
  5. Use the Delta change workflow for iterations
  6. All generated test code must include an OpenLogos reporter (see Test Results Format)

The Interaction Guidelines section includes phase detection logic that helps AI determine the current project phase and suggest next steps:

ConditionSuggested PhaseSkill
prd/1-product-requirements/ emptyPhase 1prd-writer
Requirements exist, 2-product-design/ emptyPhase 2product-designer
Design exists, 3-technical-plan/1-architecture/ emptyPhase 3 Step 0architecture-designer
Architecture exists, 2-scenario-implementation/ emptyPhase 3 Step 1scenario-architect
Scenarios exist, api/ emptyPhase 3 Step 2api-designer + db-designer
API exists, test/ emptyPhase 3 Step 3atest-writer
Test cases exist, scenario/ emptyPhase 3 Step 3btest-orchestrator
All above completePhase 3 Step 4code-implementor
Code exists, verify/ emptyPhase 3 Step 5Run tests → openlogos verify

The Active Skills section is dynamically generated based on the aiTool field in logos.config.json:

aiTool valueSkills listed fromPath format
cursor.cursor/rules/*.mdcskills/{name}/.cursor/rules/{name}.mdc
claude-codelogos/skills/*/SKILL.mdlogos/skills/{name}/SKILL.md
opencodelogos/skills/*/SKILL.mdlogos/skills/{name}/SKILL.md
otherlogos/skills/*/SKILL.mdlogos/skills/{name}/SKILL.md

All 13 built-in Skills are listed with descriptions.

For tools that support Skill binding (Claude Code, Cursor), the Phase detection section includes direct file paths so the AI can read and execute the Skill file immediately.

SectionSource
Tech Stacklogos-project.yamltech_stack
Active Skillslogos.config.jsonaiTool + deployed Skills scan
Conventionslogos-project.yamlconventions
Methodology RulesFixed content (non-customizable)
EventTrigger
openlogos initFirst generation during project initialization
openlogos syncManual re-generation when project config changes
project-init SkillAI-initiated project initialization

Different AI tools use different instruction file names, but the content is consistent:

ToolInstruction FileSkills LocationDeployment
CursorAGENTS.md (native support).cursor/rules/*.mdcAuto-deployed by init / sync
Claude CodeCLAUDE.mdlogos/skills/*/SKILL.mdAuto-deployed by init / sync
OpenCode (compat)AGENTS.mdlogos/skills/*/SKILL.mdAuto-deployed by init / sync
OpenCode (plugin)opencode.json + .opencode/plugins/Plugin-loadedPlugin handles command bridging, AGENTS.md as fallback
GitHub Copilot.github/copilot-instructions.mdPlannedFuture release

openlogos sync generates all needed instruction files simultaneously, ensuring consistent instructions across AI tools.

FileFormatAudienceContent
logos-project.yamlStructured YAMLAI + toolsResource index, tech stack, conventions
AGENTS.mdNatural language MarkdownAI assistantsBehavioral instructions, rules, Skill list

The two are complementary: AGENTS.md directs AI to read logos-project.yaml; logos-project.yaml provides structured data for the AI to consume.