data-architecture

Centralize project data in typed TypeScript files like facts.ts and projects.ts.

1|Updated Oct 9, 2025
One-click install
npx skills add https://github.com/omerakben/omer-akben --skill data-architecture-omerakben
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: data-architecture
Source: https://github.com/omerakben/omer-akben/tree/main/.claude/skills/data-architecture-skill
Command: npx skills add https://github.com/omerakben/omer-akben --skill data-architecture-omerakben

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill promotes a single source of truth by centralizing personal data, project metadata, and configuration in typed data files, preventing hardcoded data and inconsistencies.

Core Features & Use Cases

  • Single source of truth: centralizes data in typed files (e.g., facts.ts, projects.ts) to ensure consistent references across the codebase.
  • Type safety and validation: defines TypeScript interfaces and, where relevant, Zod schemas to enforce data shape and correctness.
  • Use Case: When building an application that consumes profile data, project catalogs, or configuration, references from facts.ts are used instead of hardcoded literals.

Quick Start

Install or ensure you have a TypeScript project. Create or update the primary data files (src/data/facts.ts, src/data/projects.ts) following the provided structure, then import and reference them across the codebase to avoid duplication.

Frequently Asked Questions about data-architecture

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I centralize data in a TypeScript project to prevent hardcoded values?

To centralize data in a TypeScript project, you organize project data by enforcing a single source of truth using typed data files like facts.ts and projects.ts. This prevents hardcoded data and inconsistencies across your codebase.

What is a single source of truth in software architecture and how does it work?

A single source of truth in software architecture centralizes personal data, project metadata, and configuration in typed data files. This mechanism ensures consistent references across the codebase by importing data rather than duplicating literals.

How do I set up type safety and data validation for centralized configuration files?

To set up type safety and data validation for centralized configuration, you define TypeScript interfaces and Zod schemas within your typed data files. This enforces data shape and correctness for your application's profile data and project catalogs.

Does this data architecture approach require any specific dependencies or frameworks?

This data architecture approach does not require specific dependencies or frameworks. You only need a standard TypeScript project to create or update the primary data files in your src/data directory and reference them across your codebase.

When do I need to use typed data files for software architecture?

You need to use typed data files for software architecture when building an application that consumes profile data, project catalogs, or configuration and requires robust data models, centralized configuration, and safe data access patterns.

What is the best way to avoid data duplication and ensure data integrity in TypeScript?

The best way to avoid data duplication and ensure data integrity in TypeScript is to centralize data in typed files like facts.ts. By referencing these files instead of hardcoded literals, you maintain consistent and validated data across your project.