claude-code - 💡(How to fix) Fix Skills UI: frontmatter JSON field is unlabeled and not human-friendly [1 comments, 1 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
anthropics/claude-code#53318Fetched 2026-04-26 05:18:49
View on GitHub
Comments
1
Participants
1
Timeline
5
Reactions
0
Participants
Timeline (top)
labeled ×3closed ×1commented ×1

Error Message

  1. Raw JSON is a bad input format for humans. Even if the underlying storage/API is JSON, the UI should not require users to hand-edit JSON syntax — quoting keys, balancing braces, escaping strings. This is error-prone and unfriendly compared to a structured form (one row per key/value, dropdowns for known fields, etc.).
RAW_BUFFERClick to expand / collapse

Problem

When creating or editing a skill in the Claude Code UI, there's a "frontmatter" field that takes raw JSON. Two issues:

  1. It's not clear what it's for. There's no inline help, example, or link explaining what frontmatter does, what keys are valid, or how it affects skill behavior. A user encountering this field for the first time has no way to know whether to fill it in, leave it blank, or what shape the JSON should take.

  2. Raw JSON is a bad input format for humans. Even if the underlying storage/API is JSON, the UI should not require users to hand-edit JSON syntax — quoting keys, balancing braces, escaping strings. This is error-prone and unfriendly compared to a structured form (one row per key/value, dropdowns for known fields, etc.).

Suggestions

  • Replace the JSON textarea with a structured editor: known frontmatter keys (name, description, etc.) get dedicated labeled inputs; unknown keys can still be added as ad-hoc rows.
  • Add a tooltip/help link explaining what frontmatter is and what fields are recognized.
  • If keeping the raw JSON view as an "advanced" option, default to the structured form.

Impact

Lower friction for authoring skills, fewer malformed-JSON errors, more discoverable feature.

extent analysis

TL;DR

Replace the raw JSON textarea with a structured editor and add inline help to improve user experience and reduce errors.

Guidance

  • Consider replacing the JSON textarea with a form that includes dedicated inputs for known frontmatter keys, such as name and description.
  • Add a tooltip or help link to explain the purpose of frontmatter and the recognized fields to reduce user confusion.
  • If retaining the raw JSON view, default to the structured form for a better user experience.
  • Evaluate the feasibility of allowing ad-hoc rows for unknown keys to provide flexibility while maintaining a user-friendly interface.

Example

No code example is provided as it is not explicitly supported by the issue.

Notes

The solution may require updates to the UI and potentially the underlying API or storage if the structured editor changes the format of the frontmatter data.

Recommendation

Apply a workaround by replacing the raw JSON textarea with a structured editor, as this approach is likely to improve the user experience and reduce errors, while also providing a clear explanation of the frontmatter field's purpose and recognized fields.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING