zenstack-authenticated-db-params
CommunityZenStack: authenticated DB params
AuthorHankanman
Version1.0.0
Installs0
System Documentation
What problem does it solve?
This skill resolves TypeScript circular reference errors that occur when passing an authenticated ZenStack database client to utilities. By introducing a local type alias and a consistent pattern, utilities can safely receive an authenticated db instance without breaking type safety.
Core Features & Use Cases
- Local type aliasing to break circular dependencies by deriving a callable authenticated DB type from the base client.
- Updated function signatures and call sites to accept an AuthenticatedDB parameter, ensuring ZenStack access control remains enforced.
- Clear guidance for server actions to propagate the authenticated db context (auth.db) through utilities and transactions.
Quick Start
Apply the pattern by importing the base db client, creating an AuthenticatedDB type, and refactoring utilities and server actions to pass the authenticated database through each call.
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: zenstack-authenticated-db-params Download link: https://github.com/Hankanman/claude-config/archive/main.zip#zenstack-authenticated-db-params 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.