Skillquality 0.47

skill-scoped-permission-suggestions

Suggest the narrowest permission scope by mapping a file path to its enclosing skill directory before prompting the user.

Price
free
Protocol
skill
Verified
no

What it does

SKILL: Skill-Scoped Permission Suggestions

Domain: safety-worktrees
Trigger: Apply this when Claude is asking for filesystem permission that can be narrowed to a single skill directory. Source Pattern: Distilled from reviewed repo-safety, packaging, and worktree-management patterns.

Core Method

Leverage the skill path parser to detect when a target file resides inside .claude/skills/<skill-name> (project or global). Once matched, compute a gitignore-style prefix such as /.claude/skills/<skill-name>/** and offer that as the minimal scope for the permission prompt. This keeps the permission dialogue focused on the skill under edit and prevents giving blanket access to the entire .claude tree.

Key Rules

  • Normalize paths and compare lowercased versions so the detection works on both Windows and Unix filesystems.
  • Reject skill names that contain . or traversal segments before suggesting scopes to avoid leaking overlapping directories.
  • Always prefer /.claude/skills/<name>/** or ~/.claude/skills/<name>/** over /.claude/** whenever the file sits inside a skill.
  • When normalization finds no skill directory, fall back to the default wider scope instead of fabricating a useless pattern.

Example Application

When editing skills/my-skill/SKILL.md, call this method before showing the permission prompt so you can recommend granting /.claude/skills/my-skill/** instead of the entire .claude directory.

Anti-Patterns (What NOT to do)

  • Do not re-prompt with the same wide scope if the normalized path already resolves to a skill — that defeats the purpose of scoped access.
  • Don’t rely on raw casing or unnormalized separators; mismatched case would generate invalid patterns and quietly fall through.

Capabilities

skillsource-ychampionskill-skill-scoped-permission-suggestionstopic-agent-skillstopic-ai-agentstopic-clitopic-coding-agentstopic-context-engineeringtopic-developer-toolstopic-mcptopic-multi-agenttopic-terminal-ui

Install

Quality

0.47/ 1.00

deterministic score 0.47 from registry signals: · indexed on github topic:agent-skills · 34 github stars · SKILL.md body (1,763 chars)

Provenance

Indexed fromgithub
Enriched2026-04-22 00:56:56Z · deterministic:skill-github:v1 · v1
First seen2026-04-18
Last seen2026-04-22

Agent access