aitmpl.com, ensures consistent code quality, architectural integrity, and rapid feature development.
Overview
The AI ecosystem is organized in the.ai/ directory with three main components:
- Agents: Specialized system prompts for distinct roles
- Skills: Strict domain rulesets and coding standards
- Commands: Custom slash commands for rapid workflows
All AI agents working on Numix must read the relevant
.ai/ files before performing any task to understand boundaries, skills, and exact rules.Directory Structure
The.ai/ directory is organized as follows:
Agents
Agents are specialized AI assistants with focused expertise in specific domains.UI/UX Agent
File:.ai/agents/ui-ux-agent.md
Role: Specialist in Flutter widget tree optimization, Material Design 3, animations, and accessible UIs.
Key Responsibilities:
- Responsive design using
BoxConstraintsinstead of hardcoded heights - Material 3 theming with
Theme.of(context).colorScheme - Fluid micro-interactions and animations
- Ensuring widgets remain “dumb” and logic-free
QA Integration Agent
File:.ai/agents/qa-integration-agent.md
Role: Specialist in testing, ensuring robust user flows and 100% math coverage.
Key Responsibilities:
- Self-healing test loops (fix code until all tests pass)
- 100% unit test coverage for calculation providers (mandatory)
- Proper mocking with
SharedPreferences.setMockInitialValues() - Edge case testing: division by zero, null inputs, negative numbers, large numbers
DevOps Agent
File:.ai/agents/devops-agent.md
Role: Specialist in native compilation (Gradle, Kotlin, iOS Pods) and CI/CD pipelines.
Key Responsibilities:
- Managing dependencies with
flutter pub get - Keeping native build tools up to date (AGP, Gradle, Kotlin)
- Filtering verbose device logs during development
- CI/CD pipeline maintenance
Play Store Architect Agent
File:.ai/agents/play-store-architect-agent.md
Role: Specialist in Android deployments, Google Play policies, and release security.
Key Responsibilities:
- Enforcing
.aabbundles (never APKs) for Play Store submissions - Code obfuscation with
--obfuscate --split-debug-info - Secure app signing with
key.properties(excluded from Git) - Target SDK compliance (API 34+)
Tech Writer Agent
File:.ai/agents/tech-writer-agent.md
Role: Specialist in documentation, README maintenance, and code comments.
Key Responsibilities:
- Keeping README.md synchronized with current architecture
- DartDoc comments for public classes and providers
- Commenting complex logic (especially math formulas)
- Updating
.ai/manifest when patterns change
Skills
Skills are strict domain rulesets that enforce coding standards and architectural patterns.Clean Architecture Skill
File:.ai/skills/clean-architecture-skill.md
Focus: Scalability and Domain-Driven Design (Feature-First) enforcement.
Core Rules:
-
Directory Structure:
lib/core/: Utilities, themes, constants, formatterslib/features/: Isolated feature domains- Core cannot depend on features
-
Feature Isolation: Each feature contains its own
screens/,providers/,widgets/, andmodels/ -
Naming Conventions:
- Classes/Enums:
UpperCamelCase(e.g.,SalesPriceProvider) - Files/Folders:
snake_case(e.g.,sales_price_provider.dart) - Variables/Methods:
lowerCamelCase - Private Members: Prefix with
_
- Classes/Enums:
Provider State Skill
File:.ai/skills/provider-state-skill.md
Focus: Performance, preventing UI jank, and zero-loss state persistence.
Core Rules:
-
Rebuild Optimization:
-
Event Dispatching:
-
No setState for Logic: Business logic must be in
ChangeNotifier, notStatefulWidget -
Persistence: Save user inputs to
SharedPreferencesimmediately, restore on screen re-entry
Math Precision Skill
File:.ai/skills/math-precision-skill.md
Focus: Strict number formatting, floating-point error prevention, and robust parsing.
Core Rules:
-
Safe Parsing:
-
Floating-Point Handling:
-
Advanced Formulas:
- Markup:
Cost + (Cost × % / 100) - Gross Margin:
Cost / (1 - (% / 100)) - Cascading Discounts: Apply percentages sequentially, not additively
- Markup:
-
Validation Rules:
- Prevent negative prices/costs
- Prevent margins or discounts ≥ 100% when invalid
Git Ops Skill
File:.ai/skills/git-ops-skill.md
Focus: Clean Git history, conventional commits, and atomic versioning.
Conventional Commits Format:
feat(scope):New featurefix(scope):Bug fixrefactor(scope):Code change (not bug fix or feature)chore(scope):Build tasks, dependencies, maintenancetest(scope):Adding or updating testsdocs(scope):Documentation only
DevSecOps Workflow Skill
File:.ai/skills/devsecops-workflow-skill.md
Focus: Secure code pipelines, branch management, and CI/CD pre-validation.
Core Rules:
-
Branch Bunkering:
- Never code on
main - All development on
devor feature branches mainis strictly for stable releases
- Never code on
-
Pre-Push Validation:
-
Secret Management:
- Never commit
.env,key.properties,*.jks,*.keystore - Use
.gitignorestrictly - Use GitHub Action Secrets for CI/CD
- Never commit
- CI/CD Alignment: Local tests and CI must agree; diagnose CI logs if discrepancies exist
Commands
Custom slash commands provide rapid workflow automation.Verify Math Command
File:.ai/commands/verify-math.md
Alias: /verify-math
Action Sequence:
Evolution Mandate
Example Evolution:- Added
riverpod? Create.ai/skills/riverpod-skill.md - Need GraphQL integration? Create
.ai/agents/graphql-agent.md - New testing framework? Update
.ai/agents/qa-integration-agent.md
Operational Safety Rules
- Never execute destructive commands (
git reset --hard,rm -rf) without explicit user permission - Construct absolute paths for all file modifications
- Read
.ai/files before any task to understand context and constraints
Core Project Stack
The AI ecosystem enforces these technology choices:- Framework: Flutter (Dart ^3.6.0)
- State Management:
provider+shared_preferences - Math Engine:
math_expressions - Architecture: Domain-Driven Feature-First
- Testing:
flutter_testwith 100% math coverage - Linting:
flutter_lints(^5.0.0)
Benefits of the AI Ecosystem
- Consistency: All AI agents follow the same architectural rules
- Quality: Automated enforcement of testing and code standards
- Documentation: Self-documenting through
.ai/files - Scalability: Easy to add new agents and skills as project grows
- Maintainability: Clear separation of concerns and responsibilities
Contributing to the AI Ecosystem
When you identify new patterns or standards:- Create a new file in the appropriate
.ai/subdirectory - Follow the existing format (Role, Focus, Rules/Guidelines)
- Be specific with code examples
- Update
AGENTS.mdto reference the new file - Commit with:
docs(ai): add new [agent/skill/command] for [purpose]
The AI ecosystem is what makes Numix development fast, consistent, and high-quality. Treat these files as first-class documentation.