wire-config-and-routing

Update design-docs config, sidebar, and routing maps to register a new brand.

Updated Aug 23, 2025
One-click install
npx skills add https://github.com/therealityreport/trr-app --skill wire-config-and-routing
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: wire-config-and-routing
Source: https://github.com/therealityreport/trr-app/tree/main/.agents/skills/design-docs-agent/wire-config-and-routing
Command: npx skills add https://github.com/therealityreport/trr-app --skill wire-config-and-routing

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Automates updating the design-docs config, sidebar, and routing references to register a new brand.

Core Features & Use Cases

  • Automated brand onboarding: updates to design-docs-config.ts and DesignDocsPageClient.tsx with deterministic insertions.
  • Flexible inputs: accepts slug, label, description, componentName, subSections, and childSections to tailor the brand sections.
  • Consistent navigation: ensures the brand appears in the sidebar and dynamic-import map.

Quick Start

Provide the brand's slug, label, description, and componentName, then apply the six edits to register the brand in design-docs-config.ts and wire the dynamic import in DesignDocsPageClient.tsx.

Frequently Asked Questions about wire-config-and-routing

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

FAQPage Schema
How do I add a new brand to design docs and routing configuration?

To add a new brand to design docs and routing, you provide the brand's slug, label, description, and componentName. The system then applies deterministic insertions to design-docs-config.ts and DesignDocsPageClient.tsx to register the brand and wire its dynamic import.

What inputs do I need to configure a new brand in a TypeScript design system?

Configuring a new brand in a TypeScript design system requires a slug, label, description, componentName, subSections, and childSections. These inputs tailor the brand sections for the design docs and ensure the navigation sidebar updates correctly.

How does automated brand onboarding update sidebar navigation and routing maps?

Automated brand onboarding updates sidebar navigation and routing maps by locating target files and inserting brand entries at specific anchors. It wires dynamic imports in DesignDocsPageClient.tsx, ensuring the brand appears consistently in the sidebar.

Can I use this to register multiple brands across frontend design docs?

Yes, you can use this to register multiple brands across frontend design docs. It is specifically built for frontend teams maintaining multiple brands, ensuring consistent branding and predictable edits across the design system configuration.

What is the best way to wire dynamic imports for a new brand in design docs?

The best way to wire dynamic imports for a new brand is through a defined set of edit operations in DesignDocsPageClient.tsx. This approach ensures consistent navigation and predictable edits when onboarding new brands into the design system.

Are there limitations when updating design-docs-config.ts for new brand sections?

Updating design-docs-config.ts for new brand sections relies on deterministic insertions at specific anchors. Limitations include the necessity of providing exact inputs like subSections and childSections, and the process is bound to the defined set of six edit operations.