yudefine/nuxt-supabase-starter/specformula-entity-spec

Claude Code and agent skill by yudefine/nuxt-supabase-starter

Trust tier 2
  • community
LLM review pending
Source check pending

Checking that the SKILL.md file is still in the repository.

當要導入 SpecFormula、新增資料表或實體、或修改 Entity Mapping / DDL 時載入此規格

Install

npx vskill@latest install yudefine/nuxt-supabase-starter/specformula-entity-spec

SKILL.md

The same SKILL.md was published earlier as yudefine/nuxt-supabase-starter/specformula-entity-spec.

SpecFormula Entity Spec 撰寫指南

Entity Spec 定義業務實體與資料表的對應關係,是 SpecFormula「規格三巨頭」之一。包含兩個部分:

  • `entity_to_table_mapping.yml`:實體名稱 → 資料表名稱
  • `*.sql`(DDL):資料表結構定義

SpecFormula 規範

1. 檔案存放位置必須參考 isa.yml 配置檔

Entity Spec 的存放路徑由 isa.yml 的 config.data.source[].resource_path 決定:

yaml
# isa.yml
config:
data:
source:
- name: default
resource_path: specs/data # ← 框架讀取路徑
project_path: my-project/src/test/resources/specs/data # ← Lint 報錯路徑
db_type: postgresql # ← DDL 語法依據

對應的檔案結構:

src/test/resources/specs/data/ # ← 與 resource_path 一致
├── entity_to_table_mapping.yml
├── schema.sql # 可拆分為多個 .sql 檔案
├── users.sql
└── todos.sql
2. DDL 格式依 db_type 決定

DDL 語法須符合 isa.yml 中該 Data Source 設定的 db_type 對應的合法 SQL 語法(如 postgresql、mysql、embedded、mssql)。

3. Entity 命名使用業務語言

entity_to_table_mapping.yml 定義此 Data Source 下所有業務實體與資料表的對應關係:

yaml
# ✅ 推薦:業務語言
entity_to_table_mapping:
- 會員: members
- 訂單: orders
- 商品: products
# ❌ 避免:技術名稱
entity_to_table_mapping:
- member_entity: members
- tbl_order: orders

Security

  • Security scanPassed, 100 of 100Pattern checks on the skill's files.
  • Model reviewNot runA model review is scheduled for the next rescan.

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

Repository stars
44
Repository forks
3
7-day trend score
24

Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Grok Build (Cursor)
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/yudefine/nuxt-supabase-starter/specformula-entity-spec/badge)](https://verified-skill.com/skills/yudefine/nuxt-supabase-starter/specformula-entity-spec)

Something wrong with this skill or its page? Tell us.