Skip to content

Bundle the visualize-* skill set and seed it into workspaces#2

Open
Rockdu wants to merge 2 commits into
mainfrom
visualize-skills
Open

Bundle the visualize-* skill set and seed it into workspaces#2
Rockdu wants to merge 2 commits into
mainfrom
visualize-skills

Conversation

@Rockdu

@Rockdu Rockdu commented Jul 6, 2026

Copy link
Copy Markdown
Owner

What & why

Adds a bundled visualize-* skill set so the platform's orchestrator agent can "visualize anything" — a repo, a PR, all the platform's agents, or one agent's trace (来龙去脉) — as self-contained HTML (no CDN, Artifact-CSP-safe). Designed by the in-platform orchestrator agent; the backend piece couldn't be applied from inside the running platform (recompiling src-tauri restarts it), so it lands here from a separate session.

Changes

  • skills/: a router skill (visualize-anything, with a shared dependency-free SVG/CSS render engine) plus four sub-skills — visualize-repo, visualize-pr, visualize-agents (labeled relationship map with per-agent "doing" cards + condensed causal narratives), and visualize-agent-trace (a session's causal DAG). Includes install.sh and a skills/README.md.
  • scripts/setup.sh (step 5d): symlinks the set into ~/.claude/skills (idempotent), so the orchestrator and any local claude session pick it up out of the box.
  • src-tauri/src/workspaces.rs: on workspace creation, best-effort symlink every bundled visualize-* skill into <workspace>/.claude/skills/, so agents launched inside a workspace get project-scoped access independent of the user-global install. Source is $AGENT_PLATFORM_SKILLS_DIR (tests/custom) else ~/.claude/skills; entries are canonicalized so links point at the real dirs and survive removal of the global links. Never fails workspace creation (any error just skips seeding). Unix-only (no-op elsewhere).
  • README.md: usage bullet in both languages.

Reviewer notes

  • Verified: src-tauri compiles and all 57 workspaces tests pass, including the new seed_workspace_skills_links_bundled_visualize_skills test (only links visualize-*, resolves the global symlink to the real dir, idempotent, non-destructive).
  • Two-layer wiring is intentional: setup.sh handles the user-global orchestrator scope; workspaces.rs handles per-workspace project scope. They're independent so removing one doesn't break the other.
  • Takes effect after the platform is rebuilt (./scripts/setup.sh / npm run tauri dev), which restarts it — hence this couldn't be self-applied by the orchestrator agent.

🤖 Generated with Claude Code

Rockdu and others added 2 commits July 6, 2026 15:47
Adds skills/ — a router skill (visualize-anything, with a shared
dependency-free SVG/CSS render engine) plus four sub-skills:
visualize-repo, visualize-pr, visualize-agents (labeled relationship
map with per-agent "doing" cards and condensed causal narratives),
and visualize-agent-trace (a session's 来龙去脉 as a causal DAG).
All output is self-contained HTML (no CDN, Artifact-CSP-safe).

setup.sh step 5d links the set into ~/.claude/skills (idempotent),
so the orchestrator can visualize repos, PRs, and the platform's own
agents out of the box. README gains a usage bullet in both languages.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Completes the visualize-* skill wiring from c8b8e28. On workspace
creation, best-effort symlink every bundled `visualize-*` skill into
`<workspace>/.claude/skills/` so agents launched inside a workspace get
project-scoped access out of the box, independent of the user-global
`~/.claude/skills` install.

Source is `$AGENT_PLATFORM_SKILLS_DIR` (tests/custom) else
`~/.claude/skills` (populated by setup.sh step 5d). Entries are
canonicalized so workspace links point at the real skill dirs and
survive removal of the global links. Never fails workspace creation:
any error just skips seeding. Unix-only (no-op elsewhere).

This backend change couldn't be applied by the in-platform orchestrator
agent that designed it — recompiling src-tauri restarts the running
platform — so it lands here from a separate session. Verified: compiles
and all 57 workspaces tests pass, including the new seeding test.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant