Skip to main content

Squillify development is paused indefinitely. Read why, and discover what this experiment achieved. Read the story

MicroSkills Reference

Create ZIP

file.create_zip

ProductionBounded custom (Class B)verifiablefastv1.0.0
File inputFile outputNo networkTemp storage

Overview

You provide files as inline UTF-8 text, base64 bytes, or managed file references and we build a deterministic ZIP archive. Entry paths are validated against zip-slip (absolute paths, .., drive letters, backslashes, over-long names). Duplicate paths are rejected unless you allow overwrites. We return a file reference when storage is available, or archiveBase64 as a fallback, plus size and SHA-256. Do not use this to extract archives or create password-protected zips. Archive members cost 1 execution credit per 10 members, rounded up, minimum 1, capped at 1000 members (100 credits).

Agents cannot produce binary archives reliably. We build deterministic, zip-slip-safe ZIPs from content you already have.

Reliability

Archive bytes are deterministic — we sort entries by path and stamp every timestamp to epoch, so identical inputs give the same SHA-256. Generated fileRef, expiresAt, and downloadUrl values are newly allocated and vary between calls. An entry fileRef resolves only inside your own tenant; if it has expired or belongs to someone else you get a validation error naming that entry index, and the fix is to re-upload and retry with the fresh reference. The other validation errors are equally not worth retrying unchanged: an empty files array, more than 1,000 entries, a zip-slip path (.., absolute, backslash, drive letter, or over 255 UTF-8 bytes), a duplicate path while overwriteDuplicatePaths is false, an entry over 50 MiB or a total over 500 MiB, invalid base64, and a fileRef entry sent when file storage is not available.

Context footprint

Returns fileRef or archiveBase64, entry count, size, checksum, and metadata. Archive members cost 1 execution credit per 10 members, rounded up, minimum 1, capped at 1000 members (100 credits). The files array names those members, so we reserve from that count until settlement reports the members actually archived.

When to use it

When you need to bundle inline content or managed files into one archive.

When you need extraction, encryption, or paths outside safe relative names.

Scope

Note
Creates a deterministic ZIP from inline content or managed file references.

Non-goals

  • Does not extract archives
  • Does not encrypt or password-protect
  • Does not fetch external URLs

Properties

IdempotentRetry safeStreaming supportedFile input supportedRequires external service

Capabilities

compression

Cost & billing

1 execution credit per 10 archive members, rounded up, reserved from the request and capped at 1000 members (100 credits).

MetermembersBillable onsuccessCost per member1 credit

File handling

Accepts file_refProduces file_refMax input500 MBMax file size50 MB

File limits

Constraints this skill applies to your input and generated files. The “Limited by” column shows the static source of each cap; none of these can be raised by upgrading your plan.

LimitValueLimited by
Maximum size per input file50 MiBSkill and platform maximum
Maximum total input size500 MiBSkill maximum
Maximum number of input files1,000Skill maximum
Maximum generated artifact size500 MiBSkill maximum
Maximum number of generated files1Skill maximum
Maximum total generated size500 MiBSkill maximum

How we handle your data

Protected temp storage
What this means

This skill may temporarily store files or intermediate data only to complete execution. Temporary data is protected and automatically deleted.

Squillify guarantees
  • Runs inside Squillify
  • This skill runs inside Squillify.
  • Payloads are not sent to an external service by this skill.
  • Temporary execution only storage
  • Squillify does not permanently store submitted payloads.
  • Telemetry records metadata only, not submitted content.
  • Submitted payloads are not used for training.
  • Submitted payloads are not reviewed by humans.
  • This skill does not target sensitive data.
  • The response may contain submitted or transformed content.
Your responsibility

Squillify does not determine whether submitted content is sensitive. Your application is responsible for deciding what data it is allowed to submit. Your application is responsible for securing the response.

Read the Microskill Data Handling Policy

Input schema

FieldTypeRequiredDescription
filesarrayYesFrom 1 through 1,000 closed entry objects sorted by their safe path before archive creation.
compressionLevelintegerNoDEFLATE compression level.
overwriteDuplicatePathsbooleanNoWhether duplicate paths retain the first sorted entry.
outputFilenamestringNoManaged archive filename; .zip is appended when absent.

Output schema

