Skip to main content

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

MicroSkills Reference

Markdown Inspector

markdown.inspect

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

Overview

You select structural sections and receive deterministic headings, canonical IDs, links, images, code, tables, tasks, footnotes, math, frontmatter, callouts, statistics, and parser dependencies. The skill parses once, reports exact total and returned counts, and never fetches or renders remote content. Accepts file input via file_ref — no need to extract file content first.

Agents need bounded machine-readable structure without parsing HTML or combining several unrelated focused skills.

Reliability

STRICT at a fixed profile version. MARKDOWN_PROFILE_UNSUPPORTED means the profile name is unknown and requires choosing commonmark, gfm, or squillify-safe; MARKDOWN_INVALID_ENCODING means a file is not strict UTF-8 and requires re-encoding before retrying; MARKDOWN_COMPLEXITY_LIMIT means the fixed node, depth, or math-expression cap was exceeded and requires splitting or simplifying the document. Collection sections always report exact total and returned counts.

Context footprint

Input uses the shared Markdown file, node, and depth caps. Collection sections default to 1000 retained items and cap at 5000; together they also share a 1500000-byte pessimistic JSON budget. Metadata titles cap at 8192 UTF-8 bytes. A successful call costs 1 execution credit.

When to use it

When you need a deterministic whole-document inventory or statistics.

When one focused extraction or rendered output is sufficient.

Powered by commonmark-java and Squillify's shared Markdown semantics.

Scope

Note
Reports selected structure and statistics from one Markdown document.

Non-goals

  • Does not render or rewrite Markdown
  • Does not test remote availability
  • Does not semantically validate TeX
  • Does not replace focused extraction skills

Properties

IdempotentRetry safeStreaming supportedFile input supportedRequires external service

Capabilities

analysisdocument-processingparsing

Cost & billing

Flat rate per invocation

MetercallsBillable onsuccessCost per call1 credit

File handling

Accepts file_refProduces file_refMax input2 MBMax file size2 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 file2 MiBSkill maximum

How we handle your data

Sensitive output possible
What this means

This skill may receive sensitive content and may return submitted, transformed, extracted, or reformatted content.

Squillify guarantees
  • Runs inside Squillify using a self-contained open-source component
  • This skill runs inside Squillify.
  • Payloads are not sent to an external service by this skill.
  • Self contained open source component
  • 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.
  • Output may reveal sensitive derived information
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
markdownstringNoInline Markdown up to 1048576 characters. Omit only when file_ref is present. If both are present, file_ref wins and _meta._input_conflict_resolved reports it.
file_refstringNoTenant-scoped strict-UTF-8 Markdown file up to 2097152 bytes. When omitted, the inline markdown field is used.
profilestringNocommonmark, gfm, or squillify-safe; defaults to squillify-safe.
includearrayNoUnique closed selectors in any order: [metadata, headings, links, images, code, tables, tasks, footnotes, math, diagrams, frontmatter, callouts, statistics, dependencies]. The response always uses canonical section order. When omitted, defaults to metadata, headings, links, images, and statistics.
limitsobjectNoOptional timeoutMs and maxItemsPerSection (1..5000). Defaults are timeoutMs=5000 and maxItemsPerSection=1000. Unknown properties are rejected.

Output schema

FieldTypeRequiredDescription
metadataobjectNoOptional bounded title, titleTruncated flag, profile and first-seen feature list; omit it when metadata was not requested.
headingsobjectNoWhen requested: closed {total, returned, items} where each item is {level, text, id, range}.
linksobjectNoWhen requested: closed {total, returned, items} where each item is {text, destination, title, range}.
imagesobjectNoWhen requested: closed {total, returned, items} where each item is {alt, destination, title, range}.
codeobjectNoWhen requested: closed {total, returned, items} where each item is {kind, language, text, range}.
tablesobjectNoWhen requested: closed {total, returned, items} where each item is {columns, rows, range}.
tasksobjectNoWhen requested: closed {total, returned, items} where each item is {checked, text, range}.
footnotesobjectNoWhen requested: closed {total, returned, items} where each item is {kind, label, text, range}.
mathobjectNoWhen requested: closed {total, returned, items} where each item is {kind, tex, range}.
diagramsobjectNoWhen requested: closed {total, returned, items} where each item is {language, source, range}.
frontmatterobjectNoWhen requested: closed {total, returned, items} where each item is {key, values, range}.
calloutsobjectNoWhen requested: closed {total, returned, items} where each item is {kind, title, text, range}.
statisticsobjectNoWhen requested: closed whole-document counts for codePoints, utf8Bytes, lines, words, nodes and maxDepth covering the complete normalized document.
dependenciesobjectNoWhen requested: closed {total, returned, items} where each item is {name, version} in parser-then-extension order.
_metaobjectYesClosed parser identity, normalized input facts and exact truncation sections for this inspection.

