Install any skill in seconds. Free to start, no credit card required.
Get Started Free →ledgerhq/dialogs-slice
Global dialogs Redux slice pattern for MVVM dialog state management
Passed 20 of 22 test cases with the skill, and 10 of 22 without it.
and 14 more in the full report
10 fixed10 passed either way2 still failing0 broke
Tokens, turns and time describe resource use, not a dollar price.
One of 10 test cases the skill fixed. Same model, same prompt, with and without the skill.
I want to add a new global dialog for a promo banner called 'spring Sale' in Ledger Live Desktop. Should I register the ID string as 'springSale', 'SpringSale', or 'SPRING_SALE'? Show the registration line.
| Checked | Without skill | With skill |
|---|---|---|
| Uses SCREAMING_SNAKE_CASE naming for the SPRING_SALE identifier. | Passed | Passed |
| Adds SPRING_SALE to DIALOG_IDS in renderer/reducers/dialogs.ts. | Missed | Passed |
The instructions your model reads when the skill loads.
Centralized Redux state for global dialog open/close, avoiding one slice per dialog.
Use this pattern for dialogs that are:
Default.tsx)Do NOT use this for dialogs that are local to a single component or screen -- prefer a simple useState instead.
renderer/reducers/dialogs.ts manages all global dialog states via a Record<DialogId, boolean>DIALOG_IDS runtime array defines all IDs; DialogId type is derived from it via (typeof DIALOG_IDS)[number]*Dialog.ts file that re-exports typed helpers bound to its IDmvvm/features/GlobalDialogs/index.tsx renders all global dialog components at the app rootAdd the new ID to the DIALOG_IDS array in renderer/reducers/dialogs.ts. The DialogId type updates automatically:
export const DIALOG_IDS = ["RELEASE_NOTES", "MY_NEW_DIALOG"] as const;
// DialogId is now "RELEASE_NOTES" | "MY_NEW_DIALOG"
Create myFeature/myNewDialog.ts in the feature folder:
import {
openDialog,
closeDialog,
selectIsDialogOpen,
test cases passed, vs 10 / 22 without
More skills from the same source and nearby in the registry, with their headline benchmark lift.