AGENT SKILL

pi-dashboard-control

Control the local pi-dashboard over its REST API with curl - list pi sessions, send a prompt, abort a run, spawn a session. Use after pi-dashboard-bootstrap has printed BASE, whenever the user wants to see or steer pi sessions.

License 许可
MIT
最近更新
2026-11-12
Stars
★ 348
Forks
56

01 前言 Front Matter

name
pi-dashboard-control
description
Control the local pi-dashboard over its REST API with curl - list pi sessions, send a prompt, abort a run, spawn a session. Use after pi-dashboard-bootstrap has printed BASE, whenever the user wants to see or steer pi sessions.

02 资源文件 2

03 SKILL.md 正文

Control pi sessions through the dashboard

Run pi-dashboard-bootstrap first and use its literal BASE (for example http://localhost:8000). REST is the command path. Full endpoint list: references/api-reference.md.

curl -s BASE/api/health
curl -s BASE/api/sessions
curl -s -X POST BASE/api/session/ID/prompt -H 'Content-Type: application/json' -d '{"text":"run the tests"}'
curl -s -X POST BASE/api/session/ID/abort -H 'Content-Type: application/json' -d '{}'
curl -s -X POST BASE/api/session/spawn -H 'Content-Type: application/json' -d '{"cwd":"/path/to/project"}'
# optional: "model":"@planning" (or provider/id), "thinkingLevel":"high", "initialPrompt":"...", "attachProposal":"<change>"
# @role resolves once at spawn time; an invalid model, unknown role or bad level returns 400

Take ID from GET /api/sessions. Replace BASE with the literal URL every time.

To be notified when a session asks a question or finishes a run instead of polling, use the pi-dashboard-watch skill.

View a session in the browser

To show a session to the user, list sessions and open that row's uiUrl (or diffUrl for the changes view) in your browser pane:

curl -s BASE/api/sessions
  1. Use the full id, or the row's uiUrl / diffUrl, exactly as listed. Never shorten the id: build BASE/session/<full id> only when you have no uiUrl. When auth is on, this listing follows the token rules in "When a call is refused" below. The sign-in in the pane is separate and gives you no token.
  2. Add ?embed=1 for a narrow pane: the page then shows the session without the session list.
  3. If the page asks to sign in, ask the user to sign in inside the pane. Never put a token or any credential in a URL.
  4. "Session not found" means a wrong, shortened or archived id: list again and use a full id. A session that is no longer listed is in GET /api/sessions/archived (50 per page: while the response has a nextCursor, request the next page with ?cursor=<nextCursor> until you find it): open BASE/session/<full id>?archived=1.

Other pages (folders, OpenSpec board and archive) are listed in the "UI routes (browser)" section of references/api-reference.md.

When a call is refused

A 401, or a 403 with "reason":"local_proof_required", means the dashboard needs a token. Ask the user to run:

pi-dashboard token create --label claude-code --tier control

control covers prompt, spawn and abort. Ask for a higher tier only if the user explicitly wants one.

Preferred: the user saves the line Authorization: Bearer <token> in a file they create with owner-only permissions and tells you its path. Never create that file yourself. Send every credentialed request in the same command as a verification, so credentials only reach a verified dashboard:

sh "${CLAUDE_SKILL_DIR}/../pi-dashboard-bootstrap/scripts/ensure-dashboard.sh" --check && curl -s -H @/path/to/header-file BASE/api/sessions

Otherwise accept a token the user pastes, send it only as an Authorization: Bearer header, and never write it to a file or repeat it in output. Tell the user it then stays in the conversation history.

Never add curl verbose or trace options to credentialed requests: they print the header.

04 同仓库更多 Skills

BlackBeltTechnology
BlackBeltTechnology/pi-agent-dashboard

youtube-srt

Download YouTube subtitles (SRT + timestamped TXT) for a channel, playlist or video via yt-dlp, no media download; optionally mine them into a categorized catalog (e.g. AI models by function, open weights, local runnability, hardware tier). Use on "download the srt of this video", "transcripts of channel X for the last N months", "catalog the models AI Search talked about", "update docs/models".

★ 348
BlackBeltTechnology
BlackBeltTechnology/pi-agent-dashboard

video-transcription

Transcribe video and audio files to SRT subtitles with speaker diarization using the Soniox (default) or AssemblyAI API. Use when the user wants to transcribe meetings, videos, or audio files. Supports MKV, MP4, MOV, M4A, MP3. Triggers on "/transcribe", "transcribe my meetings", "transcribe videos in ~/Movies", or any request to convert audio/video to text.

★ 348
BlackBeltTechnology
BlackBeltTechnology/pi-agent-dashboard

speaker-id

Name anonymous diarized SRT speakers from a persistent local voiceprint library and repair speaker drift; local, CPU-only, no API key. Triggers "who is speaker 2", "put names on the transcript", "label the meeting SRT", "the diarization split one person into three", "enroll my voice". Backed by the pi-voiceid CLI.

★ 348
BlackBeltTechnology
BlackBeltTechnology/pi-agent-dashboard

veo-showreel-production-kit

Turn a video timeline + voiceover into a reproducible, sliceable Veo 3.1 prompt package with a consistency anchor and AI storyboard sketches.

★ 348
BlackBeltTechnology
BlackBeltTechnology/pi-agent-dashboard

veo-generator

Render a scripted video project into mp4 clips with the Google Veo 3.1 API. Reads a project's shot package (shots/*.md), one clip per camera cut, reusing each shot's prompt and sketch — world anchor only with `--with-reference`, seed unless `--no-seed`. Use on "render the Veo video for <project>", "generate the videos from the shot scripts", "make the clips with Veo".

★ 348
BlackBeltTechnology
BlackBeltTechnology/pi-agent-dashboard

hyperframes-showreel

Turn real screen and site footage into a rhythmic showreel rendered with HyperFrames: sampling, edit script, redacted clips, a generated composition, Veo only as additive FX, music edit + camera punches, delivery render and export QA. Use on "make a showreel from these recordings", "build the HyperFrames video", "assemble the footage edit", "render and QA the showreel".

★ 348