For AI Coding Agents (Claude, GPT, etc.)
This document helps you quickly understand the AAMI project structure and locate relevant documentation.
Project: AAMI (Autonomous Agent Management Infrastructure)
Type: Infrastructure monitoring and configuration management system
Main Language: Go
Architecture: Microservices with config-server as the core component
All agent-specific documentation is in the .agent/ directory:
.agent/
├── README.md # Agent documentation index
├── context/ # Project context for agents
│ ├── project-overview.md # High-level project description
│ ├── architecture.md # System architecture
│ └── coding-standards.md # Coding conventions
├── planning/ # Project planning documents
│ ├── PLAN.md # Master project plan
│ ├── README.md # Planning index
│ ├── sprints/ # Sprint plans
│ │ ├── sprint0-plan.md
│ │ ├── sprint1-plan.md
│ │ └── ... (sprint0-10)
│ └── tasks/ # Task breakdown documents
│ └── sprint4-breakdown.md
└── services/ # Service-specific agent docs
└── config-server/ # Config Server agent docs
├── README.md # Config Server agent guide
├── refactoring/ # Refactoring documentation
│ ├── target-group-relationship.md
│ └── template-instance-decoupling.md
└── sprint-plan.md # Service sprint plan
User-facing documentation is in the docs/ directory:
docs/
├── README.md # Documentation index
├── en/ # English documentation
│ ├── QUICKSTART.md
│ ├── DEVELOPMENT.md
│ ├── API.md
│ └── ...
├── kr/ # Korean documentation
│ └── ...
└── diagrams/ # Architecture diagrams
When you complete work:
- Context changes: Update
.agent/context/ - Sprint completion: Add notes to
.agent/planning/sprints/ - Refactoring: Document in
.agent/services/*/refactoring/ - New patterns: Update
.agent/context/coding-standards.md
IMPORTANT: All planning documents must be created under .agent/ directory to prevent git tracking.
When creating new planning documents:
-
Sprint Plans →
.agent/planning/sprints/- Example:
.agent/planning/sprints/sprint11-plan.md
- Example:
-
Task Breakdowns →
.agent/planning/tasks/- Example:
.agent/planning/tasks/sprint5-breakdown.md
- Example:
-
Refactoring Plans →
.agent/services/{service-name}/refactoring/- Example:
.agent/services/config-server/refactoring/api-redesign.md
- Example:
-
Implementation Plans →
.agent/planning/or service-specific directory- Example:
.agent/planning/migration-plan.md
- Example:
Why?
- Planning documents are for agent context, not end-users
- Prevents cluttering the main repository
- Keeps agent workspace organized
.agent/directory should be in.gitignore
Never create planning documents in:
- ❌ Root directory
- ❌
docs/directory (reserved for user documentation) - ❌ Service root directories (use
.agent/services/instead)
IMPORTANT: Agent documents must be written for AI agents to understand easily.
When writing or updating agent documentation:
-
Be Explicit and Structured
- Use clear headings and sections
- Provide step-by-step instructions
- Include code examples where applicable
- Use bullet points and numbered lists
-
Provide Context
- Explain the "why" behind decisions
- Link to related documentation
- Reference specific file paths with line numbers if relevant
- Include before/after examples for refactoring
-
Use Consistent Formatting
- Use markdown formatting consistently
- Code blocks with language identifiers (
go,bash, etc.) - Tables for comparing options or listing specifications
- Diagrams or ASCII art for architecture
-
Be Precise
- Use exact file paths (e.g.,
services/config-server/internal/errors/errors.go) - Include function/struct names with line numbers (e.g.,
FromGormError:45) - Specify versions when mentioning dependencies
- Provide concrete examples over abstract descriptions
- Use exact file paths (e.g.,
-
Make It Actionable
- Every document should have clear next steps
- Include commands that can be copy-pasted
- Provide checklists for multi-step tasks
- List acceptance criteria for tasks
Remember: Agent documents are working documents for autonomous coding. They should enable an agent to understand context and take action without human intervention.
Read in this order:
- This file (AGENT.md) - You're here! ✓
- .agent/README.md - Agent documentation index
- .agent/context/project-overview.md - Project overview
- .agent/context/architecture.md - System architecture
- .agent/planning/PLAN.md - Master plan
Check: .agent/planning/sprints/
- Find the current sprint plan (sprint0-10)
- Review sprint objectives and tasks
Check: .agent/services/config-server/
- README.md for service-specific guidance
- refactoring/ for ongoing refactoring work
Check: .agent/context/coding-standards.md
- Go coding conventions
- Error handling patterns
- Testing requirements
- Documentation standards
- Read relevant sprint plan in
.agent/planning/sprints/ - Check architecture in
.agent/context/architecture.md - Review coding standards in
.agent/context/coding-standards.md - Implement following the patterns in existing code
- Update documentation if needed
- Understand the system architecture first
- Locate the affected component
- Review related code and tests
- Fix and add regression tests
- Update changelog if significant
- Check existing refactoring docs in
.agent/services/*/refactoring/ - Document the refactoring plan
- Follow the refactoring patterns
- Update architecture docs if needed
- Architecture Overview:
.agent/context/architecture.md - System Design:
.agent/planning/PLAN.md - Refactoring Plans:
.agent/services/config-server/refactoring/
- Coding Standards:
.agent/context/coding-standards.md - Development Guide:
docs/en/DEVELOPMENT.md(user-facing) - API Documentation:
docs/en/API.md(user-facing)
- Master Plan:
.agent/planning/PLAN.md - Sprint Plans:
.agent/planning/sprints/sprint*.md - Task Breakdowns:
.agent/planning/tasks/
- Config Server:
.agent/services/config-server/- Agent guide, refactoring docs, sprint plans
→ .agent/context/coding-standards.md (for patterns)
→ services/config-server/internal/errors/ (for implementation)
→ .agent/planning/sprints/sprint*.md (find the latest sprint)
→ .agent/services/config-server/refactoring/target-group-relationship.md
→ .agent/planning/PLAN.md or .agent/context/project-overview.md
→ docs/en/DEVELOPMENT.md (user-facing documentation)
-
Don't read user documentation (
docs/) for agent tasks- User docs are for humans, not comprehensive for agents
- Agent docs in
.agent/have more context
-
Don't modify sprint plans without context
- Sprint plans are historical records
- Only update current sprint if instructed
-
Don't skip reading architecture docs
- Understanding the system prevents mistakes
- Architecture guides implementation decisions
-
Don't ignore coding standards
- Consistency is critical for maintainability
- Follow established patterns
-
Always start with context
- Read
.agent/context/before coding - Understand the "why" not just the "what"
- Read
-
Follow existing patterns
- Look at similar existing code
- Maintain consistency
-
Document decisions
- Update
.agent/services/*/docs for significant decisions - Add comments for complex logic
- Update
-
Test thoroughly
- Write tests for new code
- Run existing tests before committing
-
Ask when uncertain
- Better to clarify than assume
- Reference specific docs in questions
- Agent Documentation: .agent/README.md
- User Documentation: docs/README.md
- Main README: README.md
- Config Server: services/config-server/README.md
Last Updated: 2025-12-29
Maintained By: AI Coding Agents & Project Team
For human developers, start with README.md instead.