ClawKit Logo
ClawKitReliability Toolkit
Back to Registry
Official Verified developer tools Safety 4/5

database-schema-designer

Database Schema Designer

skill-install — Terminal

Install via CLI (Recommended)

clawhub install openclaw/skills/skills/alirezarezvani/database-schema-designer
Or

What 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

  1. "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."
  2. "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."
  3. "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

Stars4473
Views1
Updated2026-05-01
View Author Profile
AI Skill Finder

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 skill
Add to Configuration

Paste this into your clawhub.json to enable this plugin.

{
  "plugins": {
    "official-alirezarezvani-database-schema-designer": {
      "enabled": true,
      "auto_update": true
    }
  }
}

Tags(AI)

#database#sql#backend#architecture#orm
Safety Score: 4/5

Flags: code-execution

Related Skills

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.

alirezarezvani 4473

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.

alirezarezvani 4473

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.

alirezarezvani 4473

qms-audit-expert

ISO 13485 internal audit expertise for medical device QMS. Covers audit planning, execution, nonconformity classification, and CAPA verification. Use for internal audit planning, audit execution, finding classification, external audit preparation, or audit program management.

alirezarezvani 4473

code-reviewer

Code review automation for TypeScript, JavaScript, Python, Go, Swift, Kotlin. Analyzes PRs for complexity and risk, checks code quality for SOLID violations and code smells, generates review reports. Use when reviewing pull requests, analyzing code quality, identifying issues, generating review checklists.

alirezarezvani 4473