Repository navigation
improve(ui): Skill Workshop shows each skill with its changes, files, and history in one view - #167440
Conversation
… history and diffs
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: needs maintainer review before merge. What this changesReorganizes Skill Workshop into a unified skill list and detail view with rendered instructions, support files, history, version comparisons, sorting, and inactivity notices. Example: The operator selects release-notes and compares an earlier version.
Review scores
ProductKind: Feature · Worth it: Yes Merge readiness✅ Ready for maintainer review This PR remains useful and distinct from current main. All previously reported findings are resolved, and no remaining actionable defect was found. Priority: P2 Before mergeNone. FindingsNone. Agent review detailsHow this fits togetherSkill Workshop holds procedures learned by an agent. Its Control UI reads skills, files, changes, and saved versions from the Gateway and sends existing archive and restore requests. flowchart LR
A[Selected agent] --> B[Gateway skill inventory]
B --> C[Active and archived list]
C --> D[Selected skill detail]
E[Changes and saved versions] --> D
D --> F[Instructions files and comparisons]
D --> G[Archive or restore request]
G --> B
Technical reviewBest possible solution: Keep the consolidated view on the existing Workshop read and mutation contracts, with Gateway-owned cleanup policy and sanitized document rendering. Do we have a high-confidence way to reproduce the issue? Not applicable as a feature improvement; current-main source and the inspected Before screenshot establish the existing fragmented presentation. Is this the best way to solve the issue? Yes: the change consolidates the existing Workshop surface, reuses its Gateway contracts, and preserves retained-version access without creating another state or authorization owner. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 69e38767e7fe. Provenance checked
TestingProof path: shipped entry point. SecurityNone. EvidenceWhat I checked:
PR surfaceSource +1124, Tests 0, Docs +6, Other +187. Total +1317 across 11 files. Added test files: 0. View PR surface stats
LabelsLabel changes:
Label justifications:
Rating scale6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior. WorkflowClawSweeper edits this one comment on every review. Comment HistoryReview history (3 earlier review cycles)
Reviewed October 8, 2026, 5:17 PM ET / 21:17 UTC (Revision 4). |
|
Landed in a42afa5. The Skill Workshop page is now one list/detail view: each skill with its latest change and Undo, rendered instructions, support files, and a history with diffs against today. Archive is a clear danger action, and skills are sorted by use. |
… and history in one view (openclaw#167440) ## What Problem This Solves The Skill Workshop page split one thing across three disconnected sections: a skill list, a separate Archived block, and a Recent changes feed at the bottom of the page. A skill's file viewer showed raw frontmatter, saved versions were hidden in a dropdown, Archive was barely visible, and nothing warned that unused skills get archived automatically. ## User Impact User impact: operators see each learned skill with its latest change and **Undo** in one place, read its instructions as rendered markdown, browse its support files, and step through its history with a diff against today before restoring. Skills are sorted by most used, Archive is a clear danger action, and skills idle for two weeks are flagged, since unused-skill cleanup may archive them at 30 days. No Gateway, protocol, or stored-data change. ## Why This Change Was Made The page is now one list/detail view built around the skill: - **List:** Active and Archived as one toggle; sort by Most used (default), Recently active, or Name. Each row shows uses, its latest change (who, why, when) with **Undo**, and an "Unused Nd" badge after 14 idle days while learning is on. - **Detail:** name, description, and one metadata line (uses, last used, creator, saved versions), with a danger **Archive** (or **Restore** for archived skills). Tabs: - **Instructions:** SKILL.md body as markdown, frontmatter stripped. - **Files:** support files; markdown renders, scripts show as code. - **History:** the skill's changes as a timeline with **Undo** / **Restore before**, and **Compare**, which shows a line diff from the version before that change to today with **Restore this version**. - **Header:** agent, the Learning Off/Auto switch, and **Learn from history** share one compact bar. The first skill is selected on load, so the detail pane is never empty. Archiving or restoring follows the skill to its list. The view is split into `view.ts` (page and list), `detail.ts` (detail pane and diff), and `view-shared.ts` (types and shared helpers). The mock Gateway now has support files, several versions, and a long-unused skill, and its restore summaries match the Gateway's wording. ## Evidence Same mock data on both sides (`pnpm dev:ui:mock`). **Before**  **After**  | History | Compare with today | |---|---| |  |  | | Support files | Archived | |---|---| |  |  | - Exercised in the browser: list sorting and selection, History, Compare and Back to current, Files, the Archived list, and an archive → restore round trip (the detail pane follows the skill between lists). - Edge cases, exercised in the browser against mock data built for them: - A retained version whose change fell out of the agent-wide recent feed is still listed in History ("Saved before it was updated · 20d ago") with Compare and Restore. - A saved version shows its own support files: budget-reconciliation's pre-script version lists 0 files, not today's 2. - A change whose saved version was pruned shows neither Compare nor Undo, in History or on the list row. - Comparing two 3,000-line versions skips the line diff (it would need a 9M-cell table) and shows the saved version with a note instead. Diffs trim the common prefix and suffix first and cap the table at 2M cells. | Older retained version | Large diff fallback | |---|---| |  |  | - `tsgo:ui`, oxlint, `ui:i18n:verify`, Workshop page tests (9) and the plugins-hub navigation and native-embed e2e suites (19) pass. - Docs: `docs/tools/skill-workshop.md` and `docs/tools/self-learning.md` describe the new page. No overlap with Pash/Sarah changes. **Merge danger:** two-way door. Control UI presentation, English strings, docs, and the mock fixture only; a revert fully restores the old page. Blast radius: operators using the Skill Workshop page. New strings fall back to English until the locale-refresh workflow translates them. Co-authored-by: Ayaan Zaidi <[email protected]>
…168001) A saved version of a live skill showed today's description in the detail header, and the Before/Today diff stripped frontmatter from both sides, so a description-only change rendered as "matches today's instructions". The header now uses the saved version's own frontmatter description, and the comparison diffs the full SKILL.md so metadata changes appear in the existing line diff. Regressed in #167440.
…penclaw#168001) A saved version of a live skill showed today's description in the detail header, and the Before/Today diff stripped frontmatter from both sides, so a description-only change rendered as "matches today's instructions". The header now uses the saved version's own frontmatter description, and the comparison diffs the full SKILL.md so metadata changes appear in the existing line diff. Regressed in openclaw#167440.
What Problem This Solves
The Skill Workshop page split one thing across three disconnected sections: a skill list, a separate Archived block, and a Recent changes feed at the bottom of the page. A skill's file viewer showed raw frontmatter, saved versions were hidden in a dropdown, Archive was barely visible, and nothing warned that unused skills get archived automatically.
User Impact
User impact: operators see each learned skill with its latest change and Undo in one place, read its instructions as rendered markdown, browse its support files, and step through its history with a diff against today before restoring. Skills are sorted by most used, Archive is a clear danger action, and skills idle for two weeks are flagged, since unused-skill cleanup may archive them at 30 days. No Gateway, protocol, or stored-data change.
Why This Change Was Made
The page is now one list/detail view built around the skill:
The first skill is selected on load, so the detail pane is never empty. Archiving or restoring follows the skill to its list. The view is split into
view.ts(page and list),detail.ts(detail pane and diff), andview-shared.ts(types and shared helpers). The mock Gateway now has support files, several versions, and a long-unused skill, and its restore summaries match the Gateway's wording.Evidence
Same mock data on both sides (
pnpm dev:ui:mock).Before
After
tsgo:ui, oxlint,ui:i18n:verify, Workshop page tests (9) and the plugins-hub navigation and native-embed e2e suites (19) pass.docs/tools/skill-workshop.mdanddocs/tools/self-learning.mddescribe the new page.Merge danger: two-way door. Control UI presentation, English strings, docs, and the mock fixture only; a revert fully restores the old page. Blast radius: operators using the Skill Workshop page. New strings fall back to English until the locale-refresh workflow translates them.