Install
Install with PiG
pig install npm:pi-project-docsInstall with Pi
pi install npm:pi-project-docsPackages run code with your permissions and influence agent behavior. Catalog inclusion is not a security audit. Review the source before installing a third-party package.
Pi manifest JSON
The pi field of package.json.
{
"skills": [
"./skills"
]
}README
Written by the package's publisher, shown as published in version 1.3.0 (README.md). PiG does not review it.
pi-project-docs
A Pi skill that keeps a project's Markdown documents organized by reader: which documents a project has, what goes in each, templates for the agent context file, plans, ADRs, changelogs and known issues, and a checker for the mechanical rules.
This README is authoritative for installation, use and removal. The rules themselves live in the skill.
Contents
Requirements
- Pi with skills support.
- Python 3.9 or newer for the checker (standard library only).
Install
pi install npm:pi-project-docs
Then run /reload or start a new session. Update with pi update npm:pi-project-docs.
Only one copy of each of project-docs, project-docs-init,
project-docs-organize and project-init should be discoverable. Before installing, remove or move any other
copies; Pi keeps the first skill it finds with a given name.
Use
Pi can load the skills when a task matches. Use these commands to select an entry point:
/skill:project-docs-init Initialize this project's documents
/skill:project-docs-organize Organize this project's documents
/skill:project-docs Audit this repository's documents
/skill:project-init Create a new Python project here
The two focused entry points use the shared project-docs rules and honor your applicable
user-level instructions. Organizing existing content also applies the templates to existing
agent context, changelog, known-issues, plan and ADR documents. It keeps valid content,
release history and metadata, and requires your approval of the proposed moves and formatting
before edits.
project-init creates a new Python project in an empty directory: a Git repository, a
uv-managed interpreter and virtual environment inside the project (.python/, .venv/,
.uv-cache/, all ignored), .gitignore, .dockerignore and the initial documents. It
needs uv and network access to GitHub release downloads (github.com,
objects.githubusercontent.com, release-assets.githubusercontent.com) and PyPI
(pypi.org, files.pythonhosted.org); if the network blocks them it stops and lists the
domains. It asks whether you plan to publish packages; only if you say yes it creates
release/.gitignore, which ignores everything in release/ except itself.
Initialization and overall reorganization ask you for the two context metadata lines,
Model profile: and GitHub account:, and confirm that the current model provider is
allowed for the profile. A tracked context file can expose the account name.
Run the checker
From the root of the repository to check:
python3 "${PI_PROJECT_DOCS_CHECKER:-$HOME/.pi/agent/npm/node_modules/pi-project-docs/skills/project-docs/scripts/check_docs.py}" . --strict
Set PI_PROJECT_DOCS_CHECKER to the checker's path when the package is not in the default
Pi agent directory (for example with PI_CODING_AGENT_DIR set or a source checkout); the
command uses the default install path otherwise. Projects created from the skill's
agent-context template use the same command. Without --strict, warnings are printed but do not fail. The checker
exits 1 when it finds an error (or a warning with --strict) and 0 otherwise.
The checker also warns when Model profile: (work or private) or GitHub account: is
missing, duplicated or empty in the agent context file. --exclude GLOB (repeatable, relative to the repository root) skips the body checks for
matching documents, for example templates written for other projects; they must still be
listed in the Documentation map.
Removal
pi remove npm:pi-project-docs
Then run /reload. Projects keep their documents; only the skill and checker are removed.
License
MIT; see LICENSE.