Official agent skill

Deterministic Scripts

by microsoft in microsoft/haste

Deterministic script execution skill for HASTE. An agent skill from microsoft/haste.

OfficialMITAuto-check passedDevOps & Cloud

Install Deterministic Scripts

skills CLI
$ npx skills add microsoft/haste --skill deterministic-scripts -a claude-code

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

GitHub CLI
$ gh skill install microsoft/haste deterministic-scripts --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/microsoft/haste.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.github/skills/deterministic-scripts .claude/skills/deterministic-scripts && 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
deterministic-scripts
GitHub stars
107
Token cost
~1.1k tokens
SKILL.md length
445 words
Files
1
Skills in repo
9
Repo updated
First seen
Licence
MIT

At a glance

Deterministic script execution skill for HASTE. An agent skill from microsoft/haste.

  • : run preprocessing
  • SKILL.md covers Overview, Key Concepts, Patterns & Techniques and Decision Framework, plus 1 more section
  • Calls npm, python and conda
  • Deploy functions

What it does

Deterministic Scripts is an agent skill from microsoft/haste, published by the product's own GitHub organization. Deterministic script execution skill for HASTE. Execute scripts instead of free-form LLM behavior for consistent, repeatable operations. Use when: 'run preprocessing', 'convert format', 'parse metadata', 'generate tiles', 'build wheel', 'deploy functions'. Prevents hallucinated scripts.

Its SKILL.md is about 1.1k 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 DevOps & Cloud. It works with Microsoft Azure, Docker and npm. The repository describes itself as: High Speed Assessment and Satellite Tracking for Emergencies. The licence is MIT.

When your agent uses it

  • : run preprocessing
  • Deploy functions

Example prompts

  • “run preprocessing”
  • “convert format”
  • “parse metadata”
  • “/deterministic-scripts”

Requirements

  • Python 3
  • Node.js
  • Docker

What it can do on your machine

Read from SKILL.md and the folder at commit 079bd89. 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

    Shell commands in SKILL.md call:

    • npm
    • python
    • conda
    • pip
    • docker-compose

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

  • Network

    No URLs in SKILL.md. Its commands use npm and pip, which can reach the network depending on how they are called.

    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

Deterministic Scripts loads about 1.1k tokens when it runs. Until then it costs about 77 tokens; SKILL.md has 445 words of instructions outside code blocks.

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

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 microsoft/haste at commit 079bd89, republished under its MIT licence (© microsoft). 445 words, ~1,091 tokens.

