@mohammadhprp/system-prompt 0.10.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +35 -0
- package/bin/system-prompt.js +8 -0
- package/framework/README.md +163 -0
- package/framework/agents/README.md +49 -0
- package/framework/agents/backend-architect.md +146 -0
- package/framework/agents/researcher.md +79 -0
- package/framework/agents/reviewer.md +183 -0
- package/framework/agents/security-auditor.md +131 -0
- package/framework/commands/README.md +43 -0
- package/framework/commands/changelog.md +44 -0
- package/framework/commands/commit.md +31 -0
- package/framework/commands/learn.md +24 -0
- package/framework/commands/mr.md +46 -0
- package/framework/commands/pr.md +39 -0
- package/framework/commands/release.md +34 -0
- package/framework/commands/review.md +24 -0
- package/framework/commands/summarize-changes.md +49 -0
- package/framework/mcps/README.md +78 -0
- package/framework/mcps/excalidraw/README.md +37 -0
- package/framework/mcps/excalidraw/capabilities.md +54 -0
- package/framework/mcps/excalidraw/configs/opencode.json +8 -0
- package/framework/mcps/excalidraw/install.md +92 -0
- package/framework/mcps/excalidraw/troubleshooting.md +67 -0
- package/framework/mcps/figma-mcp-go/README.md +51 -0
- package/framework/mcps/figma-mcp-go/capabilities.md +190 -0
- package/framework/mcps/figma-mcp-go/configs/opencode.json +9 -0
- package/framework/mcps/figma-mcp-go/install.md +74 -0
- package/framework/mcps/figma-mcp-go/troubleshooting.md +99 -0
- package/framework/mcps/github-mcp/README.md +51 -0
- package/framework/mcps/github-mcp/capabilities.md +83 -0
- package/framework/mcps/github-mcp/configs/.env.example +1 -0
- package/framework/mcps/github-mcp/configs/opencode.json +13 -0
- package/framework/mcps/github-mcp/install.md +60 -0
- package/framework/mcps/github-mcp/troubleshooting.md +79 -0
- package/framework/mcps/gitlab-mcp/README.md +54 -0
- package/framework/mcps/gitlab-mcp/capabilities.md +216 -0
- package/framework/mcps/gitlab-mcp/configs/.env.example +2 -0
- package/framework/mcps/gitlab-mcp/configs/opencode.json +13 -0
- package/framework/mcps/gitlab-mcp/install.md +99 -0
- package/framework/mcps/gitlab-mcp/troubleshooting.md +116 -0
- package/framework/mcps/jira-mcp/README.md +53 -0
- package/framework/mcps/jira-mcp/capabilities.md +79 -0
- package/framework/mcps/jira-mcp/configs/.env.example +2 -0
- package/framework/mcps/jira-mcp/configs/opencode.json +13 -0
- package/framework/mcps/jira-mcp/install.md +94 -0
- package/framework/mcps/jira-mcp/troubleshooting.md +113 -0
- package/framework/mcps/laravel-boost/README.md +53 -0
- package/framework/mcps/laravel-boost/capabilities.md +92 -0
- package/framework/mcps/laravel-boost/configs/opencode.json +9 -0
- package/framework/mcps/laravel-boost/install.md +106 -0
- package/framework/mcps/laravel-boost/troubleshooting.md +119 -0
- package/framework/mcps/notion-mcp/README.md +58 -0
- package/framework/mcps/notion-mcp/capabilities.md +118 -0
- package/framework/mcps/notion-mcp/configs/opencode.json +9 -0
- package/framework/mcps/notion-mcp/install.md +70 -0
- package/framework/mcps/notion-mcp/troubleshooting.md +95 -0
- package/framework/mcps/playwright-mcp/README.md +50 -0
- package/framework/mcps/playwright-mcp/capabilities.md +149 -0
- package/framework/mcps/playwright-mcp/configs/opencode.json +9 -0
- package/framework/mcps/playwright-mcp/install.md +136 -0
- package/framework/mcps/playwright-mcp/troubleshooting.md +154 -0
- package/framework/mcps/supabase-mcp/README.md +66 -0
- package/framework/mcps/supabase-mcp/capabilities.md +127 -0
- package/framework/mcps/supabase-mcp/configs/opencode.json +9 -0
- package/framework/mcps/supabase-mcp/install.md +85 -0
- package/framework/mcps/supabase-mcp/troubleshooting.md +113 -0
- package/framework/memory/README.md +17 -0
- package/framework/memory/codebase-insights.md +6 -0
- package/framework/memory/user-preferences.md +5 -0
- package/framework/modes/README.md +52 -0
- package/framework/modes/audit.md +88 -0
- package/framework/plugins/README.md +65 -0
- package/framework/plugins/opencode-goal-plugin/README.md +45 -0
- package/framework/plugins/opencode-goal-plugin/capabilities.md +127 -0
- package/framework/plugins/opencode-goal-plugin/install.md +71 -0
- package/framework/plugins/opencode-goal-plugin/troubleshooting.md +112 -0
- package/framework/plugins/ponytail/README.md +44 -0
- package/framework/plugins/ponytail/capabilities.md +112 -0
- package/framework/plugins/ponytail/install.md +77 -0
- package/framework/plugins/ponytail/troubleshooting.md +116 -0
- package/framework/references/standards/api.md +44 -0
- package/framework/references/standards/architecture.md +43 -0
- package/framework/references/standards/database.md +43 -0
- package/framework/references/standards/debugging.md +44 -0
- package/framework/references/standards/documentation.md +43 -0
- package/framework/references/standards/logging.md +43 -0
- package/framework/references/standards/naming.md +43 -0
- package/framework/references/standards/observability.md +43 -0
- package/framework/references/standards/performance.md +43 -0
- package/framework/references/standards/pull-requests.md +43 -0
- package/framework/references/standards/security.md +43 -0
- package/framework/references/standards/testing.md +43 -0
- package/framework/references/templates/adr.md +28 -0
- package/framework/references/templates/api-spec.md +56 -0
- package/framework/references/templates/design-document.md +39 -0
- package/framework/references/templates/incident-report.md +38 -0
- package/framework/references/templates/postmortem.md +41 -0
- package/framework/references/templates/pull-request.md +34 -0
- package/framework/references/templates/runbook.md +48 -0
- package/framework/references/templates/task.md +27 -0
- package/framework/skills/README.md +68 -0
- package/framework/skills/agent-browser/SKILL.md +51 -0
- package/framework/skills/backend-best-practices/SKILL.md +136 -0
- package/framework/skills/backend-best-practices/examples.md +31 -0
- package/framework/skills/backend-best-practices/references/api-design.md +79 -0
- package/framework/skills/backend-best-practices/references/architecture-review.md +77 -0
- package/framework/skills/backend-best-practices/references/database-design.md +78 -0
- package/framework/skills/backend-best-practices/references/debugging.md +76 -0
- package/framework/skills/backend-best-practices/references/observability.md +78 -0
- package/framework/skills/backend-best-practices/references/performance.md +78 -0
- package/framework/skills/backend-best-practices/references/refactoring.md +77 -0
- package/framework/skills/backend-best-practices/references/security.md +80 -0
- package/framework/skills/backend-best-practices/references/testing.md +77 -0
- package/framework/skills/backend-engineer/SKILL.md +76 -0
- package/framework/skills/backend-engineer/examples.md +31 -0
- package/framework/skills/brainstorming/SKILL.md +159 -0
- package/framework/skills/brainstorming/examples.md +49 -0
- package/framework/skills/brainstorming/scripts/frame-template.html +213 -0
- package/framework/skills/brainstorming/scripts/helper.js +167 -0
- package/framework/skills/brainstorming/scripts/server.cjs +723 -0
- package/framework/skills/brainstorming/scripts/start-server.sh +209 -0
- package/framework/skills/brainstorming/scripts/stop-server.sh +120 -0
- package/framework/skills/brainstorming/visual-companion.md +291 -0
- package/framework/skills/brand-guidelines/LICENSE.txt +202 -0
- package/framework/skills/brand-guidelines/SKILL.md +73 -0
- package/framework/skills/code-review/SKILL.md +72 -0
- package/framework/skills/code-review/examples.md +31 -0
- package/framework/skills/design/SKILL.md +399 -0
- package/framework/skills/design/examples.md +34 -0
- package/framework/skills/diagram-design/SKILL.md +485 -0
- package/framework/skills/diagram-design/assets/example-architecture-dark.html +180 -0
- package/framework/skills/diagram-design/assets/example-architecture-full.html +192 -0
- package/framework/skills/diagram-design/assets/example-architecture.html +181 -0
- package/framework/skills/diagram-design/assets/example-bar-dark.html +127 -0
- package/framework/skills/diagram-design/assets/example-bar-full.html +103 -0
- package/framework/skills/diagram-design/assets/example-bar.html +127 -0
- package/framework/skills/diagram-design/assets/example-data-flow-dark.html +143 -0
- package/framework/skills/diagram-design/assets/example-data-flow-full.html +185 -0
- package/framework/skills/diagram-design/assets/example-data-flow.html +143 -0
- package/framework/skills/diagram-design/assets/example-datalake-dark.html +241 -0
- package/framework/skills/diagram-design/assets/example-datalake-full.html +246 -0
- package/framework/skills/diagram-design/assets/example-datalake.html +267 -0
- package/framework/skills/diagram-design/assets/example-dp-integration-dark.html +78 -0
- package/framework/skills/diagram-design/assets/example-dp-integration-full.html +88 -0
- package/framework/skills/diagram-design/assets/example-dp-integration.html +78 -0
- package/framework/skills/diagram-design/assets/example-dp-security-matrix-dark.html +31 -0
- package/framework/skills/diagram-design/assets/example-dp-security-matrix-full.html +32 -0
- package/framework/skills/diagram-design/assets/example-dp-security-matrix.html +88 -0
- package/framework/skills/diagram-design/assets/example-er-dark.html +200 -0
- package/framework/skills/diagram-design/assets/example-er-full.html +203 -0
- package/framework/skills/diagram-design/assets/example-er.html +200 -0
- package/framework/skills/diagram-design/assets/example-flowchart-dark.html +154 -0
- package/framework/skills/diagram-design/assets/example-flowchart-full.html +157 -0
- package/framework/skills/diagram-design/assets/example-flowchart.html +154 -0
- package/framework/skills/diagram-design/assets/example-gantt-dark.html +135 -0
- package/framework/skills/diagram-design/assets/example-gantt-full.html +125 -0
- package/framework/skills/diagram-design/assets/example-gantt.html +135 -0
- package/framework/skills/diagram-design/assets/example-high-level-dark.html +249 -0
- package/framework/skills/diagram-design/assets/example-high-level-full.html +245 -0
- package/framework/skills/diagram-design/assets/example-high-level-vertical-dark.html +272 -0
- package/framework/skills/diagram-design/assets/example-high-level-vertical-full.html +250 -0
- package/framework/skills/diagram-design/assets/example-high-level-vertical.html +323 -0
- package/framework/skills/diagram-design/assets/example-high-level.html +299 -0
- package/framework/skills/diagram-design/assets/example-it-state-dark.html +90 -0
- package/framework/skills/diagram-design/assets/example-it-state-full.html +69 -0
- package/framework/skills/diagram-design/assets/example-it-state.html +128 -0
- package/framework/skills/diagram-design/assets/example-layers-dark.html +121 -0
- package/framework/skills/diagram-design/assets/example-layers-full.html +124 -0
- package/framework/skills/diagram-design/assets/example-layers.html +121 -0
- package/framework/skills/diagram-design/assets/example-line-dark.html +109 -0
- package/framework/skills/diagram-design/assets/example-line-full.html +103 -0
- package/framework/skills/diagram-design/assets/example-line.html +109 -0
- package/framework/skills/diagram-design/assets/example-loop-dark.html +100 -0
- package/framework/skills/diagram-design/assets/example-loop-full.html +137 -0
- package/framework/skills/diagram-design/assets/example-loop-terminal.html +347 -0
- package/framework/skills/diagram-design/assets/example-loop.html +100 -0
- package/framework/skills/diagram-design/assets/example-medallion-dark.html +159 -0
- package/framework/skills/diagram-design/assets/example-medallion-full.html +201 -0
- package/framework/skills/diagram-design/assets/example-medallion.html +159 -0
- package/framework/skills/diagram-design/assets/example-nested-dark.html +130 -0
- package/framework/skills/diagram-design/assets/example-nested-full.html +133 -0
- package/framework/skills/diagram-design/assets/example-nested.html +134 -0
- package/framework/skills/diagram-design/assets/example-org-chart-dark.html +45 -0
- package/framework/skills/diagram-design/assets/example-org-chart-full.html +45 -0
- package/framework/skills/diagram-design/assets/example-org-chart.html +45 -0
- package/framework/skills/diagram-design/assets/example-process-dark.html +62 -0
- package/framework/skills/diagram-design/assets/example-process-full.html +72 -0
- package/framework/skills/diagram-design/assets/example-process.html +62 -0
- package/framework/skills/diagram-design/assets/example-pyramid-dark.html +117 -0
- package/framework/skills/diagram-design/assets/example-pyramid-full.html +120 -0
- package/framework/skills/diagram-design/assets/example-pyramid.html +117 -0
- package/framework/skills/diagram-design/assets/example-quadrant-consultant.html +164 -0
- package/framework/skills/diagram-design/assets/example-quadrant-dark.html +133 -0
- package/framework/skills/diagram-design/assets/example-quadrant-full.html +136 -0
- package/framework/skills/diagram-design/assets/example-quadrant.html +133 -0
- package/framework/skills/diagram-design/assets/example-radar-dark.html +137 -0
- package/framework/skills/diagram-design/assets/example-radar-full.html +133 -0
- package/framework/skills/diagram-design/assets/example-radar.html +137 -0
- package/framework/skills/diagram-design/assets/example-scatter-dark.html +139 -0
- package/framework/skills/diagram-design/assets/example-scatter-full.html +114 -0
- package/framework/skills/diagram-design/assets/example-scatter.html +139 -0
- package/framework/skills/diagram-design/assets/example-sequence-dark.html +220 -0
- package/framework/skills/diagram-design/assets/example-sequence-full.html +386 -0
- package/framework/skills/diagram-design/assets/example-sequence.html +220 -0
- package/framework/skills/diagram-design/assets/example-state-dark.html +145 -0
- package/framework/skills/diagram-design/assets/example-state-full.html +148 -0
- package/framework/skills/diagram-design/assets/example-state.html +145 -0
- package/framework/skills/diagram-design/assets/example-swimlane-dark.html +170 -0
- package/framework/skills/diagram-design/assets/example-swimlane-full.html +173 -0
- package/framework/skills/diagram-design/assets/example-swimlane.html +170 -0
- package/framework/skills/diagram-design/assets/example-timeline-dark.html +133 -0
- package/framework/skills/diagram-design/assets/example-timeline-full.html +136 -0
- package/framework/skills/diagram-design/assets/example-timeline.html +133 -0
- package/framework/skills/diagram-design/assets/example-tree-dark.html +171 -0
- package/framework/skills/diagram-design/assets/example-tree-full.html +174 -0
- package/framework/skills/diagram-design/assets/example-tree.html +171 -0
- package/framework/skills/diagram-design/assets/example-venn-dark.html +130 -0
- package/framework/skills/diagram-design/assets/example-venn-full.html +133 -0
- package/framework/skills/diagram-design/assets/example-venn.html +108 -0
- package/framework/skills/diagram-design/assets/icons.html +230 -0
- package/framework/skills/diagram-design/assets/index.html +333 -0
- package/framework/skills/diagram-design/assets/template-dark.html +82 -0
- package/framework/skills/diagram-design/assets/template-full.html +410 -0
- package/framework/skills/diagram-design/assets/template-terminal.html +170 -0
- package/framework/skills/diagram-design/assets/template.html +83 -0
- package/framework/skills/diagram-design/references/export.md +107 -0
- package/framework/skills/diagram-design/references/onboarding.md +268 -0
- package/framework/skills/diagram-design/references/primitive-annotation.md +36 -0
- package/framework/skills/diagram-design/references/primitive-icons.md +821 -0
- package/framework/skills/diagram-design/references/primitive-sketchy.md +43 -0
- package/framework/skills/diagram-design/references/primitive-terminal.md +76 -0
- package/framework/skills/diagram-design/references/style-guide.md +139 -0
- package/framework/skills/diagram-design/references/type-architecture.md +78 -0
- package/framework/skills/diagram-design/references/type-bar.md +48 -0
- package/framework/skills/diagram-design/references/type-data-flow.md +374 -0
- package/framework/skills/diagram-design/references/type-dp-integration.md +410 -0
- package/framework/skills/diagram-design/references/type-dp-security-matrix.md +379 -0
- package/framework/skills/diagram-design/references/type-er.md +23 -0
- package/framework/skills/diagram-design/references/type-flowchart.md +23 -0
- package/framework/skills/diagram-design/references/type-gantt.md +45 -0
- package/framework/skills/diagram-design/references/type-high-level.md +458 -0
- package/framework/skills/diagram-design/references/type-it-state.md +470 -0
- package/framework/skills/diagram-design/references/type-layers.md +26 -0
- package/framework/skills/diagram-design/references/type-line.md +44 -0
- package/framework/skills/diagram-design/references/type-loop.md +223 -0
- package/framework/skills/diagram-design/references/type-medallion.md +356 -0
- package/framework/skills/diagram-design/references/type-nested.md +22 -0
- package/framework/skills/diagram-design/references/type-org-chart.md +44 -0
- package/framework/skills/diagram-design/references/type-process.md +495 -0
- package/framework/skills/diagram-design/references/type-pyramid.md +33 -0
- package/framework/skills/diagram-design/references/type-quadrant.md +81 -0
- package/framework/skills/diagram-design/references/type-radar.md +80 -0
- package/framework/skills/diagram-design/references/type-scatter.md +39 -0
- package/framework/skills/diagram-design/references/type-sequence.md +35 -0
- package/framework/skills/diagram-design/references/type-state.md +21 -0
- package/framework/skills/diagram-design/references/type-swimlane.md +20 -0
- package/framework/skills/diagram-design/references/type-timeline.md +20 -0
- package/framework/skills/diagram-design/references/type-tree.md +24 -0
- package/framework/skills/diagram-design/references/type-venn.md +26 -0
- package/framework/skills/documentation/SKILL.md +74 -0
- package/framework/skills/documentation/examples.md +31 -0
- package/framework/skills/find-skills/SKILL.md +141 -0
- package/framework/skills/find-skills/examples.md +35 -0
- package/framework/skills/gitlab-mcp/SKILL.md +83 -0
- package/framework/skills/gitlab-mcp/examples.md +31 -0
- package/framework/skills/gitlab-mcp/references/code-review.md +110 -0
- package/framework/skills/gitlab-mcp/references/issues.md +141 -0
- package/framework/skills/gitlab-mcp/references/merge-requests.md +120 -0
- package/framework/skills/gitlab-mcp/references/pipelines.md +67 -0
- package/framework/skills/gitlab-mcp/references/search.md +17 -0
- package/framework/skills/gitlab-mcp/references/webhooks.md +32 -0
- package/framework/skills/gitlab-mcp/references/work-items.md +50 -0
- package/framework/skills/jira-mcp/SKILL.md +57 -0
- package/framework/skills/jira-mcp/examples.md +31 -0
- package/framework/skills/jira-mcp/references/comments.md +27 -0
- package/framework/skills/jira-mcp/references/issues.md +97 -0
- package/framework/skills/jira-mcp/references/projects.md +39 -0
- package/framework/skills/laravel-best-practices/SKILL.md +229 -0
- package/framework/skills/laravel-best-practices/examples.md +31 -0
- package/framework/skills/laravel-best-practices/references/advanced-queries.md +106 -0
- package/framework/skills/laravel-best-practices/references/architecture.md +202 -0
- package/framework/skills/laravel-best-practices/references/blade-views.md +36 -0
- package/framework/skills/laravel-best-practices/references/caching.md +70 -0
- package/framework/skills/laravel-best-practices/references/collections.md +44 -0
- package/framework/skills/laravel-best-practices/references/config.md +73 -0
- package/framework/skills/laravel-best-practices/references/db-performance.md +192 -0
- package/framework/skills/laravel-best-practices/references/eloquent.md +148 -0
- package/framework/skills/laravel-best-practices/references/error-handling.md +72 -0
- package/framework/skills/laravel-best-practices/references/events-notifications.md +52 -0
- package/framework/skills/laravel-best-practices/references/http-client.md +160 -0
- package/framework/skills/laravel-best-practices/references/mail.md +27 -0
- package/framework/skills/laravel-best-practices/references/migrations.md +121 -0
- package/framework/skills/laravel-best-practices/references/passport.md +197 -0
- package/framework/skills/laravel-best-practices/references/pennant.md +61 -0
- package/framework/skills/laravel-best-practices/references/pest-testing.md +166 -0
- package/framework/skills/laravel-best-practices/references/pulse.md +196 -0
- package/framework/skills/laravel-best-practices/references/queue-jobs.md +144 -0
- package/framework/skills/laravel-best-practices/references/routing.md +99 -0
- package/framework/skills/laravel-best-practices/references/scheduling.md +39 -0
- package/framework/skills/laravel-best-practices/references/scout.md +176 -0
- package/framework/skills/laravel-best-practices/references/security.md +198 -0
- package/framework/skills/laravel-best-practices/references/spatie-laravel-backup.md +222 -0
- package/framework/skills/laravel-best-practices/references/spatie-laravel-permission.md +272 -0
- package/framework/skills/laravel-best-practices/references/spatie-medialibrary.md +672 -0
- package/framework/skills/laravel-best-practices/references/style.md +125 -0
- package/framework/skills/laravel-best-practices/references/tailwindcss.md +112 -0
- package/framework/skills/laravel-best-practices/references/testing.md +43 -0
- package/framework/skills/laravel-best-practices/references/validation.md +75 -0
- package/framework/skills/lavish/SKILL.md +67 -0
- package/framework/skills/lavish/examples.md +31 -0
- package/framework/skills/notion-mcp/SKILL.md +57 -0
- package/framework/skills/notion-mcp/examples.md +31 -0
- package/framework/skills/notion-mcp/references/comments.md +112 -0
- package/framework/skills/notion-mcp/references/databases.md +193 -0
- package/framework/skills/notion-mcp/references/pages.md +235 -0
- package/framework/skills/skill-creator/LICENSE.txt +202 -0
- package/framework/skills/skill-creator/SKILL.md +485 -0
- package/framework/skills/skill-creator/agents/analyzer.md +274 -0
- package/framework/skills/skill-creator/agents/comparator.md +202 -0
- package/framework/skills/skill-creator/agents/grader.md +223 -0
- package/framework/skills/skill-creator/assets/eval_review.html +146 -0
- package/framework/skills/skill-creator/eval-viewer/generate_review.py +471 -0
- package/framework/skills/skill-creator/eval-viewer/viewer.html +1325 -0
- package/framework/skills/skill-creator/examples.md +31 -0
- package/framework/skills/skill-creator/references/schemas.md +430 -0
- package/framework/skills/skill-creator/scripts/__init__.py +0 -0
- package/framework/skills/skill-creator/scripts/aggregate_benchmark.py +401 -0
- package/framework/skills/skill-creator/scripts/generate_report.py +326 -0
- package/framework/skills/skill-creator/scripts/improve_description.py +247 -0
- package/framework/skills/skill-creator/scripts/package_skill.py +136 -0
- package/framework/skills/skill-creator/scripts/quick_validate.py +103 -0
- package/framework/skills/skill-creator/scripts/run_eval.py +310 -0
- package/framework/skills/skill-creator/scripts/run_loop.py +328 -0
- package/framework/skills/skill-creator/scripts/utils.py +47 -0
- package/framework/styles/README.md +35 -0
- package/framework/styles/linear/DESIGN.md +478 -0
- package/framework/styles/linear/README.md +36 -0
- package/framework/styles/linear/assets/preview.jpg +0 -0
- package/framework/styles/raycast/DESIGN.md +495 -0
- package/framework/styles/raycast/README.md +35 -0
- package/framework/styles/raycast/assets/preview.jpg +0 -0
- package/package.json +33 -0
- package/src/agent-configs.js +96 -0
- package/src/catalog.js +145 -0
- package/src/cli.js +254 -0
- package/src/installer.js +303 -0
|
@@ -0,0 +1,374 @@
|
|
|
1
|
+
# Data Flow
|
|
2
|
+
|
|
3
|
+
**Best for:** visualising how data moves through a pipeline *across organisational roles* — who initiates, who processes, who publishes, and who consumes. The canonical use case is a multi-role data platform (Admin → Engineers → Scientists → Consumers) with 4–6 process steps. Use when the reader needs to understand **who does what at each stage**, not just the technical components.
|
|
4
|
+
|
|
5
|
+
Prefer standard **Swimlane** for cross-functional business processes (HR approvals, support tickets). Use **Data flow** when the subject is a data pipeline with typed payloads (raw files, tables, reports) and role-scoped access boundaries.
|
|
6
|
+
|
|
7
|
+
This type is **parametric** — the inputs schema in §1 drives every coordinate via the formulas in §2. Two generations from the same inputs must produce visually identical SVG.
|
|
8
|
+
|
|
9
|
+
---
|
|
10
|
+
|
|
11
|
+
## 1. Inputs — the parameter contract
|
|
12
|
+
|
|
13
|
+
```yaml
|
|
14
|
+
lanes: # 1..4 horizontal swimlanes (top to bottom)
|
|
15
|
+
- { name: ["DATA", "ADMINS"], key: "ADM" }
|
|
16
|
+
- { name: ["DATA", "ENGINEERS"], key: "ENG" }
|
|
17
|
+
- { name: ["DATA", "SCIENTISTS"], key: "SCI" }
|
|
18
|
+
- { name: ["DATA", "CONSUMERS"], key: "CON" }
|
|
19
|
+
|
|
20
|
+
steps: # 1..6 columns (left to right)
|
|
21
|
+
- { number: "01", label: "COLLECT" }
|
|
22
|
+
- { number: "02", label: "STORE" }
|
|
23
|
+
- { number: "03", label: "TRANSFORM" }
|
|
24
|
+
- { number: "04", label: "ANALYZE", focal: true } # focal step header chip — accent fill
|
|
25
|
+
- { number: "05", label: "PUBLISH" }
|
|
26
|
+
|
|
27
|
+
nodes: # explicit per-cell entries; empty cells render nothing
|
|
28
|
+
- { lane: "ADM", step: 0, title: "Project Setup", sub: "create · assign roles", tool: "Platform console" }
|
|
29
|
+
- { lane: "ADM", step: 1, title: "Access Control", sub: "bucket policies · LDAP", tool: "MinIO · LDAP console",
|
|
30
|
+
color: "#b85450" } # tinted rust-red to flag governance/identity concern
|
|
31
|
+
- { lane: "ENG", step: 0, title: "Source Ingest", sub: "ext. sources → raw", tool: "NiFi · API · SFTP",
|
|
32
|
+
chips: {in: "WB", out: "DB"} } # web payload in, dataset out
|
|
33
|
+
- { lane: "ENG", step: 1, title: "Raw Store", sub: "raw landing zones", tool: "MinIO raw",
|
|
34
|
+
chips: {in: "DB", out: "DB"} } # raw stays raw inside the landing zone
|
|
35
|
+
- { lane: "ENG", step: 2, title: "Clean & Stage", sub: "raw → staging → anon", tool: "NiFi · Trino",
|
|
36
|
+
chips: {in: "DB", out: "TB"} } # raw dataset → analysis-ready table
|
|
37
|
+
- { lane: "SCI", step: 3, title: "Explore & Model", sub: "anon data → insights", tool: "JupyterHub · Trino",
|
|
38
|
+
chips: {in: "TB", out: "FL"}, focal: true } # focal — table in, file/report out
|
|
39
|
+
- { lane: "SCI", step: 4, title: "Publish Findings", sub: "models → dashboards", tool: "Superset · Reports",
|
|
40
|
+
chips: {in: "FL", out: "FL"} } # report in, report out (pass-through to publish)
|
|
41
|
+
- { lane: "CON", step: 4, title: "Query Insights", sub: "aggregated views", tool: "Trino (read-only)",
|
|
42
|
+
chips: {in: "TB", out: "TB"} } # consumers read tables, hand off tables
|
|
43
|
+
|
|
44
|
+
arrows: # explicit edges; styles bind to topology (see §3)
|
|
45
|
+
- { from: {lane: "ADM", step: 0}, to: {lane: "ADM", step: 1}, style: "muted" }
|
|
46
|
+
- { from: {lane: "ADM", step: 0}, to: {lane: "ENG", step: 0}, style: "trigger" } # dashed governance
|
|
47
|
+
- { from: {lane: "ADM", step: 1}, to: {lane: "ENG", step: 1}, style: "trigger" }
|
|
48
|
+
- { from: {lane: "ENG", step: 0}, to: {lane: "ENG", step: 1}, style: "muted" }
|
|
49
|
+
- { from: {lane: "ENG", step: 1}, to: {lane: "ENG", step: 2}, style: "muted" }
|
|
50
|
+
- { from: {lane: "ENG", step: 2}, to: {lane: "SCI", step: 3}, style: "accent", # focal cross-role
|
|
51
|
+
label: "anon data" }
|
|
52
|
+
- { from: {lane: "SCI", step: 3}, to: {lane: "SCI", step: 4}, style: "muted" }
|
|
53
|
+
- { from: {lane: "SCI", step: 4}, to: {lane: "CON", step: 4}, style: "link" } # teal: published
|
|
54
|
+
|
|
55
|
+
dark: false
|
|
56
|
+
```
|
|
57
|
+
|
|
58
|
+
**Reserved field semantics:**
|
|
59
|
+
- `lanes[k].key` — the 3-letter role chip text (e.g., `ADM`, `ENG`, `SCI`, `CON`). Used inside every node in that lane.
|
|
60
|
+
- `lanes[k].name` — two-line lane label; both lines use the uppercase `eyebrow` role.
|
|
61
|
+
- `steps[j].focal: true` — exactly **one** step may declare this. Header chip renders in accent.
|
|
62
|
+
- `nodes[i].focal: true` — exactly **one** node may declare this. Renders with accent border (§5).
|
|
63
|
+
- `nodes[i].chips` — data-type chips for the node. Either form accepted:
|
|
64
|
+
- **Object form (preferred):** `{in: "<CODE>", out: "<CODE>"}` — explicit input/output semantic. Either side optional.
|
|
65
|
+
- **Array form:** `["<INPUT_CODE>", "<OUTPUT_CODE>"]` — first item is input, second is output.
|
|
66
|
+
- Codes from §8 (`WB`, `DB`, `TB`, `FL`, `LS`). Position is **fixed**: input chip on the node's bottom-**left**, output chip on the bottom-**right**.
|
|
67
|
+
- `nodes[i].color` — optional **per-node color override**. Any valid `"#hex"` string is accepted; the §4 palette is recommended for cross-diagram consistency but not required. Every node can carry its own color independently of others.
|
|
68
|
+
|
|
69
|
+
---
|
|
70
|
+
|
|
71
|
+
## 2. Layout formulas — deterministic geometry
|
|
72
|
+
|
|
73
|
+
```
|
|
74
|
+
label_col_w = 140
|
|
75
|
+
step_slot_w = 112
|
|
76
|
+
right_pad = 28
|
|
77
|
+
n_steps = len(steps)
|
|
78
|
+
n_lanes = len(lanes)
|
|
79
|
+
|
|
80
|
+
# Canvas
|
|
81
|
+
viewBox_w = label_col_w + n_steps * step_slot_w + right_pad # 5 steps → 728
|
|
82
|
+
header_h = 36
|
|
83
|
+
lane_h = 80
|
|
84
|
+
has_color_row = any(node.color or step.color or lane.color in inputs)
|
|
85
|
+
legend_h = 100 if has_color_row else 80 # 4 rows when colors are present
|
|
86
|
+
viewBox_h = header_h + n_lanes * lane_h + legend_h # 4 lanes, no colors → 436; with colors → 456
|
|
87
|
+
|
|
88
|
+
# Header strip (top)
|
|
89
|
+
header_y = 0 # ends at header_h = 36
|
|
90
|
+
step_chip_y = 6 # 16-px chip at y=6..22
|
|
91
|
+
step_label_y = 29 # text line below chip
|
|
92
|
+
|
|
93
|
+
# Lane positions
|
|
94
|
+
lane_y_top(k) = header_h + k * lane_h # 36, 116, 196, 276
|
|
95
|
+
lane_y_mid(k) = lane_y_top(k) + lane_h/2 # 76, 156, 236, 316
|
|
96
|
+
lane_label_x = label_col_w / 2 # 70
|
|
97
|
+
|
|
98
|
+
# Step / node center x
|
|
99
|
+
step_cx(j) = label_col_w + j * step_slot_w + step_slot_w/2 # 196, 308, 420, 532, 644
|
|
100
|
+
|
|
101
|
+
# Nodes
|
|
102
|
+
node_w = 100
|
|
103
|
+
node_h = 64
|
|
104
|
+
node_x(j) = step_cx(j) - node_w/2 # 146, 258, 370, 482, 594
|
|
105
|
+
node_y(k) = lane_y_top(k) + 8 # 44, 124, 204, 284
|
|
106
|
+
|
|
107
|
+
# Legend strip (bottom)
|
|
108
|
+
legend_y_top = header_h + n_lanes * lane_h # 356
|
|
109
|
+
legend_row_y = [legend_y_top + 16, legend_y_top + 37, legend_y_top + 59]
|
|
110
|
+
# 372, 393, 415
|
|
111
|
+
```
|
|
112
|
+
|
|
113
|
+
### 2.1 Background structure
|
|
114
|
+
|
|
115
|
+
- Paper fill across full viewBox.
|
|
116
|
+
- Dot pattern: 22×22 grid, `circle r=0.8`, `fill ink @ 0.10`.
|
|
117
|
+
- Alternating lane tints: odd-indexed lanes (0, 2, …) receive `ink @ 0.018` fill.
|
|
118
|
+
- Lane dividers: horizontal hairlines at every `lane_y_top(k)` and at `legend_y_top`, stroke `ink @ 0.12` width 0.8.
|
|
119
|
+
- Label column right border: vertical hairline at `x = label_col_w`, from `y = header_h` to `y = legend_y_top`.
|
|
120
|
+
|
|
121
|
+
### 2.2 Step header chip
|
|
122
|
+
|
|
123
|
+
Per step `j`:
|
|
124
|
+
|
|
125
|
+
```
|
|
126
|
+
chip_x(j) = step_cx(j) - 16 # 16×16 chip
|
|
127
|
+
chip_y = 6
|
|
128
|
+
chip_w = 32
|
|
129
|
+
chip_h = 16
|
|
130
|
+
chip_rx = 8 # pill-shaped
|
|
131
|
+
number_anchor = (step_cx(j), 14)
|
|
132
|
+
label_anchor = (step_cx(j), 29)
|
|
133
|
+
```
|
|
134
|
+
|
|
135
|
+
Default fill: `ink @ 0.12`, number text ink, label text muted.
|
|
136
|
+
Focal fill: `accent @ 0.20`, number + label text accent.
|
|
137
|
+
Per-step `color` override (§4): replaces the fill with `rgba(C, 0.20)` and the text fill with `C`.
|
|
138
|
+
|
|
139
|
+
### 2.3 Lane labels
|
|
140
|
+
|
|
141
|
+
Two-line `eyebrow` role label, both lines uppercase, fill muted:
|
|
142
|
+
- Line 1 at `(lane_label_x, lane_y_mid(k) - 4)`
|
|
143
|
+
- Line 2 at `(lane_label_x, lane_y_mid(k) + 8)`
|
|
144
|
+
|
|
145
|
+
Per-lane `color` override (§4): replaces the label fill with `C` and the lane tint with `rgba(C, 0.04)` (instead of the default `ink @ 0.018`).
|
|
146
|
+
|
|
147
|
+
### 2.4 Node content layout (inside the 100×64 rect)
|
|
148
|
+
|
|
149
|
+
```
|
|
150
|
+
role_chip rect 18×10 at (node_x+4, node_y+4), rx=3
|
|
151
|
+
role_chip_text centered at (node_x+13, node_y+9), eyebrow role, font-size=6, weight=600
|
|
152
|
+
title centered at (step_cx(j), node_y+23), node-name role, font-size=9
|
|
153
|
+
sub centered at (step_cx(j), node_y+35), sublabel role, font-size=6.5, muted
|
|
154
|
+
tool centered at (step_cx(j), node_y+47), sublabel role, font-size=6.5, soft
|
|
155
|
+
data chip IN rect 16×8 at (node_x+4, node_y+54), rx=3 # payload type entering the node
|
|
156
|
+
data chip OUT rect 16×8 at (node_x+80, node_y+54), rx=3 # payload type leaving the node
|
|
157
|
+
```
|
|
158
|
+
|
|
159
|
+
Empty cells (no node entry) render **nothing**. No placeholder rect, no role chip, no label — the cell is invisible.
|
|
160
|
+
|
|
161
|
+
---
|
|
162
|
+
|
|
163
|
+
## 3. Arrow rules (mandatory)
|
|
164
|
+
|
|
165
|
+
Four styles, bound to topology. Connectors are drawn **before** all node rects (z-order rule).
|
|
166
|
+
|
|
167
|
+
| `style` | Stroke | Width | Dash | Marker | When required |
|
|
168
|
+
|---|---|---|---|---|---|
|
|
169
|
+
| `muted` | `muted` | 1.0 | — | `arr-muted` | Standard data hand-off between steps or within a lane. |
|
|
170
|
+
| `trigger` | `muted` | 1.0 | `4,3` | `arr-muted` | Governance trigger — an admin action enables downstream work. Unlabelled. |
|
|
171
|
+
| `accent` | `accent` | 1.2 | — | `arr-accent` | Focal cross-role handoff. **Exactly one per diagram**, labeled. |
|
|
172
|
+
| `link` | `link` | 1.0 | — | `arr-link` | Published / externally-consumed output. |
|
|
173
|
+
|
|
174
|
+
**Defs block** (required, three markers):
|
|
175
|
+
|
|
176
|
+
```svg
|
|
177
|
+
<defs>
|
|
178
|
+
<pattern id="dots" width="22" height="22" patternUnits="userSpaceOnUse">
|
|
179
|
+
<circle cx="11" cy="11" r="0.8" fill="{ink @ 0.10}"/>
|
|
180
|
+
</pattern>
|
|
181
|
+
<marker id="arr-muted" markerWidth="6" markerHeight="6" refX="5" refY="3" orient="auto"><path d="M0,0 L6,3 L0,6 Z" fill="{muted}"/></marker>
|
|
182
|
+
<marker id="arr-accent" markerWidth="6" markerHeight="6" refX="5" refY="3" orient="auto"><path d="M0,0 L6,3 L0,6 Z" fill="{accent}"/></marker>
|
|
183
|
+
<marker id="arr-link" markerWidth="6" markerHeight="6" refX="5" refY="3" orient="auto"><path d="M0,0 L6,3 L0,6 Z" fill="{link}"/></marker>
|
|
184
|
+
</defs>
|
|
185
|
+
```
|
|
186
|
+
|
|
187
|
+
### 3.1 Routing rules (non-negotiable)
|
|
188
|
+
|
|
189
|
+
- **Single-bend routing:** horizontal-first, then vertical. Exit a node from the **right edge**; enter from the **left** (same-lane horizontal) or **top/bottom** (cross-lane vertical).
|
|
190
|
+
- **No diagonals.** Bends use an 8-px Q-bezier corner.
|
|
191
|
+
- **Same-step cross-lane (vertical)**: line directly between `(step_cx(j), lane_y_top(k_to)−12)` and `(step_cx(j), lane_y_top(k_to))`. Used for admin → engineers triggers under the same step.
|
|
192
|
+
- **Cross-lane cross-step (focal)**: exit right, run horizontal past the source node's right edge to a corridor x just before the target's step, then drop vertically.
|
|
193
|
+
- **Labels:** only the `accent` arrow gets a label. Use a paper-filled rect mask (opaque) 6 px behind the text. Other arrows are unlabelled.
|
|
194
|
+
- **Z-order:** all arrows emitted before any node rect (the rect fills mask the line ends inside the node).
|
|
195
|
+
|
|
196
|
+
---
|
|
197
|
+
|
|
198
|
+
## 4. Component color override
|
|
199
|
+
|
|
200
|
+
Any node, lane, or step may declare an optional `color: "#hex"`. Mirrors high-level §3.4 and dp-integration §4 so the rule reads identically across types.
|
|
201
|
+
|
|
202
|
+
### 4.1 Per-node `color`
|
|
203
|
+
|
|
204
|
+
Applied to:
|
|
205
|
+
|
|
206
|
+
| Element | Light | Dark |
|
|
207
|
+
|---|---|---|
|
|
208
|
+
| Container fill (`rect`) | `rgba(C, 0.06)` | `rgba(C_light, 0.10)` |
|
|
209
|
+
| Container stroke | `rgba(C, 0.35)` (stroke-width 1) | `rgba(C_light, 0.45)` |
|
|
210
|
+
| Role chip fill | `rgba(C, 0.18)` | `rgba(C_light, 0.22)` |
|
|
211
|
+
| Role chip text | `C` | `C_light` |
|
|
212
|
+
| Title text | `C` | `C_light` |
|
|
213
|
+
| Sub-label | **unchanged** (muted) | **unchanged** (muted) |
|
|
214
|
+
| Tool label | **unchanged** (soft) | **unchanged** (soft) |
|
|
215
|
+
| Data-type chips | **unchanged** | **unchanged** |
|
|
216
|
+
| Arrows touching this node | **unchanged** — topology-driven | **unchanged** |
|
|
217
|
+
|
|
218
|
+
`C_light` = the same hex lightened ~15% for dark-mode contrast (e.g., `#b85450` → `#d97a78`).
|
|
219
|
+
|
|
220
|
+
### 4.2 Per-step `color`
|
|
221
|
+
|
|
222
|
+
Replaces the step header chip's fill with `rgba(C, 0.20)` and the chip's number + label text fill with `C`. The legend's matching step entry uses the same colors.
|
|
223
|
+
|
|
224
|
+
### 4.3 Per-lane `color`
|
|
225
|
+
|
|
226
|
+
Replaces the lane stripe tint with `rgba(C, 0.04)` (only for odd-indexed lanes that receive a tint by default — or extend to all lanes if explicitly chosen) and the lane label text fill with `C`. Use sparingly; lane tints are easy to over-apply.
|
|
227
|
+
|
|
228
|
+
### 4.4 Rules
|
|
229
|
+
|
|
230
|
+
- **Never on focal nodes / focal steps.** The accent already carries that signal. A `color` on a focal element is ignored.
|
|
231
|
+
- **Never on arrows.** Arrows are topology-driven. If you want a colored edge, pick a different `style` from §3, not a color override.
|
|
232
|
+
- **Cap at 3 custom-colored elements** per diagram (nodes + lanes + steps combined), in addition to the focal pair (focal node + focal step header). Above 3 the visual signal starts to fragment — if you need more, split the diagram or rethink whether each color carries distinct meaning.
|
|
233
|
+
- **Subtitles and tool labels stay muted.** Only the primary identity (border + role chip + title + icon) carries the color signal.
|
|
234
|
+
|
|
235
|
+
### 4.5 Semantic palette (recommended)
|
|
236
|
+
|
|
237
|
+
Same palette as high-level / dp-integration so a reader scanning multiple diagrams sees the same colors meaning the same thing:
|
|
238
|
+
|
|
239
|
+
- `#b85450` rust-red — Security / Identity / Governance (admin nodes, LDAP, access control)
|
|
240
|
+
- `#5a7d9a` slate-blue — Observability / Quality (monitoring, data-quality gates, lineage)
|
|
241
|
+
- `#7a8c47` olive-green — Governance / Lineage (catalog, metadata)
|
|
242
|
+
- `#8c6d3f` warm-brown — Backup / DR / Archive
|
|
243
|
+
|
|
244
|
+
---
|
|
245
|
+
|
|
246
|
+
## 5. Focal rule
|
|
247
|
+
|
|
248
|
+
The data-flow diagram is built around **one cross-role handoff** that defines its central claim. Three focal slots, exactly one entry each:
|
|
249
|
+
|
|
250
|
+
- **One focal step** (`steps[j].focal: true`) — typically the analytical pivot (Analyze, Model, …). Header chip and legend chip both render in accent.
|
|
251
|
+
- **One focal node** (`nodes[i].focal: true`) — the node that *receives* the focal handoff. Accent border + accent role chip + ink title.
|
|
252
|
+
- **One focal arrow** (`arrows[i].style: "accent"`) — the cross-role handoff into the focal node. Solid accent stroke + labeled with a short payload descriptor (e.g., `anon data`).
|
|
253
|
+
|
|
254
|
+
If zero or >1 of any focal slot are declared, halt and ask the user.
|
|
255
|
+
|
|
256
|
+
---
|
|
257
|
+
|
|
258
|
+
## 6. Dark mode
|
|
259
|
+
|
|
260
|
+
| Token | Light | Dark |
|
|
261
|
+
|---|---|---|
|
|
262
|
+
| Paper | `paper` | `ink` |
|
|
263
|
+
| Ink | `ink` | `paper` |
|
|
264
|
+
| Muted | `muted` | `soft` |
|
|
265
|
+
| Soft | `soft` | `rule-solid` |
|
|
266
|
+
| Accent | `accent` | `accent` |
|
|
267
|
+
| Link | `link` | `link` |
|
|
268
|
+
| Dot pattern | `ink @ 0.10` | `paper @ 0.10` |
|
|
269
|
+
| Lane tint | `ink @ 0.018` | `paper @ 0.025` |
|
|
270
|
+
| Dividers | `ink @ 0.12` | `paper @ 0.12` |
|
|
271
|
+
| Default chip fill | `ink @ 0.12` | `paper @ 0.12` |
|
|
272
|
+
| Focal chip fill | `accent @ 0.20` | `accent @ 0.22` |
|
|
273
|
+
| Default node fill | `paper` | `paper @ 0.04` |
|
|
274
|
+
| Default node stroke | `ink @ 0.25` | `paper @ 0.20` |
|
|
275
|
+
| Focal node fill | `accent @ 0.07` | `accent @ 0.12` |
|
|
276
|
+
| Focal node stroke | `accent` | `accent` |
|
|
277
|
+
| Custom component colors | `C` | `C_light` (lighten ~15%) |
|
|
278
|
+
|
|
279
|
+
---
|
|
280
|
+
|
|
281
|
+
## 7. Reproducibility checklist (taste gate)
|
|
282
|
+
|
|
283
|
+
Before emitting SVG, verify **every** item:
|
|
284
|
+
|
|
285
|
+
1. `viewBox = "0 0 {viewBox_w} {viewBox_h}"` derived from `n_steps` and `n_lanes` via §2.
|
|
286
|
+
2. Header strip at `y=0..36`; legend strip at `y=legend_y_top..viewBox_h` (`legend_y_top = 36 + n_lanes * 80`).
|
|
287
|
+
3. Every node at `(step_cx(j) - 50, lane_y_top(k) + 8)` size `100×64`.
|
|
288
|
+
4. Empty cells render nothing — no placeholder rect, no text.
|
|
289
|
+
5. Exactly **one** focal step (`steps[j].focal: true`).
|
|
290
|
+
6. Exactly **one** focal node (`nodes[i].focal: true`).
|
|
291
|
+
7. Exactly **one** focal arrow (`style: accent`). Labeled, with a paper-masked rect behind the label.
|
|
292
|
+
8. All other arrows unlabelled.
|
|
293
|
+
9. All arrows emitted before any node rect (z-order rule).
|
|
294
|
+
10. Single-bend routing only — no diagonals. Q-bezier `r=8` at each bend.
|
|
295
|
+
11. Custom component colors ≤ 3 (in addition to the focal pair). Arrows never recolored by component `color`.
|
|
296
|
+
12. Subtitle and tool labels stay muted regardless of any component `color`.
|
|
297
|
+
|
|
298
|
+
---
|
|
299
|
+
|
|
300
|
+
## 8. Data-type chips reference (input + output)
|
|
301
|
+
|
|
302
|
+
Small `16×8 rx=3` badges at the bottom of each node, one for input and one for output. Position is **non-negotiable**:
|
|
303
|
+
|
|
304
|
+
- **Input chip** at `(node_x+4, node_y+54)` — bottom-**left** of the node. Represents the payload format *entering* the node from upstream.
|
|
305
|
+
- **Output chip** at `(node_x+80, node_y+54)` — bottom-**right** of the node. Represents the payload format *leaving* the node toward downstream.
|
|
306
|
+
|
|
307
|
+
Either chip may be omitted (e.g., a sink node has only an input chip; a source-only node has only an output chip). Reading the diagram becomes a payload-transformation trace: scan a row, read each node's input → output, and you see exactly what shape the data takes at each hand-off.
|
|
308
|
+
|
|
309
|
+
### Chip codes
|
|
310
|
+
|
|
311
|
+
| Code | Color | Meaning |
|
|
312
|
+
|------|-------|---------|
|
|
313
|
+
| `WB` | `#6e6479` (mauve) | Web / Public data |
|
|
314
|
+
| `DB` | `#5e7a9b` (steel-blue) | Dataset / Raw file |
|
|
315
|
+
| `TB` | `#b8915a` (amber) | Table / Analysis-ready |
|
|
316
|
+
| `FL` | `#9c6b50` (sienna) | File / Report / Export |
|
|
317
|
+
| `LS` | `#4a7c59` (forest) | Live stream / Event |
|
|
318
|
+
|
|
319
|
+
Text inside chip: white, `eyebrow` role at 5px, weight 700.
|
|
320
|
+
|
|
321
|
+
Data-type chip colors are a **separate semantic axis** from the per-node color override (§4). The chip colors describe *payload format*; the node color override describes *concern type* (governance, observability, …). Don't conflate them — a node can have both an `out: TB` amber chip and a rust-red border color simultaneously.
|
|
322
|
+
|
|
323
|
+
---
|
|
324
|
+
|
|
325
|
+
## 9. Legend (3- or 4-row strip)
|
|
326
|
+
|
|
327
|
+
Each row introduced by a category label at `x=144`. The default legend has **3 rows** (`STEPS` / `DATA TYPE` / `FLOW`); when one or more nodes carry a `color` override (§4), add a 4th `CONCERN` row and grow `legend_h` to 100 (so `viewBox_h = header_h + n_lanes·80 + 100`).
|
|
328
|
+
|
|
329
|
+
- **Row 1 — `STEPS`** at `y = legend_y_top + 16`: repeat the header chips with their labels. Focal step keeps accent fill.
|
|
330
|
+
- **Row 2 — `DATA TYPE`** at `y = legend_y_top + 37`: one swatch per chip type actually used in the diagram. **Append a small sub-hint** in the muted `sublabel` role after the chips: `left chip = input · right chip = output`. This makes the position-based input/output convention explicit for first-time readers.
|
|
331
|
+
- **Row 3 — `CONCERN`** (only when color overrides are present) at `y = legend_y_top + 58`: one mini-rect per custom color used, with its semantic label (e.g., `Identity · Governance`, `Data Quality · Observability`). The focal accent swatch is also shown here so the reader sees all three colored axes side-by-side.
|
|
332
|
+
- **Row 4 — `FLOW`** (last row, position depends on whether `CONCERN` row exists): short line segments with their marker + text label, one per arrow style actually used.
|
|
333
|
+
|
|
334
|
+
All legend items align on a single horizontal strip per row. Do not stack vertically inside a box.
|
|
335
|
+
|
|
336
|
+
---
|
|
337
|
+
|
|
338
|
+
## 10. Complexity budget
|
|
339
|
+
|
|
340
|
+
| Dimension | Max |
|
|
341
|
+
|---|---|
|
|
342
|
+
| Lanes (roles) | 4 |
|
|
343
|
+
| Steps | 6 |
|
|
344
|
+
| Nodes per lane | Nodes = active steps only — empty cells are invisible (no placeholder box) |
|
|
345
|
+
| Labelled arrows | 1 (focal accent only) |
|
|
346
|
+
| Data-type chips per node | 2 |
|
|
347
|
+
| Custom-colored elements (§4) | 3 (in addition to focal node + focal step) |
|
|
348
|
+
|
|
349
|
+
Above 4 lanes or 6 steps: split into two diagrams (e.g., ingestion pipeline / analytics pipeline).
|
|
350
|
+
|
|
351
|
+
---
|
|
352
|
+
|
|
353
|
+
## 11. Anti-patterns
|
|
354
|
+
|
|
355
|
+
- **Placeholder empty cells** — if a role doesn't participate in a step, leave the cell empty (no box, no text).
|
|
356
|
+
- **More than one labelled arrow** — only the focal cross-role handoff gets a label.
|
|
357
|
+
- **Diagonal arrows** — always horizontal-first, then vertical; single right-angle bend.
|
|
358
|
+
- **`title` role for node titles** — node titles use the `node-name` role (technical context). Only the page `<h1>` uses `title`.
|
|
359
|
+
- **Accent on more than one node, one step, one arrow** — focal = one node + one step + one arrow, max.
|
|
360
|
+
- **`node-name` role for role labels** — lane labels always use the uppercase `eyebrow` role (they are identifiers, not prose).
|
|
361
|
+
- **`color` override on a focal element** — ignored. Accent always wins.
|
|
362
|
+
- **Custom-colored arrows** — arrows are topology-driven. Color on a node never spreads to its edges.
|
|
363
|
+
- **Lane tints over-applied** — a tint on every lane reads as decoration, not signal. Apply to ≤1 lane.
|
|
364
|
+
|
|
365
|
+
---
|
|
366
|
+
|
|
367
|
+
## 12. Examples
|
|
368
|
+
|
|
369
|
+
- `assets/example-data-flow.html` — minimal light (the platform, 4-role × 5-step: Admin, Engineers, Scientists, Consumers). Gallery default.
|
|
370
|
+
- `assets/example-data-flow-dark.html` — same, dark skin.
|
|
371
|
+
- `assets/example-data-flow-full.html` — same, editorial-card frame.
|
|
372
|
+
- `assets/example-data-flow-extended.html` — exercises §4 color override: Access Control node in rust-red (governance), Clean & Stage node in slate-blue (data quality). Focal accent on Analyze step + Explore & Model node + anon-data arrow unchanged.
|
|
373
|
+
- `assets/example-data-flow-extended-dark.html` — extended pattern, dark skin.
|
|
374
|
+
- `assets/example-data-flow-extended-full.html` — extended pattern, editorial-card frame.
|