From core
Creates or updates docs/data_model.md with entity attribute tables and an optional Mermaid ER diagram. No PlantUML. Use when the user asks to "design the data model", "create the entity model", "define the database schema", "draw an ER diagram", or mentions entities, tables, relationships, or database design.
How this skill is triggered — by the user, by Claude, or both
Slash command
/core:data-modelThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Create or update `docs/data_model.md` based on `docs/requirements.md` and `docs/vision.md`.
Create or update docs/data_model.md based on docs/requirements.md and docs/vision.md.
Produce an optional Mermaid ER diagram followed by an attribute table for each entity.
# Data Model
## Entity Relationship Diagram
```mermaid
erDiagram
USER {
int id PK
string email
string name
}
POST {
int id PK
string title
int user_id FK
}
USER ||--o{ POST : "writes"
| Attribute | Type | Constraints | Description |
|---|---|---|---|
| id | integer | PK, auto | Primary key |
| varchar(255) | NOT NULL, UNIQUE | Login identifier | |
| name | varchar(255) | NOT NULL | Display name |
| created_at | timestamp | NOT NULL, DEFAULT now() | Creation time |
| Attribute | Type | Constraints | Description |
|---|---|---|---|
| id | integer | PK, auto | Primary key |
| title | varchar(500) | NOT NULL | Post title |
| body | text | NOT NULL | Content |
| user_id | integer | FK → User.id | Author |
| embedding | vector(1536) | nullable | Semantic embedding for search |
| created_at | timestamp | NOT NULL, DEFAULT now() | Creation time |
## pgvector notes
Add a `vector(1536)` column (and note "requires pgvector extension") to any entity whose
features mention: semantic search, similarity search, RAG, embeddings, recommendations, or "find similar".
## Workflow
1. Read `docs/requirements.md` to identify entities from FR user stories
2. Read `docs/vision.md` for domain context
3. Infer relationships (one-to-many, many-to-many) from requirements
4. Draw Mermaid ER diagram (skip if < 2 entities)
5. Write attribute table for each entity
6. Mark any vector columns needed for search features
7. Write `docs/data_model.md`
8. Suggest next step: `/feature-spec`
Offers UI/UX design guidance for web and mobile with 50+ styles, 161 color palettes, 57 font pairings, and 99 UX guidelines across 10 stacks. Use for designing pages, components, color systems, or reviewing UI code.
Mines projects and conversations into a searchable memory palace. Activates on queries about MemPalace, memory palace, mining, searching, palace setup, wings, rooms, drawers, or recalling past work.
npx claudepluginhub bfh-krg1/sdd-web-app --plugin core