Plugin or skill: choosing how to extend an oracle

Plugins are TypeScript that ships inside your QiForge oracle. Skills are capsules the agent finds and runs in a sandbox. Compare them and pick the right one.

You can give an oracle a new capability in two ways: write a plugin or publish a skill. A plugin is code your oracle ships with. A skill is a capsule your oracle fetches and runs in a sandbox. Both let an agent do things it otherwise couldn't, but the mechanism, the lifecycle and the author are usually different. This page compares them and helps you pick.

Side by side

PluginSkill
FormatTypeScript class extending OraclePluginFolder with SKILL.md + scripts (Python, shell, etc.)
Lives whereInside your oracle's npm bundleIXO skills registry (ai-skills repo)
LifecycleLoaded at bootDiscovered + executed per request
Who authorsOracle developerAnyone: community-contributable
How agent usesTools bound directly to the LLMAgent calls search_skills → sandbox_run
ExecutionIn-process Node.jsPer-user Linux sandbox
Side effectsFull host access (DB, FS, network, Nest DI)Sandbox-scoped
UpdateRedeploy the oraclePublish a new version, with no oracle restart

When to write which

Write a plugin when…Write a skill when…
You need type safety + full DI (DB, Nest services, Matrix client)The capability is a self-contained scripted workflow
The capability needs an HTTP route (webhook, OAuth callback)It should be community-discoverable
You need to inject behaviour into every turn (middleware)You want to update it without redeploying
The capability is proprietary or oracle-specificSandbox isolation is acceptable
You need tight integration with the agent (a sub-agent)The implementation is Python / shell / a binary

Both in the same turn

The clearest way to see the distinction is to watch them work together:

skills and sandbox are plugins: compiled into the oracle, exposing tools the LLM calls. invoice-generator is a skill: a folder in the registry that the oracle never imported, fetched and executed at request time.

Can a plugin call a skill?

Yes. The skills and sandbox plugins expose normal tools (search_skills, sandbox_run, ...). Your custom plugin can call them directly if you have a deterministic flow. Usually the agent orchestrates instead.

Can a skill use plugin features?

Not directly. Skills run in a sandbox and don't see plugins or Nest DI. They get user secrets as x-os-* env vars, an optional skills_invocation UCAN, network (per sandbox policy), and a read-only mount of their own folder. If a skill needs plugin data, the agent passes it in as an argument to sandbox_run.

Source: packages/oracle-runtime/src/plugins/skills/ and packages/oracle-runtime/src/plugins/sandbox/.