Skip to content

2001105254-netizen/RacePulsePH / .agents/skills/racepulse-feedback

racepulse-feedback

Verified

Add consistent RacePulsePH in-app confirmations, success and error notifications, and unsaved-change handling using the shared accessible feedback components.

FileKindSize
SKILL.mdskill md1.1 KB
references/integration.mdmarkdown1.8 KB

references/integration.md

View on GitHub
# Integration and interaction rules

## Decisions

Call `await confirm({ title, message, confirmLabel, cancelLabel, destructive })` before the dependent action. For unsaved access edits, use “Discard changes” and “Keep editing.” Explain what will be lost. Avoid generic OK labels.

Use a native modal dialog through the shared portal surface: accessible title and description, background inertness, contained focus, safe initial focus, Escape cancellation and focus restoration. The cancel button receives initial focus for destructive decisions. Nested confirmations must retain the editor's scroll lock after closing. Busy save operations prevent duplicate saves and accidental close.

Keep confirmation content readable on phones and short screens. Allow dialog scrolling, stack actions on phones, and retain 44px minimum touch targets. Respect reduced motion and theme tokens.

## Outcomes

Call `notify({title, message, tone})` after a successful action. Supported tones are `success`, `error` and `info`. Notifications have a dismiss button and appropriate status/alert announcements; errors persist until dismissed, while routine success/info notices expire and pause while hovered or focused. Do not put a decision that must be answered in a toast.

Save errors belong in the editor so the draft stays available for retry. Position notices clear of the application's bottom navigation and safe areas. Avoid sensitive user data in notifications.

## Verification

With synthetic data, check cancel, Escape, keyboard focus containment and restoration, repeated close requests, nested-dialog scroll lock, explicit discard, successful save, failed-save draft retention and toast dismissal. Verify mobile and desktop, light/dark themes, long messages and reduced motion. Reference preview: `tests/fixtures/access-ui.html`.
brainstormingobra/superpowersYou MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or planning anything new, in software or out of it (a talk, a business, a renovation).Stars: 322kUpdated Claude CodeCodexVerifiedInstall
brand-guidelinesanthropics/skillsApplies Anthropic's official brand colors and typography to any sort of artifact that may benefit from having Anthropic's look-and-feel. Use it when brand colors or style guidelines, visual formatting, or company design standards apply.Stars: 198kUpdated Claude CodeCodexVerifiedInstall
frontend-designanthropics/skillsGuidance for distinctive, intentional visual design when building new UI or reshaping an existing one. Helps with aesthetic direction, typography, and making choices that don't read as templated defaults.Stars: 198kUpdated Claude CodeCodexVerifiedInstall
mcp-builderanthropics/skillsGuide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when building MCP servers to integrate external APIs or services, whether in Python (FastMCP) or Node/TypeScript (MCP SDK).Stars: 198kUpdated Claude CodeCodexVerifiedInstall