CtrlK
BlogDocsLog inGet started
Tessl Logo
SkillPublic

databricks-spark-structured-streaming

Comprehensive guide to Spark Structured Streaming for production workloads. Use when building streaming pipelines, working with Kafka ingestion, implementing Real-Time Mode (RTM), configuring triggers (processingTime, availableNow), handling stateful operations with watermarks, writing custom stateful logic with transformWithState (timers, TTL, per-key state; preferred over applyInPandasWithState and flatMapGroupsWithState for new code), optimizing checkpoints, performing stream-stream or stream-static joins, writing to multiple sinks, or tuning streaming cost and performance.

Quality

89%

Does it follow best practices?

Run evals on this skill

Adds up to 20 points to the overall score

View guide
SecuritybySnyk

Critical

Do not install without reviewing

SKILL.md
Quality
Evals
Security

Quality

Content

86%Weight 40%Scale 1-5

Reviews the quality of instructions and guidance provided to agents. Good implementation is clear, handles edge cases, and produces reliable results.

The body is an exemplary progressive-disclosure hub: lean, well-organized, with dense navigation tables pointing to real one-level-deep reference files and a useful production checklist. The main gap is in the Quick Start code, which depends on an undefined 'schema' variable and placeholder paths, keeping it from being fully copy-paste executable.

Suggestions

Define the 'schema' variable in the Quick Start (e.g. add a one-line 'schema = StructType([...])' or 'spark.read.schema(...)' example) so the code is fully copy-paste executable.

Add a brief validation/recovery note for the streaming workflow — e.g. what to check when a stream fails or stalls (query.status, last progress batch duration) — to close the feedback loop the checklist only implies.

Merge the single-row 'Best Practices' table into the Production Checklist section to remove the redundant structure.

DimensionReasoningScore

Conciseness

The body is lean and assumes competence: one compact Quick Start code block, dense navigation tables with one-line descriptions, and a checklist — no space is spent explaining concepts Claude already knows. The only trimmable bits (the second sentence of the intro, the single-row 'Best Practices' table) are marginal, so it sits at the 'lean and efficient; every token earns its place' anchor rather than the 'minor instances of over-explanation' anchor at 4.

5 / 5

Actionability

The Quick Start is nearly copy-paste ready ('df.writeStream ... .option("checkpointLocation", ...) .trigger(processingTime="30 seconds").start(...)') but references an undefined 'schema' variable in 'from_json(col("value").cast("string"), schema)' and uses placeholder paths, so it falls at 'mostly executable guidance; concrete code or commands with minor gaps' rather than fully executable at 5.

4 / 5

Workflow Clarity

The Quick Start implies a clear sequence (ingest from Kafka → parse → write with checkpoint and trigger), and the Production Checklist supplies verification items such as 'Exactly-once verified (txnVersion/txnAppId)' and 'Monitoring configured (input rate, lag, batch duration)'. It is not a 5 because there is no explicit validate-and-recover loop for when a stream fails or a checklist item is unmet — 'clear sequence with most checkpoints present; minor validation gaps'.

4 / 5

Progressive Disclosure

This is a textbook overview-then-reference structure: the body stays high-level and every detailed topic is a clearly signaled, one-level-deep link in a table ('See [references/kafka-streaming.md](references/kafka-streaming.md)', etc.), and all 12 referenced files exist in references/ with no nested references between them. It matches the score-5 anchor exactly.

5 / 5

Total

18

/

20

Passed

Description

88%Weight 40%Scale 1-5

Based on the skill's description, can an agent find and select it at the right time? Clear, specific descriptions lead to better discovery.

A strong description that clearly states what the skill covers and when to use it, with an explicit and detailed 'Use when' clause and highly specific capability keywords. Keyword coverage is strong but misses a few natural synonyms, and a couple of broadly-worded phrases create minor overlap risk with neighboring streaming skills.

DimensionReasoningScore

Specificity

The description enumerates many concrete capabilities — 'configuring triggers (processingTime, availableNow)', 'stateful operations with watermarks', 'transformWithState (timers, TTL, per-key state)', 'stream-stream or stream-static joins', 'writing to multiple sinks', 'tuning streaming cost and performance' — giving comprehensive, concrete coverage rather than vague claims. It matches the 'lists multiple specific concrete actions; comprehensive coverage' anchor; there is no higher level.

5 / 5

Completeness

It explicitly answers both questions: 'what' via 'Comprehensive guide to Spark Structured Streaming for production workloads' and 'when' via the explicit 'Use when building streaming pipelines, working with Kafka ingestion, ...' clause with concrete trigger phrases. This is a direct match to the score-5 anchor and good_overall_example pattern; a missing or weak 'Use when' clause would have capped it at 3, which is not the case.

5 / 5

Trigger Term Quality

Good coverage of natural phrases users would say ('streaming pipelines', 'Kafka ingestion', 'Real-Time Mode (RTM)', 'watermarks', 'checkpoints', 'stream-stream or stream-static joins'), but a few common variations are missing — e.g. 'Spark streaming', 'event streaming', 'low latency', or file/topic extensions. This fits 'good keyword coverage; a few natural terms missing' rather than the comprehensive-synonyms anchor at 5.

4 / 5

Distinctiveness Conflict Risk

The niche is clear — Spark Structured Streaming with distinctive triggers like 'transformWithState' and 'Real-Time Mode (RTM)' — but generic phrases such as 'building streaming pipelines' and 'tuning streaming cost and performance' overlap with adjacent Kafka/general streaming skills. This lands on 'mostly distinct; minor overlap risk with closely related skills' rather than the minimal-conflict anchor at 5.

4 / 5

Total

18

/

20

Passed

Validation

93%

Checks the skill against the spec for correct structure and formatting. All validation checks must pass before discovery and implementation can be scored.

Validation — 15 / 16 Passed

Validation for skill structure

CriteriaDescriptionResult

frontmatter_unknown_keys

Unknown frontmatter key(s) found; consider removing or moving to metadata

Warning

Total

15

/

16

Passed

Repository

databricks/databricks-agent-skills

Path

plugins/databricks/claude/skills/databricks-spark-structured-streaming/SKILL.md

Reviewed

Table of Contents

Is this your skill?

If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.