React error #31 when using skills with argument-hint frontmatter
Resolved 💬 3 comments Opened Feb 14, 2026 by Svishnum Closed Feb 18, 2026
Description
Using a skill with an argument-hint field in the YAML frontmatter causes a React crash when typing the slash command (e.g., /career-coach).
Error
ERROR Minified React error #31; visit https://react.dev/errors/31?args[]=object%20with%20keys%20%7Btopic%7D
"Objects are not valid as a React child" — the UI fails to render the slash command preview.
Steps to Reproduce
- Create a skill with
argument-hintin the frontmatter:
``yaml``
---
name: my-skill
description: Some skill
argument-hint: [topic: foo | bar | baz]
---
- Type
/my-skillin the Claude Code input - React error #31 crashes the UI
Expected Behavior
The argument hint should render as helper text in the autocomplete dropdown, or at minimum be ignored without crashing.
Workaround
Remove the argument-hint line from skill frontmatter. The skill continues to work normally without it.
Environment
- Claude Code v3.13.11
- macOS Darwin 25.2.0
This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