permission-check

仓库创建 2026年2月7日最近提交 1 个月前SkillHot 收录 22 天前
▸ 精选理由

定位多层覆盖导致的静默权限问题,便于开发与运维排查

▸ 风险提示

会读取项目与用户层的配置文件,读取用户目录需谨慎授权

这个 Skill 做什么

诊断Claude Code在多层配置堆栈中为何触发或不触发权限提示的原因

帮你排查 Claude Code 为何会(或不会)弹权限提示,读出仓库级别的配置层并指出哪个层级触发或覆盖了权限决策。默认只读项目/工作区本地设置,只有在你确认时才会查看主机级(如 ~/.claude、VSCode user settings)以免暴露敏感路径,整个过程是只读诊断。适合遇到莫名权限弹窗或绕不过去的授权问题时用。

▸ 展开 SKILL.md 英文原文

Diagnose why Claude Code is (or isn't) prompting for permission. By default reads only repo-local layers (CLI project, CLI project-local, VSCode workspace). Host-global layers (CLI user `~/.claude/`, VSCode user settings) are read ONLY when the user explicitly confirms — those files may contain unrelated paths or secrets. Use when user says "why is it asking me to approve?", "permission check", "why am I getting prompts?", "bypass isn't working", "check my permissions". Read-only diagnostic.

开发编程权限诊断配置排查多层检查通用
1.4k
Stars
2.8k
Forks
40
仓库内 Skill
+65
7 日增星
安装 / 使用
给你的 Agent 一句话(通用)
帮我安装这个 skill:https://raw.githubusercontent.com/pedrohcgs/claude-code-my-workflow/main/.claude/skills/permission-check/SKILL.md
或 curl 直取 SKILL.md
curl -fsSL "https://raw.githubusercontent.com/pedrohcgs/claude-code-my-workflow/main/.claude/skills/permission-check/SKILL.md"
SKILL.MD 节选查看完整文件 ↗
# Permission Check

## Purpose

Surface the full permission-mode picture across every layer Claude Code honors, so the user can see at a glance why prompts are (or aren't) firing. Claude Code resolves permission mode from a 6-tier stack; a single misconfigured layer produces silent overrides that are hard to debug by eye.

## The 6 layers (precedence: bottom wins)

1. **VSCode user settings** — `~/Library/Application Support/Code/User/settings.json` (macOS), `%APPDATA%/Code/User/settings.json` (Windows), `~/.config/Code/User/settings.json` (Linux). Key: `claudeCode.initialPermissionMode`.
2. **VSCode workspace settings** — `<repo>/.vscode/settings.json`. Same key. Wins over user.
3. **CLI us
via SKILL·HOT · 数据来自 GitHub 公开信息 · 原文版权归作者所有