From 16c0bbd7593ff493e3220960c1705fc677aba4c4 Mon Sep 17 00:00:00 2001 From: Gabriel Fontes Date: Sun, 14 Jun 2026 21:59:06 -0300 Subject: [PATCH] docs(home/opencode): document handlr + question prompt flow for password commands --- .../opencode/skills/gabs-tools/SKILL.md | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/home/gabriel/features/opencode/skills/gabs-tools/SKILL.md b/home/gabriel/features/opencode/skills/gabs-tools/SKILL.md index 2f7fcc2c..5ee8aa84 100644 --- a/home/gabriel/features/opencode/skills/gabs-tools/SKILL.md +++ b/home/gabriel/features/opencode/skills/gabs-tools/SKILL.md @@ -3,6 +3,23 @@ name: gabs-tools description: Manage Gabs's todos (todoman), appointments (khal), contacts (khard), notes (~/Notes), and email (~/Mail) --- +## Running password-requiring commands + +When a command needs interactive password entry (e.g. `sudo`), don't run it directly — the non-interactive TTY can't handle it. Spawn a terminal instead: + +```bash +handlr launch x-scheme-handler/terminal -- -e & +``` + +Then prompt the user to confirm when the operation is complete: + +``` +Question: "Done? (the operation is complete)" +Options: ["Done"] +``` + +The user confirms when finished, then continue. + ## Todos (todoman) Todos live in a vdir at `~/Calendars/personal/`. Use the `todo` CLI (todoman).