Add AGENTS.md
Assisted-by: Claude Opus 4.6 via pi
diff --git a/AGENTS.md b/AGENTS.md
new file mode 100644
index 0000000..108a7c8
--- /dev/null
+++ b/AGENTS.md
@@ -0,0 +1,27 @@
+# Agents
+
+## Build
+
+```
+just
+```
+
+This runs `cargo fmt`, `cargo check`, and `cargo clippy`. Always run `just` before committing.
+
+## Project structure
+
+- `src/main.rs` — CLI entry point (clap), `do_update` and `do_install` commands
+- `src/config.rs` — loads and merges conf.d/*.yml config files
+- `src/lockfile.rs` — reads/writes pinch-lock.yml
+- `src/git.rs` — clone, fetch, resolve ref, checkout
+- `src/paths.rs` — XDG directory resolution
+
+## Design
+
+See README.md for the full design. Key points:
+
+- Only skills are supported. Fail loudly for anything else.
+- `update` reads config, resolves git refs to SHAs, writes lockfile. Does not touch symlinks.
+- `install` reads lockfile, checks out repos, creates symlinks in ~/.claude/skills/. Does not read config.
+- Cleanup removes symlinks pointing into ~/.cache/pinch/ that aren't in the lockfile.
+- Config is conf.d style — multiple .yml files merged alphabetically, duplicate names are a hard error.