add-configuration

Extend a TypeScript configuration interface with a new parameter across schema and UI.

40|29|Updated Nov 26, 2025
One-click install
npx skills add https://github.com/aclinia/torchlight-of-building --skill add-configuration
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: add-configuration
Source: https://github.com/aclinia/torchlight-of-building/tree/main/.claude/skills/add-configuration
Command: npx skills add https://github.com/aclinia/torchlight-of-building --skill add-configuration

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

The Configuration layer in your build calculator often needs new fields to model combat conditions, buff stacks, or other dynamic build parameters. This Skill guides you through extending the Configuration interface, including defaults, validation, and UI integration, so new parameters can be persisted and used in calculations.

Core Features & Use Cases

  • Adds a new configuration field to the TypeScript interface and default data.
  • Updates the validation schema to ensure consistent values across saves and loads.
  • Integrates the field into the Configuration UI, enabling user customization and offline editing.

Quick Start

Add a new configuration field by updating the interface, defaults, schema, and UI.

Frequently Asked Questions about add-configuration

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

FAQPage Schema
How do I add a new configuration field to a TypeScript interface and UI?

To add a configuration field, you extend the TypeScript interface, update default values, modify the schema validation, and integrate the field into the Configuration tab UI for consistency across saves and runtime calculations.

What is the best way to update a configuration schema for new parameters?

Updating a configuration schema involves modifying core.ts to introduce the new parameter, adjusting default values, and applying schema validation to ensure consistent values across saves, loads, and runtime damage calculations.

When do I need to update configuration defaults and schema validation?

You need to update configuration defaults and schema validation when introducing new dynamic build parameters for combat conditions or buff stacks, ensuring the new fields are persisted and used accurately in calculations.

Can I integrate new configuration fields into the UI for offline editing?

Yes, integrating new configuration fields into the Configuration tab UI enables user customization and supports offline editing by ensuring the interface, defaults, and schema validation are consistently updated across the application.

Does adding a configuration parameter require changes to core calculation logic?

Yes, adding a configuration parameter requires changes to core.ts alongside the configuration schema and UI integration to ensure the new field is properly persisted and utilized in runtime damage calculations.