Skip to content
Skills Library
DevOps & cloud · Automation

sandy

/sandy

Run TypeScript scripts in sandboxed microVMs or Docker containers with AWS SDK access via IMDS. Use when investigating AWS resources, running read-only queries, or executing TypeScript automation that needs AWS credentials.

Repository
sandy ↗
Licence
Apache-2.0
Last repository change
28.10.2026

Assessment and security

95/ 100Class: good
Format20 / 25
Frontmatter with name and description, valid name, description up to 1,024 characters, name matching the folder.
Discoverability25 / 25
Description explains when to use the skill, has a reasonable length and uses third person.
Content35 / 35
At least 150 words and at most 500 lines, headings, step lists, examples or code.
Hygiene15 / 15
No placeholders such as TODO, no Windows paths, with a licence.
Riskno signals detected in the scan
Files in this package
5
Scripts
2
HTML comments
0
URLs in SKILL.md
1
Deprecation

No signals detected. Repository changed on 28.10.2026, without references to retired models or APIs.

Licence

Apache-2.0, otwarta: można używać i zmieniać, z zachowaniem licencji i informacji o zmianach.

What to check before installing
  • 2 scripts in this package. Review them before installing, as Claude may execute them.

Scripts: resources/examples/ec2_describe.ts, resources/examples/ecs_services.ts

What it does and when to use it

Run TypeScript scripts in sandboxed microVMs or Docker containers with AWS SDK access via IMDS. Use when investigating AWS resources, running read-only queries, or executing TypeScript automation that needs AWS credentials.

Original author description

Run TypeScript scripts in sandboxed microVMs or Docker containers with AWS SDK access via IMDS. Use when investigating AWS resources, running read-only queries, or executing TypeScript automation that needs AWS credentials.

How it works

  1. Setup
  2. IMDS port
  3. CLI commands
  4. Resources
  5. Typical workflow
  6. Operating protocols
  7. Triage
Original SKILL.md headings · 188 lines, 989 words
SKILL.md preview
---
name: sandy
description: Run TypeScript scripts in sandboxed microVMs or Docker containers with AWS SDK access via IMDS. Use when investigating AWS resources, running read-only queries, or executing TypeScript automation that needs AWS credentials.
---

# Sandy

Sandy executes TypeScript scripts in disposable sandboxed environments (Shuru microVMs or Docker containers) with AWS credentials from IMDS.

The CLI uses explicit sessions. Create one first, then run scripts from that session’s `scripts/` directory.

## Setup

Read the scripting guide before writing scripts:

```
sandy resource sandy://skills/cli/resources/scripting-guide.md
```

This guide defines runtime constraints, available AWS SDK packages, and the required async generator pattern.

## IMDS port

Start an IMDS server separately and pass its port to `sandy run` and `sandy check connect`.

## CLI commands

### sandy image

Create, delete, or describe the Sandy sandbox image.

```
sandy image create
sandy image delete
sandy image delete --force
sandy image current
```

`sandy image current` prints the Sandy version that built the image and its creation time. Versions missing from older images print `(unknown)`. Docker backend only.

### sandy session create

Create a session and print the session name plus scripts path.

```
sandy session create
```

### sandy check

Verify sandbox health. Each check creates and deletes an ephemeral session; no session argument is accepted.

```
sandy check baseline
sandy check connect --imds-port 9001
sandy check connect --imds-port 9001 --region ap-southeast-2
```

### sandy run

Run a TypeScript script from `<session>/scripts/`.

```
sandy run --session happy-fox-trail --script inventory.ts --imds-port 9001
sandy run --session happy-fox-trail --script inventory.ts --imds-port 9001 --region ap-southeast-2
sandy run --session happy-fox-trail --script inventory.ts --imds-port 9001 -- arg1 arg2
```

Options:

| Flag | Required | Description |
|------|----------|-------------|
| `--session` | yes | Session name |
| `--script` | yes | Script path relative to `<session>/scripts/` |
| `--imds-port` | yes | Port of the running IMDS server |
| `--region` | no | AWS region (default `us-west-2`) |
| `--` | no | Arguments passed as `process.argv` inside the script |

Session layout on the host:

- `.sandy/<session>/scripts/` mounted read-only at `/workspace/scripts`
- `.sandy/<session>/output/` mounted read-write at `/workspace/output`

Scripts should write files under `process.env.SANDY_OUTPUT`.

### sandy resource

List or read embedded resources.

```
sandy resource
sandy resource sandy://skills/cli/resources/scripting-guide.md
```

### sandy prime

Print the full skill text to stdout.

```
sandy prime
```

## Resources

- `sandy://skills/cli/resources/scripting-guide.md`
- `sandy://skills/cli/resources/examples/ec2_describe.ts`
- `sandy://skills/cli/resources/examples/ecs_services.ts`

```
sandy resource sandy://skills/cli/resources/scripting-guide.md
sandy resource sandy://skills/cli/resources/examples/ec2_describe.ts
sandy resource sandy://skills/cli/resources/examples/ecs_services.ts
```

## Typical workflow

1. Read the scripting guide.
2. Start an IMDS server and note the port.
3. Run `sandy image create` if needed.
4. Run `sandy session create` and note the scripts path.
5. Write a script into that scripts directory.
6. Run `sandy check connect --imds-port <port>`.
7. Run `sandy run --session <name> --script file.ts --imds-port <port>`.
8. Read outputs from `.sandy/<session>/output/` or stdout.

## Operating protocols

These rules apply to every Sandy investigation, regardless of mode. Non-adherence defeats the tool.

### Division of labour

