Skip to content

fix(templates): Template tabs omit skills, plugins and heartbeat work bundled as workspace files - #4614

Merged
Patrick-Erichsen merged 2 commits into
mainfrom
template-bundled-workspace-tabs
Nov 13, 2026
Merged

Patrick-Erichsen merged 2 commits into
mainfrom
template-bundled-workspace-tabs

Conversation

@Patrick-Erichsen

@Patrick-Erichsen Patrick-Erichsen commented Nov 13, 2026 •

Copy link
Copy Markdown
Collaborator

What Problem This Solves

Fixes: the Skills, Plugins and Automations tabs on a Template page say nothing is included when the Template delivers those contents as workspace files, for example a skill at skills/food-diary/SKILL.md.

User Impact

User impact: people browsing a Template such as MyFitnessClaw now see its workspace skill in the Skills tab instead of "No skills are included in this Template."

The entries are labeled "Workspace file" with their workspace path. Stored dependency inventory, summary counts on cards and API responses, and validation are unchanged.

Why This Change Was Made

The tabs only read the declared skills/plugins dependency inventory and the automations list. Workspace files land in the new agent's workspace, where OpenClaw discovers some locations natively, so the page now projects those destinations into the matching tab:

  • skills/**/SKILL.md and .agents/skills/**/SKILL.md under Skills
  • .openclaw/extensions/<id>/openclaw.plugin.json under Plugins
  • HEARTBEAT.md under Automations, since Template Add converts it into interval automations

