frontend-landing/managing-state/SKILL.md
# 🧠 Managing State > Navigation engine, scroll hijacking, and state management for the storybook. --- ## Sub-Skills | # | File | What It Covers | |---|------|----------------| | 01 | [Navigation Engine](01-navigation-engine.md) | Wheel, touch, keyboard handlers + scroll detection + transition lock | --- ## State Overview The entire storybook has surprisingly little state: | State | Type | Purpose | |-------|------|---------| | `introState` | `"loading" \| "playing" \| "done"` | Controls
npx skillsauth add 7a336e6e/skills frontend-landing/managing-stateInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Navigation engine, scroll hijacking, and state management for the storybook.
| # | File | What It Covers | |---|------|----------------| | 01 | Navigation Engine | Wheel, touch, keyboard handlers + scroll detection + transition lock |
The entire storybook has surprisingly little state:
| State | Type | Purpose |
|-------|------|---------|
| introState | "loading" \| "playing" \| "done" | Controls intro sequence visibility |
| activePage | number | Current scene index (0-based) |
| isTransitioning | ref<boolean> | Lock to prevent double-navigation |
| lastWheelTime | ref<number> | Debounce wheel events |
| touchStartY | ref<number> | Touch swipe start position |
No context providers. No state management libraries. Everything lives in the orchestrator component's local state.
isTransitioning changes rapidly but doesn't need to trigger re-renderslastWheelTime is a timestamp checked synchronously — a state update would be too slowtouchStartY is saved on touchstart, read on touchend — no render needed betweenStart with → 01 — Navigation Engine
development
Implement features using the Red-Green-Refactor cycle to ensure testability and correctness from the start.
data-ai
Manage the `tasks.md` ledger with strict locking and collision avoidance protocols to allow multiple agents to work in parallel safely.
development
The git-workflow skill defines branching conventions, commit message formats, and pull request standards that all agents must follow for consistent version control.
development
The environment-config skill standardizes how agents manage environment variables, secrets, and application configuration across local development and deployed environments.