gum-tool-variable-references

Synchronize variable values across Gum UI elements using Roslyn parsing.

597|79|Updated Mar 11, 2015
One-click install
npx skills add https://github.com/vchelaru/Gum --skill gum-tool-variable-references
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: gum-tool-variable-references
Source: https://github.com/vchelaru/Gum/tree/main/.claude/skills/gum-tool-variable-references
Command: npx skills add https://github.com/vchelaru/Gum --skill gum-tool-variable-references

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Gum's variable reference system can become difficult to understand and manage, especially when dealing with cross‑instance or cross‑element bindings, expressions, and automatic expansion. This skill provides a clear reference guide to help developers maintain and troubleshoot variable references efficiently.

Core Features & Use Cases

  • Syntax Overview: Details the assignment format, comment handling, and shorthand expansions for variable references.
  • Architecture Insight: Explains how Gum processes references, including validation, cascade updates, and deep propagation through the VariableReferenceLogic and related classes.
  • Runtime Considerations: Highlights the distinction between tool‑time hard‑value baking and runtime evaluation, and notes limitations such as lack of dynamic re‑evaluation.
  • Known Gaps: Identifies current shortcomings like font generation misses and provides pointers to related skills.

Quick Start

Load the gum-tool-variable-references skill when you need to explore or edit Gum's variable reference system.

Frequently Asked Questions about gum-tool-variable-references

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

FAQPage Schema
How do I synchronize Gum UI variables across multiple instances?

To sync Gum UI variables across instances, you use the variable reference system to manage cross-instance bindings. This skill parses assignment syntax with Roslyn, validates references, and bakes hard-coded values into StateSave during tool-time.

How does Gum handle cross-element variable references and expressions?

Gum processes cross-element variable references through VariableReferenceLogic, which validates references, performs cascade updates, and propagates values deeply. It parses assignment syntax and shorthand expansions to manage both expressions and literals.

What is the syntax for assigning variable references in Gum?

Variable reference assignment syntax in Gum uses a specific format for cross-element bindings, supports comment handling, and allows shorthand expansions. The system parses this syntax with Roslyn to validate and apply values to StateSave.

Does Gum evaluate variable references dynamically at runtime?

Gum does not dynamically re-evaluate variable references at runtime. The system distinguishes between tool-time hard-value baking into StateSave and runtime evaluation, meaning references are primarily resolved during tool-time processing.

What are the limitations of Gum variable references?

Known limitations of Gum variable references include a lack of dynamic re-evaluation at runtime and specific shortcomings such as font generation misses. These gaps affect how cross-instance bindings propagate through the UI layout.