architecture-bootstrapping

Trace and modify Madoc TS startup flow, server composition, routing, and SSR wiring.

57|15|Updated Nov 28, 2018
One-click install
npx skills add https://github.com/digirati-co-uk/madoc-platform --skill architecture-bootstrapping
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: architecture-bootstrapping
Source: https://github.com/digirati-co-uk/madoc-platform/tree/main/.agents/skills/architecture-bootstrapping
Command: npx skills add https://github.com/digirati-co-uk/madoc-platform --skill architecture-bootstrapping

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Map and modify Madoc TS startup, server composition, routing setup, and SSR entrypoints to enable safe tracing, debugging, and extension during boot.

Core Features & Use Cases

  • Explain startup flow and server wiring for Madoc TS.
  • Identify and adjust routing and SSR integration points for new services.
  • Use when tracing request flow or debugging boot-time issues in Madoc TS.

Quick Start

Start by reviewing services/madoc-ts/src/index.ts to trace the bootstrap flow and then follow server.ts, app.ts, and router.ts to understand wiring and SSR integration.

Frequently Asked Questions about architecture-bootstrapping

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

FAQPage Schema
How do I debug startup failures in Madoc TS?

To debug Madoc TS startup failures, inspect the primary entrypoints starting with index.ts to trace the bootstrap flow, then follow server.ts and app.ts to identify where server composition or wiring breaks during initialization.

How does server-side rendering (SSR) wiring work in Madoc TS?

SSR wiring in Madoc TS is configured through server.ts, app.ts, and router.ts, which connect frontend and server entry points while preserving SSR tokens. You must inspect these files and SSR templates to validate integration.

How do I add top-level middleware to the Madoc TS server composition?

To introduce top-level middleware in Madoc TS, modify the server composition in app.ts or server.ts, ensuring you preserve existing middleware order. Trace the bootstrap flow from index.ts first to understand the current wiring sequence.

Can I wire new services at boot time in Madoc TS?

Yes, you can wire new services at boot in Madoc TS by modifying the startup flow. Inspect index.ts for the bootstrap sequence and adjust routing and SSR integration points in router.ts to safely connect the new service.

What's the best way to trace the request flow and routing setup in Madoc TS?

The best way to trace request flow in Madoc TS is to review router.ts for routing setup, then follow the connection to app.ts and server.ts. This maps the server composition and shows how requests move through the SSR entry points.

Why does changing middleware order break SSR integration in Madoc TS?

Changing middleware order breaks SSR integration because Madoc TS boot-time wiring depends on a specific sequence in server.ts and app.ts. Preserving middleware order ensures SSR tokens remain valid across frontend and server entry points.