Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

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от 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. why is optional, plain text, shown to the operator (cut at 200 characters).
  • remote (optional): any of lan, 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):

  1. Covering grants — GET $BASE/api/access/grants → pathGrants. A grant covers a folder when its subject equals it or is an ancestor. For each, say how it was created: via: "provision" = approved through a provisioning request for project origin; via: "prompt" = allow-always on an access dialog; via: "agent-prompt" = answered on an agent file-access prompt; no via = created from the Access page. Include scope and grantedAt. Also list projectTrust / worktreeTrust / kbTrust entries covering it.
  2. Profile coverage — when .pi/access.json exists, resolve each folder and mark it covered / not covered by the grants above. A missing or non-directory path is reported as missing.
  3. YOLO — GET $BASE/api/access/prompts → data.yolo.session: null (off) or {source, expiresAt, unscoped, roots}. Also data.prompting (is the operator being asked at all, and blockers).
  4. pi trust — GET $BASE/api/access/pi-trust → data.effective entries covering the root (sourceLabel), else "not trusted by the dashboard mirror".
  5. Path-gate — GET $BASE/api/config → agentPathGate.enabled (default on). PI_DASHBOARD_AGENT_PATH_GATE=off|on in the environment overrides it; report that value when set.
  6. bash is 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.

  1. Read GET $BASE/api/access/grants → pathGrants. A grant is this project's when its origin equals the project root, or origin is a session id whose cwd (from GET $BASE/api/sessions, best effort) lies in the root.
  2. Count what you could not attribute: grants whose origin is unknown, and grants whose origin is a session id you could not resolve. Record whether the sessions API answered.
  3. 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>".
  4. 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").
  5. ask_user (confirm) to write .pi/access.json. Only on yes, write it. An existing file is shown in full
Полный SKILL.md на GitHub

Установить project-access в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

SKILL.md.AGENTS.md

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), без исполняемых скриптов.

Похожие скиллы

Сравнить project-access с