Back to all rules / Format and vendor rules
unknown-key
A frontmatter key the reading tool ignores.
Source: Claude Code docs: Skills (code.claude.com), read 14 October 2026.
On GitHub: the rule doc and the tests.
Jump to another rule89
What it catches#
A frontmatter key the reading tool ignores.
A frontmatter key that the tool reading the file does not know. When the key is one or two edits from a real one (user-invokable for user-invocable) and its value is the kind the real key takes (a boolean for user-invocable), it is a warning, because it is almost always a typo that silently turns the option off. Otherwise it is a note: the key does nothing. In a SKILL.md the note adds that claude.ai and the Claude API reject an upload with keys outside the spec, and suggests moving your own data under metadata:.
Why it matters#
An ignored key does nothing. When it is one or two letters away from a real key it is reported as a warning, because it is almost always a typo. A skill outside the folders Claude Code and Agent Skills readers load from is read by the repo's own loader, which may use that spelling, so there it stays a note.
Bad example#
---
name: scaffold
description: Scaffold a new package in the monorepo. Use when asked to create a package or module.
user-invokable: false
allowed_tools: Bash(pnpm *)
---
Both keys are misspelled (user-invocable, allowed-tools), so the skill stays user-invocable and Claude still asks before every pnpm command. The message names the key it thinks you meant.
Good example#
---
name: scaffold
description: Scaffold a new package in the monorepo. Use when asked to create a package or module.
user-invocable: false
allowed-tools: Bash(pnpm *)
---
How to fix#
Use the spelling from the message. Keys are case-sensitive and use hyphens in skills and commands (allowed-tools), camelCase in subagents (permissionMode) and Cursor rules (alwaysApply). A Claude Code rule in .claude/rules/ reads paths only. For a key that is not a typo, either remove it or move it under metadata, which the spec reserves for extra data.
asitis can propose this edit. asitis lint --fix-preview prints a unified diff that git apply accepts, and the suggest_fixes MCP tool returns the same diff; nothing is written to disk by either. The fix for this rule needs review before you apply it, because it changes or removes content.
Suppress or configure#
For one finding, put a comment on the line above it. The reason after -- is optional but worth writing:
<!-- asitis-disable-next-line unknown-key -- why this one is fine -->
For a whole file:
<!-- asitis-disable-file unknown-key -- why this file is an exception -->
For every file, turn it off or change its severity in .asitisrc.json:
{ "rules": { "unknown-key": "off" } }
A .asitisrc.json overrides entry limits a change to some paths, and a baseline (asitis lint --format json --write-baseline) accepts today's findings so only new ones fail the build.
Source#
Claude Code docs: Skills, read on 14 October 2026.
See what an agent changed in your CLAUDE.md. Keep or revert each change.
The linter is free and needs no signup. I'm also building a desktop editor for the markdown your agents write and read. It shows what an agent changed since you last looked, lets you keep or revert each change, and never touches a line you didn't edit. No release date yet. One email to confirm, one when the paid beta opens, one when 1.0 ships. $29 once for a founding licence, with 24 months of updates.
Or add the linter to CI, no email needed.
Your address is stored with Cloudflare, which hosts this site. No IP address is kept. See the privacy policy.
Related guides
Run the rule
- In your browser, on one file
- In Claude Code, on the project
- In CI, on every pull request
This page is generated from the plugin's rule registry. Edit it on GitHub. False positive? Open an issue with the line it fired on.