Skip to main content

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

MicroSkills Reference

Validate Env File

code.validate_env_file

ProductionBounded custom (Class B)Deterministicstrictfastv1.0.0
File inputNo network

Overview

When you send .env content, we parse it with a conservative grammar and validate required, forbidden, and allowed keys plus optional value rules. We never evaluate command substitution, resolve ${VAR} references, or read your process environment. Likely secret values are never returned — do not use this when you need interpolation expansion or shell execution. Accepts file input via file_ref — no need to extract file content first.

Env misconfiguration and committed secrets are common. We validate safely offline without executing your values.

Reliability

STRICT and deterministic under the pinned grammar. Secret detection is best-effort and returns warnings, not failures. Line/key limit violations throw validation errors — reduce file size before retrying.

Context footprint

Returns keys metadata, errors, warnings, valid flag, and _meta. A successful call costs 1 execution credit.

When to use it

When you can supply .env text and a key/value policy to enforce.

When you need variable expansion or command evaluation.

Scope

Note
Validates dotenv files offline against a policy you declare.

Non-goals

  • Does not evaluate commands or backticks
  • Does not resolve ${VAR} interpolation
  • Does not read the process environment
  • Does not return raw secret values

Properties

IdempotentRetry safeStreaming supportedFile input supportedRequires external service

Capabilities

parsingvalidation

Cost & billing

Flat rate per invocation

MetercallsBillable onsuccessCost per call1 credit

File handling

Accepts file_refProduces file_refMax input1.9 MBMax file size1.9 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 file1.9 MiBSkill and platform maximum

How we handle your data

Sensitive processing
What this means

This skill is designed to detect, mask, redact, validate, or otherwise process sensitive data.

Squillify guarantees
  • Runs inside Squillify
  • This skill runs inside Squillify.
  • Payloads are not sent to an external service by this skill.
  • 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.
  • Targets sensitive data
  • The response does not contain submitted 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
sourceobjectNoClosed inline or managed-file dotenv source; omit it when content or file_ref is the source.
contentstringNoExact dotenv text; omit it when source or file_ref is the content.
file_refstringNoTenant-scoped managed dotenv file reference; omit it when source or content is used.
requirementsobjectNoClosed required, forbidden, allowed, and typed-value policy; omit it for syntax-only checks.
optionsobjectNoClosed dotenv parser options; omit it to apply every documented default.

Output schema

FieldTypeRequiredDescription
validbooleanYesWhether the errors array is empty.
keysarrayYesFrom 0 through 10,000 parsed key receipts in file order, each a closed key, line and quote.
errorsarrayYesFrom 0 through 100,000 blocking validation findings, each a closed code, message, optional path and line, and severity.
warningsarrayYesFrom 0 through 100,000 advisory findings without raw values.
_metaobjectYesClosed grammar and parsed-key-count receipt with the pinned dotenv grammar version and keyCount.

API contract

POST /v1/execute
curl
curl -sS -X POST "$BASE/v1/execute" -H "Authorization: Bearer $KEY" -H 'Content-Type: application/json' -d '{"skillKey":"code.validate_env_file","input":{"content":"PORT=8080\n","requirements":{"requiredKeys":["PORT"]}}}'
Integrations
TypeScript SDK
import { Squillify } from "@squillify/sdk";

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

const { output } = await sq.execute("code.validate_env_file", {"requirements":{"requiredKeys":["DATABASE_URL"]},"content":"PORT=8080\n"});

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 evaluate commands or backticks
  • Does not resolve ${VAR} interpolation
  • Does not read the process environment
  • Does not return raw secret values
  • Interpolating variable references
  • Executing shell in values

How to call

POST /v1/execute (requires authentication)

Request bodyjson
{
  "skillKey": "code.validate_env_file",
  "input": {
    "requirements": {
      "requiredKeys": [
        "DATABASE_URL"
      ]
    },
    "content": "PORT=8080\n"
  }
}

Examples

Missing required key fails validation

Inputjson
{
  "requirements": {
    "requiredKeys": [
      "DATABASE_URL"
    ]
  },
  "content": "PORT=8080\n"
}
Expected outputjson
{
  "warnings": [],
  "valid": false,
  "_meta": {
    "grammar": "dotenv-conservative-1",
    "keyCount": 1
  },
  "errors": [
    {
      "code": "ENV_REQUIRED_KEY_MISSING",
      "message": "Required key 'DATABASE_URL' is missing",
      "path": "DATABASE_URL",
      "line": null,
      "severity": "error"
    }
  ],
  "keys": [
    {
      "line": 1,
      "key": "PORT",
      "quote": "none"
    }
  ]
}

Required key present passes validation

Inputjson
{
  "requirements": {
    "requiredKeys": [
      "PORT"
    ]
  },
  "content": "PORT=8080\n"
}
Expected outputjson
{
  "warnings": [],
  "valid": true,
  "_meta": {
    "grammar": "dotenv-conservative-1",
    "keyCount": 1
  },
  "errors": [],
  "keys": [
    {
      "line": 1,
      "key": "PORT",
      "quote": "none"
    }
  ]
}
  • Enforce required and forbidden keys in CI
  • Validate integer ranges and enums on env values
  • Flag likely secrets committed to .env files

Avoid for

  • Interpolating variable references
  • Executing shell in values

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

codeenvvalidation