Skip to content

improve(ui): Skill Workshop shows each skill with its changes, files, and history in one view - #167440

Merged
obviyus merged 5 commits into
mainfrom
feat/skill-workshop-ui-iter
Oct 8, 2026
Merged

obviyus merged 5 commits into
mainfrom
feat/skill-workshop-ui-iter

Conversation

@obviyus

@obviyus obviyus commented Oct 8, 2026 •

Copy link
Copy Markdown
Collaborator

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

before

After

after

History Compare with today
history compare
Support files Archived
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
older versions large diff
  • 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.

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.

@clawsweeper

clawsweeper Bot commented Oct 8, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

ClawSweeper review complete

ClawSweeper finished reviewing this revision. The review result is being finalized.

View the workflow run.

@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation app: web-ui App: web-ui scripts Repository scripts size: XL labels Oct 8, 2026
@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. merge-risk: 🚨 availability 🚨 May cause crashes, hangs, restart loops, stalls, or process outages. merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. proof: sufficient ClawSweeper judged the real behavior proof convincing. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. labels Oct 8, 2026
@clawsweeper

clawsweeper Bot commented Oct 8, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge.

What this changes

Reorganizes 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.

  • Before: Instructions appear as raw text, and saved versions are selected through a dropdown.
  • After: Instructions render as markdown, and Compare highlights “Group entries by package” against today's “Group entries by user-visible impact.”

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A useful, coherent UI improvement with direct browser proof and all prior findings resolved.
Proof confidence 🦞 diamond lobster (5/6) ✨ media proof bonus Sufficient (screenshot): The real Control UI browser captures against the mock Gateway show the changed list/detail owner rendering instructions, history, and saved-to-current comparisons; the body records interaction and recovery scenarios. Unavailable additional attachments are a reviewer limitation. No stored-data contract changes.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Feature · Worth it: Yes
User problem: Operators must move between disconnected sections to understand a learned skill, inspect its files, and recover an earlier version.
Reason: The consolidated presentation makes existing recovery and inspection capabilities easier to use. Prior merged area work establishes the author's ownership, and the change preserves the direct, versioned learning design.

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
Reviewed head: 293bab085619f26ca9e6547ef80b4639a3dbbf38

Before merge

None.

Findings

None.

Agent review details

How this fits together

Skill 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
Loading

Technical review

Best 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

Testing

Proof path: shipped entry point.

Security

None.

Evidence

What I checked:

  • Current-main necessity: Current main retains the separate recent-change feed, raw file viewer, and version dropdown. The merge-base-to-fetched-main comparison is empty for the introduced paths, so this presentation improvement remains distinct. (ui/src/pages/skill-workshop/view.ts:176, 69e38767e7fe)
  • Latest finding resolved: The latest commit qualifies the tooltip and notice: cleanup can archive skills “on agents where it runs.” This respects the existing cleanup exclusions for sandboxed agents and non-OpenClaw runtimes. The exact commit patch was inspected through REST after local previous-head comparison encountered an unavailable promisor blob and HTTP 403. (ui/src/i18n/locales/en-skill-workshop.ts:39, 293bab085619)
  • Earlier findings resolved: History includes retained versions outside the recent feed and inspection links for archive snapshots; pruned versions have no Compare action; saved files use the selected version's inventory; markdown uses complete-document mode; comparison trims common lines and caps its table at 2,000,000 cells. (ui/src/pages/skill-workshop/detail.ts:43, 293bab085619)
  • Inspected browser proof: Inspected the prepared Before, After, History, and Compare screenshots. They directly show the unified layout, rendered release-notes instructions, timeline actions, and saved-to-current line comparison. The complete supplied body records browser interactions through pnpm dev:ui:mock, including sorting, support files, archive/restore, and edge cases. Captured body identity: 012664f7a79be37c58efb1538ae0519c5d046d024ce0c198d48fbb02d0cb488c. Four additional attachments are absent from the prepared manifest, and browser retrieval returned Cache miss; that is a reviewer limitation. (293bab085619)
  • Existing area direction: GitHub verifies that obviyus authored the merged Workshop implementation at refactor(skills): make Skill Workshop a direct, versioned self-learning loop #161057 and the learning-session change at feat(skills): open past-work learning in a normal session #142909. Current-main feature history connects the present view and read owner to those changes, supporting area ownership independently of this PR's authorship. (ui/src/pages/skill-workshop/skill-workshop-page.ts:141, cfee851150c5)
  • Contract and security scope: The introduced diff changes presentation and mock fixtures without changing stored formats, config defaults, Gateway methods, or mutation authority. Markdown uses the existing sanitizing renderer; archive and restore retain existing access checks and Gateway requests. Theme colors referenced by the latest commit exist in both dark and light token definitions. (ui/src/pages/skill-workshop/view-shared.ts:15, 293bab085619)

