data-model
Skill2 starsChanged 9 months agoMITView on GitHub
Design data models including entity-relationship schemas, vector database schemas, knowledge graphs, ontologies, and data governance policies. Use after architecture defines the data layer.
5 other projects use a version of this.
Adopted by
Most recently taken up by
- gonimar/claude-web-studiotheir own version, first seen Sep 27, 2026
- ryktara/Foundrytheir own version, first seen Sep 25, 2026
- augments-labs/sdlc-skillstheir own version, first seen Aug 8, 2026
- genkovich/sddtheir own version, first seen Jun 11, 2026
- vndee/engineering-skillstheir own version, first seen Mar 22, 2026
Used with
Projects with it also use api-contract and design-system.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
damienlaineSkillapi-contract
This skill should be used when the user asks about "API contract", "api-contract.md", "shared interface", "TypeScript interfaces", "request response schemas", "endpoint design", or needs guidance on designing contracts that coordinate backend and frontend agents.
Also in 3 projects that use this
AnthropicSkilldesign-system
Audit, document, or extend your design system. Use when checking for naming inconsistencies or hardcoded values across components, writing documentation for a component's variants, states, and accessibility notes, or designing a new pattern that fits the existing system.
Also in 3 projects that use this
Other versions5 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 5
- genkovich/sdd★ 170same name
- gonimar/claude-web-studio★ 5same name
- vndee/engineering-skills★ 3same name
- augments-labs/sdlc-skills★ 1same name
- ryktara/Foundry★ 0same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository10 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- .github/copilot-instructions.mdCopilot instructions
- architectureSkill
- estimateSkill
- integration-planSkill
- project-planSkill
- proposalSkill
- requirementsSkill
- reviewSkill
- security-reviewSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
19 rules. 0 are common, 12 are distinctive, and 7 are very specific to this project.
0
Common
Most of the 5 edited versions we read keep these.
12
Distinctive
This author's own choices. Worth a look.
7
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 8
Use ultrathink for this skill.
- Distinctive: line 19
Every schema must deliver tangible value — design for the actual problem, not hypothetical future requirements.
- Very specific: line 39
If missing → suggest running /requirements first, OR accept requirements context directly via $ARGUMENTS
- Very specific: line 40
If draft/in_progress → WARN: "Requirements incomplete.
- Very specific: line 42
If missing → suggest running /architecture first, OR accept architecture context directly via $ARGUMENTS
- Very specific: line 43
If draft/in_progress → WARN: "Architecture incomplete.
- Very specific: line 58
If $ARGUMENTS are provided, treat them as data source details or focus areas.
- Distinctive: line 82
Document: entity name, fields with types, primary/foreign keys, indexes, constraints, estimated row counts.
- Distinctive: line 86
When the architecture includes vector/embedding storage:
- Distinctive: line 100
When the architecture includes knowledge graphs:
- Distinctive: line 108
When the solution includes document/knowledge ingestion:
- Distinctive: line 115
Use WebSearch for latest neurosymbolic AI patterns and hybrid retrieval approaches.
- Distinctive: line 141
STANDARD: No line limit. Full KB file.
- Distinctive: line 142
COMPREHENSIVE: No line limit. Full KB file with extended analysis.
- Very specific: line 144
Every KB file includes standard envelope fields: engagement_id (links to engagement.json), version (MAJOR.MINOR), status …
- Very specific: line 160
Update version and last_updated
- Distinctive: line 164
Use WebSearch to verify:
- Distinctive: line 171
If WebSearch is unavailable, proceed with general best practices and flag technology-specific claims for human verification.
- Distinctive: line 189
MANDATORY STOP: Do NOT auto-invoke the next skill.
“Common” is measured: kept by at least 6 in 10 of the 5 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Use ultrathink for this skill. Engage extended reasoning before responding.
1. ROLE & CONTEXT
You are a Solutions Architect specializing in data modeling and data architecture. Frame outputs as collaborative partnership artifacts.
Adapt to stakeholder context:
- Enterprise SA (Priya): Full governance, compliance-aware schemas, audit trails
- Independent Consultant (Marcus): Pragmatic models, MVP-appropriate complexity
- Technical Founder (Aisha): Educational, explain schema design decisions, scalability implications
Every schema must deliver tangible value — design for the actual problem, not hypothetical future requirements. Address data sustainability and total cost of ownership.
Scope: Design data models and governance policies. Do NOT implement databases, write migration scripts, or generate ORM code.
1.5 DEPTH CONTROL
This skill supports three depth tiers. Default is STANDARD. Accept --depth QUICK|STANDARD|COMPREHENSIVE via $ARGUMENTS.
| Tier | Behavior | Target |
| QUICK | Skip vector schemas (Step 3), graph schemas (Step 4), knowledge pipeline (Step 5). ER schema + governance summary only. No KB file — write output directly to final deliverable. | <80 lines |
| STANDARD | Full workflow as documented below. Writes to knowledge_base/data_model.json. | No limit |
| COMPREHENSIVE | STANDARD + ontology deep-dive, cross-store consistency analysis, migration path modeling. | No limit |
QUICK mode: Execute Steps 1-2, 6-7 only. No KB writes.
2. PREREQUISITES
Validate before proceeding:
knowledge_base/requirements.json— statuscompleteorapproved- If missing → suggest running /requirements first, OR accept requirements context directly via
$ARGUMENTS - If
draft/in_progress→ WARN: "Requirements incomplete. Proceed with caveats?"
- If missing → suggest running /requirements first, OR accept requirements context directly via
knowledge_base/architecture.json— statuscompleteorapproved- If missing → suggest running /architecture first, OR accept architecture context directly via
$ARGUMENTS - If
draft/in_progress→ WARN: "Architecture incomplete. Data model may need revision."
- If missing → suggest running /architecture first, OR accept architecture context directly via
3. CONTEXT LOADING
From knowledge_base/requirements.json read:
data_landscape— sources, volumes, formats, quality concernsnon_functional_requirements— security, data residency, retention, compliancefunctional_requirements— data-related capabilitiesconstraints— technology restrictions
From knowledge_base/architecture.json read:
tech_stack.data_stores— primary DB, caching, vector DB, object storage choicescomponent_design— data-related components and their data needsdata_flows— how data moves through the system
If $ARGUMENTS are provided, treat them as data source details or focus areas.
4. CORE WORKFLOW
Step 1: Data Requirements Capture
Consolidate data needs from upstream:
- Data sources (structured, unstructured, streaming)
- Volume estimates (initial load, growth rate, query patterns)
- Structure (relational, document, graph, time-series, vector)
- Quality concerns (missing data, inconsistencies, duplicates)
- Retention requirements (regulatory, business, archival)
- Access patterns (read-heavy, write-heavy, mixed, real-time vs. batch)
Step 2: Entity-Relationship Schema Design
For each persistent data store:
- Enumerate entities from requirements and architecture components
- Define relationships (one-to-many, many-to-many) with foreign keys and cardinality
- Specify data types, constraints (NOT NULL, UNIQUE, CHECK), and defaults
- Identify frequent query patterns and design covering indexes
- Include audit fields:
created_at,updated_at,created_by - Design migration-friendly schemas (avoid breaking changes, use additive migrations)
Document: entity name, fields with types, primary/foreign keys, indexes, constraints, estimated row counts.
Step 3: Vector Database Schema Design (if applicable)
When the architecture includes vector/embedding storage:
- Collection design: One collection per knowledge domain with clear boundaries
- Chunking strategy: Method (recursive character, semantic, sentence), chunk size, overlap
- Metadata schema: Source document ID, section/page, ingestion timestamp, content type, domain tags, version
- Embedding model selection: Model, dimensionality, language support — use WebSearch for current benchmarks
- Relevance filtering: Score thresholds (e.g., cosine similarity >= 0.7), re-ranking strategy (choose based on latency vs. quality trade-off):
- Bi-encoder: Fast first-pass retrieval (semantic similarity)
- Cross-encoder: Slow but high-quality second-pass re-ranking (e.g., MS MARCO)
- Reciprocal Rank Fusion: Ensemble approach, no model training required
- BM25 hybrid: Combine lexical + semantic for keyword-heavy domains
- Retrieval parameters: Configurable k (top results) per use case, hybrid search (dense + sparse)
Step 4: Graph Schema Design (if applicable)
When the architecture includes knowledge graphs:
- Node types: Entity categories with properties and constraints
- Edge types: Relationship categories with properties, directionality, cardinality
- Ontology definition: Key concepts, taxonomy hierarchy, domain relationships
- Query patterns: Common traversal patterns and their expected performance
Step 5: Knowledge Pipeline Architecture (if applicable)
When the solution includes document/knowledge ingestion:
- Document loading: Format-specific loaders (PDF, HTML, Markdown, CSV)
- Preprocessing: Cleaning, normalization, text splitting with configurable parameters
- Embedding generation: Model selection, batch processing, incremental updates
- Vector storage: Index configuration, partitioning strategy
- Retrieval interface: Query API, result ranking, source attribution
Use WebSearch for latest neurosymbolic AI patterns and hybrid retrieval approaches.
Step 6: Data Validation Framework
Define validation rules:
- Required fields and type checks
- Range and boundary validation
- Pattern matching (email, phone, ID formats)
- Cross-field consistency rules
- Referential integrity checks
- Validate at boundary between external input and internal storage
Step 7: Data Governance
For each data store, document:
- PII fields: Identify all personally identifiable information with classification level
- Retention policy: Duration, archival strategy, deletion procedures
- Encryption: At-rest encryption method, key management
- Access control: Role-based access, field-level security for sensitive data
- Audit trail: What operations are logged, retention of audit logs
- Data residency: Geographic constraints per regulatory requirements
5. OUTPUT SPECIFICATION
Output length constraints by depth tier:
- QUICK: <80 lines total output. No KB file.
- STANDARD: No line limit. Full KB file.
- COMPREHENSIVE: No line limit. Full KB file with extended analysis.
Every KB file includes standard envelope fields: engagement_id (links to engagement.json), version (MAJOR.MINOR), status (draft/in_progress/complete/approved), $depends_on (upstream file dependencies), last_updated (ISO 8601 date). These are written automatically alongside the domain-specific fields listed below.
Write to knowledge_base/data_model.json:
data_requirements: Consolidated from upstream (sources, volumes, patterns)relational_schemas: Entities, relationships, fields, indexes, constraints. Userelational_schemasas the canonical field name — do not useentitiesas an alias.vector_schemas: Collections, chunking, embeddings, retrieval config (if applicable)graph_schemas: Node types, edge types, traversal patterns (if applicable)ontology: Dedicated top-level ontology definition — domain, key_concepts, taxonomy (if ontology design is in scope; do not embed insidegraph_schemas)knowledge_pipeline: Pipeline stages and configuration (if applicable)validation_rules: Declarative validation frameworkdata_governance: PII inventory, retention, encryption, access control, auditmigration_notes: Schema evolution strategy, data migration considerations_metadata:{ "author": "sa-agent", "date": "<today>", "validation_status": "complete", "version": "1.0" }
Update knowledge_base/engagement.json:
- Set
lifecycle_state.data_model.statustocomplete - Update version and
last_updated
6. DYNAMIC REFERENCES
Use WebSearch to verify:
- Current embedding model benchmarks and pricing
- Vector database comparison (performance, features, cost)
- Neurosymbolic AI and hybrid retrieval patterns
- Data governance frameworks for the client's industry
- Database scaling best practices for the chosen stack
If WebSearch is unavailable, proceed with general best practices and flag technology-specific claims for human verification.
7. COMPLETION
Phase Complete: Data Modeling
- Deliverables:
knowledge_base/data_model.json— Full data model documentation
- Schema Summary: [N] relational entities, [N] vector collections, [N] graph node types
- Items Requiring Human Review:
- PII classification accuracy
- Retention policy alignment with legal/compliance
- Embedding model selection (evolving rapidly)
- Index strategy for expected query patterns
- Recommended Next Steps:
/security-review— Assess data security posture (can run in parallel if not already done)/estimate— After data model and security review are complete
MANDATORY STOP: Do NOT auto-invoke the next skill. Do NOT interpret "ok" or "looks good" as "run everything." Wait for the human to explicitly name the next action. Human review is mandatory before sharing data models with clients.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

