Workspace switching
The active workspace is server-side state, re-checked for membership on every request — never trust an org id sent by the client.
What this skill helps you build
Let users who belong to several organizations switch the active workspace — and re-verify their membership and permissions on every request.
The production takeaway
The active workspace is server-side state, re-checked for membership on every request — never trust an org id sent by the client.
Inside this skill
The full skill expands these implementation areas with decisions, edge cases, prompts, tests, and framework-specific code.
Unlock the full implementation
Paid access includes the complete skill body, implementation prompt, common mistakes, production checklist, and code examples where this skill includes them.