API contract

POST /v1/execute
curl
curl -sS -X POST "$BASE/v1/execute" -H "Authorization: Bearer $KEY" -H 'Content-Type: application/json' -d '{"skillKey":"markdown.inspect","input":{"markdown":"# Plan\n\n- [ ] Ship","include":["headings","tasks","statistics"]}}'
Integrations
TypeScript SDK
import { Squillify } from "@squillify/sdk";

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

const { output } = await sq.execute("markdown.inspect", {"markdown":"# Plan\n\n- [ ] Ship","include":["headings","tasks","statistics"]});

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.
MARKDOWN_PROFILE_UNSUPPORTED400NoThe request payload failed this skill's input validation.
MARKDOWN_INVALID_ENCODING400NoThe request payload failed this skill's input validation.
MARKDOWN_COMPLEXITY_LIMIT429NoA size, quota, rate, or time limit was exceeded.

Other limits

LimitValue
Recommended inline bytes32 KiB

Limitations

  • Does not render or rewrite Markdown
  • Does not test remote availability
  • Does not semantically validate TeX
  • Does not replace focused extraction skills
  • Remote link checking
  • HTML rendering
  • Content repair
  • Open-ended summarization

How to call

POST /v1/execute (requires authentication)

Request bodyjson
{
  "skillKey": "markdown.inspect",
  "input": {
    "markdown": "# Plan\n\n- [ ] Ship",
    "include": [
      "headings",
      "tasks",
      "statistics"
    ]
  }
}

Examples

Inspect a heading and task

Inputjson
{
  "markdown": "# Plan\n\n- [ ] Ship",
  "include": [
    "headings",
    "tasks",
    "statistics"
  ]
}
Expected outputjson
{
  "_meta": {
    "profileVersion": "1",
    "inputChars": 18,
    "parserVersion": "0.24.0",
    "truncated": false,
    "truncatedSections": [],
    "nodeCount": 7,
    "bomStripped": false,
    "lineEndingsNormalized": false,
    "profile": "squillify-safe",
    "inputBytes": 18,
    "parser": "commonmark"
  },
  "tasks": {
    "items": [
      {
        "checked": false,
        "text": "Ship",
        "range": {
          "start": {
            "line": 3,
            "offset": 8,
            "column": 1
          },
          "end": {
            "line": 3,
            "offset": 18,
            "column": 11
          }
        }
      }
    ],
    "returned": 1,
    "total": 1
  },
  "headings": {
    "items": [
      {
        "level": 1,
        "text": "Plan",
        "range": {
          "start": {
            "line": 1,
            "offset": 0,
            "column": 1
          },
          "end": {
            "line": 1,
            "offset": 6,
            "column": 7
          }
        },
        "id": "plan"
      }
    ],
    "returned": 1,
    "total": 1
  },
  "statistics": {
    "utf8Bytes": 18,
    "codePoints": 18,
    "nodes": 7,
    "lines": 3,
    "words": 2,
    "maxDepth": 4
  }
}

Inspect only parser dependencies

Inputjson
{
  "profile": "commonmark",
  "include": [
    "dependencies"
  ],
  "markdown": "Text"
}
Expected outputjson
{
  "_meta": {
    "profileVersion": "1",
    "inputChars": 4,
    "parserVersion": "0.24.0",
    "truncated": false,
    "truncatedSections": [],
    "nodeCount": 2,
    "bomStripped": false,
    "lineEndingsNormalized": false,
    "profile": "commonmark",
    "inputBytes": 4,
    "parser": "commonmark"
  },
  "dependencies": {
    "items": [
      {
        "name": "commonmark",
        "version": "0.24.0"
      }
    ],
    "returned": 1,
    "total": 1
  }
}
  • Build a document outline
  • Inventory links and assets
  • Measure document complexity
  • Discover code, tables, tasks, or notes

Avoid for

  • Remote link checking
  • HTML rendering
  • Content repair
  • Open-ended summarization

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

analysismarkdowndocument