sfcc-ocapi-hooks
CommunityMaster OCAPI hooks for safe SFCC endpoints.
Authortaurgis
Version1.0.0
Installs0
System Documentation
What problem does it solve?
OCAPI hooks provide server-side extension points that let you inject custom logic into the lifecycle of OCAPI requests, enabling augmentation, validation, or modification of API behavior without altering core platform code.
Core Features & Use Cases
- Hook types: before<HTTP_Method>, after<HTTP_Method>, and modify<HTTP_Method>Response to customize request handling and responses.
- Registration & structure: guidance for registering hooks in a cartridge via package.json and hooks.json, with recommended folder layouts and organization.
- Real-world scenarios: validate incoming requests, enrich responses with custom attributes, and trigger external integrations while maintaining transactional integrity when needed.
Quick Start
Install and register a sample OCAPI hook workflow by adding scripts under cartridge/scripts/hooks and updating hooks.json accordingly.
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: sfcc-ocapi-hooks Download link: https://github.com/taurgis/sfcc-dev-mcp/archive/main.zip#sfcc-ocapi-hooks 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 223,000+ vetted skills library on demand.