coldbox-decorators
OfficialSafely extend ColdBox controller and context
AuthorColdBox
Version1.0.0
Installs0
System Documentation
What problem does it solve?
Provides a safe, centralized way to extend or override ColdBox framework objects so you can add application-level behavior without modifying framework source code, reducing duplication and enabling consistent request and controller handling across the app.
Core Features & Use Cases
- Controller Decorator: Override or extend controller-level behavior such as relocate/setNextEvent to enforce SSL, append tracking parameters, or provide global helper methods.
- Request Context Decorator: Add request-scoped helpers and transformations like auto-trimming inputs, requireValue validation helpers, getCurrentUser accessors, or API detection logic.
- Use Case: Implement a RequestContextDecorator that auto-trims incoming values and exposes getCurrentUser while a ControllerDecorator enforces SSL redirects and exposes app-level metadata.
Quick Start
Create and register a RequestContextDecorator that trims input values and adds a getCurrentUser helper, then wire a ControllerDecorator to enforce SSL on all relocations.
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: coldbox-decorators Download link: https://github.com/ColdBox/skills/archive/main.zip#coldbox-decorators Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.