-
Notifications
You must be signed in to change notification settings - Fork 13
Skill: support custom metadata in skills from Claude, in addition to the ones from Agent skills #206
Copy link
Copy link
Closed
Labels
Description
Branch: 206-skills-properties
PR: #223
Agent skills has a specification about the data to be supported in the frontmatter:
However, Claude Code supports additional references in the frontmatter:
We should be more permissive to let users upload to Packmind their Claude skills.
---- The following attributes are in the spec of Claude Code - not Agent Skills.
| Field | Required | Description |
|---|---|---|
argument-hint |
No | Hint shown during autocomplete to indicate expected arguments. Example: [issue-number] or [filename] [format]. |
disable-model-invocation |
No | Set to true to prevent Claude from automatically loading this skill. Use for workflows you want to trigger manually with /name. Default: false. |
user-invocable |
No | Set to false to hide from the / menu. Use for background knowledge users shouldn't invoke directly. Default: true. |
model |
No | Model to use when this skill is active. |
context |
No | Set to fork to run in a forked subagent context. |
agent |
No | Which subagent type to use when context: fork is set. |
hooks |
No | Hooks scoped to this skill's lifecycle. See Hooks in skills and agents for configuration format. |
Example of complete frontmatter with additional properties:
---
name: secure-operations
description: Perform operations with security checks
context: fork
model: sonar-4.6
agent: subagent
user-invocable: false
argument-hint: [issue-number]
disable-model-invocation: true
hooks:
PreToolUse:
- matcher: "Bash"
hooks:
- type: command
command: "./scripts/security-check.sh"
---Reactions are currently unavailable