Dashboard Mobile Hook Contract

Verify mobile hook classes in dashboard views and CSS rules.

Updated Mar 13, 2026
One-click install
npx skills add https://github.com/JDL440/nfl-eval --skill dashboard-mobile-hook-contract
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: Dashboard Mobile Hook Contract
Source: https://github.com/JDL440/nfl-eval/tree/main/.squad/skills/dashboard-mobile-hook-contract
Command: npx skills add https://github.com/JDL440/nfl-eval --skill dashboard-mobile-hook-contract

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Dashboard mobile hooks ensure consistent semantic hook classes across shared views, enabling reliable mobile testing and responsive behavior.

Core Features & Use Cases

  • Validate that mobile hook classes are emitted by layout and view components (src/dashboard/views/layout.ts, article.ts, publish.ts) and that corresponding CSS rules exist.
  • Audit shared shell/layout behavior across HTMX fragments to prevent regressions when swapping fragments.
  • Use in QA to guarantee mobile-first adherence and stable responsive layouts across pages.

Quick Start

Audit the dashboard mobile hook contract by running the test suite and validating hook emission in shared views and CSS rules.

Frequently Asked Questions about Dashboard Mobile Hook Contract

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I test mobile hook contracts in dashboard views?

Test mobile hook contracts by running suites like server.test.ts and runs.test.ts to verify that dashboard views emit consistent semantic hook classes and matching CSS rules. This validates mobile behavior and detects regressions across shared layout components.

Why do my HTMX dashboard fragments break mobile responsive layouts?

HTMX fragments break responsive layouts when swapped without consistent mobile hook classes. Auditing shared shell and layout components ensures semantic hooks align with existing CSS rules, preventing mobile behavior regressions across dashboard pages.

How do I audit CSS rules for mobile hooks in server-rendered views?

Audit mobile hooks by inspecting server-rendered views in src/dashboard/views to confirm hook class emission, then cross-reference src/dashboard/public/styles.css to ensure corresponding CSS rules exist for responsive behavior.

What are mobile hook contracts and when do I need them for dashboard testing?

Mobile hook contracts are consistent semantic hook classes emitted by shared dashboard views to enable reliable mobile testing. You need them when validating responsive behavior and preventing UI regressions across HTMX fragments and layout components.

Does this mobile hook validation work with HTMX fragment swapping?

Yes, mobile hook validation works with HTMX by auditing shared shell and layout behavior across swapped fragments. It ensures semantic hook classes remain consistent during fragment replacement, preventing responsive layout regressions.

Dashboard mobile hook tests not finding matching CSS rules, what are the limitations?

Tests fail when views emit hook classes lacking corresponding CSS rules in styles.css. Limitations include manually inspecting each view file like layout.ts and article.ts to verify class names exactly match the defined stylesheet rules.