repositories / dotfiles

dotfiles

bugabingas dorkfiles

owned by bugabinga

fix(pi): avoid hardcoded skill paths

51d2d7bf4006bf05188389531b66cc44fa7c5a37

Oliver Jan Krylow <oliver@bugabinga.net> ·

unsigned

Browse filesCompare with HEAD

Changed files (8)

+24 / −22 text lines · 1 metadata-only

Diff layout

Notes

Modified

Link change (old → new): 90d59ba52dd2af06bcd1e61efdc52a6216aaccf0 → 54979e29cdb661f1845ee30916c04296d687dbf9.

pi/agent/prompts/ci.md

Modified

+2 / −2 text lines

1010Detect VCS:
12- If `jj root` succeeds, read `pi/agent/skills/jj-workflow/SKILL.md` and execute its **Commit (`ci`)** flow.
13- Otherwise read `pi/agent/skills/git-workflow/SKILL.md` and execute its **Commit (`ci`)** flow.
12- If `jj root` succeeds, use the `jj-workflow` skill's `ci` flow.
13- Otherwise use the `git-workflow` skill's `ci` flow.
1515The skill is source of truth. Do not invent alternate VCS behavior.

pi/agent/prompts/ff.md

Modified

+2 / −2 text lines

1010Detect VCS:
12- If `jj root` succeeds, read `pi/agent/skills/jj-workflow/SKILL.md` and execute its **Fast-forward bookmark (`ff`)** flow.
13- Otherwise read `pi/agent/skills/git-workflow/SKILL.md` and execute its **Fast-forward branch (`ff`)** flow.
12- If `jj root` succeeds, use the `jj-workflow` skill's `ff` flow.
13- Otherwise use the `git-workflow` skill's `ff` flow.
1515The skill is source of truth. Do not invent alternate VCS behavior.

pi/agent/prompts/lm.md

Modified

+2 / −2 text lines

1010Detect VCS:
12- If `jj root` succeeds, read `pi/agent/skills/jj-workflow/SKILL.md` and execute its **Land bookmark (`lm`)** flow.
13- Otherwise read `pi/agent/skills/git-workflow/SKILL.md` and execute its **Land branch (`lm`)** flow.
12- If `jj root` succeeds, use the `jj-workflow` skill's `lm` flow.
13- Otherwise use the `git-workflow` skill's `lm` flow.
1515The skill is source of truth. Do not invent alternate VCS behavior.

pi/agent/prompts/pr.md

Modified

+2 / −2 text lines

1010Detect VCS:
12- If `jj root` succeeds, read `pi/agent/skills/jj-workflow/SKILL.md` and execute its **PR review (`pr`)** flow.
13- Otherwise read `pi/agent/skills/git-workflow/SKILL.md` and execute its **PR review (`pr`)** flow.
12- If `jj root` succeeds, use the `jj-workflow` skill's `pr` flow.
13- Otherwise use the `git-workflow` skill's `pr` flow.
1515The skill is source of truth. Do not merge until explicit user OK.

pi/agent/skills/ascii-boxes/SKILL.md

Modified

+11 / −9 text lines

1515Monospace grid only.
1616Every output line same visual width.
18ABS PATH:
19/home/me/.pi/agent/skills/ascii-boxes/index.ts
18SCRIPT:
19`index.ts` in this skill directory.
20When running from another cwd, resolve it relative to this `SKILL.md` file.
2122CLI:
22deno run -A /home/me/.pi/agent/skills/ascii-boxes/index.ts draw "text" --width N
23--style single|double|bold --align left|center|right deno run -A
24/home/me/.pi/agent/skills/ascii-boxes/index.ts table --header "H1,H2" --rows
25"a,b" "c,d" deno run -A /home/me/.pi/agent/skills/ascii-boxes/index.ts nested
26"OUTER" "INNER" --gap N
23```bash
24deno run -A ./index.ts draw "text" --width N --style single|double|bold --align left|center|right
25deno run -A ./index.ts table --header "H1,H2" --rows "a,b" "c,d"
26deno run -A ./index.ts nested "OUTER" "INNER" --gap N
27```
2829IMPORT:
29import { drawBox, createTable, drawNested } from
30"/home/me/.pi/agent/skills/ascii-boxes/index.ts";
30```ts
31import { drawBox, createTable, drawNested } from "./index.ts";
32```
3234FNS:
3335drawBox(content, opts) -> string createTable(headers, rows, opts) -> string

pi/agent/skills/isp-start-day/scripts/isp-start-day.sh

Modified

+3 / −3 text lines

1Deprecated: do not use Bash for isp-start-day. Use the cross-platform Node script instead:
2
3node ~/.pi/agent/skills/isp-start-day/scripts/isp-start-day.mjs
1#!/usr/bin/env sh
2printf '%s\n' 'Deprecated: do not use Bash for isp-start-day. Use the cross-platform Node script instead.' >&2
3exec node "$(CDPATH= cd -- "$(dirname -- "$0")" && pwd)/isp-start-day.mjs" "$@"

pi/agent/skills/tmux/SKILL.md

Modified

+2 / −2 text lines

9696## Skill Scripts
98Set `TMUX_SKILL_DIR` to this skill directory when using bundled helpers.
98Set `TMUX_SKILL_DIR` to this skill directory when using bundled helpers. Resolve it relative to this `SKILL.md`; do not hardcode a home path.
100100```bash
101TMUX_SKILL_DIR="/home/me/.pi/agent/skills/tmux"
101TMUX_SKILL_DIR="$(pwd)" # when cwd is this skill directory
102102"$TMUX_SKILL_DIR/scripts/find-sessions.sh" -L "$SOCKET"
103103"$TMUX_SKILL_DIR/scripts/wait-for-text.sh" -L "$SOCKET" -t "$pane" -p '^>>>' -T 15
104104```