The projection is display-only and derived in the browser from the pinned CLAW.md. Other workspace files stay only under Workspace files, including guides that describe optional automations (MyFitnessClaw's reference/automations.md states that no jobs are enabled, so its Automations tab stays empty). The count label changes from "N declared" to "N included" because it now covers both sources. The intent is recorded in specs/templates.md and docs/templates.md.

Evidence

Browser proof comes from a local ClawHub (http://localhost:3411/ameliomansour/templates/myfitnessclaw, vite dev reading the production Convex backend read-only) rendering the published MyFitnessClaw 0.2.3 release. Before is main at 4f09f75e121; after is this branch. Screenshots are in the first comment.

Tab Before After
Skills No skills are included in this Template. 1 included skill · food-diary · Workspace file · skills/food-diary/SKILL.md
Plugins No plugins are included in this Template. unchanged (none bundled)
Automations No automations are included in this Template. unchanged (none bundled)

Checks:

  • vitest run 'src/routes/$owner/templates/-$slug.test.tsx': 57 passed on this branch. With only the product files reverted to main, the two new tests and the updated count assertion fail (3 failed, 54 passed).
  • bun run ci:types-build: passed.
  • bun run ci:static: passed, with the format step run through the CI-pinned Bun 1.4.4 because the local Bun 1.4.0 has no bun fmt.
  • bun run ci:unit: 9,623 passed, 22 skipped, 12 failed. All 12 failures are subprocess timeouts in six untouched scripts/security/* scanner test files on this machine; no src/ test failed.
  • Autoreview (--mode branch --base origin/main --max-priority P3, OpenClaw engine, gpt-6.1-sol): scoped-clean, no accepted findings.

The Plugins and heartbeat rows are covered on a real local instance by e2e/local-auth/exact-template-artifact.pw.test.ts, which publishes a Template shipping a workspace skill, a workspace plugin manifest and HEARTBEAT.md and asserts all three rows at four viewports. It passed locally; screenshots are in the second proof comment. That run also confirms the stored inventory and summary counts are unchanged.

Review follow-up (30183d2399a): a SKILL.md nested below an identified workspace skill is no longer listed, matching OpenClaw's discovery, which stops descending once a directory holds SKILL.md.

…detail tabs

Templates can deliver skills, plugins and heartbeat work through
workspace files instead of declared dependencies. The detail page only
read the dependency inventory, so those Templates showed empty Skills,
Plugins and Automations tabs while the same files appeared under
Workspace files.

Project workspace destinations that OpenClaw discovers natively into
the matching tab, labeled as workspace files. The projection is
display-only and leaves the stored inventory, summary counts and
validation unchanged.
@vercel

vercel Bot commented Nov 13, 2026 •

Copy link
Copy Markdown
Contributor

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
clawhub Ready Ready Preview Nov 13, 2026 8:19pm UTC

Request Review

@clawsweeper

clawsweeper Bot commented Nov 13, 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.

@Patrick-Erichsen

Copy link
Copy Markdown
Collaborator Author

Before/after from a local ClawHub (http://localhost:3411/ameliomansour/templates/myfitnessclaw, reading the production backend read-only), published MyFitnessClaw 0.2.3.

After (this branch), desktop

After: Skills tab lists food-diary

After (this branch), mobile 390px

After mobile: Skills tab lists food-diary

Before (main at 4f09f75e121), desktop

Before: Skills tab says no skills are included

Plugins and Automations are unchanged for this Template because it bundles neither; those entries are covered by component tests only.

@clawsweeper clawsweeper Bot added clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. P2 Normal backlog priority with limited blast radius. rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. and removed clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. labels Nov 13, 2026
@clawsweeper

clawsweeper Bot commented Nov 13, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs changes before merge.

What this changes

This PR adds workspace-file skills, plugins, and heartbeat work to the corresponding Template detail tabs.

Example: Browse MyFitnessClaw 0.2.3 and open Skills.

  • Before: No skills are included in this Template.
  • After: 1 included skill: food-diary, labeled Workspace file at skills/food-diary/SKILL.md.

Review scores

Measure Result What it means
Overall readiness 🦪 silver shellfish (2/6) Useful and visually demonstrated for skills, with one definite discovery mismatch and incomplete browser coverage of the other added categories.
Proof confidence 🦪 silver shellfish (2/6) Real behavior proof is not required for maintainer- or bot-authored pull requests.
Patch quality 🦪 silver shellfish (2/6) 1 actionable review finding remain.

Product

Kind: Bug fix · Worth it: Yes · Fix scope: Complete
User problem: A Template can contain a workspace skill while its Skills tab says none are included.
Reason: The published example demonstrates a misleading empty state, and this collaborator-authored PR supplies owner direction for a display-only repair.

Merge readiness

⛔ Needs changes before merge - 1 item remains

Keep open: this maintainer-authored PR addresses a current display omission, but its recursive skill matcher also lists nested files that OpenClaw does not discover as separate skills.

Priority: P2
Reviewed head: 87fd8f747892fab43cfa55caea2176e61084edd7

Before merge

  • Stop collecting descendants after finding a parent skill (P2) - A valid workspace mapping containing both skills/research/SKILL.md and skills/research/examples/demo/SKILL.md produces two included skills here. The pinned OpenClaw consumer stops descending a directory once it finds that directory's SKILL.md (src/skills/loading/skill-root-discovery.ts:503–508), so only research is discovered. The new tab therefore advertises the example document as an additional capability and inflates its count. Exclude matches beneath an already identified skill directory and cover this rendered case.

Findings

  • [P2] Stop collecting descendants after finding a parent skill — src/lib/templateDetail.ts:45-48

Tests

  • Missing end-to-end proof: Browser proof covers the workspace skill, but the added workspace-plugin and HEARTBEAT.md rows still need real ClawHub browser evidence with sensitive details redacted.
Agent review details

How this fits together

The Template route loads release-pinned CLAW.md and package metadata; the detail component combines declared dependencies with browser-derived workspace destinations to render content tabs.

flowchart LR
  A[Release metadata] --> C[Template route]
  B[Pinned CLAW document] --> C
  C --> D[Validated manifest]
  D --> E[Workspace projection]
  A --> F[Dependency inventory]
  E --> G[Template content tabs]
  F --> G
Loading

Technical review

Best possible solution:

Keep the display-only projection and exclude descendant skill documents beneath an already identified skill directory.

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

Current-main source establishes the omission, and inspected before/after screenshots demonstrate it for MyFitnessClaw; no target code was executed during this review.

Is this the best way to solve the issue?

The detail-page projection is the appropriate layer because workspace files are distinct from declared dependencies, but recursive matching must respect OpenClaw's parent-skill boundary rather than inflate the displayed inventory.

Full review comments:

  • [P2] Stop collecting descendants after finding a parent skill — src/lib/templateDetail.ts:45-48
    A valid workspace mapping containing both skills/research/SKILL.md and skills/research/examples/demo/SKILL.md produces two included skills here. The pinned OpenClaw consumer stops descending a directory once it finds that directory's SKILL.md (src/skills/loading/skill-root-discovery.ts:503–508), so only research is discovered. The new tab therefore advertises the example document as an additional capability and inflates its count. Exclude matches beneath an already identified skill directory and cover this rendered case.
    Confidence: 0.98

Overall correctness: patch is incorrect
Overall confidence: 0.96

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against f45b690c9596.

Provenance checked

Testing

Proof path: shipped entry point.

Security

None.

Evidence

Acceptance criteria:

  • bunx vitest run 'src/routes/$owner/templates/-$slug.test.tsx'
  • bun run ci:static
  • bun run ci:unit
  • bun run ci:types-build

What I checked:

Preflight source

Source unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified.

Review metrics

Metric Value Why it matters
Patch size Production +91/-7; tests +95/-2; docs/specs +15/-0 The growth serves the workspace projection and rendered regressions without adding backend machinery.

Labels

Label changes:

  • add P2: Template browsers receive incomplete or overstated capability listings, with no demonstrated installation or runtime outage.
  • add rating: 🦪 silver shellfish: Overall readiness is 🦪 silver shellfish; proof is 🦪 silver shellfish and patch quality is 🦪 silver shellfish.
  • add status: ⏳ waiting on author: ClawSweeper has contributor-facing work open and is waiting for author action.

Label justifications:

  • P2: Template browsers receive incomplete or overstated capability listings, with no demonstrated installation or runtime outage.
  • rating: 🦪 silver shellfish: Overall readiness is 🦪 silver shellfish; proof is 🦪 silver shellfish and patch quality is 🦪 silver shellfish.
  • status: ⏳ waiting on author: ClawSweeper has contributor-facing work open and is waiting for author action.

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 execution lanes are retired.

Reviewed November 13, 2026, 3:10 PM ET / 20:10 UTC.

OpenClaw stops descending once a directory holds SKILL.md, so a nested
document is a support file of that skill and must not be listed or
counted as another one. Extend the published-Template e2e to cover the
workspace skill, plugin and heartbeat rows on a real local instance.
@Patrick-Erichsen

Copy link
Copy Markdown
Collaborator Author

Addressed the review finding in 30183d2399a.

Nested SKILL.md below an identified skill (P2). Confirmed against OpenClaw's skill discovery, which stops descending once a directory holds SKILL.md. The projection now drops any SKILL.md beneath an already identified workspace skill directory, so skills/research/examples/demo/SKILL.md is no longer listed or counted next to skills/research/SKILL.md. The component test includes that nested path and still expects exactly three skills.

Browser evidence for the plugin and heartbeat rows. e2e/local-auth/exact-template-artifact.pw.test.ts now publishes a Template that also ships a workspace skill, a workspace plugin manifest and HEARTBEAT.md, then asserts all three rows at four viewports with the existing no-horizontal-overflow check. It passed locally against a real ClawHub (local Convex backend, published through the CLI). The same run still asserts the stored inventory and skillCount/pluginCount of 2 and 2, so workspace entries stay out of the inventory and summary counts.

Screenshots from that run (synthetic fixture Template exact-claw-proof-* on the local instance):

Plugins tab: workspace plugin listed after declared and bundled plugins

Automations tab: heartbeat checklist listed after the declared automation

Skills tab: workspace skill listed after declared and bundled skills

Plugins tab at 390px

@Patrick-Erichsen
Patrick-Erichsen merged commit 47ff36f into main Nov 13, 2026
40 checks passed
@Patrick-Erichsen
Patrick-Erichsen deleted the template-bundled-workspace-tabs branch November 13, 2026 20:57

This branch was successfully deployed

1 active deployment
Preview – clawhub — 30183d23 Deployed Nov 13, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

P2 Normal backlog priority with limited blast radius. rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. 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