Skip to content

feat: discover and display per-agent workspace skill roots#426

Merged
0xNyk merged 1 commit intomainfrom
feat/workspace-skill-roots
Mar 17, 2026
Merged

feat: discover and display per-agent workspace skill roots#426
0xNyk merged 1 commit intomainfrom
feat/workspace-skill-roots

Conversation

@0xNyk
Copy link
Member

@0xNyk 0xNyk commented Mar 17, 2026

Summary

  • Dynamically scan workspace-* directories under the openclaw state dir in both skill-sync.ts and skills/route.ts
  • Display per-agent workspace skill roots in the Skills Hub with agent-specific labels
  • Add getSourceLabel() function for dynamic source label resolution with violet badge styling for workspace-* sources

Closes #412. Supersedes #413.

Risk Level

Low — additive feature, no breaking changes. Falls back gracefully when no workspace-* directories exist.

Tests

  • pnpm typecheck — passes
  • pnpm test — 710/710 passing

Contribution Checklist

  • Tests added/updated for behavior changes
  • Lint/typecheck/build passing

Notes

The dynamic scanning uses readdirSync + existsSync which is consistent with the existing synchronous pattern in skill-sync.ts.

Dynamically scan workspace-* directories under the openclaw state dir
to discover per-agent skill roots. Display them in the Skills Hub with
agent-specific labels and violet badge styling.

Closes #412
Supersedes #413
@github-actions github-actions bot added the screenshot-drift UI changed — README screenshots may need updating label Mar 17, 2026
@github-actions
Copy link

📸 Screenshot Drift Check

This PR modifies UI source files. Please verify whether the README screenshots need refreshing:

  • docs/mission-control-overview.png — main dashboard
  • docs/mission-control-agents.png — agents panel
  • docs/mission-control-memory-graph.png — memory graph
Changed UI files
src/app/api/skills/route.ts
src/components/panels/skills-panel.tsx

See docs/SCREENSHOT-GUIDE.md for instructions on capturing and optimising screenshots.

This comment is posted automatically and can be dismissed if no visual changes occurred.

@0xNyk 0xNyk merged commit 2f2531f into main Mar 17, 2026
1 of 2 checks passed
@0xNyk 0xNyk deleted the feat/workspace-skill-roots branch March 17, 2026 06:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

screenshot-drift UI changed — README screenshots may need updating

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Enhancement] Show per-agent workspace skill roots in Skills Hub

1 participant