skills/dbml-multi-db-schema/SKILL.md
Create and maintain DBML files for systems that split data across a PrimaryDB and one or more ClientDB instances. Use when adding or updating DBML for multi-database schemas, tenant-specific client databases, cross-database analysis views, logical relationships based on business keys such as ProjectNo, or recommended dbml folder structures.
npx skillsauth add atman-33/atman-workspace dbml-multi-db-schemaInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Use this skill to keep DBML manageable when one system has a central database and many client-specific databases. Separate physical schemas from cross-database logical relationships, and avoid duplicating one DBML file per client unless the schema actually diverges.
primary.dbml.
Shared ClientDB change -> update client.template.dbml.
Cross-database analysis or lineage change -> update integration.cross-db.dbml.
Tenant-only divergence -> add or update a file under client-variants/.scripts/scaffold_multi_db_dbml.py.project_no, then review the result in the DBML visualizer.Prefer this layout unless the repository already uses a stronger convention:
dbml/
primary.dbml
client.template.dbml
integration.cross-db.dbml
client-variants/
client-a.dbml
client-b.dbml
Keep client.template.dbml as the shared shape for all ClientDB_n instances. Create per-client files only for meaningful schema drift.
For this skill's generated starter files, use the dedicated output folder under the skill itself:
.github/skills/dbml-multi-db-schema/generated-dbml/
The scaffold script writes there by default unless --output-dir is provided explicitly.
Ref: plus a note that the link is logical, not enforced by the database.ProjectNo exists in multiple databases, use one canonical DBML field name such as project_no everywhere unless the project already has a fixed naming convention.ClientDB_1, ClientDB_2, ClientDB_3 schema if they are materially identical.Example requests that should trigger this skill:
scripts/scaffold_multi_db_dbml.py
Create starter DBML files for primary.dbml, client.template.dbml, and integration.cross-db.dbml. Save them to generated-dbml/ under this skill by default.When editing or creating DBML with this skill:
client.template.dbml or client-variants/.tools
Zenn記事のMarkdown校正を行うスキル。記事を読み、Zenn独自記法の正確性・見出し構造・コードブロック・リンク・画像・テーブル・埋め込み・メッセージ/アコーディオン記法をチェックし、改善提案を行う。ユーザーが「Zenn記事を校正して」「Zennの記法をチェックして」「記事をレビューして」「Markdown確認して」と依頼した際に使用する。
tools
Develop React applications for VS Code Webview surfaces. Use when working on the `webview-ui` package, creating features, components, or hooks for VS Code extensions. Includes project structure, coding guidelines, and testing instructions.
testing
Best practices for reliable terminal command execution and output capture. Use this skill when running shell commands, especially in environments like WSL where output might be truncated or lost, to ensure results are properly captured and inspected.
databases
Supabaseデータベースマイグレーションの準備を行うスキル。バックアップの作成と差分マイグレーションファイルの生成を実施します。ユーザーが「マイグレーションを準備」「バックアップと差分を作成」「マイグレーションファイルを生成」などのリクエストをした際に使用します。