This page is a procedure, not an argument. It assumes you have decided to run a plugin and that you would rather not run someone else's binary unread. Everything below is a prompt you can paste, and the checks your agent should produce when it is done.
Why an agent can do this well
The whole market runs on one property: every plugin is a small, dependency-free C99 program with a single source file. plugin_hello is one file, roughly eight hundred lines including its HTML. plugin_disks is smaller. An agent reading that is not doing archaeology; it is reading a form letter it has seen before, because every plugin in the catalogue implements the same three-mode contract.
Compare that with auditing a Node package: transitive dependencies, a lockfile with three hundred entries, a build step that executes code, and a postinstall script. A SCORPIOX BOT plugin has none of that. One file in, one binary out, cc -O2 in between.
The clone–audit–customize prompt
Copy this, replace the two bracketed values, and paste it into SCORPIOX BOT chat on the node where the plugin will run.
Clone https://plugingit.scorpiox.net/scorpiox-bot-plugin-<slug>.git into
/tmp/audit-<slug>.
Then, before compiling anything:
1. Check out the exact commit <sha> from the catalogue card and confirm
`git rev-parse HEAD` matches it. If it does not, stop and tell me.
2. Read src/plugin_<id>.c end to end. Report back, in this order:
- every system call and C library call it makes that touches the outside
world: popen, system, exec, fopen, opendir, socket, connect, getenv
- every absolute path it reads or writes
- every network destination, if any
- every environment variable it reads
- whether the HTML mode emits any <script> of its own, and what it does
- anything in the file that contradicts the catalogue's `capabilities`
array or `trust_notice` string
3. Tell me plainly whether you would run it as me, and why.
4. If I say go: customise it for my setup (the change I describe below),
then build it with `make` and show me the compile output.
5. Run `<binary> --meta` and show me the JSON. Then run
`QUERY_STRING='action=info' <binary>` and show me the JSON.
6. Copy the binary to ~/.scorpiox/plugins/ (or /workspace/.scorpiox/plugins/
on a container), list the directory, and tell me the plugin now appears in
Settings -> Menus -> Plugins with no restart.
My change: <describe the customisation here>
The agent will do the first three steps without a compiler, without network access to anything but plugingit, and without touching your plugin directory. That separation matters: the audit completes before anything executable exists.
What "audit" means in concrete terms
There are six questions and they have short answers. Ask for them by name.
Does it call popen or system? Many useful plugins do, on purpose. plugin_disks runs df; plugin_crontab runs crontab -l. What you are checking is whether the command string is a constant. A popen whose argument is built from a query parameter is a command injection, and it is visible in about four lines.
Does it read outside its own directory? A plugin that reads /proc/meminfo or /proc/stat is doing ordinary system reporting. A plugin that opens ~/.ssh, ~/.aws, ~/.config/gh or *.env is reading credentials, and there is no ordinary reason for it.
Does it open a socket? Almost none do. A plugin is invoked per request; it has no reason to listen or to dial out. If you find socket(AF_INET, ...), the next question is what address it connects to.
Does it write anything? A plugin may cache under /tmp. A plugin that writes into ~/.scorpiox/plugins, into ~/.bashrc, into a crontab, or into authorized_keys is establishing persistence, and you should assume that is deliberate.
What does the HTML mode do? Every plugin emits a page. Check whether the page's own script calls only its own ?action= routes or something else. A plugin whose UI phoned a third-party host would be visible here.
Does the capability list match? This is the cheapest check and the one most likely to find something. The catalogue says what the plugin claims. The source says what it does. A mismatch is not automatically malice, but it is automatically a reason to stop.
Customising without forking forever
The point of a clean-room C99 plugin is that the edit is small. Typical changes:
- Change the display name. Two
#defines at the top:PLUGIN_SLUGandPLUGIN_ID. Change the slug, rename the binary, done. The route changes with the filename. - Add an action. The dispatch is a chain of
strcmpon theactionparameter. A new action is one more branch and one more JSON emit. No registration, no manifest. - Restyle the UI. The page carries its own
<style>block with CSS variables at the top. Editing the variables restyles the whole plugin. - Remove a capability. Delete the
popenblock. The plugin still compiles, still renders, still answers its remaining actions.
What customisation should not do is turn a market plugin into a personal fork that never gets upstream fixes. For a one-line change, a local build is fine. For a change you intend to keep, push it to your own repository and keep a note of the upstream commit you started from, so a later update is a diff and not a rewrite.
The part agents get wrong
An agent will sometimes report "looks safe" after reading the README instead of the source. The prompt above is written to prevent that: it asks for call sites, paths, destinations, environment variables and script contents, in that order, because a summary based on the README cannot produce that list. If the agent answers with prose and no list, ask again with the specific question it skipped.
An agent will also sometimes compile before auditing. Keep the two steps in the prompt in the order they are written. Compiling is the point where a Makefile gets to execute; a hostile Makefile is a real attack surface and the audit is what makes you read it first.
After it is installed
Nothing about installation is exotic. The file is in a directory, the server notices, the plugin appears in the UI. The next page covers what the one-click path does differently and why the node boundary is the only boundary that matters.
If the plugin misbehaves, the removal is rm. There is no uninstall hook and no residual state unless the plugin created some, which is exactly what the "does it write anything" question was for.
Read next
- One-Click Install and Isolation — the pre-built path, checksum verification and where files land.
- The C99 Three-Mode Plugin SDK — the contract every one of these files implements, and the starter template you can copy.
- Cross-Compiling for musl, MinGW and macOS — producing the same binary for a Windows laptop and a slim Alpine container.