Skip to content

feat: add Skill Workshop and skill research - #88328

Merged
shakkernerd merged 43 commits into
mainfrom
feat/skill-workshop-proposals
May 30, 2026
Merged

shakkernerd merged 43 commits into
mainfrom
feat/skill-workshop-proposals

Conversation

@shakkernerd

@shakkernerd shakkernerd commented May 30, 2026 •

Copy link
Copy Markdown
Contributor

Summary

This PR introduces Skill Workshop as a core skills subsystem capability and makes it the governed path for creating, revising, reviewing, and applying OpenClaw skill proposals.

Agents now use skill_workshop for skill proposal work. Skill Research is kept as a separate internal layer for autonomous durable-instruction capture; when it detects reusable skill work, it queues a pending Workshop proposal instead of writing live skills directly.

image image image image

What changed

  • Added durable Skill Workshop proposal storage under OpenClaw state, with proposal.json, PROPOSAL.md, support files, rollback metadata, and a rebuildable proposals.json manifest.
  • Added the skill_workshop agent tool for create, update, revise, list, inspect, apply, reject, and quarantine actions.
  • Added CLI commands under openclaw skills workshop.
  • Added Gateway proposal methods for list, inspect, create, update, apply, reject, and quarantine flows.
  • Added proposal support files under standard skill folders, with text-file validation, scanner checks, hash verification, stale-target detection, and guarded apply writes.
  • Added proposal revision support with versioned and dated proposal frontmatter.
  • Added Skill Research auto-capture as a separate internal layer that queues Workshop proposals when autonomous capture is enabled.
  • Added system prompt/tool catalog guidance so agents route skill creation and proposal lifecycle work through skill_workshop.
  • Removed the old Skill Workshop plugin package now that Workshop is core skills functionality.
  • Added docs and changelog entries for the proposal lifecycle.

Behavior

  • Generated skills are pending proposals by default.
  • Active skills are not overwritten silently.
  • Apply is workspace-scoped and checks stale target state before writing.
  • Update proposals preserve target baselines and mark stale when live skill/support files change.
  • Support files are validated, scanned, hash-checked, and rejected when unsafe or non-text.
  • Apply writes rollback metadata and uses guarded writes to avoid partial or clobbering publishes.
  • Reject and quarantine only operate on pending proposals.

Verification

  • git diff --check
  • AWS Crabbox cbx_d2a8fac69de8:
    node scripts/run-vitest.mjs src/agents/tools/skill-workshop-tool.test.ts src/skills/research/autocapture.test.ts src/agents/harness/agent-end-side-effects.test.ts src/agents/agent-tools.before-tool-call.embedded-mode.test.ts src/agents/system-prompt.test.ts src/agents/tool-catalog.test.ts src/agents/agent-tools.create-openclaw-coding-tools.test.ts src/agents/embedded-agent-runner/run/attempt-tool-construction-plan.test.ts packages/gateway-protocol/src/schema/agents-models-skills.test.ts src/skills/workshop/service.test.ts
  • AWS Crabbox cbx_d2a8fac69de8:
    pnpm check:changed -- <changed paths>

@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation app: web-ui App: web-ui gateway Gateway runtime cli CLI command changes agents Agent runtime and tooling size: XL maintainer Maintainer-authored PR labels May 30, 2026
@clawsweeper

clawsweeper Bot commented May 30, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: found issues before merge. Reviewed May 30, 2026, 2:46 PM ET / 18:46 UTC.

Summary
This PR moves Skill Workshop from a bundled plugin into a core skills subsystem with proposal storage, an agent tool, CLI/Gateway APIs, Skill Research auto-capture, docs, generated protocol surfaces, and removal of the plugin package.

PR surface: Source +2555, Tests +1305, Docs -869, Config -18, Other +327. Total +3300 across 80 files.

Reproducibility: yes. for the merge blockers by source inspection: released plugin config exists in the latest tag, the new resolver ignores it, the core tool is always added to non-sandboxed tool sets, and the merge result reverts the QMD timestamp guard. No runtime repro was run because this was a read-only review.

Review metrics: 3 noteworthy metrics.

  • Config/default surfaces: 4 core keys added, 8 released plugin keys removed or retired. The PR replaces shipped plugin config with a new core skills.workshop surface, so upgrade behavior must be reviewed before merge.
  • Gateway proposal API: 8 core methods added. New list/inspect/create/update/revise/apply/reject/quarantine methods are protocol and operator-scope surfaces, not just internal implementation detail.
  • Dependency graph: 1 plugin package manifest removed, lockfile importer changed. Package and lockfile graph changes are security-reviewed surfaces and are currently blocked by the dependency guard.

Merge readiness
Overall: 🧂 unranked krab
Proof: 🌊 off-meta tidepool
Patch quality: 🧂 unranked krab
Result: blocked by patch quality or review findings.

Overall follows the weaker of proof and patch quality, so missing proof can cap an otherwise strong patch.

Rank-up moves:

  • [P2] Add or document a tested migration/deprecation path for released Skill Workshop plugin config.
  • Gate or explicitly approve the core skill_workshop and Gateway mutation rollout, then resolve the dependency graph guard.
  • Rebase or adjust the branch so the merge result preserves current-main QMD embed backoff hardening and remove the normal PR CHANGELOG.md edit.

Risk before merge

  • [P1] Existing released Skill Workshop plugin users can lose or change autoCapture, review-mode, approval, and limit behavior unless the old plugin config is migrated, preserved, or deliberately deprecated with tests.
  • [P1] The PR promotes skill proposal storage, support files, lifecycle actions, and Gateway mutation methods into core, which needs explicit security/product approval or an opt-in rollout gate before existing users receive the new write surface.
  • [P1] The current GitHub merge result reverts current-main QMD embed backoff hardening and deletes its invalid-clock regression test.
  • [P1] Dependency graph changes remain blocked until security approves the current head or the lockfile/package graph delta is removed.
  • [P1] CHANGELOG.md is release-owned, so release-note context should move to the PR body or squash message before merge.

Maintainer options:

  1. Gate and migrate before merge (recommended)
    Preserve or migrate released Skill Workshop plugin config, keep the core tool behind an explicit rollout gate or documented maintainer approval, remove the changelog edit, resolve dependency approval, and rebase so current-main QMD hardening survives.
  2. Explicitly accept the core rollout risk
    Maintainers and security can choose to accept the default core tool and old-config break, but that decision should be recorded because existing setups and operator expectations change on upgrade.
  3. Pause until the branch is narrower
    If the compatibility/security decisions are not ready, pause this PR or split a smaller preparatory PR for proposal storage, config migration, or Gateway/API review.

Next step before merge

  • [P2] Protected maintainer PR needs human/security/product decisions; repair automation should not choose the core rollout, migration/deprecation, or dependency approval path.

Security
Needs attention: Needs attention: the PR changes the dependency graph and promotes skill proposal file writes into core agent/Gateway surfaces without completed security/product approval.

Review findings

  • [P1] Preserve released Workshop config on upgrade — src/skills/workshop/config.ts:37-45
  • [P1] Gate the new core Workshop tool rollout — src/agents/openclaw-tools.ts:445-453
  • [P1] Keep the QMD embed backoff guard — extensions/memory-core/src/memory/qmd-manager.ts:52-56
Review details

Best possible solution:

Land this only after maintainers choose the core rollout policy, preserve or intentionally migrate/deprecate released plugin config, resolve dependency approval, keep current-main QMD hardening in the merge result, and move release notes out of CHANGELOG.md.

Do we have a high-confidence way to reproduce the issue?

Yes for the merge blockers by source inspection: released plugin config exists in the latest tag, the new resolver ignores it, the core tool is always added to non-sandboxed tool sets, and the merge result reverts the QMD timestamp guard. No runtime repro was run because this was a read-only review.

Is this the best way to solve the issue?

No. The implementation is useful, but the best path needs a reviewed migration or deprecation plan, an explicit security/product rollout decision for the core write surface, dependency approval, and a merge result that preserves current-main hardening.

Full review comments:

  • [P1] Preserve released Workshop config on upgrade — src/skills/workshop/config.ts:37-45
    The released plugin schema stores behavior under plugins.entries.skill-workshop.config with keys like autoCapture, reviewMode, review limits, and approval policy, but the new resolver reads only skills.workshop. With the plugin package removed, existing users' configured auto-capture/review behavior is silently dropped unless this PR adds a doctor migration/compatibility path or an explicit tested deprecation.
    Confidence: 0.92
  • [P1] Gate the new core Workshop tool rollout — src/agents/openclaw-tools.ts:445-453
    This adds skill_workshop to every non-sandboxed OpenClaw tool set, while the core approval policy covers only apply/reject/quarantine. Create/update/revise can still write durable proposal and support-file state by default, so the former opt-in plugin write surface becomes a core agent capability without an explicit rollout gate or security approval.
    Confidence: 0.9
  • [P1] Keep the QMD embed backoff guard — extensions/memory-core/src/memory/qmd-manager.ts:52-56
    The current merge result drops the current-main isFutureDateTimestampMs and resolveExpiresAtMsFromDurationMs guard and deletes the invalid-clock regression test, returning QMD embed backoff to raw Date.now() + delayMs. Rebase or resolve the merge so the current-main guard and test survive.
    Confidence: 0.91
  • [P1] Resolve the blocked dependency graph change — pnpm-lock.yaml:1393-1400
    The dependency graph guard reports this head is blocked because the lockfile changed and the removed Skill Workshop package changes dependency graph fields. Since OpenClaw treats package and lockfile graph changes as security-reviewed surfaces, remove the graph delta if it is not needed or get security approval for the current head before merge.
    Confidence: 0.88
  • [P3] Move release notes out of CHANGELOG.md — CHANGELOG.md:18-21
    CHANGELOG.md is release-owned for this repo, so normal PR release-note context belongs in the PR body or squash message. These entries also still name skill_research, while the branch now exposes skill_workshop, so keeping them in the branch creates release churn and stale wording.
    Confidence: 0.86

Overall correctness: patch is incorrect
Overall confidence: 0.9

AGENTS.md: found and applied where relevant.

Codex review notes: model gpt-5.5, reasoning high; reviewed against caac9733a7f4.

Label changes

Label changes:

  • add merge-risk: 🚨 availability: The current merge result would drop QMD embed backoff timestamp hardening and its regression test, reintroducing an availability guard regression.

Label justifications:

  • P2: This is a normal-priority but broad feature/core rollout with concrete merge blockers rather than an urgent production regression.
  • merge-risk: 🚨 compatibility: Merging can change existing users' released Skill Workshop plugin config behavior and introduces a new core config/default surface.
  • merge-risk: 🚨 security-boundary: Merging adds core agent and Gateway paths that can create, inspect, and apply workspace skill proposal files and support files, plus a blocked dependency graph change.
  • merge-risk: 🚨 availability: The current merge result would drop QMD embed backoff timestamp hardening and its regression test, reintroducing an availability guard regression.
  • rating: 🧂 unranked krab: Overall readiness is 🧂 unranked krab; proof is 🌊 off-meta tidepool and patch quality is 🧂 unranked krab.
  • status: ⏳ waiting on author: ClawSweeper has contributor-facing work open and is waiting for author action. Not applicable: The contributor proof gate is not applied because this is a maintainer-labeled MEMBER PR; screenshots and Crabbox test IDs in the body are supplemental but do not settle the merge blockers.
Evidence reviewed

PR surface:

Source +2555, Tests +1305, Docs -869, Config -18, Other +327. Total +3300 across 80 files.

View PR surface stats
Area Files Added Removed Net
Source 45 4070 1515 +2555
Tests 17 2304 999 +1305
Docs 14 199 1068 -869
Config 1 0 18 -18
Generated 0 0 0 0
Other 3 337 10 +327
Total 80 6910 3610 +3300

Security concerns:

  • [medium] Dependency graph change is blocked — pnpm-lock.yaml:1393
    The GitHub dependency guard reports pnpm-lock.yaml and extensions/skill-workshop/package.json dependency graph fields changed, which requires security approval or removal before merge.
    Confidence: 0.9
  • [high] Core skill proposal write surface needs approval — src/agents/openclaw-tools.ts:445
    The new default core tool and Gateway methods can create proposal/support-file state and eventually apply workspace skill files, so the rollout needs explicit security/product approval or an opt-in gate.
    Confidence: 0.86

What I checked:

Likely related people:

  • Peter Steinberger: Current-main blame/log ties the shipped Skill Workshop plugin config and the QMD embed backoff guard to recent commits by Peter, making him the strongest routing candidate for compatibility and current-main regression review. (role: recent area contributor; confidence: high; commits: 0dd67e2f25f7, 27ae826f6525, caac9733a7f4; files: extensions/skill-workshop/openclaw.plugin.json, extensions/memory-core/src/memory/qmd-manager.ts, src/agents/openclaw-tools.ts)
  • Shakker: The PR branch commits are authored by Shakker, and local history shows prior merged OpenClaw work, so they are relevant for branch-specific repairs even though current-main ownership points mainly elsewhere. (role: current proposal owner; confidence: medium; commits: c31587c19ad4, f901941e0362, 09566b1693f0; files: src/skills/workshop/service.ts, src/agents/tools/skill-workshop-tool.ts, src/gateway/server-methods/skills.ts)
What the crustacean ranks mean
  • 🦀 challenger crab: rare, exceptional readiness with strong proof, clean implementation, and convincing validation.
  • 🦞 diamond lobster: very strong readiness with only minor maintainer review expected.
  • 🐚 platinum hermit: good normal PR, likely mergeable with ordinary maintainer review.
  • 🦐 gold shrimp: useful signal, but proof or patch confidence is still limited.
  • 🦪 silver shellfish: thin signal; proof, validation, or implementation needs work.
  • 🧂 unranked krab: not merge-ready because proof is missing/unusable or there are serious correctness or safety concerns.
  • 🌊 off-meta tidepool: rating does not apply to this item.

Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics.

How this review workflow works
  • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
  • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
  • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
  • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
  • Maintainers can also comment @clawsweeper review to request a fresh review only.
  • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
  • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
  • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.

@shakkernerd shakkernerd changed the title feat: add Skill Workshop proposals feat: add Skill Workshop proposals and skill research May 30, 2026
@clawsweeper clawsweeper Bot added rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. P2 Normal backlog priority with limited blast radius. merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. merge-risk: 🚨 security-boundary 🚨 May affect sandboxing, authorization, credentials, or sensitive data. labels May 30, 2026
@shakkernerd
shakkernerd requested a review from a team as a code owner May 30, 2026 14:49
@github-actions github-actions Bot added the dependencies-changed PR changes dependency-related files label May 30, 2026
@github-actions

github-actions Bot commented May 30, 2026 •

Copy link
Copy Markdown
Contributor

Dependency graph guard cleared

This PR no longer has blocked dependency graph changes. A future dependency graph change requires a fresh /allow-dependencies-change comment after the guard blocks that new head SHA.

  • Current SHA: f41c1d6b25e24acf26848b9b6885b524319c636c

@shakkernerd
shakkernerd force-pushed the feat/skill-workshop-proposals branch from bc888b9 to 0440fce Compare May 30, 2026 15:24
@shakkernerd shakkernerd changed the title feat: add Skill Workshop proposals and skill research feat: add Skill Workshop and skill research May 30, 2026
@shakkernerd
shakkernerd force-pushed the feat/skill-workshop-proposals branch from 65557b4 to 26b4a94 Compare May 30, 2026 16:27
@clawsweeper clawsweeper Bot added the merge-risk: 🚨 availability 🚨 May cause crashes, hangs, restart loops, stalls, or process outages. label May 30, 2026
@shakkernerd
shakkernerd force-pushed the feat/skill-workshop-proposals branch from c31587c to 33c2047 Compare May 30, 2026 18:52
@github-actions github-actions Bot removed the dependencies-changed PR changes dependency-related files label May 30, 2026
@shakkernerd
shakkernerd force-pushed the feat/skill-workshop-proposals branch from 4bf1ab4 to f41c1d6 Compare May 30, 2026 19:03
@shakkernerd
shakkernerd merged commit dcc329a into main May 30, 2026
39 checks passed
@shakkernerd
shakkernerd deleted the feat/skill-workshop-proposals branch May 30, 2026 19:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agents Agent runtime and tooling app: web-ui App: web-ui cli CLI command changes docs Improvements or additions to documentation extensions: qa-lab gateway Gateway runtime maintainer Maintainer-authored PR 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. merge-risk: 🚨 security-boundary 🚨 May affect sandboxing, authorization, credentials, or sensitive data. P2 Normal backlog priority with limited blast radius. rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. size: XL status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant