johnnystefan/test-saas-business/pattern-chain-of-responsibility
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 Chain of Responsibility behavioral design pattern — passing requests along a chain of handlers where each handler decides to process or forward. Trigger: When implementing request handling pipelines, middleware chains, or event propagation.
Install
npx vskill@latest install johnnystefan/test-saas-business/pattern-chain-of-responsibilitySKILL.md
The same SKILL.md was published earlier as johnnystefan/test-saas-business/pattern-chain-of-responsibility.
Skill: Implement Chain of Responsibility Pattern
Purpose
Enables the agent to pass requests along a chain of handlers. Each handler decides either to process the request or pass it to the next handler in the chain.
Procedural Instructions
- Identify Sequential Checks: Look for code performing multiple validation or processing steps in a rigid order.
- Declare Handler Interface: Define a common method (e.g.,
handle()) for all steps. - Create Base Handler: (Optional) Implement the default behavior of passing the request to the
nexthandler. - Implement Concrete Handlers: Each handler performs its specific check. It can stop the chain or call the parent to pass the request forward.
- Compose the Chain: Link handlers dynamically in the client code.
TypeScript Example
Payoff
- Decoupling: Decouples senders of requests from their receivers.
- Flexibility: Handlers can be added or reordered at runtime without modifying client code.
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-chain-of-responsibility/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-chain-of-responsibility)