appconfig-system

Official

Manage app config, Kubernetes-ready, no fuss.

Authorlsst-sqre
Version1.0.0
Installs0

System Documentation

What problem does it solve?

Managing application configuration, especially in a Next.js app deployed to Kubernetes, can lead to hydration issues, lack of type safety, and complex deployment workflows. This skill provides expert guidance on the AppConfig system, offering a robust, type-safe, and Kubernetes-friendly solution for runtime configuration.

Core Features & Use Cases

  • Unified Config Management: Explains server-side loadAppConfig(), client-side useAppConfig(), and MDX content loading, ensuring consistent configuration access.
  • Kubernetes & Sentry Integration: Details how to use ConfigMaps for deployment and inject Sentry configuration, simplifying operations and error tracking.
  • Type-Safe & Validated: Emphasizes JSON schema validation and full TypeScript support, preventing configuration errors.
  • Use Case: When deploying a new feature that requires environment-specific URLs and feature flags, use this skill to define them in squareone.config.yaml, load them via getServerSideProps, and access them in components using useAppConfig().

Quick Start

Load the application configuration on the server-side for a Next.js page. import { loadAppConfig } from '../lib/config/loader'; const appConfig = await loadAppConfig();

Dependency Matrix

Required Modules

reactnext.jsajvjs-yaml

Components

referencestemplates

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: appconfig-system
Download link: https://github.com/lsst-sqre/squareone/archive/main.zip#appconfig-system

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository