AGENTS.md is a simple markdown file for defining agent instructions. Place it in your project root as an alternative to .firebender/rules/*.mdc for straightforward use cases.
AGENTS.md files are plain markdown with no frontmatter required. Perfect for simple, readable instructions.
Unlike Project Rules, AGENTS.md is a plain markdown file without metadata or complex configurations. It’s perfect for projects that need simple, readable instructions without the overhead of structured rules.
AGENTS.md is a plain markdown file with no frontmatter required:
AGENTS.md
Copy
Ask AI
# Project Instructions## Code Style- Use Kotlin for all new files- Follow Material Design 3 guidelines- Prefer Jetpack Compose for UI components## Architecture- Use MVVM pattern with ViewModels- Keep business logic in use cases- Use Room for local data persistence- Use Retrofit for network calls## Testing- Write unit tests for ViewModels and use cases- Use MockK for mocking- Prefer property-based testing where applicable
AGENTS.md files automatically apply to all conversations. You don’t need to specify file patterns or configuration - just write your instructions in plain markdown.
# Firebender Android AppThis is a food delivery app similar to DoorDash.## Tech Stack- Kotlin with Jetpack Compose for UI- Room for local database- Retrofit + OkHttp for networking- Kotlin coroutines and Flow for async operations- Hilt for dependency injection- Coil for image loading## Code Style- Use Kotlin coroutines for async operations, never runBlocking in production code- Prefer data classes for simple data holders- Use @SerializedName for Retrofit/Gson classes (code gets obfuscated)- Follow Material Design 3 guidelines for UI components- Use meaningful variable names (avoid single letters except in lambdas)## Architecture- MVVM pattern with ViewModels- Repository pattern for data access- Use cases for complex business logic- Single source of truth with Room as local database- Offline-first approach## Compose Guidelines- Use Material 3 components (androidx.compose.material3)- Implement proper state hoisting- Use remember and derivedStateOf appropriately- Preview components with @Preview annotations- Keep composables focused and reusable## Testing- Write unit tests for ViewModels using JUnit 5- Use MockK for mocking- Integration tests for repositories- UI tests for critical user flows
Library/SDK Project
AGENTS.md
Copy
Ask AI
# Android SDK ProjectThis is a Kotlin library for Android developers.## Guidelines- Public APIs must have KDoc documentation- Use explicit types for public APIs (no type inference)- Maintain binary compatibility (use @Deprecated instead of removing APIs)- All public functions should have example usage in KDoc- Use semantic versioning## Dependencies- Minimize third-party dependencies- Prefer AndroidX libraries over support libraries- Use Kotlin stdlib only, avoid bringing in large libraries## Testing- Aim for 80%+ test coverage on public APIs- Test both success and error cases- Include integration tests for complex scenarios
AGENTS.md files are automatically reloaded when you save changes. The updated instructions take effect immediately - no need to restart or create a new chat.