Skip to content

Conversation

@leoafarias
Copy link
Collaborator

Related issue

Improves developer experience for working in Claude Code.

Description

Added AGENTS.md (with CLAUDE.md symlink) to document the Mix monorepo structure, essential build and test workflows, core architecture patterns, and critical development rules. This enables Claude Code to work more effectively with the codebase by providing clear context about the project structure and conventions.

Changes

  • Created AGENTS.md with ~85 lines covering:
    • Project structure (4 packages in monorepo)
    • Essential melos commands (bootstrap, gen:build, ci, analyze, fix)
    • Verification workflow for pre-commit checks
    • Core Spec/Style/Widget architecture pattern
    • Naming conventions and property patterns
    • Critical rules (Dart 3.9+, Flutter 3.38.1+, immutability)
    • Key file locations
  • Created CLAUDE.md symlink pointing to AGENTS.md for Claude Code discovery

Review Checklist

  • Testing: No code changes, documentation only
  • Breaking Changes: None, purely additive configuration
  • Documentation Updates: AGENTS.md is the documentation
  • Website Updates: Not applicable

Additional Information

This configuration helps Claude Code understand the project's monorepo structure and conventions, enabling better code suggestions and understanding of architectural patterns when working with the Mix framework.

Create AGENTS.md (with CLAUDE.md symlink) to document the Mix monorepo structure,
essential melos commands, core architecture patterns, and critical rules for
working effectively with the codebase in Claude Code.
@vercel
Copy link
Contributor

vercel bot commented Dec 24, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Review Updated (UTC)
mix-docs Ready Ready Preview, Comment Dec 26, 2025 5:29pm

@docs-page
Copy link

docs-page bot commented Dec 24, 2025

To view this pull requests documentation preview, visit the following URL:

docs.page/btwld/mix~805

Documentation is deployed and generated using docs.page.

- Remove CLAUDE.md from .gitignore to version the symlink
- Add guides section referencing api-composition-guidelines.md
- Update title to Mix 2.0
- Replace Patterns section with Examples (code samples)
- Add Documentation section pointing to guides, examples, website
- Add fluent chaining example
- Remove packages/mix/ai.txt (referenced Mix v1.7.0 with old cascade syntax)
- Expand AGENTS.md documentation section with website docs references
- Add links to styling, variants, tokens, and animation guides
- Use BoxStyler() fluent chaining (recommended API)
- Fix variants: .onDark(), .onHovered() methods, not $on.dark()
- Add $box cascade notation example
- Remove incorrect $text.style.bold() syntax
Add technical research and validated implementation plans for:
- symbolEffect: icon animations (bounce, pulse, wiggle, rotate, breathe)
- matchedGeometryEffect: geometry-aware transitions

The validated plan identifies over-engineering in the original proposal
and provides a simplified approach reusing existing PhaseAnimationDriver.
Deprecate $box, $text, $icon, $flex, $image, $stack, etc. global accessors.
Use BoxStyler(), TextStyler(), IconStyler() directly instead.

Before (deprecated):
  final style = $box.color(Colors.red).size(100, 100);

After (recommended):
  final style = BoxStyler().color(Colors.red).size(100, 100);
Update AGENTS.md and CLAUDE.md to only show the recommended
BoxStyler() fluent API. The $box cascade notation is deprecated
in Mix 2.0 in favor of the cleaner Styler class approach.
@leoafarias
Copy link
Collaborator Author

Superseded by a new PR with cleaner branch name (feat/mix-2.0-styler-cleanup) and additional fixes.

@leoafarias leoafarias closed this Dec 26, 2025
@leoafarias leoafarias deleted the leoafarias/spec-attr-factory branch December 26, 2025 17:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation examples mix repo

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants