server

Route backend work through modular server architecture slices for design, review, and scaffolding.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve? Backend work often drifts into inconsistent layering, framework-coupled controllers, ad-hoc error handling, and unsafe transaction or authorization patterns. This Skill applies a repository-aware server architecture so controllers, services, use cases, repositories, contracts, and adapters stay correctly separated across any runtime or framework. ## Core Features & Use Cases - Slice-based routing: Loads only the relevant architecture references (contracts, data-flow, operations, security, telemetry, testing, runtimes, workspace, scaffolding) for the task at hand. - Repository-aware scaffolding: The $server scaffold command bootstraps foundations or vertical capabilities with preflight evidence checks, dependency approval, and atomic writes. - Framework specializations: Provides concrete guidance for Next.js, Express, Hono, NestJS, tRPC, OpenAPI, Drizzle, Supabase, and Better Auth while remaining framework-neutral at the core. - Use Case: When adding a Stripe webhook to a Next.js app, the Skill loads contracts, operations, security, telemetry, testing, and runtimes slices to enforce signature verification, idempotent writes, and typed error mapping. ## Quick Start Ask the assistant to use $server to design, review, or scaffold your backend feature, for example: use $server scaffold users/create in this repository.

Frequently Asked Questions about server

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

FAQPage Schema
How do I scaffold a new backend feature with this architecture?

Invoke $server scaffold <feature>/<operation> and the Skill runs preflight detection of your stack, contracts, and access policy before writing. It creates one adapter-to-infrastructure flow with a controller, one service or use case, and repository ports, asking for dependency approval first.

How should I structure controllers, services, and use cases in a Node.js API?

Use the flow: framework adapter to framework-neutral controller to one service or one use case to repository port. Services handle single-domain behavior; use cases exist only for multi-service orchestration, transactions, outbox coordination, or post-commit side effects.

Does this architecture work with frameworks other than Next.js?

Yes, the core slices are framework-neutral and documented specializations exist for Express, Hono, NestJS, tRPC, and OpenAPI. For unlisted runtimes or languages, the Skill derives the role mapping from repository evidence and current official documentation.

Should I use Drizzle or Supabase for the repository layer?

They are independent persistence leaves selected by your actual stack; either can implement application-owned repository contracts. Supabase data-API multi-write operations use purpose-specific database functions, while Drizzle can use real shared transactions.

When should I not use this server architecture Skill?

Do not use it for client-only work such as React UI or browser state; it targets server runtime concerns only. Also avoid loading every slice for a narrow task, since the Skill requires selecting the smallest relevant slice set.