Skip to content

AI Agent Support

Every project generated by Archipelago includes AI agent configuration out of the box. There is nothing to set up — the configs are generated alongside your code and contain accurate information about your specific project structure.

Overview

The flutter_modular_monorepo brick generates dedicated config files for every major AI coding assistant. Each file is pre-populated with your project's workspace layout, architecture patterns, key commands, and conventions — so agents can start helping immediately without requiring manual context.

FileToolGenerated When
CLAUDE.mdClaude CodeAlways
AGENTS.mdOpenAI Codex and generic agentsAlways
.cursorrulesCursor IDEAlways
.github/copilot-instructions.mdGitHub CopilotWhen isGitHub is true
.claude/commands/Claude Code slash commandsAlways

Project Context Files

CLAUDE.md — Claude Code

Located at the project root, CLAUDE.md gives Claude Code a complete picture of your workspace before any conversation begins. It covers:

  • Workspace directory layout (apps/, features/, infrastructure/, shared/, etc.)
  • Architecture patterns: API/Impl split, Impl + Noop, Dual-GetIt, FeatureSDK self-registration, two-phase init
  • Common melos commands for building, testing, formatting, and build_prepare swaps
  • Dart and commit conventions used across the monorepo

AGENTS.md — Generic Agent Support

AGENTS.md provides the same project context in a vendor-agnostic format, compatible with OpenAI Codex and any agent that looks for a top-level AGENTS.md file.

.cursorrules — Cursor IDE

.cursorrules delivers the architecture and convention reference in Cursor's expected format, making Cursor's inline completions and chat context-aware from the first file you open.

.github/copilot-instructions.md — GitHub Copilot

When you generate a project with isGitHub: true, Archipelago also creates .github/copilot-instructions.md. GitHub Copilot reads this file automatically and applies the instructions to all suggestions and chat responses in the repository.

TIP

If you start with a non-GitHub project and later move to GitHub, you can add this file manually by copying the content from AGENTS.md into .github/copilot-instructions.md.

Claude Code Slash Commands

Claude Code users get 7 domain-specific slash commands generated into .claude/commands/. Each command is a focused guide that Claude Code follows as a step-by-step task — far more reliable than asking in free-form chat.

CommandWhat it does
/workspace-healthChecks that all packages resolve, analyze cleanly, and tests pass
/add-featureScaffolds a new feature module following FeatureSDK conventions
/add-infrastructureAdds an infrastructure SDK with the correct API/Impl split
/architecture-guideReturns a reference for architecture decisions and package boundaries
/build-prepareGuides you through swapping debug/release dependencies via build_prepare
/manage-flavorsWalks through adding or updating app flavors
/deployCovers the Fastlane + CI/CD deployment flow

Run any command from within your project in Claude Code:

/workspace-health
/add-feature profile
/add-infrastructure analytics

How It Works

All agent config files are plain Markdown. They are written as part of the flutter_modular_monorepo brick template, so they are generated at the same time as your project scaffolding. Because they come from the same source as the rest of the brick, the instructions always match the actual code structure.

The generated files are yours to modify. As your project evolves — new packages, different conventions, updated commands — you can update CLAUDE.md and the slash commands to reflect the current state of the codebase.

Keep them in version control

Commit all agent config files. When teammates clone the repo, they get the same AI context immediately. CI agents (such as GitHub Actions workflows that use Claude or Copilot) also benefit from these files being present.

Supported Tools at a Glance

ToolFileNotes
Claude CodeCLAUDE.md + .claude/commands/Slash commands for monorepo tasks
Cursor.cursorrulesAuto-loaded by Cursor on open
GitHub Copilot.github/copilot-instructions.mdRequires isGitHub: true
OpenAI CodexAGENTS.mdStandard agent instructions file
Any agent supporting AGENTS.mdAGENTS.mdVendor-agnostic fallback

Built by Banua Coder