dashboard-edit
Edit an existing chart or its adapter. Opens a session targeting the chart, makes changes, and promotes back to the dashboard.
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
メニュー
Edit an existing chart or its adapter. Opens a session targeting the chart, makes changes, and promotes back to the dashboard.
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
SOC 職業分類に基づく
Start a new dashboard session. Define a datasource, generate an adapter, build charts, and promote to the dashboard. Claude does the reasoning; the human approves proposals.
Promote the current .session/ to the dashboard. Shows a summary and asks for confirmation before running bin/promote.
Open the session preview in the browser. Shows all charts currently in .session/charts.json at http://localhost:5173/d/<slug>/preview.
Re-run data adapters to pull fresh data into dashboards/*/data/*.json. Optionally target a specific dashboard or adapter by slug.
| name | dashboard-edit |
| description | Edit an existing chart or its adapter. Opens a session targeting the chart, makes changes, and promotes back to the dashboard. |
Edit an existing chart or its adapter.
Run bin/session-status. If an incomplete session exists, ask to resume or discard (same as dashboard:new Step 1).
Read .session/context.json if present — this gives the active dashboard slug.
If no context.json, determine the target dashboard from:
If the target dashboard slug is not already known, list existing dashboards/*/dashboard.json files, then:
Write .session/context.json:
{ "dashboard": "<slug>" }
If no chart-id was provided as an argument, list all charts from dashboards/<slug>/dashboard.json:
Charts in <slug>:
1. <title> (id: <id>)
2. <title> (id: <id>)
...
AskUserQuestion: "Which chart do you want to edit?"
.session/Silently populate .session/ from the existing chart:
dashboards/<slug>/adapters/<adapter-slug>.py → .session/adapter.pydashboards/<slug>/dashboard.json["charts"][chartId] → write .session/charts.json (as a single-item array)dashboards/<slug>/dashboard.json["sections"] → write .session/placement.json.session/datasource.json with "is_edit": true and "replaces_chart_id": "<chartId>"Run the current adapter with the correct env var to get fresh data for context:
DASHBOARD_DIR=dashboards/<slug> python .session/adapter.py
Ask a single open question:
"What would you like to change about ?"
From the answer, immediately determine the scope and do the work silently:
.session/adapter.py, re-run it with DASHBOARD_DIR=dashboards/<slug>, inspect output, regenerate ECharts option if data shape changed.session/charts.json.session/placement.jsonThen open preview (bin/start --preview) which opens /d/<slug>/preview and propose what changed:
Here's what I changed:
Adapter: <describe change, or "unchanged">
Chart: <describe change, or "unchanged">
Placement: <describe change, or "unchanged">
Open preview: http://localhost:5173/d/<slug>/preview
Does this look right?
Iterate until confirmed.
Show a summary noting this is an update:
Ready to update dashboard:
Dashboard: <slug>
Chart: <title> (replacing existing id: <id>)
Adapter: dashboards/<slug>/adapters/<slug>.py (overwritten)
Section: <name> (layout unchanged)
Promote?
AskUserQuestion: Yes, promote | Go back and adjust
On approval: run bin/promote. The existing chart entry is replaced.
dashboard.json directly.bin/promote without confirmation.is_edit: true in datasource.json tells bin/promote to replace rather than append.DASHBOARD_DIR env var for output paths..session/context.json before other artifacts.