How to embed Agent Skills into your own agent runtime
Quando usar: You're writing an agent from scratch and want a skill system that already understands SKILL.md.
Pré-requisitos
- Rust toolchain (for building) or prebuilt binding — rustup install stable; or use the TS/Python binding
- Repo cloned — git clone https://github.com/Geeksfino/openskills ~/.claude/skills/openskills
Fluxo
-
Install the bindingInstall the openskills Python or TS binding and point it at my skills directory.✓ Copiado→ Runtime loaded; skills enumerated
-
Expose to your agentWire the runtime into my agent's planner so it considers skills at each step.✓ Copiado→ Agent has a SkillRegistry abstraction
-
Run sandboxedEnable Seatbelt sandboxing for skill scripts on macOS.✓ Copiado→ Skill scripts run under sandbox profile
Resultado: Your custom agent can load and run SKILL.md bundles like Claude Code does.
Armadilhas
- Loading all scripts at startup kills memory — Rely on progressive disclosure — metadata first
- Sandbox denies legitimate operations — Audit the sandbox profile; narrow-then-widen rather than default-deny everything