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)

Notes

Modified
1 -Subproject commit 90d59ba52dd2af06bcd1e61efdc52a6216aaccf0
1 +Subproject commit 54979e29cdb661f1845ee30916c04296d687dbf9

pi/agent/prompts/ci.md

Modified
10 10 Detect 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.
15 15 The skill is source of truth. Do not invent alternate VCS behavior.

pi/agent/prompts/ff.md

Modified
10 10 Detect 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.
15 15 The skill is source of truth. Do not invent alternate VCS behavior.

pi/agent/prompts/lm.md

Modified
10 10 Detect 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.
15 15 The skill is source of truth. Do not invent alternate VCS behavior.

pi/agent/prompts/pr.md

Modified
10 10 Detect 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.
15 15 The skill is source of truth. Do not merge until explicit user OK.

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

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

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

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

pi/agent/skills/tmux/SKILL.md

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