config-pattern

Automate adding configuration parameters across Bob The Skull's stack.

Updated Nov 21, 2025
One-click install
npx skills add https://github.com/want2bet/BobTheSkull5 --skill config-pattern
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: config-pattern
Source: https://github.com/want2bet/BobTheSkull5/tree/main/.claude/skills/config-pattern
Command: npx skills add https://github.com/want2bet/BobTheSkull5 --skill config-pattern

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) and scripts (resource) components.

What problem does it solve?

This Skill automates the repetitive pattern of adding configuration parameters across BobTheSkull’s configuration stack (BobConfig.py, config_manager.py, HTML templates, JS), reducing errors and saving time.

Core Features & Use Cases

  • Full-stack pattern: Defines a 6+ step pattern spanning code, backend, UI, and JS.
  • Consistent parameter definitions: Ensures type hints, defaults, and ranges are uniform.
  • UI & Backend Synchronization: Keeps web UI, config manager, and code in sync for new parameters.

Quick Start

  • Follow the 6-step pattern to introduce a new parameter: add to BobConfig.py, update GET and SAVE methods, update HTML templates, and adjust JS populate/submit logic.

Frequently Asked Questions about config-pattern

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

FAQPage Schema
How do I add a new configuration parameter across BobConfig and the web UI?

Adding a configuration parameter requires updating four locations: BobConfig.py with the parameter definition, config_manager.py GET and SAVE methods to expose it, HTML templates to render the UI control, and JavaScript to populate and submit the value. This Skill automates that 6-step pattern, ensuring type hints, defaults, and ranges stay consistent across the stack.

What's the pattern for adding boolean, integer, float, and string config parameters?

Configuration parameters follow type-specific patterns defined in this Skill. Boolean parameters use toggle controls, integers and floats use input validation with ranges, and strings use text fields. Each type requires matching definitions in BobConfig.py, backend config_manager methods, HTML templates, and JavaScript handlers to ensure end-to-end consistency.

Can I use this pattern to manage audio, vision, and performance thresholds?

Yes. This Skill applies to configuring thresholds, timeouts, and settings across audio, vision, performance, and other domains in BobTheSkull. The unified pattern ensures that new parameters in any subsystem are automatically exposed through the web UI and kept in sync with the backend configuration stack.

Why keep config parameters synchronized between backend code and the web UI?

Synchronizing configuration parameters between BobConfig.py, config_manager.py, HTML templates, and JavaScript prevents drift, reduces errors, and ensures the web UI always reflects the actual backend state. Manual updates across four locations are error-prone; this Skill automates the synchronization pattern to guarantee consistency.

Do I need to manually update HTML templates and JavaScript every time I add a parameter?

This Skill eliminates manual work by automating the pattern. Following its defined steps ensures that when you add a parameter to BobConfig.py and config_manager.py, the HTML templates and JavaScript are updated consistently. The pattern removes the repetitive task of keeping UI and backend in sync.