← スキル一覧に戻る

data-architecture
by AMASPC-Org
⭐ 0🍴 0📅 2026年1月25日
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.tsorsrc/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/typesbefore writing any DB code. - Seed Truth: The
seed.tsfile is the ground truth. If a field exists in Types but not Seed, it's a bug. - No Deletions: Prefer
deprecated: trueflags over deleting fields to prevent runtime crashes on old clients.
2. Migrations & Seeding
- Dry Run Mandate: Before updating
seed.tsor 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.
スコア
総合スコア
50/100
リポジトリの品質指標に基づく評価
✓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
レビュー
💬
レビュー機能は近日公開予定です