FieldTypeRequiredDescription
okbooleanYesTrue after archive creation succeeds.
fileRefstringNoNew tenant-scoped archive reference.
expiresAtstringNoRFC 3339 expiry for fileRef.
downloadUrlstringNoPresigned download URL when the storage provider supplies one.
archiveBase64stringNoInline base64 archive when managed storage is unavailable.
entryCountintegerYesNumber of archive entries written after validation.
sizeBytesintegerYesTotal byte count of the completed ZIP archive.
sha256stringYesLowercase SHA-256 of archive bytes.
metadataobjectYesClosed receipt object containing the applied outputFilename and compressionLevel properties.

API contract

POST /v1/execute
curl
curl -sS -X POST "$BASE/v1/execute" -H "Authorization: Bearer $KEY" -H 'Content-Type: application/json' -d '{"skillKey":"file.create_zip","input":{"files":[{"path":"one.txt","content":"Hello"}]}}'
Integrations
TypeScript SDK
import { Squillify } from "@squillify/sdk";

const sq = new Squillify({ apiKey: process.env.SQUILLIFY_API_KEY });

const { output } = await sq.execute("file.create_zip", {"files":[{"content":"Hello","path":"readme.txt"},{"content":"More","path":"data/info.txt"}]});

Errors

CodeHTTPRetryableDescription
VALIDATION_ERROR400NoThe request payload failed schema validation.
UNAUTHORIZED401NoMissing or invalid API key.
SKILL_NOT_ACCESSIBLE403NoThe API key is not granted access to this skill.
SKILL_NOT_AVAILABLE_FOR_PLAN403NoThis skill is not included in your current plan.
PLAN_ELIGIBILITY_UNAVAILABLE503YesPlan eligibility could not be decided. Retry after backoff.
SKILL_NOT_FOUND404NoThe requested skill or version does not exist.
TENANT_RATE_LIMITED429YesRequest rate limit exceeded. Retry after backoff.
QUOTA_EXCEEDED429YesPlan quota exhausted. Retryable once the quota period resets.
EXECUTION_TIMEOUT504YesExecution exceeded the allowed time budget.

Other limits

LimitValue
Recommended inline bytes32 KiB

Limitations

  • Does not extract archives
  • Does not encrypt or password-protect
  • Does not fetch external URLs
  • Archive extraction (use file.safe_extract_archive)
  • Password-protected or encrypted archives

How to call

POST /v1/execute (requires authentication)

Request bodyjson
{
  "skillKey": "file.create_zip",
  "input": {
    "files": [
      {
        "content": "Hello",
        "path": "readme.txt"
      },
      {
        "content": "More",
        "path": "data/info.txt"
      }
    ]
  }
}

Examples

Two inline text files archived to managed storage

Inputjson
{
  "files": [
    {
      "content": "Hello",
      "path": "readme.txt"
    },
    {
      "content": "More",
      "path": "data/info.txt"
    }
  ]
}
Expected outputjson
{
  "fileRef": "squillify://files/f-generated-archive",
  "expiresAt": "2026-08-13T12:00:00Z",
  "sizeBytes": 301,
  "downloadUrl": "https://files.squillify.example/generated-archive",
  "ok": true,
  "entryCount": 2,
  "metadata": {
    "compressionLevel": 6,
    "outputFilename": "archive.zip"
  },
  "sha256": "3d14b5b2236cc79e3b1f533361055f829dcf02e98974579dc78e948fa234ad2c"
}

Maximum compression on a single small file

Inputjson
{
  "compressionLevel": 9,
  "files": [
    {
      "content": "ok",
      "path": "note.txt"
    }
  ]
}
Expected outputjson
{
  "fileRef": "squillify://files/f-generated-archive",
  "expiresAt": "2026-08-13T12:00:00Z",
  "sizeBytes": 152,
  "downloadUrl": "https://files.squillify.example/generated-archive",
  "ok": true,
  "entryCount": 1,
  "metadata": {
    "compressionLevel": 9,
    "outputFilename": "archive.zip"
  },
  "sha256": "4fd10e5c2b4a4a77242d3668a3c6198805c1e3ef90d1d35505f64a305a959652"
}
  • Bundle agent outputs for download
  • Package multiple managed files into one handoff artifact

Avoid for

  • Archive extraction (use file.safe_extract_archive)
  • Password-protected or encrypted archives

Composable with

Safety & privacy

  • Runs without calling any external service.
  • Your payloads are never stored permanently.
  • Telemetry captures metadata only — never your payload contents.
  • We never train models on your payloads.
  • No human reviews your payloads.

Tags

filecompressionziparchive