iamantoniodinuzzo/claude-flutter/flutter-melos-workspace
Claude Code and agent skill by iamantoniodinuzzo/claude-flutter
- community
- ext:[{"type":"hook","description":"Pre/post lifecycle hooks"},{"type":"config","description":"Configuration overrides"}]
Checking that the SKILL.md file is still in the repository.
Apply Melos to Flutter/Dart monorepo projects for workspace orchestration, shared scripts, dependency management, versioning, and CI automation. Use when setting up Melos from scratch, adding/removing packages, defining custom scripts, configuring filters, managing versioning/changelogs, or troubleshooting workspace-level build/test/analyze workflows.
Install
npx vskill@latest install iamantoniodinuzzo/claude-flutter/flutter-melos-workspaceSemi-extensibleMentions customization, but needs skill-specific knowledge. Read the extensible skills standard
SKILL.md
The same SKILL.md was published earlier as iamantoniodinuzzo/claude-flutter/flutter-melos-workspace.
Flutter Melos Workspace
Runtime and resources
Use the current agent's native file, search, shell, and question tools; plain-text questions and direct sequential scans are valid fallbacks. Subagents are optional and require host permission. Bundled paths below are relative to this installed skill directory; application paths are relative to the target Flutter project. Resolve sibling skills through the installed skill registry (or sibling directories), never by assuming a skills/ folder in the application. If a required dependency is absent, name it and report the affected step as unavailable; never invent its rules or claim complete coverage.
Overview
Melos is a CLI tool for managing Dart/Flutter monorepos with multiple packages. It orchestrates dependency resolution, script execution, versioning, and changelogs across the workspace.
This skill covers Melos v3+ (latest stable) and Melos v6+/v7+ (with Pub workspace support).
When to use
- Setting up Melos in an existing or new monorepo.
- Adding/removing packages from the workspace.
- Defining shared scripts (analyze, test, build, format, codegen).
- Configuring package filters and scoping.
- Managing versioning and changelogs (conventional commits).
- CI/CD pipeline integration with Melos.
- Migrating from manual workspace management to Melos.
Setup workflow
1. Install Melos
Or add as dev dependency in root pubspec.yaml:
2. Configuration file
Melos can be configured in two ways:
- Standalone `melos.yaml` at repo root (traditional, recommended for visibility).
- Inline `melos:` key in root
pubspec.yaml(compact, used when Pub workspace is also declared).
3. Minimal configuration
4. Bootstrap
This links local packages and resolves dependencies across the workspace.
With Pub workspaces (Dart 3.5+ / Melos 7+): If the root pubspec.yaml declares a workspace: key, dart pub get at root already resolves shared dependencies. Melos bootstrap adds linking and script orchestration on top.
Configuration reference
Package filters
Melos commands accept filters to scope execution:
Scripts
Define reusable commands in melos.yaml (or under melos: in pubspec.yaml):
Script execution modes
- `exec`: Runs the command in each package directory (default for
run). - `run`: Runs a single command at workspace root.
- `packageFilters`: Scopes which packages the script applies to.
- `env`: Inject environment variables.
- `failFast`: Stop on first failure (default: true).
- `concurrency`: Max parallel executions.
Example with exec and concurrency:
Versioning and changelogs
Melos supports automated versioning via conventional commits:
Workflow:
IDE integration
Generate IDE configuration for local package resolution:
Pub workspace + Melos coexistence (Dart 3.5+)
Modern Dart supports native workspace: in pubspec.yaml. This provides shared resolution without Melos. When combining both:
- Root
pubspec.yamldeclaresworkspace:listing all packages. - Melos adds orchestration (scripts, filters, versioning) on top.
melos bootstrapstill works and respects the Pub workspace resolution.- Individual packages use
resolution: workspacein theirpubspec.yaml.
Migration checklist (manual workspace -> Melos)
- Ensure all packages are listed in
packages:glob patterns. - Run
melos bootstrapand verify all packages link correctly. - Replace any manual
flutter pub getloops withmelos bs. - Move repeated script patterns (analyze, test, format) to
scripts:. - Add
packageFiltersto scope scripts appropriately. - If using conventional commits, configure
command.version. - Update CI to use
melos bootstrap+melos run <script>. - Verify
melos listshows all expected packages. - Verify
melos run analyzeandmelos run testpass.
Common patterns
Run only affected packages in CI
Pre-commit hook integration
Build runner across workspace
Custom environment variables
Troubleshooting
- "Package not found" after adding new package: Re-run
melos bootstrap. - Circular dependency detected: Check
melos list --graphand break the cycle. - Script not running in expected packages: Add
--verboseflag or checkpackageFilters. - Version conflicts: With Pub workspace, ensure
resolution: workspacein child packages. - Bootstrap fails on CI: Ensure
melosis activated globally or usedart pub global run melos bootstrap.
References
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/flutter-melos-workspace/SKILL.md
Popularity
- 7-day trend score
- 5
Not refreshed yet.
Extension points
hookPre/post lifecycle hooksconfigConfiguration overrides
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/iamantoniodinuzzo/claude-flutter/flutter-melos-workspace)