Skip to main content

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

MicroSkills Reference

Gzip Decompress

file.gzip_decompress

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

Overview

You send a gzip file_ref up to 25 MiB. We inflate exactly one member, bound the output with maxOutputBytes (default 50 MiB, maximum 100 MiB), and reject a second member. The uncompressed artifact restores the Squillify filename and MIME type (report.pdf.gz becomes report.pdf). Optional outputFilename and outputMediaType override that for external gzip. trailingData=REJECT is the default; ALLOW_EMPTY permits zero padding only. This is not tar extraction or content decoding.

An unbounded inflater turns a small gzip member into a zip bomb on the API JVM.

Reliability

CRC and ISIZE are checked. GZIP_INVALID — trigger: the bytes are not a single deflate gzip member; retryable: no; next: send a well-formed gzip. GZIP_TRUNCATED — trigger: the member ends before the trailer; retryable: no; next: re-upload the gzip. GZIP_CRC_MISMATCH — trigger: CRC32 does not match; retryable: no; next: replace the member. TRAILING_DATA — trigger: leftover bytes or a second member; retryable: no; next: split the stream. EXPAND_LIMIT — trigger: output would exceed maxOutputBytes; retryable: no; next: raise the ceiling or reject the bomb. ITEM_LIMIT_EXCEEDED — trigger: compressed input exceeds 25 MiB; retryable: no; next: split the payload.

Context footprint

Managed uncompressed fileRef plus sizes and SHA-256. A successful call costs 2 execution credits.

When to use it

When you have exactly one gzip member and need counted inflation with CRC verification.

When the bytes are a tar archive, concatenated members, or already uncompressed.

Scope

Note
Inflates exactly one gzip member with a counted expansion guard and restores Squillify filename and MIME type.

Non-goals

  • Does not walk tar archives
  • Does not decode concatenated gzip members
  • Does not trust gzip FNAME headers

Properties

IdempotentRetry safeStreaming supportedFile input supportedRequires external service

Capabilities

compression

Cost & billing

Flat rate per invocation

MetercallsBillable onsuccessCost per call2 credits

File handling

Accepts file_refProduces file_refMax input2 MBMax file size25 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 file25 MiBSkill and platform maximum
Maximum total input size25 MiBSkill maximum
Maximum number of input files1Skill maximum
Maximum generated artifact size100 MiBSkill maximum
Maximum number of generated files1Skill 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
file_refstringYesTenant-scoped gzip member up to 25 MiB. Concatenated members are rejected.
maxOutputBytesintegerNoExpansion ceiling in bytes, 1 through 104857600. Omit it for 52428800.
trailingDatastringNoREJECT fails on leftover bytes; ALLOW_EMPTY permits all-zero padding only. Omit it for REJECT.
outputFilenamestringNoOptional path-free download name for the uncompressed artifact when the gzip file_ref has no reliable name.
outputMediaTypestringNoOptional MIME type for the uncompressed artifact when the gzip file_ref has no reliable type.

Output schema

FieldTypeRequiredDescription
fileRefstringYesNew tenant-scoped uncompressed payload produced from exactly one gzip member.
filenamestringYesPath-free download name restored from the gzip artifact, or outputFilename when supplied.
expiresAtstringYesRFC 3339 expiry of the uncompressed file_ref.
mediaTypestringYesMIME type restored from the gzip artifact filename, or outputMediaType when supplied.
sizeBytesintegerYesUncompressed size in bytes, bounded by maxOutputBytes.
sha256stringYesSHA-256 hex digest of the uncompressed payload.
inputBytesintegerYesCompressed input size in bytes.
maxOutputBytesintegerYesExpansion ceiling that was applied.
trailingDatastringYesApplied trailing-data policy, either REJECT or ALLOW_EMPTY.

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.gzip_decompress","input":{"file_ref":"squillify://files/f-hello-gz"}}'
Integrations
TypeScript SDK
import { Squillify } from "@squillify/sdk";

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

const { output } = await sq.execute("file.gzip_decompress", {"file_ref":"squillify://files/f-hello-gz"});

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.
GZIP_INVALID400NoThe request payload failed this skill's input validation.
GZIP_TRUNCATED400NoThe request payload failed this skill's input validation.
GZIP_CRC_MISMATCH400NoThe request payload failed this skill's input validation.
TRAILING_DATA400NoThe request payload failed this skill's input validation.
EXPAND_LIMIT429NoA size, quota, rate, or time limit was exceeded.
ITEM_LIMIT_EXCEEDED429NoA size, quota, rate, or time limit was exceeded.

Other limits

LimitValue
Recommended inline bytes32 KiB

Limitations

  • Does not walk tar archives
  • Does not decode concatenated gzip members
  • Does not trust gzip FNAME headers
  • Extracting tar.gz directory trees
  • Decoding concatenated members as one stream

How to call

POST /v1/execute (requires authentication)

Request bodyjson
{
  "skillKey": "file.gzip_decompress",
  "input": {
    "file_ref": "squillify://files/f-hello-gz"
  }
}

Examples

Hello member round trips

Inputjson
{
  "file_ref": "squillify://files/f-hello-gz"
}
Expected outputjson
{
  "mediaType": "text/plain",
  "trailingData": "REJECT",
  "fileRef": "squillify://files/f-generated",
  "sha256": "2cf24dba5fb0a30e26e83b2ac5b9e29e1b161e5c1fa7425e73043362938b9824",
  "expiresAt": "2026-08-27T00:10:00Z",
  "inputBytes": 25,
  "maxOutputBytes": 52428800,
  "filename": "hello.txt",
  "sizeBytes": 5
}
Tip
SHA-256 of uncompressed hello is the published UTF-8 digest

Empty member round trips

Inputjson
{
  "file_ref": "squillify://files/f-empty-gz"
}
Expected outputjson
{
  "mediaType": "application/octet-stream",
  "trailingData": "REJECT",
  "fileRef": "squillify://files/f-generated",
  "sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
  "expiresAt": "2026-08-27T00:10:00Z",
  "inputBytes": 20,
  "maxOutputBytes": 52428800,
  "filename": "payload",
  "sizeBytes": 0
}
Tip
SHA-256 of empty uncompressed bytes is the published empty digest
  • Round-trip a file.gzip_compress member
  • Reject a zip-bomb-style expansion before allocation

Avoid for

  • Extracting tar.gz directory trees
  • Decoding concatenated members as one stream

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

gunzipcompressionfile