database-schema-designer
Database Schema Designer
Install via CLI (Recommended)
clawhub install openclaw/skills/skills/alirezarezvani/database-schema-designerWhat This Skill Does
The database-schema-designer skill is a comprehensive architectural assistant for OpenClaw AI, specifically engineered to streamline the end-to-end database lifecycle. It excels at translating high-level functional requirements into normalized, production-ready relational database schemas. Beyond simple table creation, the tool automates the generation of complex infrastructure components, including ORM-specific migration scripts (Drizzle, Prisma, TypeORM, and Alembic), language-specific data models (TypeScript, Python), and database-level security protocols such as Row-Level Security (RLS) policies. It enforces best practices for enterprise-grade applications, including multi-tenancy architecture, soft-delete implementation, audit logging, and indexing strategies to ensure optimal query performance. By visualizing schema relationships via Mermaid diagrams, it provides both technical implementation details and conceptual clarity for backend teams.
Installation
To integrate this skill into your OpenClaw environment, execute the following command in your terminal or command interface:
clawhub install openclaw/skills/skills/alirezarezvani/database-schema-designer
Ensure your local environment is configured to interact with the ClawHub registry.
Use Cases
- Rapid Prototyping: Quickly generate a full schema from a user story or product requirement document.
- Refactoring: Analyze existing legacy schemas and suggest normalization improvements or performance-enhancing composite indexes.
- Standardization: Ensure all team projects follow consistent patterns for soft deletes, audit trails, and optimistic locking.
- Full-Stack Bridging: Automatically generate TypeORM or Prisma definitions that match your SQL migrations, reducing the gap between database and application layers.
- Security Hardening: Implement organization-wide RLS policies for multi-tenant SaaS platforms to prevent data leakage between customers.
Example Prompts
- "I am building a SaaS for fitness tracking. Generate a normalized PostgreSQL schema with multi-tenancy using an organization_id, add audit columns to every table, and include a Prisma migration schema."
- "Review this schema for my task manager and suggest indexes for frequent lookups on the project_id and status columns, then write the SQL for a soft-delete policy."
- "Design a database structure for a polymorphic notification system that can handle emails, SMS, and push notifications, including a Mermaid diagram of the entity relationships."
Tips & Limitations
- Normalization: Always provide context about the scale of data expected, as over-normalization can sometimes conflict with read-heavy performance requirements.
- Framework Choice: Specify your ORM early in the prompt to ensure the generated migration files align with your project's existing tech stack.
- Security: While the tool generates robust RLS templates, always audit generated policies against your application's actual authentication mechanism.
- Limitations: The skill assumes a relational model. It is not currently optimized for NoSQL document stores or graph databases.
Metadata
Not sure this is the right skill?
Describe what you want to build — we'll match you to the best skill from 16,000+ options.
Find the right skillPaste this into your clawhub.json to enable this plugin.
{
"plugins": {
"official-alirezarezvani-database-schema-designer": {
"enabled": true,
"auto_update": true
}
}
}Tags(AI)
Flags: code-execution
Related Skills
agile-product-owner
Agile product ownership for backlog management and sprint execution. Covers user story writing, acceptance criteria, sprint planning, and velocity tracking. Use for writing user stories, creating acceptance criteria, planning sprints, estimating story points, breaking down epics, or prioritizing backlog.
intl-expansion
International market expansion strategy. Market selection, entry modes, localization, regulatory compliance, and go-to-market by region. Use when expanding to new countries, evaluating international markets, planning localization, or building regional teams.
mdr-745-specialist
EU MDR 2017/745 compliance specialist for medical device classification, technical documentation, clinical evidence, and post-market surveillance. Covers Annex VIII classification rules, Annex II/III technical files, Annex XIV clinical evaluation, and EUDAMED integration.
marketing-strategy-pmm
Product marketing skill for positioning, GTM strategy, competitive intelligence, and product launches. Use when the user asks about product positioning, go-to-market planning, competitive analysis, target audience definition, ICP definition, market research, launch plans, or sales enablement. Covers April Dunford positioning, ICP definition, competitive battlecards, launch playbooks, and international market entry. Produces deliverables including positioning statements, battlecard documents, launch plans, and go-to-market strategies.
paid-ads
When the user wants help with paid advertising campaigns on Google Ads, Meta (Facebook/Instagram), LinkedIn, Twitter/X, or other ad platforms. Also use when the user mentions 'PPC,' 'paid media,' 'ad copy,' 'ad creative,' 'ROAS,' 'CPA,' 'ad campaign,' 'retargeting,' or 'audience targeting.' This skill covers campaign strategy, ad creation, audience targeting, and optimization.