Skip to content
Back to skills

Script Burgers

ASecurity

Write a script Skill Burger: a repeatable job as a short program that loops, branches and asks you only where judgement is needed, saved as a skill the person approves and run with run_workflow. Use when the person wants a job done the same way again for each of many items, or with steps a saved run can't express.

  • 30,766 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added December 6, 2026
ai-agentsjavascriptgojavashellexpress

Security analysis

A100/100

Pro scans all 2 files and shows the line behind each finding

Scanned December 6, 2026

npx -y skills add milind-soni/OpenMausBot --skill script-burgers --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Script Burgers?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Script Burgers
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/milind-soni-script-burgers/badge)](https://www.skillsdirectory.com/skills/milind-soni-script-burgers)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: script-burgers
description: "Write a script Skill Burger: a repeatable job as a short program that loops, branches and asks you only where judgement is needed, saved as a skill the person approves and run with run_workflow. Use when the person wants a job done the same way again for each of many items, or with steps a saved run can't express."
---

# Script Skill Burgers

A script Skill Burger is a skill whose `references/script.md` holds one ```` ```js ```` block: a program that does a job
step by step. `run_workflow` runs it by the skill's name. The program pauses whenever it needs your judgement, saves
itself, and goes on after you answer. A step it already did is never done again.

Write one when the person wants something done again and again the same way: "for each unread support email, file a
ticket", "every morning, check these five pages and tell me what changed". For a one-off task, just do the task.

## Save it

Call `skill_manage` with `action: "create"`:

- `skill_md`: a SKILL.md whose description says what the job does and when to run it.
- `references`: `[{ "path": "references/script.md", "content": "<one line on what it does>\n\n```js\n<the program>\n```" }]`

The person sees the whole program on the approval card and approves it before it can run. Every change you make later
with `update` or `patch` is approved the same way. Tell them what it does in a sentence; don't paste the code into the
chat.

## Run it

`run_workflow` with `name` (the skill's name) and `args` (an object, which the program reads as `args`). When it
hands you a judgement step, do it, then call `run_workflow` again with `resume` and your `response`. A decide step
must be answered with exactly one of its cases.

## What a program can do

It is plain modern JavaScript (`async`/`await`, loops, `try`/`catch`, `Promise.all`, `Map`, `JSON`, `RegExp`). It
reaches the world only through these calls. Each one names its step with a short `id`, and the same id may run
many times in a loop.

| Call | Does |
|---|---|
| `await step.app(id, { app, tool, args, account? })` | One connected-app action, through the same gate as yours. Find the tool and its arguments with your connected-apps search first. |
| `await step.shell(id, { command, cwd?, stdin?, where? })` | A command in your own computer. `where: "vm"` runs it on the cloud computer. |
| `await step.browser(id, { url, where? })` | Opens a page in your browser. |
| `await step.file(id, { path, content })` | Writes a file in this conversation's folder. |
| `await ask.ai(id, { label?, prompt, input? })` | Pauses for you to write or judge something. Your response comes back as its value. |
| `await ask.decide(id, { label?, prompt, cases, input? })` | Pauses for you to pick one of `cases`. The chosen case comes back. |
| `await vm.job(id, { command, label? })` | A long command (a build, a download, a data job) on the cloud computer, in the background, up to about two hours. `{ exitCode, stdout, stderr }` comes back, with the end of each output. |

A failed step throws an error the program can catch; for `vm.job`, a non-zero exit code is a failure too. Return a
value at the end: that is the run's result.

While a job runs, `run_workflow` hands you a check-back instead of a question. Nothing wakes you when the job ends: check
again with `resume` and no response, or tell the person it's still running and give them the resume token. Never run
its command again yourself. A job writes long output to files; read them afterwards with `step.shell` and `where: "vm"`.

```js
const mail = await step.app("fetch", { app: "gmail", tool: "GMAIL_FETCH_EMAILS", args: { query: args.query ?? "is:unread label:support" } })
const summaries = await Promise.all(mail.messages.map((m) => ask.ai("summary", { prompt: "Summarize the problem in one line.", input: m.body })))
const filed = []
for (let i = 0; i < mail.messages.length; i++) {
  try {
    const issue = await step.app("ticket", { app: "linear", tool: "LINEAR_CREATE_ISSUE", args: { title: mail.messages[i].subject, description: summaries[i] } })
    filed.push(issue.id)
  } catch (error) {
    await step.file("unfiled", { path: `unfiled/${mail.messages[i].id}.md`, content: summaries[i] })
  }
}
return { filed }
```

## Rules

- There is no `fetch`, file system, `process`, `require`, timers or `eval`. Everything outside the program goes through
  `step.*` and `ask.*`.
- Don't branch on `Date.now()`, `new Date()` or `Math.random()`. A run may be replayed after an update; one that takes
  another path then is stopped rather than doing a step twice. Pass dates in through `args` instead.
- Keep step outputs small. A paused run keeps everything the program holds, and one over 4 MB can't pause.
- A run may work for 15 minutes in all; time spent waiting on you or on a job doesn't count. Cancelling your turn stops
  the program, but a job it started keeps running to its end.

Files in this skill

  • SKILL.md4.8 KB
  • manifest.json595 B

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.