johnnystefan/test-saas-business/pattern-observer
Claude Code and agent skill by johnnystefan/test-saas-business
- community
Checking that the SKILL.md file is still in the repository.
Teaches and applies the Observer behavioral design pattern — defining a subscription mechanism to notify multiple objects about events in the observed object. Trigger: When implementing event-driven systems, reactive updates, or pub/sub mechanisms.
Install
npx vskill@latest install johnnystefan/test-saas-business/pattern-observerSKILL.md
The same SKILL.md was published earlier as johnnystefan/test-saas-business/pattern-observer.
Skill: Implement Observer Pattern
Purpose
Defines a subscription mechanism to notify multiple objects about any events that happen to the object they are observing. Essential for event-driven systems, real-time updates, and reactive architectures.
Procedural Instructions
- Identify the Publisher: The object with the interesting state that others need to react to.
- Declare Subscriber Interface: Usually a single
update()method with event data as parameter. - Implement Subscription Logic: Add
subscribe(),unsubscribe(), andnotify()methods to the Publisher. - Trigger Notifications: The Publisher calls
update()on all its subscribers whenever an important event occurs.
TypeScript Example
Payoff
- OCP: Introduce new subscriber classes without changing the publisher's code.
- Dynamic Relationships: Objects can subscribe and unsubscribe at runtime.
- Loose Coupling: Publisher and subscribers only know about the shared interface.
Security
- Security scanPassed, 100 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/behaviorals/pattern-observer/SKILL.md
Popularity
- 7-day trend score
- 5
Not refreshed yet.
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-observer)