Skip to main content

import-export

Change SQL, SQLite worker, DBML, JSON, Mermaid, SVG, or database export/import flows while preserving diagram semantics and round trips. Use when adding dialect support or changing parser/exporter behavior.

소스 정보

저장소
AHS12/thoth-blueprint
최근 소스 활동
2026년 8월 11일 17:59
감지된 SKILL.md 언어
영어
스타
626
포크
53

설치 방법

기본적으로 소스를 먼저 확인하는 Prompt가 선택됩니다. 직접 명령으로 전환하거나 로컬 사본을 다운로드할 수도 있습니다.

소스 파일 검토

설치 여부를 결정하기 전에 SKILL.md와 SkillsMP에 표시된 보조 파일을 읽어 보세요.

SKILL.md 표시 중

SKILL.md
소스 지침 · 읽기 전용 미리보기
name
import-export
description
Change SQL, SQLite worker, DBML, JSON, Mermaid, SVG, or database export/import flows while preserving diagram semantics and round trips. Use when adding dialect support or changing parser/exporter behavior.
# Import and Export ## Read First - `src/components/ImportDialog.tsx` and `src/components/ExportDialog.tsx` for UI dispatch. - `src/lib/importer.ts` and `src/lib/importer/` for parser contracts. - `src/workers/sqlite-ddl.worker.ts` for SQLite worker boundaries. - `src/lib/exporter/`, `src/lib/mermaid.ts`, and `src/lib/types.ts` for output and model semantics. ## Change Rules 1. Select the parser from the declared database dialect and keep progress/diagnostic behavior intact. 2. Preserve table and column IDs, positions, colors, locks, notes, zones, viewport, and relationship metadata when the format supports them. 3. Treat custom SQL parsers as dialect-specific state machines. Do not assume MySQL, PostgreSQL, and SQLite syntax coverage is interchangeable. 4. Keep SQLite parsing in the worker and handle worker errors without leaving a half-imported diagram. 5. JSON imports require safe validation before entering the store. Never trust arbitrary node, edge, or date data merely because the top-level arrays exist. 6. DBML save synchronization uses heuristic matching; test similarly named and structurally similar tables, IDs, positions, and repeated save cycles. 7. Generated SQL, DBML, Mermaid, SVG, and migrations are output artifacts. Review quoting, composite keys, comments, notes/zones, and unsupported features explicitly. ## Verification Matrix - Import valid and invalid MySQL, PostgreSQL, SQLite, DBML, and application JSON. - Export and re-import each supported round-trip format where applicable. - Include composite relationships, indexes, comments, nullable/default/generated columns, notes, zones, and locked diagrams when relevant. - Confirm diagnostics are visible and failures do not mutate the active diagram.
GitHub에서 보기