---
name: php186-skill-27028
description: "分析 OpenClaw SKILL.md，提取其权限范围——包括环境变量、CLI 工具、文件系统路径及网络 URL 的访问。并比较声明的资源需求。"
---

# Scopecheck

## ScopeCheck

 

Find out what a skill actually accesses vs what it claims to need.

 

## Start the server

 

```
uvicorn scopecheck.app:app --port 8002
```

 

## Check a skill's scope

 

```
curl -s -X POST http://localhost:8002/v1/check-scope 
  -H "Content-Type: application/json" 
  -d "{"skill_content": $(cat path/to/SKILL.md | jq -Rs)}" | jq
```

 

Returns ` declared ` (env vars and bins from metadata), ` detected ` (what the skill actually references), and ` undeclared_access ` (detected but not declared — potential risk).

 

## What it extracts

 

- **env\_vars** — environment variables like $HOME, $API\_KEY
- **cli\_tools** — binaries used in Run/Execute commands
- **filesystem\_paths** — /etc/hosts, ~/.ssh/config, etc.
- **network\_urls** — any http/https URLs referenced

 

## Undeclared access format

 

Each undeclared item is prefixed with its type: ` env:SECRET_KEY `, ` bin:curl `, ` fs:/etc/passwd `, ` net:https://example.com `.
