database-designer
Database Designer - POWERFUL Tier Skill
Install via CLI (Recommended)
clawhub install openclaw/skills/skills/alirezarezvani/database-designerWhat This Skill Does
The Database Designer skill is a high-performance tool designed for architects and developers to streamline the lifecycle of database management. It acts as an expert consultant capable of performing deep-dive normalization analysis, recommending schema denormalization strategies, and optimizing index structures. The skill excels at identifying performance bottlenecks by analyzing schema definitions, proposing composite index strategies, and flagging redundant or unused indexes. Beyond structural analysis, it offers a robust framework for managing schema migrations, ensuring that changes follow the expand-contract pattern for zero-downtime deployments. It also provides automatic ERD generation via Mermaid syntax, making it easier to visualize complex data relationships and document architecture.
Installation
To integrate this skill into your OpenClaw environment, execute the following command in your terminal:
clawhub install openclaw/skills/skills/alirezarezvani/database-designer
Ensure your local agent has the necessary permissions to access your project workspace for schema file analysis.
Use Cases
- Legacy Schema Refactoring: Use the tool to normalize bloated legacy tables or identify missing foreign key constraints that lead to data integrity issues.
- Performance Tuning: Provide your slow-query logs and schema definitions to get actionable advice on index creation and partition strategies.
- CI/CD Pipeline Automation: Automate the generation of SQL migration scripts for feature branches, ensuring that column changes are handled safely.
- Architecture Documentation: Quickly generate ERD documentation for new hires or stakeholder presentations by piping your DDL through the tool.
Example Prompts
- "Analyze this Postgres DDL schema. Identify any missing foreign key constraints and suggest a composite index strategy for the users and orders tables to speed up lookup performance."
- "I am planning to rename a primary column in a table with 10 million rows. Create a zero-downtime migration plan using the expand-contract pattern."
- "Convert the following schema snippet into a Mermaid ERD and explain any potential normalization improvements for the current structure."
Tips & Limitations
To get the best results, always provide the specific database dialect (e.g., PostgreSQL, MySQL, SQLite) you are targeting, as syntax for constraints and indexing varies significantly. While the tool provides expert recommendations, always validate generated migration scripts in a staging environment before executing them in production. The skill is optimized for structural design and migration planning; it does not replace the need for physical database tuning based on actual real-time query execution plans (EXPLAIN ANALYZE output). Ensure your schema files are clean and correctly formatted for the most accurate analysis.
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-designer": {
"enabled": true,
"auto_update": true
}
}
}Tags(AI)
Flags: file-read, file-write
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.