Database schema generation and optimization
Scanned 10/1/2026
npx -y skills add sharmapuneet1510/awesome-prompts --skill schema --agent claude-codeInstalls into .claude/skills of the current project.
Are you the author of Schema?
Add the live security badge to your README — it updates automatically with every re-scan.
[](https://www.skillsdirectory.com/skills/sharmapuneet1510-schema)More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.
---
name: schema
description: Database schema generation and optimization
argument-hint: requirements="..." [db_type="postgresql"]
disable-model-invocation: true
---
Role and rules: read ${CLAUDE_PLUGIN_ROOT}/reference/agent.md and ${CLAUDE_PLUGIN_ROOT}/reference/rules.md for the sections this function needs.
# architect:schema
**Design and optimize database schemas** with relationships, indices, constraints, and migrations.
## Inputs
```
architect:schema requirements="..." [db_type="postgresql"]
```
- `requirements` (string, required) — Data model requirements
- `db_type` (string, optional) — Database type (postgresql, mysql, mssql)
- `scale` (string, optional) — Expected scale (small, medium, enterprise)
## Outputs
```
✓ schema.sql — Complete DDL with relationships
✓ migrations/ — Versioned migration scripts
✓ indices.sql — Performance indices
✓ relationships-diagram.md — ER diagram and descriptions
```
## Example
```bash
architect:schema requirements="E-commerce: products, orders, inventory, customers"
```
## Workflow
1. Parse data requirements
2. Design entities and relationships
3. Normalize schema (3NF+)
4. Add indices for common queries
5. Plan migration strategy
6. Document relationships
7. Consider scaling and partitioning
## Related Functions
- `architect:design` — Full system architecture
- `implementer:full` — Implementation with schema
Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.
No comments yet. Be the first to comment!