vp-k/flutter-craft/flutter-worktrees
- community
Checking that the SKILL.md file is still in the repository.
Use when starting feature work that needs isolation from current workspace - creates isolated git worktrees with Flutter project setup
Install
npx vskill@latest install vp-k/flutter-craft/flutter-worktreesSKILL.md
Using Git Worktrees for Flutter Development
Overview
Git worktrees let you work on multiple branches simultaneously in separate directories. Each worktree is fully independent - you can run different Flutter versions, have different dependencies, without affecting your main workspace.
Core principle: Isolated workspace = safe experimentation + parallel development
Announce at start: "I'm using the flutter-worktrees skill to create an isolated workspace."
When to Use
- Starting a new feature that needs isolation
- Working on experimental changes
- Need to compare implementations side-by-side
- Want to keep main workspace clean
- Running long-running tests in background
The Process
Step 1: Create Worktree
Naming convention: ../[project-name]-[feature-name]
Step 2: Navigate to Worktree
Step 3: Flutter Setup (Critical for Flutter Projects!)
Step 4: Verify Setup
Step 5: Work on Feature
Follow normal development workflow:
- flutter-brainstorming
- flutter-planning
- flutter-executing
All changes stay isolated in this worktree.
Step 6: Cleanup (After Merge/Discard)
Worktree Directory Structure
Flutter-Specific Considerations
Dependencies
Each worktree has its own:
.dart_tool/directorypubspec.lock(can differ if experimenting with versions)- Build cache
Always run `flutter pub get` after creating worktree!
Code Generation
If project uses code generation (freezed, json_serializable, etc.):
IDE Setup
VS Code: Open worktree folder as new workspace Android Studio: Open worktree folder as new project
Platform-Specific Builds
Each worktree can have different:
- iOS simulator running
- Android emulator connected
- Web server running
No conflicts between worktrees!
Example Workflow
Red Flags
Never:
- Forget
flutter pub getin new worktree - Edit main repository while expecting changes in worktree
- Delete worktree directory manually (use
git worktree remove) - Have same file open in IDE from both main and worktree
If worktree has issues:
Integration with Other Skills
After creating worktree:
- Use flutter-brainstorming to design feature
- Use flutter-planning to create implementation plan
- Use flutter-executing or flutter-subagent-dev to implement
After feature complete:
- Use flutter-finishing to decide merge/PR/keep/discard
- Cleanup worktree after merge
Quick Reference
| Command | Purpose | |
|---|---|---|
git worktree add <path> <branch> | Create worktree | |
git worktree add -b <new-branch> <path> <base> | Create with new branch | |
git worktree list | List all worktrees | |
git worktree remove <path> | Remove worktree | |
git worktree prune | Clean stale references | |
flutter pub get | Required after creating! |
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/flutter-worktrees/SKILL.md
Popularity
- Repository stars
- 4
- Repository forks
- 2
- 7-day trend score
- 8
Stars and forks are for the whole GitHub repository, not this skill alone. Refreshed 16 Mar 2026, 7 months ago.
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/vp-k/flutter-craft/flutter-worktrees)