rodydavis/signals.dart/signals-migration-6-to-7
Claude Code and agent skill by rodydavis/signals.dart
- community
- ext:[{"type":"hook","description":"Pre/post lifecycle hooks"}]
Checking that the SKILL.md file is still in the repository.
Detailed guidelines, patterns, and rules for migrating codebases from signals.dart version 6.x to version 7.x.
Install
npx vskill@latest install rodydavis/signals.dart/signals-migration-6-to-7Semi-extensibleMentions customization, but needs skill-specific knowledge. Read the extensible skills standard
SKILL.md
The same SKILL.md was published earlier as rodydavis/signals.dart/signals-migration-6-to-7.
Migrating from signals.dart v6 to v7
This guide provides comprehensive instructions for migrating applications and packages using signals.dart from version 6.x to 7.0.0.
Related Documentation & Items
| Related File | Description | |
|---|---|---|
| signal_options.md | Guide to migrating scattered parameters (e.g. autoDispose, debugLabel) of signal and computed creators to the new unified options classes. | |
| async_options.md | Guidelines for migrating asynchronous signal creators (futureSignal, streamSignal) to use AsyncSignalOptions. | |
| collection_options.md | Instructions on migrating collection-based signal creators to strongly typed collection options classes. | |
| builder_migration.md | Migration path for SignalBuilder constructor to use the required named builder parameter. | |
| mixin_migration.md | Safe refactoring guidelines for replacing the deprecated SignalsMixin with SignalWidget or localized builders. |
1. Unified Options Classes (Named Parameter Pattern)
In v6, signals, computed, effects, and async signals accepted individual parameters like autoDispose, debugLabel, lazy, etc. In v7, all parameters have been unified under a single, cohesive options class parameter.
A. General Signals
- Before (v6):
``dart final count = signal(0, autoDispose: true, debugLabel: 'counter'); ``
- After (v7):
``dart final count = signal(0, options: SignalOptions(autoDispose: true, name: 'counter')); ``
B. Computed Signals
- Before (v6):
``dart final double = computed(() => count.value * 2, autoDispose: true, debugLabel: 'double'); ``
- After (v7):
``dart final double = computed(() => count.value * 2, options: ComputedOptions(autoDispose: true, name: 'double')); ``
C. Collections Signals (listSignal, setSignal, mapSignal, etc.)
All collections now accept unified options objects corresponding to their types (e.g. ListSignalOptions, SetSignalOptions, MapSignalOptions, IterableSignalOptions, QueueSignalOptions).
- Before (v6):
``dart final list = listSignal([1, 2], autoDispose: true); ``
- After (v7):
``dart final list = listSignal([1, 2], options: ListSignalOptions(autoDispose: true)); ``
2. Async Signals Refactoring
All async creators (futureSignal, streamSignal, asyncSignal, computedFrom, computedAsync) now accept only the primary value/callback parameter followed by a named options parameter (AsyncSignalOptions). All other parameters have been marked @Deprecated.
- Before (v6):
``dart final s = futureSignal(() => fetch(), lazy: false, initialValue: 0); ``
- After (v7):
``dart final s = futureSignal(() => fetch(), options: AsyncSignalOptions(lazy: false, initialValue: 0)); ``
3. Flutter Integration Upgrades
A. Deprecation of SignalsMixin
SignalsMixin is deprecated to prevent state overhead. Use localized widgets or builders instead.
- Migration:
- Replace
State with SignalsMixinwith a statelessSignalWidgetor a statefulSignalStatefulWidget. - Alternatively, use localized
SignalBuilderwidgets to wrap only the widgets that depend on signal updates.
B. SignalBuilder Named builder Parameter
The SignalBuilder widget now uses a required named parameter builder instead of a positional argument.
- Before (v6):
``dart SignalBuilder( (context, value) => Text('$value'), ) ``
- After (v7):
``dart SignalBuilder( builder: (context, value) => Text('$value'), ) ``
C. Side Effects with SignalEffect / SignalListener
If you were executing side effects inside builds or mixins, migrate them to the localized SignalEffect (or alias SignalListener) widget which manages mounting, didUpdateWidget, and unmounting teardown lifecycle hooks safely.
4. Writable Computed Signals (linkedSignal)
If you had custom logic synchronizing external updates back to a computed signal, migrate them to the native linkedSignal or LinkedSignalOptions.
5. Automated Refactoring via signals_lint
To make migrating from v6 to v7 completely effortless, the `signals_lint` tool analyzes your code and surfaces instant, automated quick-fixes/assists under your IDE's action menu (Alt+Enter or Cmd+.):
- Strips legacy `with SignalsMixin` and replaces the widget with a high-performance
SignalStatefulWidgetautomatically. - Converts positional `Watch` and
Watch.builderinstances into unifiedSignalBuildercomponents. - Promotes standard `StatelessWidget` and `StatefulWidget` widgets to reactive
SignalWidgetandSignalStatefulWidgetwidgets on command. - Quickly wraps any widget expression in a surgically targeted
SignalBuilder.
Security
- Security scanPassed, 100 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/signals-migration-6-to-7/SKILL.md
Popularity
- Repository stars
- 796
- Repository forks
- 85
- 7-day trend score
- 33
Stars and forks are for the whole GitHub repository, not this skill alone. Refreshed 23 Jul 2026, 4 months ago.
Extension points
hookPre/post lifecycle hooks
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/rodydavis/signals.dart/signals-migration-6-to-7)