agent-desktop/skills
Lahfir 9740cbb44b docs(ffi): add agent-desktop-ffi skill + CLAUDE.md updates (Unit 13)
skills/agent-desktop-ffi/ is a new skill directory:
- SKILL.md — frontmatter (name, version, tags), overview, four core
  constraints (main-thread, release-ffi profile, errno lifetime,
  handle release, enum validation, pre-1.0 ABI instability).
- references/ownership.md — allocation/release table for every *mut T
  the FFI returns, plus null-tolerance and double-free rules.
- references/error-handling.md — errno-style last-error contract,
  full error-code table, enum validation, panic-safety guarantee.
- references/threading.md — macOS main-thread rule, debug/release
  contract differences, Python consumer patterns, the
  AXIsProcessTrusted privilege-escalation note, single-owner handle
  invariant, thread-local last-error.
- references/build-and-link.md — build command for the cdylib,
  minimal C and Python ctypes worked examples.

CLAUDE.md updates:
- Workspace tree now lists crates/ffi/ alongside the platform crates.
- Dependency-inversion section acknowledges the FFI crate as a
  legitimate second platform → core wiring point, parallel to the
  binary crate (previously only src/ was named).

Skill will be picked up by the next `clawhub sync --root skills/ --all`
release automatically; no release-workflow change needed.
2026-04-16 04:06:12 -07:00
..
agent-desktop docs: add surface-first snapshot rule for overlays 2026-03-03 12:34:50 -08:00
agent-desktop-ffi docs(ffi): add agent-desktop-ffi skill + CLAUDE.md updates (Unit 13) 2026-04-16 04:06:12 -07:00