@firstpick/pi-extension-archwiki-local
v0.1.1
Published
Local ArchWiki search and retrieval tools for Pi using the installed arch-wiki-docs package.
Maintainers
Readme
archwiki-local Pi extension
Local ArchWiki retrieval tools and an Arch/Arch-based distro troubleshooting skill backed by the installed arch-wiki-docs package. The skill prioritizes EndeavourOS first and CachyOS second when distro-specific context matters.
Docs path:
/usr/share/doc/arch-wiki/html/en/Cache path:
~/.cache/pi/archwiki-local/
├── pages.json
└── metadata.jsonPackaged skill
The package includes skills/arch-linux-local/SKILL.md, so publishing/installing the package can deliver the troubleshooting workflow and the extension together.
The skill is for Arch Linux and Arch-based distributions, not only vanilla Arch. It includes distro reference notes for EndeavourOS, CachyOS, Manjaro, Garuda Linux, Artix Linux, and BlackArch.
Registered commands
/archwiki-status— reports docs path, page count,arch-wiki-docspackage version, and cache freshness./archwiki-local-setup— installsarch-wiki-docswithpacmanwhen missing, and checkspacman -Qu arch-wiki-docsfor pending updates when already installed. If automatic install/update is not possible, it tells the user to run:sudo pacman -S arch-wiki-docs
Registered tools
archwiki_search— searches local pages with query normalization, query expansion, weighted ranking, snippets, and score explanations.archwiki_read— reads a page as clean text with local path citation.archwiki_sections— lists extracted headings.archwiki_extract— extracts a named or query-relevant section.archwiki_related— returns locally linked ArchWiki pages.
Notes
The first tool call builds the cache through the shared pi-utils local-wiki engine. Cache invalidation uses schema version, page count, docs path, and newest source mtime.
If /usr/share/doc/arch-wiki/html/en/ is missing or empty, ArchWiki-local prompts/tools warn that arch-wiki-docs is required and stop instead of falling back silently.
Local development note
The global extension symlink loads only the extension file. To load the packaged skill without a standalone ~/.pi/agent/skills/arch-linux-local copy, install the package as a local Pi package or add it to Pi package settings.
