.squad/skills/static-config-pattern/SKILL.md
# Static Configuration Pattern **Confidence:** low **Source:** earned ## When to Use When a class has compile-time constants (`const`) that need to become runtime-configurable without breaking existing consumers. ## Pattern 1. Convert `const` fields to `static T { get; private set; } = <original value>`. 2. Add a public `Configure*()` method that sets the new values. Call once at startup. 3. Add an `internal static Reset*()` method that restores defaults — needed for test isolation since `p
npx skillsauth add csharpfritz/aspire-minecraft .squad/skills/static-config-patternInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Confidence: low Source: earned
When a class has compile-time constants (const) that need to become runtime-configurable without breaking existing consumers.
const fields to static T { get; private set; } = <original value>.Configure*() method that sets the new values. Call once at startup.internal static Reset*() method that restores defaults — needed for test isolation since private set prevents external reset.7 / 2 = 3 matches the old hardcoded 3.const → static property is a binary-breaking change (const values are inlined by the compiler). Only safe when all consumers are recompiled together (e.g., internal types, same solution).Reset() method should be internal and gated behind InternalsVisibleTo so only test projects can call it.Configure*() call in startup code before any consumer reads the properties.internal static class Layout
{
public static int Size { get; private set; } = 7;
public static void ConfigureExpanded() => Size = 15;
internal static void ResetLayout() => Size = 7;
}
tools
Toolkit for interacting with and testing local web applications using Playwright. Supports verifying frontend functionality, debugging UI behavior, capturing browser screenshots, and viewing browser logs.
tools
Techniques for visually connecting water bodies (canals, lakes, rivers) in Minecraft
development
Core conventions and patterns used in the Squad codebase
development
# SKILL: RCON Minecraft Commands > Patterns for sending Minecraft RCON commands from the Worker service to create in-game effects. ## When to Use When implementing new in-world features that send RCON commands to the Minecraft server — particles, sounds, titles, boss bars, weather, entity spawning, scoreboard updates, etc. ## Command Format Reference ### Particle Effects ``` particle minecraft:{type} {x} {y} {z} {dx} {dy} {dz} {speed} {count} force ``` - `force` makes particles visible from