Download SKILL.mdSave it as .claude/skills/deterministic-scripts/SKILL.md (or your agent's skills folder).
name
deterministic-scripts
description
Deterministic script execution skill for HASTE. Execute scripts instead of free-form LLM behavior for consistent, repeatable operations. Use when: 'run preprocessing', 'convert format', 'parse metadata', 'generate tiles', 'build wheel', 'deploy functions'. Prevents hallucinated scripts.
source
HASTE operational scripts, build system
domain
operations
level
foundational
agents
backend-dev, gis, backend-validation
created_date
2026-04-27
status
draft

Deterministic Script Execution

Overview

HASTE has established scripts and commands for common operations. Agents must use these exact commands instead of generating free-form alternatives. This prevents hallucinated scripts, ensures consistency, and makes operations repeatable.

Key Concepts

Why Deterministic Scripts Matter
  • LLMs can "helpfully" generate plausible-looking but incorrect commands
  • HASTE has specific build tooling (hatch, conda) that must be used correctly
  • Azure Functions deployment has specific prerequisites and ordering
  • Geospatial processing requires exact GDAL/rasterio invocations

Patterns & Techniques

Build & Package Operations
OperationExact CommandNotes
Build core wheelcd hastelib && hatch build -t wheelAuto-increments version, copies to func apps
Run Python testscd hastelib && hatch run test:pytestUses conda env with GDAL
Build UIcd ui && npm run buildProduction build via Vite
Lint UIcd ui && npm run lintESLint with React rules
Install UI depscd ui && npm installUses package-lock.json
Create conda envconda env create -f env.ymlFull env with GDAL and dependencies
Update conda envconda env update -f env.ymlPreserves existing packages
Install hastelib editablepip install -e hastelib/For local development hot-reload
Local Development
OperationExact CommandNotes
Start API locallycd api/hastefuncapi && func host startRequires .venv or conda env
Start UI locallycd ui && swa start --app-devserver-url http://localhost:5173 --run 'npm run dev'SWA CLI with Vite dev server
Start Azuriteazurite --silent --location ./data --debug ./data/debug.logLocal Azure Storage emulator
Start Docker stackdocker-compose -f docker/docker-compose.yml upFull local stack
Deployment
OperationExact CommandNotes
Deploy Azure Functionfunc azure functionapp publish <NAME> --subscription <SUB> --tenant <TENANT>After hatch build
Deploy SWAcd ui && swa deploy --app-location ./dist --app-name <NAME>After npm run build
Build Docker images./build_and_push_images.shBuilds training + imagery prep images
Show full SKILL.md (164 more words)Show less
Imagery Processing
OperationApproachNotes
COG generationUse rasterio with COG driver profileNever use raw GDAL CLI unless wrapping in Python
Tile generationThrough ImageryPreProcessorNot manual gdal2tiles
Reprojectionrasterio.warp.reproject()Always specify src_crs and dst_crs
Format conversionThrough provider-specific adapterNot generic gdal_translate

Decision Framework

SituationDo ThisNOT This
Need to run testshatch run test:pytestpytest (wrong env)
Need to build wheelhatch build -t wheelpython setup.py bdist_wheel
Need to start APIfunc host startpython function_app.py
Need Azure storage locallyazuriteCustom mock storage
Need to process imageryUse ImageryPreProcessorWrite new GDAL script
Need to deployfunc azure functionapp publishManual zip deployment

Common Pitfalls

  • Inventing new build commands — Use the established commands above
  • Running pytest directly — Use hatch run test:pytest to get the correct conda env
  • Starting the UI with npm start — HASTE uses swa start with Vite dev server
  • Using python setup.py — HASTE uses hatch/hatchling, not setuptools
  • Generating GDAL scripts from scratch — Use existing processor methods

© microsoft, 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 .github/skills/deterministic-scripts of microsoft/haste.

Open the folder on GitHubat commit 079bd89

Compare with similar skills

Deterministic Scripts 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.

Deterministic Scripts compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Deterministic Scripts this skillmicrosoft/haste107—~1.1kAutomated safety check: PassMIT
Azure App Onboard Prereqmicrosoft/GitHub-Copilot-for-Azure255—~2.5kAutomated safety check: PassMIT
Thesvgglincker/thesvg2.8k—~1.5kAutomated safety check: PassMIT
Reflexo ReleaseMyriad-Dreamin/typst.ts1.2k—~1.5kAutomated safety check: PassApache-2.0
Aspiremicrosoft/aspire.dev1964 repos~1.1kAutomated safety check: PassMIT
Code ReviewAzure/Azurite2.3k—~734Automated safety check: PassMIT

Similar skills

  • Azure App Onboard Prereq

    microsoft/GitHub-Copilot-for-Azure

    Official

    Assess whether source code is ready to deploy to Azure — the check BEFORE infrastructure work.

    255 GitHub stars~2.5k tokensUpdated today
    DevOps & CloudAuto-check passed
  • Thesvg

    glincker/thesvg

    Fetch brand SVG logos and cloud architecture icons (AWS, Azure, GCP) from theSVG.

    2.8k GitHub stars~1.5k tokensUpdated today
    DevOps & CloudAuto-check passed
  • Reflexo Release

    Myriad-Dreamin/typst.ts

    Guide Reflexo/typst.ts release preparation and operator handoffs.

    1.2k GitHub stars~1.5k tokensUpdated today
    DevOps & CloudAuto-check passed
  • Aspire

    microsoft/aspire.dev

    Official

    Orchestrates Aspire distributed applications using the Aspire CLI for running, debugging, and managing distributed apps.

    196 GitHub starsUsed in 4 repos~1.1k tokens
    DevOps & CloudAuto-check passed
  • Code Review

    Azure/Azurite

    Official

    Review Azurite pull requests with service-aware checks for Blob, Queue, and Table behavior, API compatibility, tests, and release notes.

    2.3k GitHub stars~734 tokensUpdated today
    DevelopmentAuto-check passed
  • Os Eco Dep Sync

    jayminwest/warren

    Bump warren onto the latest published @os-eco/ versions across package.json + bun.lock and the Dockerfile CLI pins, then run the gates and open a PR.

    476 GitHub stars~1.9k tokensUpdated today
    DevOps & CloudAuto-check passed

More from microsoft/haste

All 9 skills in this repo
  • API Design

    microsoft/haste

    Official

    Guide for designing and documenting RESTful APIs. An agent skill from microsoft/haste.

    107 GitHub stars~663 tokensUpdated today
    Auto-check passed
  • Copilot CLI Modes

    microsoft/haste

    Official

    Comprehensive guide to all Copilot CLI running modes: Interactive, Plan, Autopilot, Fleet, Research, Chronicle, and Delegate.

    107 GitHub stars~4.2k tokensUpdated today
    Auto-check passed
  • Debug Test Failures

    microsoft/haste

    Official

    Systematic debugging workflow for test failures. An agent skill from microsoft/haste.

    107 GitHub stars~735 tokensUpdated today
    Auto-check passed
  • Dependency Update

    microsoft/haste

    Official

    Guide for safely updating project dependencies. An agent skill from microsoft/haste.

    107 GitHub stars~551 tokensUpdated today
    Auto-check passed
  • Official

    Imagery provider adaptation skill for HASTE. An agent skill from microsoft/haste.

    107 GitHub stars~1.3k tokensUpdated today
    Auto-check passed
  • Security Analysis

    microsoft/haste

    Official

    Dependabot and security analysis skill for HASTE. An agent skill from microsoft/haste.

    107 GitHub stars~1k tokensUpdated today
    Auto-check passed

Categories

Questions about Deterministic Scripts

What does Deterministic Scripts do?

Deterministic script execution skill for HASTE. An agent skill from microsoft/haste. Deterministic Scripts is an agent skill from microsoft/haste, published by the product's own GitHub organization. Deterministic script execution skill for HASTE.

When should I use Deterministic Scripts?

Deterministic Scripts fits situations like: : run preprocessing; deploy functions.

How do I install Deterministic Scripts in Claude Code?

Run `npx skills add microsoft/haste --skill deterministic-scripts -a claude-code`. Or copy the skill folder (.github/skills/deterministic-scripts in microsoft/haste) into .claude/skills/deterministic-scripts in your project. Claude Code loads it when a task matches its description.

How do I install Deterministic Scripts in Codex?

Run `npx skills add microsoft/haste --skill deterministic-scripts -a codex`. Or copy the skill folder (.github/skills/deterministic-scripts in microsoft/haste) into .agents/skills/deterministic-scripts in your project. Codex loads it when a task matches its description.

Can I use Deterministic Scripts 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 microsoft/haste --skill deterministic-scripts -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/deterministic-scripts, .gemini/skills/deterministic-scripts, .github/skills/deterministic-scripts and .opencode/skills/deterministic-scripts in your project.

What does Deterministic Scripts need to run?

Going by SKILL.md and its folder, Deterministic Scripts needs the command-line tools its instructions call (npm, python, conda, pip and docker-compose). Our summary lists: Python 3; Node.js; Docker.

Does Deterministic Scripts access the network?

SKILL.md contains no URLs. Its commands use npm and pip, which can reach the network depending on how they are called. This is read from the text; nothing was executed.

Is Deterministic Scripts 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 Deterministic Scripts use?

Deterministic Scripts 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 Deterministic Scripts use?

About 1.1k tokens (SKILL.md is roughly 4.4k 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 Deterministic Scripts?

Skills that share tags, products or a category with Deterministic Scripts: Azure App Onboard Prereq (microsoft/GitHub-Copilot-for-Azure, 255 stars), Thesvg (glincker/thesvg, 2.8k stars), Reflexo Release (Myriad-Dreamin/typst.ts, 1.2k stars) and Aspire (microsoft/aspire.dev, 196 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Deterministic Scripts?

microsoft (a GitHub organization, an official publisher) maintains it in microsoft/haste, which has 107 GitHub stars. The repository holds 9 skills in this directory. The repository was last updated on October 7, 2026.

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