johnnystefan/test-saas-business/pattern-decorator
Claude Code and agent skill by johnnystefan/test-saas-business
- community
- ext:[{"type":"plugin","description":"Custom plugin integration"}]
Checking that the SKILL.md file is still in the repository.
Teaches and applies the Decorator structural design pattern — attaching new behaviors to objects dynamically by wrapping them inside decorator objects. Trigger: When adding responsibilities to objects at runtime without modifying their class.
Install
npx vskill@latest install johnnystefan/test-saas-business/pattern-decoratorSemi-extensibleMentions customization, but needs skill-specific knowledge. Read the extensible skills standard
SKILL.md
The same SKILL.md was published earlier as johnnystefan/test-saas-business/pattern-decorator.
Skill: Implement Decorator Pattern
Purpose
Attaches new behaviors to objects dynamically by placing them inside special wrapper objects that contain the behaviors.
Procedural Instructions
- Identify Layers: Look for a primary component and optional "add-on" features.
- Define Component Interface: Common interface for both the core object and its wrappers.
- Create Base Decorator: A class that wraps a component and delegates all work to it.
- Implement Concrete Decorators: Classes that override base methods to add behavior before/after delegation.
TypeScript Example
Payoff
- Flexibility: Add/remove responsibilities at runtime.
- Composition over Inheritance: Avoids bloating classes with every possible combination of features.
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/design-patterns/structurals/pattern-decorator/SKILL.md
Popularity
- 7-day trend score
- 5
Not refreshed yet.
Extension points
pluginCustom plugin integration
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/johnnystefan/test-saas-business/pattern-decorator)