signals-hooks

signals-hooks is a skill for Claude Code, Codex from rodydavis/signals.dart. It costs 14 tokens per session (2,016 once invoked), scanned A, original, Apache-2.0.

Reactive state hooks for Flutter apps that use flutter_hooks. They let widgets hold changing values, derive values from them, and run effects when they change.

In plain words
What is it for?
Use it to add counters, computed values, and change-triggered side effects to HookWidget components.
Why use it?
They keep signal state tied to a widget's lifecycle, reducing manual setup and cleanup. They also make updates and derived values easier to manage.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to add counters, computed values, and change-triggered side effects to HookWidget components.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/rodydavis/signals.dart/signals-hooks
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add rodydavis/signals.dart --skill signals-hooks
Clone the repo
git clone --depth 1 https://github.com/rodydavis/signals.dart

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for signals-hooks

README.md
[![agentmods](https://agentmods.dev/badge/skills/rodydavis/signals.dart/signals-hooks/github.svg)](https://agentmods.dev/skills/rodydavis/signals.dart/signals-hooks)
Your own site
<a href="https://agentmods.dev/skills/rodydavis/signals.dart/signals-hooks"><img src="https://agentmods.dev/badge/skills/rodydavis/signals.dart/signals-hooks/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for signals-hooks

Your own site · 80×15
<a href="https://agentmods.dev/skills/rodydavis/signals.dart/signals-hooks"><img src="https://agentmods.dev/badge/skills/rodydavis/signals.dart/signals-hooks.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 14 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,016 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00014 $0.02016
Opus 5 $0.00007 $0.01008
Sonnet 5 $0.00003 $0.00403
Haiku 4.5 $0.00001 $0.00202

Measured 11d ago against content hash 7a945b3c5dbe, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

signals-hooks scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 11d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/signals-hooks/SKILL.md · 105 lines

How it starts

The opening of the file, as written. The whole thing — 105 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Reactive State Hooks (signals_hooks)

This skill covers orchestrating reactive state signals within flutter_hooks codebases utilizing the signals_hooks package.


🚀 Getting Started

import 'package:flutter/material.dart';
import 'package:flutter_hooks/flutter_hooks.dart';
import 'package:signals_hooks/signals_hooks.dart';

class ExampleWidget extends HookWidget {
  const ExampleWidget({super.key});

  @override
  Widget build(BuildContext context) {
    // 1. Create a reactive signal managed by the widget's hook lifecycle
    final count = useSignal(0);
    
    // 2. Derive a lazy, memoized computed value
    final doubleCount = useComputed(() => count.value * 2);
    
    // 3. Register reactive side effects automatically bound to layout phases
    useSignalEffect(() {
      debugPrint('count changed: $count, double: $doubleCount');
    });

    return Scaffold(
      body: Center(
        child: Text('Count: $count (Double: $doubleCount)'),
      ),
      floatingActionButton: FloatingActionButton(
        onPressed: () => count.value++,
        child: const Icon(Icons.add),
      ),
    );
  }
}

[!TIP] All signals, derived computed states, and side effects created inside standard HookWidget elements using the use... methods automatically teardown and dispose when the widget unmounts. This completely eliminates memory leaks or manual resource disposal.


📊 Comprehensive Hooks Reference Directory

The following table summarizes all available reactive hooks in the signals_hooks package. Click on any hook's name to view its detailed documentation, signature, best practices, and code examples.

Hook Return Type Description Lifecycle / Teardown Behavior
useSignal Signal<T> Creates a mutable reactive signal managed by the hook lifecycle. Disposes the signal on widget unmount.
useComputed Computed<T> Creates a derived, cached read-only computed signal. Disposes the computed signal on widget unmount.
useSignalEffect void Registers a reactive side effect bound to the widget mount lifecycle. Cancels the effect subscription on widget unmount.
useExistingSignal Signal<T> Binds an external signal to rebuild when it mutates. Detaches subscription on unmount (does not dispose signal).
useSignalValue T Directly reads and subscribes to the value of an external signal. Detaches subscription on unmount (does not dispose signal).
useLazySignal Signal<T> Creates a new lazy Signal initialized late, managed by hook state. Disposes the lazy signal on widget unmount.
useLinkedSignal LinkedSignal<T> Creates a new LinkedSignal that resets its value when its source changes. Disposes the linked signal on widget unmount.
useFutureSignal FutureSignal<T> Creates a reactive future signal with auto-disposal and race protection. Disposes the future signal on widget unmount.
useStreamSignal StreamSignal<T> Creates a reactive stream signal with key-based resubscription. Cancels stream subscription and disposes signal on unmount.
useAsyncSignal AsyncSignal<T> Wraps an asynchronous task state inside a manageable AsyncSignal. Disposes the async signal on widget unmount.
useAsyncComputed AsyncSignal<T> Creates an async computed signal re-evaluated on dependency change. Disposes the async signal on widget unmount.
useValueNotifierToSignal Signal<T> Bridges a standard Flutter ValueNotifier to a mutable reactive Signal. Detaches subscription on unmount (does not dispose).
useValueListenableToSignal ReadonlySignal<T> Bridges a standard Flutter ValueListenable to a read-only Signal. Detaches subscription on unmount (does not dispose).
useListSignal ListSignal<T> Creates a reactive list with deep item-level mutation tracking. Disposes the list signal on widget unmount.
useSetSignal SetSignal<T> Creates a reactive set with deep element-level mutation tracking. Disposes the set signal on widget unmount.
useMapSignal MapSignal<K, V> Creates a reactive map with deep key-value mutation tracking. Disposes the map signal on widget unmount.
useIterableSignal IterableSignal<T> Creates a reactive iterable with element-level mutation tracking. Disposes the iterable signal on widget unmount.
useTrackedSignal TrackedSignal<T> Creates a tracked signal remembering its historical value state. Disposes the tracked signal on widget unmount.
useQueueSignal QueueSignal<T> Creates a reactive queue for FIFO collection management. Disposes the queue signal on widget unmount.
useChangeStackSignal ChangeStackSignal<T> Creates a change-stack signal for robust undo/redo history tracking. Disposes the change-stack signal on widget unmount.

Read the full file on GitHub · 105 lines

Files

What ships with it

43 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 11d ago First seen · 105 lines · 14 tokens per session scan A 7a945b3c5dbe

Subscribe to this mod's changes

signals-hooks is a skill published in the GitHub repository rodydavis/signals.dart (814 stars, last pushed 2d ago), licensed Apache-2.0. It adds 14 tokens to every session and 2,016 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

flutter-expert

Expert in Flutter SDK, Dart, widgets, state management, and cross-platform mobile development. Use when the user mentions mobile, Dart, cross platform, UI, or state management, or when the task involves Flutter Architecture, Widget Fundamentals, State Management Approaches, or Lifecycle Methods.

personamanagmentlayer/pcl · 60 tokens

flutter

Flutter 3.44 — widget catalog, layouts, interactivity, animations, navigation, assets, adaptive/responsive design, accessibility, i18n, state management, data & backend (networking, serialization, Firebase, persistence), app architecture (MVVM, DI), platform integration (Android, iOS, web, Windows, macOS, Linux…

pledgeandgrow/pledge-skills · 126 tokens

at_client_skills-sdk

Use this skill when a developer is building a Dart or Flutter app that depends on atclient or atclientflutter from pub.dev, stores or shares data via the Atsign Protocol, needs onboarding (CRAM new-atsign, atKeys file, keychain, APKAM) or APKAM enrollment, or asks about AtCollection , CItem , Query , sub-collections…

atsign-foundation/at_client_sdk · 232 tokens

flutter-pre-caching

Use when preloading fonts, asset/network images, Lottie/Rive animations, local JSON/config, warming initial API data, or optimizing Flutter Web startup.

evanca/flutter-ai-rules · 36 tokens

bloc

Use when creating a Cubit or Bloc, modeling state with sealed classes or status enums, wiring BlocBuilder/BlocListener/BlocProvider, writing bloc tests, or choosing between Cubit and Bloc.

evanca/flutter-ai-rules · 42 tokens

firebase-messaging

Use when setting up Firebase Cloud Messaging, managing permissions and tokens, handling background/foreground notification taps, or dispatching messages server-side (HTTP v1).

evanca/flutter-ai-rules · 35 tokens