PR surface

Source +1124, Tests 0, Docs +6, Other +187. Total +1317 across 11 files. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 6 1498 374 +1124
Tests 2 2 2 0
Docs 2 13 7 +6
Config 0 0 0 0
Generated 0 0 0 0
Other 1 229 42 +187
Total 11 1742 425 +1317

Labels

Label changes:

  • add rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🦞 diamond lobster and patch quality is 🐚 platinum hermit.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.
  • remove rating: 🦐 gold shrimp: Current PR rating is rating: 🐚 platinum hermit, so this older rating label is no longer current.
  • remove status: ⏳ waiting on author: Current PR status label is status: 👀 ready for maintainer look.

Label justifications:

  • P2: This improves a bounded operator workflow with limited user impact.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🦞 diamond lobster and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.
  • proof: sufficient: Contributor real behavior proof is sufficient.
  • proof: 📸 screenshot: Contributor real behavior proof includes screenshot evidence.

Rating scale

6/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.

Workflow

ClawSweeper edits this one comment on every review. Comment @clawsweeper re-review for a fresh review only; repair and merge need explicit maintainer commands such as @clawsweeper autofix or @clawsweeper automerge.

History

Review history (3 earlier review cycles)
  • reviewed 2026-10-08T20:21:17.534Z sha fd92b53 :: needs changes before merge. :: [P2] Preserve navigation to every retained saved version | [P2] Use the selected version's support-file inventory | [P2] Hide Compare when its saved version has been pruned | [P2] Bound comparison memory for accepted skill sizes
  • reviewed 2026-10-08T20:36:16.711Z sha bfc37cd :: needs changes before merge. :: [P2] Expose inspection links for retained archive snapshots | [P2] Render skill files with complete-document markdown mode
  • reviewed 2026-10-08T20:54:45.488Z sha 45c68e5 :: needs changes before merge. :: [P3] Qualify the automatic-archive warning for ineligible agents

Reviewed October 8, 2026, 5:17 PM ET / 21:17 UTC (Revision 4).

@clawsweeper clawsweeper Bot removed the merge-risk: 🚨 availability 🚨 May cause crashes, hangs, restart loops, stalls, or process outages. label Oct 8, 2026
@clawsweeper clawsweeper Bot removed the merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. label Oct 8, 2026
@clawsweeper clawsweeper Bot added rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. and removed rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. labels Oct 8, 2026
@obviyus
obviyus merged commit a42afa5 into main Oct 8, 2026
108 of 110 checks passed
@obviyus
obviyus deleted the feat/skill-workshop-ui-iter branch October 8, 2026 21:19
@obviyus

obviyus commented Oct 8, 2026

Copy link
Copy Markdown
Collaborator Author

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.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 9, 2026
… 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**

![before](https://github.com/user-attachments/assets/b657450f-2efc-41fe-9c79-0a63dee69aa5)

**After**

![after](https://github.com/user-attachments/assets/1f1e92dc-8a9b-4993-b573-797716dc70cf)

| History | Compare with today |
|---|---|
| ![history](https://github.com/user-attachments/assets/4b1b5c48-5878-44ea-8641-f45ff52bb562) | ![compare](https://github.com/user-attachments/assets/80b2e6fe-2b0f-41a8-96ff-79c1c3c62dba) |

| Support files | Archived |
|---|---|
| ![files](https://github.com/user-attachments/assets/af7e5106-9beb-424b-ad2c-dc280125fd71) | ![archived](https://github.com/user-attachments/assets/e4602bc9-3287-46ed-91fe-6706b50ee90e) |

- 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 |
|---|---|
| ![older versions](https://github.com/user-attachments/assets/20e00a3d-1f0e-4c65-a665-6a9cbc13b791) | ![large diff](https://github.com/user-attachments/assets/bed3c1e0-15e6-426d-b5db-30dc010a5c57) |
- `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]>
steipete added a commit that referenced this pull request Oct 9, 2026
…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.
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 10, 2026
…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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

app: web-ui App: web-ui docs Improvements or additions to documentation P2 Normal backlog priority with limited blast radius. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. scripts Repository scripts size: XL status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant