Bundle the visualize-* skill set and seed it into workspaces - #2
Open
Rockdu wants to merge 2 commits into
Open
Conversation
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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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 (recompilingsrc-taurirestarts 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), andvisualize-agent-trace(a session's causal DAG). Includesinstall.shand askills/README.md.scripts/setup.sh(step 5d): symlinks the set into~/.claude/skills(idempotent), so the orchestrator and any localclaudesession pick it up out of the box.src-tauri/src/workspaces.rs: on workspace creation, best-effort symlink every bundledvisualize-*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
src-tauricompiles and all 57workspacestests pass, including the newseed_workspace_skills_links_bundled_visualize_skillstest (only linksvisualize-*, resolves the global symlink to the real dir, idempotent, non-destructive).setup.shhandles the user-global orchestrator scope;workspaces.rshandles per-workspace project scope. They're independent so removing one doesn't break the other../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