repositories / dotfiles

dotfiles

bugabingas dorkfiles

owned by bugabinga

refactor(dotfiles): fold skill into repo instructions

1e78860980de2671d5eadf504d86692683be6fad

Oliver Jan Krylow <oliver@bugabinga.net> ·

unsigned

Browse filesCompare with HEAD

Changed files (2)

+69 / −86 text lines

AGENTS.md

Modified

+69 / −0 text lines

2 2 # Dotfiles
4 4 Dorkfiles repo.
5 5 Preserve unrelated dirty work.
6 +Check `git status --short` before edits.
7 +Prefer repo paths (`pi/agent/...`) over `$HOME` paths.
8 +Use Nushell-aware commands; `justfile` recipes run with `nu --commands` unless recipe has its own shebang.
6 9 Never print decrypted secrets.
10 +Do not delete noisy research/cache/untracked files unless explicitly asked.
8 12 ## Secrets
12 16 Encryption comes from local Git filter `dotfiles-aes` via `.git/info/attributes`.
13 17 `bootstripper` generates that file from `.secrets`.
19 +For non-interactive crypto bootstrap, env is `DOTFILES_AES_PASSPHRASE`; do not ask for or expose it unless user explicitly initiates setup.
15 21 For a new secret:
17 23 ```sh
34 40 ```sh
35 41 git cat-file -p :path/to/key | LC_ALL=C grep -q 'BEGIN .*PRIVATE KEY' && exit 1
44 +Important secret paths include `ssh/*.key`, `gh/hosts.yml`, `pi/agent/auth.json`, `nushell/secrets.nu`, app private settings.
46 +## Symlink manifests
48 +Files like `desktop.symlinks`, `fedora.symlinks`, `termux.symlinks`, `NB-00718.symlinks` are source/target pairs:
50 +```text
51 +repo/path
52 +~/target/path
53 +```
55 +Blank lines separate pairs. Keep pairs ordered and complete. Hostname chooses `<host>.symlinks`.
57 +## Commands
59 +Safe checks:
61 +```sh
62 +just check
63 +just pre-commit
64 +```
66 +Heavy integration:
68 +```sh
69 +just test
70 +just test fedora
71 +```
73 +HOME/system mutating; only run after explicit user request:
75 +```sh
76 +just link
77 +just unlink
78 +just setup
79 +just services
80 +java bootstripper.java clean
81 +```
83 +Crypto/hooks:
85 +```sh
86 +java bootstripper.java check
87 +java bootstripper.java pre-commit
88 +java bootstripper.java install-hooks
89 +java bootstripper.java init-crypto
90 +```
92 +## Global Pi config
94 +- Settings: `pi/agent/settings.json`
95 +- Models: `pi/agent/models.json`
96 +- Extensions: `pi/agent/extensions/`
97 +- Modes: `pi/agent/modes/`
98 +- Personal skills: `pi/agent/skills/<name>/SKILL.md` or `pi/agent/skills/<name>.md`
99 +- `pi/agent/auth.json` is secret; avoid reading/editing unless explicitly asked.
101 +## Subprojects
103 +- Neovim: read `neovim/AGENTS.md` before changes; tests via `cd neovim && just test`.
104 +- Nugu: load `nugu` skill before palette/theme work.
105 +- Pi-specific changes: load `pi` skill/docs before editing extensions/settings/skills.

pi/agent/skills/dotfiles/SKILL.md

Deleted
deleted file mode 100644

+0 / −86 text lines

1 ----
2 -name: dotfiles
3 -description: Use when working in /home/me/Workspace/dotfiles, editing personal configs, symlink manifests, dorkfiles bootstrapping, encrypted secrets, or global Pi config.
4 ----
6 -# Dotfiles
8 -Personal config repo: `/home/me/Workspace/dotfiles`.
9 -Global Pi config: `~/.pi -> /home/me/Workspace/dotfiles/pi`, agent config in `pi/agent/`.
11 -## Ground Rules
13 -- Say **dorkfiles** when referring to this repo's bootstrap/link system.
14 -- Check `git status --short` before edits; preserve unrelated dirty/untracked work.
15 -- Prefer repo paths (`pi/agent/...`) over `$HOME` paths when editing tracked config.
16 -- Use Nushell-aware commands; `justfile` recipes run with `nu --commands` unless recipe has its own shebang.
17 -- Never print, summarize, or copy decrypted secret contents.
18 -- Do not delete noisy research/cache/untracked files unless explicitly asked.
20 -## Secrets & Crypto
22 -- Secret paths live in `.secrets` and are encrypted by the `dotfiles-aes` Git filter.
23 -- Important secret paths include `ssh/*.key`, `gh/hosts.yml`, `pi/agent/auth.json`, `nushell/secrets.nu`, app private settings.
24 -- `bootstripper.java` installs git filters/hooks, derives `.git/dotfiles-aes.key`, restores tracked secrets, and applies key perms.
25 -- For non-interactive crypto bootstrap, env is `DOTFILES_AES_PASSPHRASE`; do not ask for or expose it unless user explicitly initiates setup.
27 -## Symlink Manifests
29 -Files like `desktop.symlinks`, `fedora.symlinks`, `termux.symlinks`, `NB-00718.symlinks` are source/target pairs:
31 -```text
32 -repo/path
33 -~/target/path
34 -```
36 -Blank lines separate pairs. Keep pairs ordered and complete. Hostname chooses `<host>.symlinks`.
38 -## Commands
40 -Safe checks:
42 -```bash
43 -just check
44 -just pre-commit
45 -```
47 -Heavy integration:
49 -```bash
50 -just test # Podman, all manifests, default hostname=desktop
51 -just test fedora
52 -```
54 -HOME/system mutating; only run after explicit user request:
56 -```bash
57 -just link # bootstrap + check + symlink into HOME
58 -just unlink # remove managed symlinks
59 -just setup # link + services + permissions
60 -just services # enable user systemd services
61 -java bootstripper.java clean
62 -```
64 -Crypto/hooks:
66 -```bash
67 -java bootstripper.java check
68 -java bootstripper.java pre-commit
69 -java bootstripper.java install-hooks
70 -java bootstripper.java init-crypto
71 -```
73 -## Global Pi Config
75 -- Settings: `pi/agent/settings.json`
76 -- Models: `pi/agent/models.json`
77 -- Extensions: `pi/agent/extensions/`
78 -- Modes: `pi/agent/modes/`
79 -- Personal skills: `pi/agent/skills/<name>/SKILL.md` or `pi/agent/skills/<name>.md`
80 -- `pi/agent/auth.json` is secret; avoid reading/editing unless user explicitly asks.
82 -## Subprojects
84 -- Neovim: read `neovim/AGENTS.md` before changes; tests via `cd neovim && just test`.
85 -- Nugu: load `nugu` skill before palette/theme work.
86 -- Pi-specific changes: load `pi` skill/docs before editing extensions/settings/skills.