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:
sudo 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_read only when broad page context is needed.
- Use
archwiki_related when 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. Keep limit at 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:
cat /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:
pacman -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 extract for final answers.
- Keep search limits small (
limit: 5-10) and snippets off unless needed.
- Use
maxSections around 2-5 and maxChars around 4000-8000 for focused extracts.
- If
omittedSectionCount or truncated: true affects confidence, say so explicitly.
Citation format
Use local source citations like:
Sources:
- /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.md
references/query-expansions.md
references/safety-rules.md
references/arch-based-distros.md
references/distros/endeavouros.md (priority distro)
references/distros/cachyos.md (priority distro)
references/distros/manjaro.md
references/distros/garuda.md
references/distros/artix.md
references/distros/blackarch.md
1---2name: arch-linux-local3description: Always use for Arch Linux and Arch-based distro troubleshooting, especially EndeavourOS and CachyOS, including pacman, systemd/init, NetworkManager/DNS/Wi-Fi, PipeWire/audio, boot/initramfs/mkinitcpio, GPU/Wayland, Bluetooth, filesystems, or package/signature issues. Use local ArchWiki evidence before web sources; the user should not need to explicitly ask for local ArchWiki.4---56# Arch Linux Local Troubleshooting78Always 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.910## Setup requirement1112This skill requires the local ArchWiki documentation package:1314```bash15sudo pacman -S arch-wiki-docs16```1718If `/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.1920After package/corpus changes, verify local behavior with `/archwiki-smoke-test` or `archwiki_smoke_test({ maxSearchResults: 5 })`.2122## Required workflow23241. Start with `archwiki_search({ query, limit: 5, includeSnippets: false })` for Arch/Linux issues.252. Use `archwiki_sections({ page, maxSections: 40-80 })` when the right page is found but the relevant heading is unclear.263. Prefer exact `archwiki_extract({ page, section, maxChars: 4000-8000, maxSections: 2-5 })` for final citations.274. Use query extraction only for exploration, then switch to exact section names when possible.285. Use `archwiki_read` only when broad page context is needed.296. Use `archwiki_related` when the issue spans subsystems.307. Detect the distro when relevant, especially EndeavourOS or CachyOS, using read-only evidence.318. Load distro-specific reference docs when the distro is known or mentioned.329. Run read-only local diagnostics when system evidence is relevant.3310. Compare documentation guidance with observed system state.3411. Cite local ArchWiki page paths and section names in final answers.3512. Ask before destructive or user-facing system changes.3637## Source priority38391. Local ArchWiki from `/usr/share/doc/arch-wiki/html/en/` via the ArchWiki tools for shared Arch foundations.402. Local distro/system evidence: `/etc/os-release`, package metadata, repositories, service status, logs, config files.413. Packaged distro reference notes, especially EndeavourOS and CachyOS.424. Official online ArchWiki, Arch Linux docs, or official distro docs only when local docs are missing, stale, or insufficient.435. Other sources only when necessary and clearly labeled.4445## Tool usage4647- `archwiki_search({ query, limit, includeSnippets })`: find candidate pages. Keep `limit` at 5 unless exploring broadly; snippets default off.48- `archwiki_sections({ page, maxSections })`: inspect available headings before extracting from large pages.49- `archwiki_extract({ page, section, maxChars, maxSections })`: retrieve focused exact sections; best for final answers.50- `archwiki_extract({ page, query, maxChars, maxSections })`: retrieve query-relevant sections; best for exploration.51- `archwiki_read({ page, maxChars })`: retrieve clean readable page text; use sparingly.52- `archwiki_related({ page, limit })`: discover linked local pages.53- `archwiki_smoke_test({ maxSearchResults })`: verify parser/search/extract/read behavior after package or corpus updates.5455## Diagnostics policy5657Prefer read-only commands first. Examples:5859```bash60cat /etc/os-release61hostnamectl62pacman-conf --repo-list63uname -a64pacman -Q65pacman -Qi <pkg>66pacman -Qo <file>67systemctl status <unit>68journalctl -b -u <unit>69ip addr70ip route71resolvectl status72loginctl session-status73lsblk -f74findmnt75```7677Avoid mutation without explicit user approval:7879```bash80pacman -R81pacman -Syu82rm -rf83mkfs.*84systemctl disable <unit>85systemctl mask <unit>86mount # with write-changing intent87```8889## Token/output discipline9091- Prefer `search -> sections -> exact section extract` for final answers.92- Keep search limits small (`limit: 5-10`) and snippets off unless needed.93- Use `maxSections` around 2-5 and `maxChars` around 4000-8000 for focused extracts.94- If `omittedSectionCount` or `truncated: true` affects confidence, say so explicitly.9596## Citation format9798Use local source citations like:99100```txt101Sources:102- /usr/share/doc/arch-wiki/html/en/Systemd.html — Basic systemctl usage103- /usr/share/doc/arch-wiki/html/en/Pacman/Package_signing.html — Signature checking104```105106See references:107- `references/troubleshooting-policy.md`108- `references/query-expansions.md`109- `references/safety-rules.md`110- `references/arch-based-distros.md`111- `references/distros/endeavouros.md` (priority distro)112- `references/distros/cachyos.md` (priority distro)113- `references/distros/manjaro.md`114- `references/distros/garuda.md`115- `references/distros/artix.md`116- `references/distros/blackarch.md`