client

Route frontend tasks through modular client architecture slices for React and Next.js.

Updated Sep 7, 2026
One-click install
npx skills add https://github.com/raphaelmans/spectralpointengineering --skill client-raphaelmans
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: client
Source: https://github.com/raphaelmans/spectralpointengineering/tree/main/.skillshare/skills/client
Command: npx skills add https://github.com/raphaelmans/spectralpointengineering --skill client-raphaelmans

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve? Frontend work often drifts into inconsistent layering, duplicated contracts, and ad-hoc state or error handling. This Skill enforces a coherent client architecture by routing each task—design, review, scaffolding, testing, or refactoring—through only the relevant architecture slices. ## Core Features & Use Cases - Slice-based routing: Load only the references needed for the task, covering scaffolding, foundations, contracts, data flow, state/realtime, telemetry, testing, React, and Next.js. - Enforced invariants: Preserves the canonical chain (components -> query adapter -> featureApi -> clientApi -> network), shared Zod wire contracts, normalized AppError handling, and separated logging versus product analytics. - Framework-agnostic core: React and Next.js are documented specializations, but unlisted frameworks are supported by deriving integrations from repository evidence and official documentation. - Use Case: When asked to scaffold a new profile-editing feature in a Next.js app, the Skill loads scaffolding, contracts, data-flow, react, nextjs, and testing slices, then generates the feature API, hooks, form, and mirrored tests without duplicating existing infrastructure. ## Quick Start Use $client to scaffold a new feature or review this frontend code against the repository's client architecture slices.

Frequently Asked Questions about client

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

FAQPage Schema
How do I scaffold a new frontend feature with consistent architecture?

Invoke $client scaffold with the feature and operation, such as $client scaffold users/create. The Skill runs preflight detection, loads the relevant slices (contracts, data-flow, react, testing), resolves dependencies with approval, and generates the vertical feature atomically.

What architecture layers does this client skill enforce?

It enforces the chain components -> query adapter -> featureApi -> clientApi -> network. Presentation components render only, feature APIs own endpoint parsing and mapping, and the composition root owns infrastructure factories and lifetimes.

Does this skill work with frameworks other than React and Next.js?

Yes. React and Next.js are documented specializations, not an allowlist. For unlisted frameworks like Vue or Svelte, the Skill applies core guidance and derives the integration from repository evidence and current official documentation.

How does the skill handle errors and API contracts?

It defines one shared Zod wire contract per capability and normalizes all provider errors into a discriminated AppError type at adapter boundaries. UI code branches only on AppError.kind, and each failure is reported once by its owning layer.

When should I not use this client architecture skill?

Do not use it for backend-only work, since it targets client architecture concerns. It also avoids adding libraries, stores, or factories unless the target stack and actual complexity justify them.