2.4 KiB
2.4 KiB
name, description, disable-model-invocation
| name | description | disable-model-invocation |
|---|---|---|
| arch-maintenance | Keep an Arch or CachyOS system updated and healthy with status, check, and update workflows. | true |
Arch Maintenance
User-invoked only. Local machine. For diagnosing and fixing a broken system, use the arch-troubleshooting skill instead.
First move
- Read
../arch/references/safety.mdfor distro detection, the safety contract, and redaction rules. - Resolve
DOTFILES_ROOTas described there. - Run
bash ../arch/scripts/inspect-system.sh "$DOTFILES_ROOT"for the read-only baseline.
Modes
status— baseline health report.check— runbash ../arch/scripts/check-system.sh "$DOTFILES_ROOT"; report available updates, cache size, orphans, reboot need, and.pacnewfiles. No mutation.update— full official update, then separately approved AUR and mise reconciliation.report— save a redacted detailed report. Create$HOME/.local/state/arch-system-management/reports/and write$(date +%Y-%m-%dT%H%M%S).md.
If the request is ambiguous, run status and ask which mode is wanted.
Update workflow
- Run the baseline,
check-system.sh, and the pacman-lock checks from../arch/references/safety.md. - Present the official update plan — exact command
sudo pacman -Syu, affected scope, rollback, post-check — and obtain approval. - Run
sudo pacman -Syu; require exit 0. - Verify:
pacman -Qkkand afind /etc -name '*.pacnew' -o -name '*.pacsave'scan. Report.pacnewfiles for manual merge; never merge them automatically. - Separately present AUR changes (
paru -Qua); if approved, runparu -Sua(AUR only — the official update already ran) and verify. - Separately present mise reconciliation; if approved, run
mise installfrom$DOTFILES_ROOTand verify. - Offer approved mise tasks individually; never run all tasks as a bundle.
- Check reboot need and failed units with
check-system.sh. - Append
timestamp, command, result, verificationto$HOME/.local/state/arch-system-management/mutations.log(no secrets).
Declare success only after the post-checks pass. A reboot is a recommendation, never an implicit action.
Mise and dotfiles
Read ../arch/references/mise.md when the request concerns mise, dotfiles, or development tools.
Output
- detected system
- findings
- proposed next action
- approval needed, if any
- verification result