You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Created: January 2026
Source: Claude Code changelog (January 2026) + Production implementation
Evidence: 171 skills optimized with new frontmatter features
Overview
Claude Code introduced new skill frontmatter features in January 2026 that enable:
Isolated execution via context: fork
Agent routing via agent: field
Menu visibility control via user-invocable: false
Wildcard bash permissions for cleaner configuration
This guide shows how to optimize your skills library with these features.
1. Context Fork (context: fork)
What It Does
Runs skill in an isolated sub-agent context
Prevents context pollution from long-running operations
Reduces menu clutter for consolidated/internal skills
When to Use
Consolidated skills that redirect to master skills
Internal/utility skills not meant for direct invocation
Template skills used as references only
Implementation
---
name: api-authentication-patterns-skilldescription: "Configure API authentication..."user-invocable: false
---
# ⚠️ CONSOLIDATEDThis skill has been consolidated into **api-master-skill**.
Batch Update Script
# Find and mark consolidated skillscd~/.claude/skills
forskillin$(grep -l "consolidated into"*/SKILL.md 2>/dev/null | xargs -I{} dirname {});doif! grep -q "user-invocable:""$skill/SKILL.md";then
sed -i '/^description:/a user-invocable: false'"$skill/SKILL.md"echo"✅ Marked $skill as internal"fidone
4. Wildcard Bash Permissions
What It Does
Uses * wildcard at any position in Bash rules
Simplifies permission configuration
Reduces maintenance overhead
Before (Explicit Rules)
{
"permissions": {
"allow": [
"Bash(npm run test)",
"Bash(npm run lint)",
"Bash(npm run format)",
"Bash(npm install)",
"Bash(git status)",
"Bash(git log)",
"Bash(git diff)",
"Bash(git add)",
"Bash(gcloud run deploy)",
"Bash(gcloud run services)",
"Bash(docker build)",
"Bash(docker push)"
]
}
}