agentsclimarketplace

Plugin sandbox setup

Skill a5c-ai/babysitter/library/specializations/cli-mcp-development/skills/plugin-sandbox-setup

Configure plugin sandboxing with vm2 or isolated-vm for secure plugin execution.From its SKILL.md

Install
npx -y skills add a5c-ai/babysitter --skill plugin-sandbox-setup

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

SKILL.md

1.2 KB, 174 tokens by cl100k_base, as published. Nobody here has run it

Plugin Sandbox Setup

Configure plugin sandboxing for security.

Generated Patterns

import ivm from 'isolated-vm';

export async function runInSandbox(code: string, context: Record<string, unknown>) {
  const isolate = new ivm.Isolate({ memoryLimit: 128 });
  const vmContext = isolate.createContextSync();
  const jail = vmContext.global;

  for (const [key, value] of Object.entries(context)) {
    jail.setSync(key, new ivm.ExternalCopy(value).copyInto());
  }

  const script = isolate.compileScriptSync(code);
  const result = await script.run(vmContext, { timeout: 5000 });
  isolate.dispose();
  return result;
}

Target Processes

  • plugin-architecture-implementation
  • mcp-server-security-hardening

What ships with it: 1 file

142 B alongside SKILL.md

Keep looking

Skills are one crate of 325,949. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.