project-docs
Installation
SKILL.md
project-docs — Document a repository and keep it current
Step 0 — Permissions this skill uses
Run this once, when the skill loads and before its other steps. It keeps the session from stopping on a prompt for a command this skill is known to run. It is not a security check: the host and its hooks still decide.
- Run
node <skill dir>/scripts/permissions.mjs check --root <session folder> --host <claude|codex|agy>.<skill dir>is the folder of thisSKILL.md;<session folder>is the folder where the session started; the host is the one you run in. - If
nodeis missing or the command fails, say so, list the needs in<skill dir>/permissions.jsonand go on with the skill. - Read
hosts.<host>in the output. Show itsnoticewhen there is one. - Ask each entry of its
questionswith the host's structured question tool, in the person's language: itstext, then its options in the given order, the one markedrecommendedfirst. Low-risk and high-risk needs are separate questions; ask them separately and never recommend allowing a high-risk need. - Run the
commandof the option the person chose, exactly as given. An option without a command writes nothing. Write nothing the person did not choose. - Tell the person the
appliesline of the result: whether the change works now or after a restart. If the command fails, say so and go on. - After "Skip for now", do not run this step again in the session.
Commands
Every command runs only when the person asks, and takes the path of a local git repository. Without a path, use the current folder when it is a git repository; otherwise ask for it.