Arch Linux Local Troubleshooting
Always use this skill for Arch Linux and Arch-based distribution troubleshooting on this machine. Prioritize EndeavourOS first and CachyOS second when distro context matters. Prefer the installed local ArchWiki (arch-wiki-docs) before web searches. The user should not need to say “use local ArchWiki first”; if the issue looks Arch/Linux-related, start with local ArchWiki retrieval.
Setup requirement
This skill requires the local ArchWiki documentation package:
bashsudo pacman -S arch-wiki-docs
If /usr/share/doc/arch-wiki/html/en/ is missing or empty, warn the user to install arch-wiki-docs with the command above and abort ArchWiki-local troubleshooting. If the extension command is available, the user can also run /archwiki-local-setup to install it when non-interactive sudo/root access permits.
After package/corpus changes, verify local behavior with /archwiki-smoke-test or archwiki_smoke_test({ maxSearchResults: 5 }).
Required workflow
- Start with
archwiki_search({ query, limit: 5, includeSnippets: false })for Arch/Linux issues. - Use
archwiki_sections({ page, maxSections: 40-80 })when the right page is found but the relevant heading is unclear. - Prefer exact
archwiki_extract({ page, section, maxChars: 4000-8000, maxSections: 2-5 })for final citations. - Use query extraction only for exploration, then switch to exact section names when possible.
- Use
archwiki_readonly when broad page context is needed. - Use
archwiki_relatedwhen the issue spans subsystems. - Detect the distro when relevant, especially EndeavourOS or CachyOS, using read-only evidence.
- Load distro-specific reference docs when the distro is known or mentioned.
- Run read-only local diagnostics when system evidence is relevant.
- Compare documentation guidance with observed system state.
- Cite local ArchWiki page paths and section names in final answers.
- Ask before destructive or user-facing system changes.
Source priority
- Local ArchWiki from
/usr/share/doc/arch-wiki/html/en/via the ArchWiki tools for shared Arch foundations. - Local distro/system evidence:
/etc/os-release, package metadata, repositories, service status, logs, config files. - Packaged distro reference notes, especially EndeavourOS and CachyOS.
- Official online ArchWiki, Arch Linux docs, or official distro docs only when local docs are missing, stale, or insufficient.
- Other sources only when necessary and clearly labeled.
Tool usage
archwiki_search({ query, limit, includeSnippets }): find candidate pages. Keeplimitat 5 unless exploring broadly; snippets default off.archwiki_sections({ page, maxSections }): inspect available headings before extracting from large pages.archwiki_extract({ page, section, maxChars, maxSections }): retrieve focused exact sections; best for final answers.archwiki_extract({ page, query, maxChars, maxSections }): retrieve query-relevant sections; best for exploration.archwiki_read({ page, maxChars }): retrieve clean readable page text; use sparingly.archwiki_related({ page, limit }): discover linked local pages.archwiki_smoke_test({ maxSearchResults }): verify parser/search/extract/read behavior after package or corpus updates.
Diagnostics policy
Prefer read-only commands first. Examples:
bashcat /etc/os-release hostnamectl pacman-conf --repo-list uname -a pacman -Q pacman -Qi <pkg> pacman -Qo <file> systemctl status <unit> journalctl -b -u <unit> ip addr ip route resolvectl status loginctl session-status lsblk -f findmnt
Avoid mutation without explicit user approval:
bashpacman -R pacman -Syu rm -rf mkfs.* systemctl disable <unit> systemctl mask <unit> mount # with write-changing intent
Token/output discipline
- Prefer
search -> sections -> exact section extractfor final answers. - Keep search limits small (
limit: 5-10) and snippets off unless needed. - Use
maxSectionsaround 2-5 andmaxCharsaround 4000-8000 for focused extracts. - If
omittedSectionCountortruncated: trueaffects confidence, say so explicitly.
Citation format
Use local source citations like:
txtSources: - /usr/share/doc/arch-wiki/html/en/Systemd.html — Basic systemctl usage - /usr/share/doc/arch-wiki/html/en/Pacman/Package_signing.html — Signature checking
See references:
references/troubleshooting-policy.mdreferences/query-expansions.mdreferences/safety-rules.mdreferences/arch-based-distros.mdreferences/distros/endeavouros.md(priority distro)references/distros/cachyos.md(priority distro)references/distros/manjaro.mdreferences/distros/garuda.mdreferences/distros/artix.mdreferences/distros/blackarch.md


