How to embed Agent Skills into your own agent runtime
When to use: You're writing an agent from scratch and want a skill system that already understands SKILL.md.
Prerequisites
- 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
Flow
-
Install the bindingInstall the openskills Python or TS binding and point it at my skills directory.✓ Copied→ Runtime loaded; skills enumerated
-
Expose to your agentWire the runtime into my agent's planner so it considers skills at each step.✓ Copied→ Agent has a SkillRegistry abstraction
-
Run sandboxedEnable Seatbelt sandboxing for skill scripts on macOS.✓ Copied→ Skill scripts run under sandbox profile
Outcome: Your custom agent can load and run SKILL.md bundles like Claude Code does.
Pitfalls
- 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