dekc-diagram
Capture Mermaid or PlantUML diagrams (architecture, component, activity, state, class, ERD, sequence) and PlantUML wireframes for reports/dashboards into the DEKC second brain.
- License 许可
- MIT
- 最近更新
- 2026-09-13
- Stars
- ★ 0
- Forks
- 1
01 前言 Front Matter
- name
- dekc-diagram
- description
- Capture Mermaid or PlantUML diagrams (architecture, component, activity, state, class, ERD, sequence) and PlantUML wireframes for reports/dashboards into the DEKC second brain.
03 SKILL.md 正文
DEKC diagrams & wireframes
All diagrams are OKF Markdown concepts with fenced code:
```mermaid…``````plantuml…```
Wireframe a report/dashboard (PlantUML salt)
python3 "${CLAUDE_PLUGIN_ROOT}/scripts/dekc_diagram.py" wireframe \
--name "Exec Revenue Wireframe" \
--subject /dashboards/executive-revenue.md \
--language plantuml \
--repo . --bundle knowledge
Or Mermaid layout sketch: --language mermaid.
Architecture / ERD / job diagrams
# Architecture for a lake
python3 "${CLAUDE_PLUGIN_ROOT}/scripts/dekc_diagram.py" capture \
--name "Commerce lake arch" --kind architecture --language mermaid \
--subject /lakes/retail-commerce-lake.md --repo . --bundle knowledge
# ERD
python3 "${CLAUDE_PLUGIN_ROOT}/scripts/dekc_diagram.py" capture \
--name "Orders ERD" --kind erd --language mermaid \
--subject /tables/gold-order-daily.md --repo . --bundle knowledge
# Job pack: activity + state + class + component
python3 "${CLAUDE_PLUGIN_ROOT}/scripts/dekc_diagram.py" job-pack \
--workflow /workflows/daily-medallion-orders.md --language mermaid \
--repo . --bundle knowledge
Kinds
wireframe · architecture · component · activity · state · class · erd · sequence · deployment · flowchart · c4
Custom code
python3 "${CLAUDE_PLUGIN_ROOT}/scripts/dekc_diagram.py" capture \
--name "Custom" --kind sequence --language plantuml \
--code-file ./seq.puml --subject /workflows/foo.md --no-template
List templates: dekc_diagram.py templates / templates --show erd mermaid.
Prefer linking --subject to real concept paths. Never invent lineage in diagrams that the graph does not support—diagrams document design intent.
Ingestion job diagram pack
python3 "${CLAUDE_PLUGIN_ROOT}/scripts/dekc_diagram.py" ingestion-pack \
--job /ingestion/orders-stream-landing.md --language mermaid
04 同仓库更多 Skills
dekc-walk
Walk a data lake/warehouse filesystem or ingest Fabric/Power BI inventory JSON into DEKC.
dekc-session
Open or close an isolated second-brain write session (worktree + PR). Use before writing knowledge when multiple agents share one knowledge remote.
dekc-semantic
Capture semantic models, metrics, dashboards, reports.
dekc-second-brain
Query the DEKC OKF second brain with design intents (reports, land data, metrics, impact). Uses standard concept schemas under schemas/okf-concepts/.
dekc-search
Full-text search over the DEKC knowledge bundle (AND terms, type filters). Use when finding tables, lineage, or metrics by keyword.
dekc-retrieve
Query-time DEKC retrieval. Spawn data-retriever; parent gets a summary card only. Use for Table, Metric, LineagePath, IngestionJob, Transformation, Dashboard, DataProduct, GlossaryTerm, BusinessObject questions.