Guidelines for implementing Clean Architecture patterns in Flutter and Go applications, with emphasis on separation of concerns, dependency rules, and testability.
Collected from public GitHub. Every version is saved exactly as it was and never changes. Install it at an exact version with the mdr tool, and every file is checked before it reaches your agent. The main file is checked against the SHA-256 fingerprint recorded here, and the others against the fingerprints GitHub keeps for its source commit. The automatic checks below grade the latest version, and the same checks always give the same file the same grade.
What the file says
# Clean Architecture
You are an expert in Clean Architecture patterns for application development.
## Core Principles
Clean Architecture enforces separation of concerns through distinct layers with dependencies pointing inward:
1. **Domain Layer** (innermost) - Business logic and entities
2. **Application Layer** - Use cases and application-specific logic
3. **Infrastructure Layer** - External concerns (databases, APIs, frameworks)
4. **Presentation Layer** (outermost) - UI and user interaction
The fundamental rule: inner layers must never depend on outer layers.
## Flutter + Clean Architecture
### Architecture Layers
- **Presentation**: Widgets, BLoCs, and UI components
- **Domain**: Entities, use cases, and repository interfaces
- **Data**: Repository implementations, data sources, and models
### Feature-first Organization
```
feature/
data/
datasources/
models/
repositories/
domain/
entities/
repositories/
usecases/
presentation/
bloc/
pages/
widgets/
```
### State Management with flutter_bloc
- Use flutter_bloc for state management
- Implement immutable states via Freezed
- Handle events and states with proper patterns
…
The line at the top of this page pins the label git:20261008.7682ca7, which is what most people want. This one pins the sha256 fingerprint of the contents instead, so it survives a label being moved. Either way the exact version is written to mdr.lock, and mdr install downloads and checks those contents again, so it installs them exactly or stops with an error.
GET https://markdownregistry.com/api/v1/artifacts/art_moax5hdlzrufsc5w
GET https://markdownregistry.com/api/v1/resolve?ref=mindrally/skills/clean-architecture
GET https://markdownregistry.com/api/v1/blob/352cd25c2754125a7457bbcf191ee29b2ab095d1e404c72104bcd24a60519392
Your AI assistant does the legwork. You hear about the deals worth your word. Hand yours the standing instructions at modelranch.com and it joins the network that reads files like this one.
mindrally/skills · accessibility-a11y/SKILL.md · Implement web accessibility (a11y) best practices following WCAG guidelines to create inclusive, accessible user…
mindrally/skills · alpine-js/SKILL.md · Alpine.js development guidelines for lightweight reactive interactions with Tailwind CSS and various backend frameworks.
mindrally/skills · analytics-data-analysis/SKILL.md · Best practices for analytics, data analysis, and visualization using Python, pandas, matplotlib, seaborn, and Jupyter…
mindrally/skills · android-development/SKILL.md · Android development guidelines for Kotlin with clean architecture, MVI pattern, Material Design, and best practices for…
mindrally/skills · angular-development/SKILL.md · Expert guidance for Angular and TypeScript development focused on scalable, high-performance web applications
mindrally/skills · anthropic-claude-development/SKILL.md · Expert guidance for Anthropic Claude API development including Messages API, tool use, prompt engineering, and building…
mindrally/skills · api-development/SKILL.md · Guidelines for building clean, scalable APIs with Go standard library and NestJS TypeScript, covering security…
mindrally/skills · apollo-graphql/SKILL.md · Guidelines for developing GraphQL APIs and React applications using Apollo Client for state management, data fetching…
ciembor/agent-rules-books · clean-architecture/SKILL.md · Apply Robert C. Martin-inspired architecture rules when separating business policy from frameworks, databases, UI, or…
wondelai/skills · plugins/systems-architecture/skills/clean-architecture/SKILL.md · Structure software around the Dependency Rule: source code dependencies point inward from frameworks to use cases to…
wondelai/skills · clean-architecture/SKILL.md · Structure software around the Dependency Rule: source code dependencies point inward from frameworks to use cases to…
wondelai/skills · plugins/wondelai-skills/skills/clean-architecture/SKILL.md · Structure software around the Dependency Rule: source code dependencies point inward from frameworks to use cases to…