一键导入
scope-check
Verify modified files against branch allowed/forbidden/conditional paths
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Verify modified files against branch allowed/forbidden/conditional paths
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Close a branch — final validation, PR creation, merge, archive plan file
Initialize a new branch with worktree, BRANCH.md from template, and environment setup
Run a source adapter against fixture data and verify the extracted output
Run lot gate checks — typecheck, lint, and scoped tests for the current lot
Update rules and skills after a branch merges — absorb learnings, refine patterns
Bootstrap a new source-feasibility spike in packages/radar-sources/src/sources/_spikes/
| name | scope-check |
| description | Verify modified files against branch allowed/forbidden/conditional paths |
| paths | plan/** |
| allowed-tools | Read Bash Grep Glob |
Workflow skill to verify that modified files respect branch scope boundaries declared in plan/NN-BRANCH_<slug>.md.
Read scope boundaries
Parse the ## Branch Scope Boundaries (MANDATORY) section and extract:
BRxx-EXn exception.
Also extract any declared exceptions from ## Feedback Loop.Get modified files
git diff --name-only HEAD~1 # committed
git diff --cached --name-only # staged
git diff --name-only # unstaged
Deduplicate.
Classify each file For each file, match against scope in order:
OK.VIOLATION.BRxx-EXn with rationale + impact + rollback) → OK (exception BRxx-EXn).VIOLATION (missing exception).WARNING (unknown path).Report
| File | Status | Detail |
|---------------------------------------|-------------------------|--------------------------|
| api/src/services/foo.ts | OK | Allowed: api/** |
| Makefile | VIOLATION | Forbidden |
| api/drizzle/0042.sql | OK (exception BR04-EX1) | Conditional with except. |
| scripts/deploy.sh | WARNING | Unknown path |
If any VIOLATION: stop. Either revert the file, or declare a BRxx-EXn exception in the plan file and re-run.
WARNING) are not blocking but should be added to Allowed (or removed) explicitly.