Back to list
AMASPC-Org

data-architecture

by AMASPC-Org

0🍴 0📅 Jan 25, 2026

SKILL.md


name: data-architecture description: Standards for Firestore schemas, migrations, and data integrity. Use when modifying database structures.

Data Architecture

Detailed instructions for Firestore schema design, data migration, and seeding.

When to use this skill

  • Use this when modifying server/src/seed.ts or src/types.
  • This is helpful for adding new collections, fields, or changing data relationships.
  • Use this when debugging data sync issues or "missing field" errors.

How to use it

1. Schema Integrity

  • Types First: Define the interface in src/types before writing any DB code.
  • Seed Truth: The seed.ts file is the ground truth. If a field exists in Types but not Seed, it's a bug.
  • No Deletions: Prefer deprecated: true flags over deleting fields to prevent runtime crashes on old clients.

2. Migrations & Seeding

  • Dry Run Mandate: Before updating seed.ts or running a migration, perform a comparison scan. Verify that incremental changes (e.g., adding a venue) do not accidentally wipe or regress existing records.
  • Idempotency: All migration scripts must be safe to run multiple times (check if data exists before writing).
  • Batching: Use db.batch() for multi-document updates to ensure atomicity.

3. Region

  • Firestore must be in us-west1.

Score

Total Score

50/100

Based on repository quality metrics

SKILL.md

SKILL.mdファイルが含まれている

+20
LICENSE

ライセンスが設定されている

0/10
説明文

100文字以上の説明がある

0/10
人気

GitHub Stars 100以上

0/15
最近の活動

3ヶ月以内に更新がある

0/10
フォーク

10回以上フォークされている

0/5
Issue管理

オープンIssueが50未満

+5
言語

プログラミング言語が設定されている

+5
タグ

1つ以上のタグが設定されている

0/5

Reviews

💬

Reviews coming soon