一键导入
gabs-tools
Manage Gabs's todos (todoman), appointments (khal), contacts (khard), notes (~/Atelier/notes), and email (~/Mail)
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Manage Gabs's todos (todoman), appointments (khal), contacts (khard), notes (~/Atelier/notes), and email (~/Mail)
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
Workflow guidelines for durable Pi package, extension, skill, prompt, and theme changes in Gabs's Nix-managed Pi config. Use before editing ~/.pi/agent or home/gabriel/features/pi.
Use `nix shell` for ephemeral environments and one-off commands without installing packages globally.
Fetch a web page or HTTP(S) URL and read it as text/Markdown. Use when you need the full content of a URL — e.g. a search result from web_search, a changelog, docs, or an API response.
REQUIRED for any VCS operation in jj repositories (`.jj/` directory present). Activate on: commit, push, pull, status, diff, log, branch/bookmark, PR, merge, rebase, stash, conflict, undo, or any version-control task. In jj repos, use jj exclusively — running git commands can corrupt or confuse state.
基于 SOC 职业分类
| name | gabs-tools |
| description | Manage Gabs's todos (todoman), appointments (khal), contacts (khard), notes (~/Atelier/notes), and email (~/Mail) |
After creating, editing, moving, or deleting anything backed by vdir (todos, calendar events, or contacts), start vdirsyncer so the change propagates:
systemctl --user start vdirsyncer
Todos live in a vdir at ~/Calendars/personal/. Use the todo CLI (todoman).
todo # list all todos (with IDs, priorities, categories)
todo done <id> # mark a todo as completed
todo new "task text" # create a new todo (prompts for details interactively)
todo list <NAME> filters by list (a vdir directory/calendary), not category. Use --category to filter by category instead.
Lists are separate vdir directories under ~/Calendars/personal/ — e.g. list "Personal" lives in ~/Calendars/personal/Personal/, list "Lumis" lives in a UUID-named directory. The UUID->name can be found by looking at the displayname file each list has.
todo list Lumis # todos in the "Lumis" list
todo list --category '@Blocked' # todos tagged with @Blocked across all lists
Gabs uses categories as tags.
Priority markers: !!! (high), !! (medium), ! (low), Quick Win (category).
Status markers: Blocked (category) — means an external dependency prevents progress (e.g. out of supplies, waiting on someone else). NOT "I haven't gotten to it" or "it's my turn." If Gabs could do it right now but hasn't, that's not blocked — that's just pending.
todo new accepts flags to skip the interactive prompt:
todo new -l <list> --priority high --category Blocked "summary text"
Flags: -l (list), -r (read description from stdin), --priority (low/medium/high), --category, --due, --start.
To create subtasks, first create the parent task, capture its numeric ID from todo new/todo list, then pass --subtask-for <id> for each child:
todo new -l Casa --priority medium "mercado"
todo new -l Casa --subtask-for <parent-id> "sal"
todo new -l Casa --subtask-for <parent-id> "detergente de louça"
Use this pattern for shopping-list batches: one parent task like mercado in list Casa, with each item as its own subtask.
todo edit is limited non-interactively (no --summary, no --list). For any field change,
edit the .ics file directly:
grep -rl "match text" ~/Calendars/personal/
Key fields in the .ics:
| Field | Purpose |
|---|---|
SUMMARY: | Todo title |
DESCRIPTION: | Body text |
PRIORITY: | 1=high/!!!, 5=medium/!!, 9=low/! (ical default: 1 highest) |
CATEGORIES: | Comma-separated tags (delete line to remove all categories) |
DUE: | Due date (YYYYMMDDTHHMMSSZ) |
SEQUENCE: | Bump this on each edit (increment by 1) |
Moving between lists: move the .ics file to the target list's vdir directory:
mv ~/Calendars/personal/<from-dir>/<uid>.ics ~/Calendars/personal/<to-dir>/
Todoman currently throws parse errors on some .ics files due to a known upstream bug with RELATED-TO param handling ('list' object has no attribute 'params'). The list still loads — these are cosmetic warnings.
Calendar stored as vdir .ics files under ~/Calendars/personal/Personal/. Use khal.
khal list today 2d # today + next 2 days
khal list 12/06/2026 15/06/2026 # specific date range
khal new # create a new event interactively
khal at # what's happening right now
khal edit -d "12/06/2026" "Event Title" # interactively edit/delete an event
khal search "keyword" # search events
Deleting an event non-interactively: khal has no delete subcommand. Instead, find the .ics file and remove it:
grep -rl "Event Title" ~/Calendars/personal/Personal/
rm /path/to/uid.ics
Deleting a recurring event: same approach — find the .ics containing the RRULE and delete it. All instances will vanish.
The underlying sync is done by vdirsyncer. (DAVx5 handles sync on Android.) The vdir is at ~/Calendars/personal/.
Cache bust: khal caches events in ~/.cache/khal/khal.db and won't pick up manual .ics edits. Delete the cache after editing .ics files directly:
rm ~/.cache/khal/khal.db
~/Atelier/notes)Plain markdown files. Key locations:
| Path | Purpose |
|---|---|
~/Atelier/notes/TODO | Main working todo (text-based, not todoman) |
~/Atelier/notes/Elisa/ | Advisor meeting notes, dated YYYY-MM-DD.md |
~/Atelier/notes/old/ | Archived/older notes |
~/Atelier/notes/old/very-old/ | Ancient notes, GELOS, classes, etc. |
The Elisa notes typically have # Pre (agenda) and # Post (action items) sections.
The ~/Atelier/notes/old/todo.md file has a dated task breakdown (work, masters, GELOS, personal).
The notes directory is a jj (Jujutsu) repo. Always run jj new before making any edits there — same workflow as any other jj repo. Use jj for all VCS operations, never git.
khard is a CardDAV address book client. Contacts are synced via vdirsyncer.
To look up a contact, always use khard show <name> first. It handles fuzzy matching and gives you everything (email, phone, notes, UID) in one shot. Only fall back to grep on ~/Contacts/Main/ for bulk operations or when khard misbehaves.
khard show <name> # full contact details (phone, address, notes, etc.) — use this first
khard emails # list all contacts that have email addresses
khard list # list all contacts
khard edit <name> opens the contact in $EDITOR, but requires a TTY and may not work from within opencode. The fallback is to edit the vCard file directly:
# Find the vCard by UID (shown in khard show output under Miscellaneous > UID)
file=~/Contacts/Main/<UID>.vcf
Or grep for the name:
grep -rl "<name>" ~/Contacts/Main/
Then edit the .vcf file directly. NOTE: is the notes field.
Mail lives in ~/Mail/ as a Maildir. Each account gets a subdirectory:
| Path | Account |
|---|---|
~/Mail/personal/ | hi@m7.rs (forwards from gabriel@gsfontes.com) |
~/Mail/usp/ | g.fontes@usp.br |
Standard Maildir: Inbox/{cur,new,tmp} plus Archive/, Drafts/, Junk/, Sent/, Trash/.
Syncing: mbsync syncs automatically via a systemd timer. To force an immediate sync:
systemctl --user start mbsync
All mail in new/ has already been synced by mbsync — new/ and cur/ both contain read mail. Email files are named like:
<unix_ts>.<seq>_<host>,U=<uid>:2,<flags>
Flags (appended after :2,):
| Flag | Meaning |
|---|---|
S | Seen (read) |
F | Flagged (important/starred) |
R | Replied |
Flags can combine, e.g. ,FRS = Flagged + Replied + Seen.
Moving files between mailboxes: Always strip the ,U=<uid> portion from the filename when moving a file to a different Maildir folder (e.g. Inbox to Archive). Otherwise the UID can clash with an existing file in the destination, causing mbsync to error out with "duplicate UID". mbsync will assign a fresh UID on the next sync.
# Strip UID before moving:
f="${src##*/}" && mv "$src" "$dest/${f//,U=[0-9]*:/:}"
Get an overview first. Use grep across Inbox/cur/ for ^Subject:, ^From:, and ^Date: to survey what's there before reading bodies.
Check file size before reading. Some emails contain huge base64-encoded attachments (especially .docx, PDFs, images). Use read on the directory to see file sizes (listed in the entries view), then use limit when reading to avoid dumping megabytes of base64. Emails with attachments often stretch to 500+ lines.
Read with the Read tool, not cat. Use read with limit — start with limit=160 to grab headers + the beginning of the body. Expand if needed.
Look for text/plain first. Most emails are multipart/alternative with both text/plain and text/html. Read the charset="UTF-8" plaintext section — it contains the actual message without HTML soup. The boundary marker is like --000000000000.... Skip past the headers to find the Content-Type: text/plain; block.
Decode base64 oneliners. Some emails encode the entire body as base64 (no multipart). The read tool renders these as-is, but you can pipe through base64 -d in a pinch.
Quoted-printable. Most plaintext sections use Content-Transfer-Encoding: quoted-printable. The Read tool handles this natively — =C3=A7 renders as ç, =C2=A0 as NBSP, etc.
Flagged emails are worth highlighting. When summarizing, call out emails with F in the flags — Gabs intentionally marks these as important.
Sort order. Files sort by the Unix timestamp prefix in the filename, so ls order is chronological.
# Step 1: overview
grep '^Subject:' ~/Mail/personal/Inbox/cur/*
grep '^Subject:' ~/Mail/usp/Inbox/cur/*
# Step 2: check sizes, then read
read ~/Mail/personal/Inbox/cur/ <-- check file sizes
read ~/Mail/personal/Inbox/cur/<file> limit=160 <-- read one
# Step 3: expand if needed
read ~/Mail/personal/Inbox/cur/<file> offset=161 limit=200
Gabs uses a desktop email client. To compose a new message, use:
handlr open mailto:<address>
This opens the client's compose window pre-filled with the recipient. For a blank compose window, omit the address:
handlr open mailto:
~/Mail/personal/Sent/cur/~/Mail/usp/Sent/cur/These use the same Maildir layout. Read them the same way.