project-access
БесплатноБез исполняемых скриптовНе проверенMap, suggest and request the folder access a project needs: `map` (read-only report), `suggest` (draft `.pi/access.json` from this project's grants)…
от BlackBeltTechnology★ 357 звёзд на GitHubОб этом скилле
Project Access
Work out which folders outside a project its agents need, and ask the dashboard operator to approve them once, ahead of time, instead of one prompt per denial.
You only ever propose. The operator answers per line in the dashboard. Nothing in this skill grants access, changes configuration, or answers for the operator.
Setup — server URL
Discover the server the way the pi-dashboard skill does (config port, default 8000):
PORT=$(grep -m1 '"port"' ~/.pi/dashboard/config.json 2>/dev/null | grep -o '[0-9]*'); PORT=${PORT:-8000}
BASE="http://localhost:$PORT"
curl -s "$BASE/api/health"
(grep -m1 takes the top-level port; the config also nests other port keys.)
If health does not answer, say the dashboard is not running and stop (every mode
needs it, except reading .pi/access.json). When auth is enabled, pass the JWT
cookie as the pi-dashboard skill describes (curl -b "pi_dash_token=…").
Project root = git rev-parse --show-toplevel from the cwd; when that
fails, the cwd if it holds a .pi directory. A root with neither .git nor
.pi is not a project: say so and stop.
Profile — .pi/access.json (format v1)
Optional file in the project root. A proposal only: the dashboard server
never reads it, and the file alone grants nothing. Its contents take effect only
through an approved provision request.
{
"version": 1,
"folders": [{ "path": "../shared-lib", "why": "sibling package used by tests" }],
"remote": ["lan"]
}
folders[].path: absolute,~/-rooted or relative to the project root.whyis optional, plain text, shown to the operator (cut at 200 characters).remote(optional): any oflan,internet,device. A goal only points the operator at the Remote access dialog; nothing is configured for them.- At most 32 folder lines.
- An unknown
version(or a missing/non-numeric one): refuse. Say the file is not version 1, show the value found, and do not read or send any of it.
Mode map
Read-only. It never writes a file, a grant or a configuration value. Report, for
the project root and each session cwd inside it (GET $BASE/api/sessions, rows
whose cwd lies in the root; if unreachable, say "session roots: unknown" and
use the project root alone):
- Covering grants —
GET $BASE/api/access/grants→pathGrants. A grant covers a folder when itssubjectequals it or is an ancestor. For each, say how it was created:via: "provision"= approved through a provisioning request for projectorigin;via: "prompt"= allow-always on an access dialog;via: "agent-prompt"= answered on an agent file-access prompt; novia= created from the Access page. IncludescopeandgrantedAt. Also listprojectTrust/worktreeTrust/kbTrustentries covering it. - Profile coverage — when
.pi/access.jsonexists, resolve each folder and mark it covered / not covered by the grants above. A missing or non-directory path is reported as missing. - YOLO —
GET $BASE/api/access/prompts→data.yolo.session:null(off) or{source, expiresAt, unscoped, roots}. Alsodata.prompting(is the operator being asked at all, andblockers). - pi trust —
GET $BASE/api/access/pi-trust→data.effectiveentries covering the root (sourceLabel), else "not trusted by the dashboard mirror". - Path-gate —
GET $BASE/api/config→agentPathGate.enabled(default on).PI_DASHBOARD_AGENT_PATH_GATE=off|onin the environment overrides it; report that value when set. bashis not gated. Always say so: grants and the path gate cover the file tools, not shell commands, which run with the operator's own rights.
End with one line naming what could not be read. Every read that fails is reported as unknown, never guessed.
Mode suggest
Draft .pi/access.json from grants this project's sessions created.
- Read
GET $BASE/api/access/grants→pathGrants. A grant is this project's when itsoriginequals the project root, ororiginis a session id whosecwd(fromGET $BASE/api/sessions, best effort) lies in the root. - Count what you could not attribute: grants whose
originisunknown, and grants whose origin is a session id you could not resolve. Record whether the sessions API answered. - Drop grants whose subject lies inside the project root (they need nothing).
Express the rest relative to the root when under its parent, else absolute.
why="granted via <via or Access page> on <date>". - Show the draft. Before you ask to write, state the coverage gaps: "N grants were skipped (origin unknown)" and, when the sessions API did not answer, "the sessions API was unreachable, so this list may be partial". Say this even when N is 0 and the API answered ("nothing skipped").
ask_user(confirm) to write.pi/access.json. Only on yes, write it. An existing file is shown in full
Установить project-access в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл project-access?
Map, suggest and request the folder access a project needs: `map` (read-only report), `suggest` (draft `.pi/access.json` from this project's grants), `provision` (submit it for line-by-line operator approval). Use on "what folders can this project reach", "set up folder access", "write .pi/access.json", repeated folder access prompts, or retrying access setup after project-init.
Как установить скилл project-access?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл project-access запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
docx
Use this skill whenever the user wants to create, read, edit, or manipulate Word documents (.docx files) or Word templates (.dotx files). Triggers include…
от AnthropicUse this skill whenever the user wants to do anything with PDF files. This includes reading or extracting text/tables from PDFs, combining or merging multiple…
от Anthropicxlsx
Use this skill any time a spreadsheet file is the primary input or output. This means any task where the user wants to: open, read, edit, or fix an existing…
от Anthropicpptx
Use this skill any time a .pptx or .potx file is involved in any way — as input, output, or both. This includes: creating slide decks, pitch decks, or…
от Anthropic