- Sandy is the engine for data retrieval, collation, and mathematical analysis.
- The agent guides diagnosis, forms and tests hypotheses, and decides what to investigate next.
- Do not spend agent tokens wading through raw data. Reduce it in-sandbox with Sandy scripts, `jq`, or local tooling, then summarise.

### Query strategy

- Prefer small, targeted queries. Escalate to wider scans only when a signal warrants depth.
- Constrain `Describe*` and `List*` calls by tag, region, identifier, or time window wherever the API allows.
- Write async-generator iterators for every paginated call. Do not accumulate whole result sets into arrays.

### Data to disk, summary to stdout

- Full data artefacts are written to files under `process.env.SANDY_OUTPUT`.
- Stdout carries short summaries and the evidence that informs the next decision, not raw payloads.
- Record what each file means, either in per-file metadata or via evidence-ledger entries.

### Evidence ledger

For each distinct data artefact relevant to the investigation, the script should call `Evidence.append` (exposed by the in-sandbox `sandy` module) so the ledger stays synchronised with the produced data. The append contract:

```ts
interface EvidenceEntry {
  id: string          // ULID generated inline
  timestamp: string   // ISO 8601
  hypotheses: string[]
  summary: string     // ≤ 20 words (guideline, not enforced)
  dataFile?: string   // path relative to SANDY_OUTPUT
}
```

`hypotheses` is a non-empty-compatible string array of hypothesis ids maintained by the agent in `hypotheses.json` under the session output directory. Dangling hypothesis ids are tolerated at write time and reconciled by the agent.

### Companion MCPs

Two companion MCPs, when available, raise code-generation and AWS-claim correctness. Treat them as recommended-but-optional:

- **Context7** — library and SDK documentation. Use it whenever you need current API shapes, version-specific behaviour, or code examples for any library (including `@aws-sdk/*`). Prefer it over recall from training data.
- **AWS Knowledge Base MCP** — `https://knowledge-mcp.global.api.aws`. Authoritative AWS service documentation: behaviour, limits, pricing, region availability. Prefer it over recall for any AWS-specific claim.

When either companion is absent, ground claims in sandbox-observable evidence. Do not assert API shapes or service behaviour from memory; record any such gap as a known-unknown.

## Triage

On the first substantive research question of a session, classify the work into one of the research modes below, state the chosen mode, and load the matching resource at `sandy://skills/research/modes/<mode>.md`. When the user explicitly signals a mode change, reload the new mode's resource and announce the switch.

### Modes

- **Firefight** — an incident or active failure. Classification cues: words like "down", "errors spiking", "failing", "broken"; stated customer impact; recent deploy correlation.
- **Audit** — discovery or inventory across existing resources. Classification cues: words like "how many", "which", "where is", "what owns"; cost or compliance framing; no stated failure.
- **Architect** — design of a new or changing capability. Classification cues: words like "should we", "trade-off", "alternatives", "design"; discussion of non-existent-yet systems.

If the question does not cleanly match any mode, default to Audit and note the ambiguity to the user.

Where a matching service resource exists under `sandy://skills/research/services/<service>.md`, load it when the service becomes relevant. Missing service resources are non-blocking; record the gap as a known-unknown in `hypotheses.json` or in-context notes.

### Research mode resources

- `sandy://skills/research/modes/firefight.md`
- `sandy://skills/research/modes/audit.md`
- `sandy://skills/research/modes/architect.md`
Files in this package (5)
  • SKILL.md 7 KB
  • resources/examples.md 1 KB
  • resources/scripting-guide.md 13 KB
  • resources/examples/ec2_describe.ts 2 KB
  • resources/examples/ecs_services.ts 2 KB

Versions

RepositoryScoreLicence
This page · jamestelfer/sandy95Apache-2.0
jamestelfer/sandy95Apache-2.0

Database snapshot: 13.11.2026 · package version 50168a18c2f1 (SHA-256 digest of the entire package)

Downloads in the last 30 days: 0 · ranking

: harmful content, incorrect descriptions or an author’s removal request.

Similar skills

  • 100aws-mcp
    Authenticate a supplied AWS profile with browser sign-in when needed, wait for completion, verify AWS MCP access, and investigate root causes through scoped AWS resource queries. Use when handling AWS MCP connectivity, expired sessions, and read-only AWS troubleshooting.
  • 100aws-cloudformation-cdk
    Use this skill when defining AWS cloud infrastructure in TypeScript or Python using the AWS Cloud Development Kit (CDK).
  • 100aws-lambda-microvms
    Build, run, debug, and operate applications on AWS Lambda MicroVMs — Firecracker-isolated, snapshot-resumable serverless compute environments that run inside a container with up to 8-hour lifetimes. Triggers on: Lambda MicroVMs, Firecracker isolation, snapshot-resumable compute,…
  • 100aws-cli
    The AWS Command Line Interface (v2) manages Amazon Web Services from the terminal. Use when the user needs to run S3, EC2, Lambda, CloudWatch, IAM or other AWS commands, sign in with SSO or short-term credentials, write AWS automation scripts, or debug an `aws` command and its output.
  • 100signing-in-to-aws
    Gets AWS credentials for CLI/SDK access via `aws login`. Activates when a developer needs to authenticate to AWS for local development, when an AWS operation fails due to missing or expired credentials, or when someone asks about setting up AWS access. Triggers: "set up AWS",…
  • 100aws-readonly-setup
    Set up a read-only AWS profile (raystack-readonly) for RayStack reviews. Signs in with aws login, creates a role with ReadOnlyAccess, adds the profile and proves it can read but not write. Use when an AWS review needs live access and no read-only profile works, or for "set up read-only AWS access".

Feedback and reports

Your message goes to Bartosz Sokoliński. An email address is needed only for a reply. See the privacy policy.