Skip to content

skill_workshop: increase or make configurable the 160-byte description limit #92425

Closed

Description

@MFangler1

Feature Request: Increase or make configurable the skill_workshop proposal description 160-byte limit

Problem:

The skill_workshop tool enforces a hard 160-byte cap on the description field when creating skill proposals. This is roughly 20 words — easy to overshoot when writing a meaningful description of what a skill does. When exceeded, the user sees a raw ToolError validation message (Skill proposal description is too large), which looks alarming and unhelpful.

Suggestion:

Three options, any would be an improvement:

  1. Increase the limit — 300-500 bytes would give enough room for a proper description.
  2. Make it configurable — add a skills.workshop.maxDescriptionBytes setting alongside the existing skills.workshop.maxSkillBytes.
  3. Friendlier error — if the limit stays at 160, wrap the validation error in a clear message that tells the user why it failed and how to fix it (e.g. "Description too long (max 160 chars). Shorten and try again.").

Current behaviour:

Validation failed for tool "skill_workshop":
  - description: must not have more than 160 characters

This is jarring for users who don't know the constraint exists.

Environment:

  • OpenClaw version: current latest
  • Usage: via webchat/web interface

Activity

  1. clawsweeper commented on Jun 12, 2026

    @clawsweeper
    Contributor

    Codex review: keeping this open for maintainer follow-up; there is still a little grit to resolve. Reviewed August 19, 2026, 1:50 PM ET / 17:50 UTC.

    Summary
    Keep open as a small source-proven bug: the agent-facing schema enforces a 160-character limit before the service can return its documented byte-aware recovery message. Likely related people: Peter Steinberger (medium confidence), whose recent Skill Workshop refactor owns the current limit and schema lines.

    Reproducibility: yes. source-reproducible with high confidence: the schema rejects a 161-character ASCII description before tool execution, while the downstream owner separately enforces and explains the 160-byte limit.

    Root-cause cluster
    Relationship: canonical
    Canonical: #92425
    Summary: The closed proposals attempted the same limit change, but no merged implementation owns the remaining schema-versus-service diagnostic defect.

    Members:

    Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything.

    Next step
    A focused repair can centralize the existing byte-limit behavior in the proposal service and prove the agent-facing recovery path without choosing a new product limit.

    Review details

    Best possible solution:

    Keep the intentional 160-byte discovery/listing budget, make the proposal service the single enforcement owner, and add boundary proof that the agent receives its actionable byte-aware retry guidance.

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

    Yes, source-reproducible with high confidence: the schema rejects a 161-character ASCII description before tool execution, while the downstream owner separately enforces and explains the 160-byte limit.

    Is this the best way to solve the issue?

    Yes: preserve the documented 160-byte listing budget and remove the competing character-count gate so the byte-owning service returns the actionable error; do not add a configuration option.

    AGENTS.md: found and applied where relevant.

    Remaining risk / open question:

    • The repair must exercise the real tool-validation boundary: the reviewer checkout has no installed TypeBox package, so source inspection cannot itself prove the exact emitted validation text.

    Codex review notes: model internal, reasoning high; reviewed against 7e353d750abe.

    Label changes

    Label changes:

    • add clawsweeper:queueable-fix: Current issue advisory state selects this label.
    • add clawsweeper:fix-shape-clear: Current issue advisory state selects this label.
    • remove clawsweeper:no-new-fix-pr: Current issue advisory state no longer selects this label.
    • remove clawsweeper:needs-maintainer-review: Current issue advisory state no longer selects this label.
    • remove clawsweeper:needs-product-decision: Current issue advisory state no longer selects this label.

    Label justifications:

    • P2: The bounded validation-path defect affects creating and revising reusable skills but has limited blast radius.
    • impact:ux-friction: Agents and web-chat users receive a raw schema rejection instead of the documented, actionable recovery message.
    Evidence reviewed

    Acceptance criteria:

    • pnpm test src/agents/tools/skill-workshop-tool.test.ts
    • pnpm test src/skills/workshop/service.test.ts
    • pnpm check:changed -- src/agents/tools/skill-workshop-tool-schema.ts src/agents/tools/skill-workshop-tool-collection.ts src/skills/workshop/proposal-draft.ts

    What I checked:

    • Current tool-schema boundary: The current main revision declares description maxLength: 160 while describing the limit as bytes, so a 161-character ASCII call is rejected before the tool execution path can call the service. (src/agents/tools/skill-workshop-tool-schema.ts:107, 7e353d750abe)
    • Canonical service validation: The proposal-draft owner enforces the intentional 160-byte budget with Buffer.byteLength and supplies the precise size and retry limit in its error. (src/skills/workshop/proposal-draft.ts:179, 7e353d750abe)
    • Existing behavior contract: Current user documentation says descriptions are always capped at 160 bytes because they appear in discovery and listing output, and documents the service-owned recovery action. Public docs: docs/tools/skill-workshop.md. (docs/tools/skill-workshop.md:392, 7e353d750abe)
    • Regression coverage at the owner: The service test already proves create, revise, and update reject descriptions over the byte budget before state is written; it does not cover the agent schema-to-service error path. (src/skills/workshop/service.test.ts:1507, 7e353d750abe)
    • Feature provenance: Blame ties the current limit, schema, and documentation lines to the recent Skill Workshop refactor; the available history identifies commit 94eb34f as the relevant current-line provenance. (src/skills/workshop/proposal-draft.ts:22, 94eb34fa7808)
    • Prior implementation attempts: The two related pull requests proposed raising the cap, but both are closed and unmerged; neither supersedes the remaining diagnostic mismatch.

    Likely related people:

    • Peter Steinberger: Current-line blame attributes the service limit, agent schema, and corresponding documentation to the same recent Skill Workshop refactor. (role: recent feature refactor author; confidence: medium; commits: 94eb34fa7808; files: src/skills/workshop/proposal-draft.ts, src/agents/tools/skill-workshop-tool-schema.ts, docs/tools/skill-workshop.md)
    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.
  2. added
    P3
    issue-rating: 🦞 diamond lobster
    clawsweeper:source-repro
    clawsweeper:no-new-fix-pr
    clawsweeper:needs-product-decision
    P2
    impact:other
    clawsweeper:fix-shape-clear
    clawsweeper:needs-maintainer-review
    and removed
    P3
    on Jun 12, 2026
  3. added
    impact:ux-friction
    and removed
    clawsweeper:fix-shape-clear
    impact:other
    on Jul 30, 2026
  4. added
    clawsweeper:fix-shape-clear
    clawsweeper:queueable-fix
    no-stale
    and removed
    clawsweeper:no-new-fix-pr
    clawsweeper:needs-maintainer-review
    clawsweeper:needs-product-decision
    on Aug 15, 2026
  5. clawsweeper commented on Aug 19, 2026

    @clawsweeper
    Contributor

    🦞⚠️
    Automatic implementation stopped before completion.
    Reason: The automatic implementation worker stopped before all deterministic gates completed. Open the workflow run for the exact blocker.
    Worker: https://github.com/openclaw/clawsweeper/actions/runs/32287042319

    Automatic implementation progress:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2clawsweeper-recovery-stuckclawsweeper:fix-shape-clearclawsweeper:queueable-fixclawsweeper:source-reproimpact:ux-frictionissue-rating: 🦞 diamond lobsterno-stale

    Type

    No type

    Fields

    Priority

    None yet

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions