Agent skill

New Script

by mvan231 in mvan231/Scriptable

Scaffold a new Scriptable widget script with required headers, FileManager setup, settings JSON pattern, and updateCheck boilerplate

MITAuto-check passedDevelopment

Install New Script

skills CLI
$ npx skills add mvan231/Scriptable --skill new-script -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install mvan231/Scriptable new-script --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/mvan231/Scriptable.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.claude/skills/new-script .claude/skills/new-script && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
new-script
GitHub stars
151
Token cost
~529 tokens
SKILL.md length
99 words
Files
1
Skills in repo
2
Repo updated
First seen
Licence
MIT

At a glance

Scaffold a new Scriptable widget script with required headers, FileManager setup, settings JSON pattern, and updateCheck boilerplate

  • Tasks that involve Project scaffolding
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

New Script is an agent skill from mvan231/Scriptable. Scaffold a new Scriptable widget script with required headers, FileManager setup, settings JSON pattern, and updateCheck boilerplate

Its SKILL.md is about 530 tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in Development, covering Project scaffolding. The licence is MIT.

When your agent uses it

  • Tasks that involve Project scaffolding

Example prompts

  • “/new-script”

What it can do on your machine

Read from SKILL.md and the folder at commit 7effc1f. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md (its code samples are javascript).

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

New Script loads about 529 tokens when it runs. Until then it costs about 36 tokens; SKILL.md has 99 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~36
When it runs · the whole SKILL.md, loaded when a task matches
~529

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from mvan231/Scriptable at commit 7effc1f, republished under its MIT licence (© mvan231). 99 words, ~529 tokens.

Download SKILL.mdSave it as .claude/skills/new-script/SKILL.md (or your agent's skills folder).
name
new-script
description
Scaffold a new Scriptable widget script with required headers, FileManager setup, settings JSON pattern, and updateCheck boilerplate
disable-model-invocation
true

Create a new Scriptable widget script based on the name and description provided by the user.

The script MUST start with exactly these 3 lines (no blank line before them):

// Variables used by Scriptable.
// These must be at the very top of the file. Do not edit.
// icon-color: <color>; icon-glyph: <glyph>;

Choose an appropriate icon-color from: red, deep-red, orange, yellow, green, teal, blue, deep-blue, indigo, purple, pink, white, gray, light-gray, dark-gray, black. Choose an appropriate icon-glyph from Font Awesome glyph names (e.g. calendar-alt, cloud-sun, dove, chart-bar, bell, star).

After the header, scaffold the following structure:

javascript
// Variables used by Scriptable.
// These must be at the very top of the file. Do not edit.
// icon-color: blue; icon-glyph: star;

'use strict'

const SCRIPT_VERSION = 1.0

let fm = FileManager.iCloud()
let scriptDir = fm.documentsDirectory() + '/<ScriptName>/'
let settingsPath = scriptDir + 'settings.json'

if (!fm.fileExists(scriptDir)) fm.createDirectory(scriptDir, false)

let needUpdated = await updateCheck(SCRIPT_VERSION)

let settings = {}
if (fm.fileExists(settingsPath)) {
  settings = JSON.parse(fm.readString(settingsPath))
}

// ─── Main widget ────────────────────────────────────────────────────────────

let widget = new ListWidget()
widget.backgroundColor = Color.dynamic(Color.white(), Color.black())

// TODO: build widget UI here

if (config.runsInWidget) {
  Script.setWidget(widget)
} else {
  await widget.presentMedium()
}
Script.complete()

// ─── Helpers ────────────────────────────────────────────────────────────────

async function updateCheck(currentVersion) {
  // Placeholder — replace with actual update URL for published scripts
  return false
}

Save the file as <ScriptName>.js in the project root. Ask the user for the script name, purpose, icon color, and icon glyph if not provided.

© mvan231, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in .claude/skills/new-script of mvan231/Scriptable.

Open the folder on GitHubat commit 7effc1f

Compare with similar skills

New Script next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

New Script compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
New Script this skillmvan231/Scriptable151—~529Automated safety check: PassMIT
Nx Generatenomcopter/react-mosaic4.8k7 repos~1.9kAutomated safety check: PassCustom licence
PonytailDavidObando/gsharp5648 repos~1.7kAutomated safety check: PassMIT
Run Nx Generatornrwl/nx29k2 repos~592Automated safety check: NotesMIT
Conductor Setupgemini-cli-extensions/conductor3.8k—~4.2kAutomated safety check: PassApache-2.0
Mirage VFS Adapter Authoringstrukto-ai/mirage3.7k—~2.5kAutomated safety check: PassApache-2.0

Similar skills

  • Nx Generate

    nomcopter/react-mosaic

    Generate code using nx generators. An agent skill from nomcopter/react-mosaic.

    4.8k GitHub starsUsed in 7 repos~1.9k tokens
    DevelopmentAuto-check passed
  • Ponytail

    DavidObando/gsharp

    Forces the laziest solution that actually works, simplest, shortest, most minimal.

    564 GitHub starsUsed in 8 repos~1.7k tokens
    DevelopmentAuto-check passed
  • Run Nx generators with prioritization for workspace-plugin generators.

    29k GitHub starsUsed in 2 repos~592 tokens
    DevelopmentAuto-check: notes
  • Conductor Setup

    gemini-cli-extensions/conductor

    Scaffolds the project and sets up the Conductor environment.

    3.8k GitHub stars~4.2k tokensUpdated 1 mo ago
    DevelopmentAuto-check passed
  • Builds or extends a custom Mirage virtual filesystem adapter for an API, database, object store or app data, with a working mount configuration and filesystem tests.

    3.7k GitHub stars~2.5k tokensUpdated today
    DevelopmentAuto-check passed
  • Enforces this repository's TypeScript backend module architecture under server/: feature folders, barrel exports, and where shared types and utilities belong.

    14k GitHub stars~1.2k tokensUpdated yesterday
    DevelopmentAuto-check passed

More from mvan231/Scriptable

  • Gen Test

    mvan231/Scriptable

    Generate a Node.js test file for a Scriptable widget script, following the project's existing test conventions in tests/

    151 GitHub stars~436 tokensUpdated 1 mo ago
    Auto-check passed

Categories

Questions about New Script

What does New Script do?

Scaffold a new Scriptable widget script with required headers, FileManager setup, settings JSON pattern, and updateCheck boilerplate. New Script is an agent skill from mvan231/Scriptable.

When should I use New Script?

New Script fits situations like: tasks that involve Project scaffolding.

How do I install New Script in Claude Code?

Run `npx skills add mvan231/Scriptable --skill new-script -a claude-code`. Or copy the skill folder (.claude/skills/new-script in mvan231/Scriptable) into .claude/skills/new-script in your project. Claude Code loads it when a task matches its description.

How do I install New Script in Codex?

Run `npx skills add mvan231/Scriptable --skill new-script -a codex`. Or copy the skill folder (.claude/skills/new-script in mvan231/Scriptable) into .agents/skills/new-script in your project. Codex loads it when a task matches its description.

Can I use New Script in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add mvan231/Scriptable --skill new-script -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/new-script, .gemini/skills/new-script, .github/skills/new-script and .opencode/skills/new-script in your project.

What does New Script need to run?

SKILL.md names no scripts, command-line tools or credentials: New Script is instructions for the agent only.

Does New Script access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is New Script safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does New Script use?

New Script is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does New Script use?

About 529 tokens (SKILL.md is roughly 2.1k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to New Script?

Skills that share tags, products or a category with New Script: Nx Generate (nomcopter/react-mosaic, 4.8k stars), Ponytail (DavidObando/gsharp, 564 stars), Run Nx Generator (nrwl/nx, 29k stars) and Conductor Setup (gemini-cli-extensions/conductor, 3.8k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains New Script?

mvan231 (a GitHub user) maintains it in mvan231/Scriptable, which has 151 GitHub stars. The repository holds 2 skills in this directory. The repository was last updated on August 26, 2026.

Source: mvan231/Scriptable on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.