Update one package README
Use this skill with one workspace-relative package directory:
/skill:update-package-readme packages/supi-cache
Subject boundary
Take exactly one package directory from the skill arguments. Accept one optional leading @, then require a path that matches packages/supi-*. Require package.json and README.md in that directory. Ask for a valid path when the argument is missing or ambiguous.
The selected package is the only package whose documentation is in scope. The allowed edits are:
- the selected package's
README.md
- current user-facing Markdown files that make a direct claim about that package
A direct claim is a sentence, list item, table row, install example, or link that names the package and describes its purpose, status, installation, or public behavior. Search repository-owned Markdown files for the directory name, npm package name, and package README link.
Phase 1 — Read the installed Pi docs
Use the installed @earendil-works/pi-coding-agent path supplied by the harness. Otherwise, check node_modules/@earendil-works/pi-coding-agent. Ask for the docs location when the package is not installed.
Read these files in order:
README.md
docs/index.md
docs/packages.md
Next, inspect only the selected package's manifest, exports, and extension entrypoint. Use this short scan to identify its Pi resources and public library surface. Then read the matching docs:
docs/extensions.md for an extension
docs/skills.md for skills
docs/prompt-templates.md for prompts
docs/themes.md for themes
docs/tui.md and docs/keybindings.md for interactive terminal user interfaces or shortcuts
docs/sdk.md for a library that uses Pi programmatically
Follow direct Markdown links from the selected docs when the linked material defines an API or convention used by the package. Stop when each applicable install, resource, and usage rule has one Pi documentation source. Use the installed docs as the authority for Pi behavior.
Phase 1 is complete when: the working notes record the installed docs root, each detected package surface, and the Pi documentation source for each surface.
Phase 2 — Build an evidence map
Orient on the selected package, then inspect:
package.json
- the current
README.md
CLAUDE.md or AGENTS.md, when present
- exported entrypoints and package resources
- extension, command, tool, shortcut, and user interface registrations
- tool specifications and model guidance
- settings definitions, defaults, validation, migration, and scope
- tests that verify public behavior, limits, and failure modes
- required binaries, services, API keys, permissions, and supported file types
- root manifests, install scripts, and current catalogs when they define package status or stack membership
- current user-facing Markdown files that make direct claims about the package
Keep a short evidence map in the current working notes. Do not create a repository file for it. Give each entry three fields: verified fact, source path, and README action. Include:
- package role: Pi extension, resource-only extension, public library, internal package, test utility, or mixed package
- supported installation methods
- release, beta, DevTools, internal, or bundled-only status
- resources added to Pi
- exact tools, commands, shortcuts, settings, and public exports
- defaults, limits, mode restrictions, persistence, and supported file types
- privacy, security, filesystem, Git, process, and sandbox boundaries
- stale, misleading, or unsupported claims in current docs
Use these evidence rules:
- Installed Pi docs define Pi behavior and package commands.
- Manifests, exports, and install scripts define package and install surfaces.
- Source and tests define package behavior.
- Existing README text is a claim to verify, not evidence.
- Package instruction files define maintenance constraints, not runtime behavior.
Resolve conflicts from these sources before editing. Ask the user when an unresolved conflict changes installation, package status, scope, or a public contract. Omit an unsupported optional detail and report it as an ambiguity.
Phase 2 is complete when: each evidence-map entry has a source and an action, each registered public surface has an entry, and each direct Markdown reference is classified as current, stale, or historical.
Phase 3 — Update the documentation
Update the selected package README first. Make it accurate, concise, specific, and useful to a package user.
Apply these rules:
- Write only verified claims.
- Use ASD-STE100 Simplified Technical English and the repository's established voice.
- Explain the practical outcome before implementation details.
- Use
pi install npm:<package> for an installable Pi package.
- Use the applicable package-manager command for a public library.
- Identify an internal or private package clearly instead of giving an end-user install command.
- Name only resources, commands, tools, shortcuts, settings, and exports that exist.
- Document runtime discovery as its user-visible result.
- State important defaults, requirements, limits, privacy rules, and security boundaries directly.
- Preserve accurate banners, screenshots, links, examples, and local development notes.
- Remove stale lists, generic boilerplate, duplicate explanations, and unsupported marketing claims.
Use only the sections that fit the package:
- title and one-sentence summary
- install
- features or what it adds
- usage
- configuration or settings
- requirements, limits, privacy, or security
- public API and examples for a library
- source entrypoints or developer notes when useful
After the package README is accurate, update each current user-facing Markdown file whose direct claim conflicts with the evidence map. Change only the claim about the selected package. Keep unrelated prose unchanged.
Phase 3 is complete when: the package README contains only verified current claims and all current direct Markdown references agree with it.
Validate
- Re-read every changed document against the evidence map.
- Check headings, code fences, relative links, image links, and named source paths.
- When Git is available, run
git diff --check.
- Inspect the complete diff and final status. Confirm that all new edits are documentation edits about the selected package and that pre-existing changes remain intact.
For documentation-only changes, skip the full code verification suite unless project instructions require it.
The task is complete when: every changed claim is verified, all direct current references were checked, validation passes, and each unresolved documentation gap appears in the final report.
Report
After validation, give the user a final response with:
- the selected package and its verified role
- a brief research summary with the key source paths
- each document changed and the main change
- validation performed
- open questions, ambiguities, or stale historical references left unchanged
1---2name: update-package-readme3description: Update one SuPi package README and its direct user-facing Markdown references from installed Pi docs and verified package evidence.4---56# Update one package README78Use this skill with one workspace-relative package directory:910```text11/skill:update-package-readme packages/supi-cache12```1314## Subject boundary1516Take exactly one package directory from the skill arguments. Accept one optional leading `@`, then require a path that matches `packages/supi-*`. Require `package.json` and `README.md` in that directory. Ask for a valid path when the argument is missing or ambiguous.1718The selected package is the only package whose documentation is in scope. The allowed edits are:1920- the selected package's `README.md`21- current user-facing Markdown files that make a direct claim about that package2223A direct claim is a sentence, list item, table row, install example, or link that names the package and describes its purpose, status, installation, or public behavior. Search repository-owned Markdown files for the directory name, npm package name, and package README link.2425## Phase 1 — Read the installed Pi docs2627Use the installed `@earendil-works/pi-coding-agent` path supplied by the harness. Otherwise, check `node_modules/@earendil-works/pi-coding-agent`. Ask for the docs location when the package is not installed.2829Read these files in order:30311. `README.md`322. `docs/index.md`333. `docs/packages.md`3435Next, inspect only the selected package's manifest, exports, and extension entrypoint. Use this short scan to identify its Pi resources and public library surface. Then read the matching docs:3637- `docs/extensions.md` for an extension38- `docs/skills.md` for skills39- `docs/prompt-templates.md` for prompts40- `docs/themes.md` for themes41- `docs/tui.md` and `docs/keybindings.md` for interactive terminal user interfaces or shortcuts42- `docs/sdk.md` for a library that uses Pi programmatically4344Follow direct Markdown links from the selected docs when the linked material defines an API or convention used by the package. Stop when each applicable install, resource, and usage rule has one Pi documentation source. Use the installed docs as the authority for Pi behavior.4546**Phase 1 is complete when:** the working notes record the installed docs root, each detected package surface, and the Pi documentation source for each surface.4748## Phase 2 — Build an evidence map4950Orient on the selected package, then inspect:5152- `package.json`53- the current `README.md`54- `CLAUDE.md` or `AGENTS.md`, when present55- exported entrypoints and package resources56- extension, command, tool, shortcut, and user interface registrations57- tool specifications and model guidance58- settings definitions, defaults, validation, migration, and scope59- tests that verify public behavior, limits, and failure modes60- required binaries, services, API keys, permissions, and supported file types61- root manifests, install scripts, and current catalogs when they define package status or stack membership62- current user-facing Markdown files that make direct claims about the package6364Keep a short evidence map in the current working notes. Do not create a repository file for it. Give each entry three fields: verified fact, source path, and README action. Include:6566- package role: Pi extension, resource-only extension, public library, internal package, test utility, or mixed package67- supported installation methods68- release, beta, DevTools, internal, or bundled-only status69- resources added to Pi70- exact tools, commands, shortcuts, settings, and public exports71- defaults, limits, mode restrictions, persistence, and supported file types72- privacy, security, filesystem, Git, process, and sandbox boundaries73- stale, misleading, or unsupported claims in current docs7475Use these evidence rules:7677- Installed Pi docs define Pi behavior and package commands.78- Manifests, exports, and install scripts define package and install surfaces.79- Source and tests define package behavior.80- Existing README text is a claim to verify, not evidence.81- Package instruction files define maintenance constraints, not runtime behavior.8283Resolve conflicts from these sources before editing. Ask the user when an unresolved conflict changes installation, package status, scope, or a public contract. Omit an unsupported optional detail and report it as an ambiguity.8485**Phase 2 is complete when:** each evidence-map entry has a source and an action, each registered public surface has an entry, and each direct Markdown reference is classified as current, stale, or historical.8687## Phase 3 — Update the documentation8889Update the selected package README first. Make it accurate, concise, specific, and useful to a package user.9091Apply these rules:9293- Write only verified claims.94- Use ASD-STE100 Simplified Technical English and the repository's established voice.95- Explain the practical outcome before implementation details.96- Use `pi install npm:<package>` for an installable Pi package.97- Use the applicable package-manager command for a public library.98- Identify an internal or private package clearly instead of giving an end-user install command.99- Name only resources, commands, tools, shortcuts, settings, and exports that exist.100- Document runtime discovery as its user-visible result.101- State important defaults, requirements, limits, privacy rules, and security boundaries directly.102- Preserve accurate banners, screenshots, links, examples, and local development notes.103- Remove stale lists, generic boilerplate, duplicate explanations, and unsupported marketing claims.104105Use only the sections that fit the package:106107- title and one-sentence summary108- install109- features or what it adds110- usage111- configuration or settings112- requirements, limits, privacy, or security113- public API and examples for a library114- source entrypoints or developer notes when useful115116After the package README is accurate, update each current user-facing Markdown file whose direct claim conflicts with the evidence map. Change only the claim about the selected package. Keep unrelated prose unchanged.117118**Phase 3 is complete when:** the package README contains only verified current claims and all current direct Markdown references agree with it.119120## Validate1211221. Re-read every changed document against the evidence map.1232. Check headings, code fences, relative links, image links, and named source paths.1243. When Git is available, run `git diff --check`.1254. Inspect the complete diff and final status. Confirm that all new edits are documentation edits about the selected package and that pre-existing changes remain intact.126127For documentation-only changes, skip the full code verification suite unless project instructions require it.128129**The task is complete when:** every changed claim is verified, all direct current references were checked, validation passes, and each unresolved documentation gap appears in the final report.130131## Report132133After validation, give the user a final response with:1341351. the selected package and its verified role1362. a brief research summary with the key source paths1373. each document changed and the main change1384. validation performed1395. open questions, ambiguities, or stale historical references left unchanged