add-section

Implement a new HUD section tab with lifecycle, state persistence, and registry registration.

3|1|Updated Dec 11, 2025
One-click install
npx skills add https://github.com/Ariedam64/Gemini --skill add-section
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: add-section
Source: https://github.com/Ariedam64/Gemini/tree/main/.claude/skills/add-section
Command: npx skills add https://github.com/Ariedam64/Gemini --skill add-section

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Streamlines the creation of new HUD sections by providing a standardized lifecycle, persistent state, and registry integration, eliminating repetitive setup.

Core Features & Use Cases

  • Lifecycle-managed sections with build/destroy hooks
  • JSON-serializable state persistence per tab
  • Registry-driven tab integration with reusable UI patterns
  • Reuse of existing UI components for consistency
  • Use Case: quickly add a new tab that remembers user preferences and participates in the global HUD

Quick Start

Create a new HUD tab using the /add-section <SectionName> command to scaffold the UI and register it with the tab registry.

Frequently Asked Questions about add-section

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

FAQPage Schema
How do I add a new HUD tab that remembers user preferences?

To add a new HUD tab with persistent state, use the /add-section command to scaffold a UI section that includes a JSON-serializable state store. This automatically registers the tab in the global registry and remembers user preferences.

What is the best way to manage lifecycle hooks for a custom UI section?

Managing lifecycle hooks for a custom UI section requires implementing build and destroy phases within a standardized file structure. This approach provides lifecycle-managed sections that ensure clean initialization and teardown of HUD components.

How do I register a new UI tab with the global tab registry?

Registering a new UI tab with the global tab registry happens automatically when you scaffold a section using the /add-section command. This registry-driven integration ensures your new tab participates in the global HUD framework immediately.

What file structure is enforced when creating new HUD sections?

Creating new HUD sections enforces a stable file structure using the src/ui/sections/<Name>/ directory pattern. This standardized organization ensures consistent placement of lifecycle, state persistence, and registry registration logic across all tabs.

Can I persist JSON state data for individual HUD tabs?

Yes, you can persist JSON-serializable state data for individual HUD tabs. The skill provides a dedicated state store per tab, allowing each section to save and retrieve user preferences and session data independently.