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
Critical

E004: Prompt injection detected in skill instructions.

What this means

Detected a prompt injection in the skill instructions. The skill contains hidden or deceptive instructions that fall outside its stated purpose and attempt to override the agent’s safety guidelines or intended behavior.

Why it was flagged

The skill is legitimate Spark documentation with no covert code, exfiltration, or impersonation, but its shared-cluster pattern at lines 170-175 of streaming-best-practices.md tells the agent to stop every active stream on the cluster, which could destroy other users' or jobs' work.

Report incorrect finding
Medium

W013: Attempt to modify system services in skill instructions.

What this means

The skill prompts the agent to compromise the security or integrity of the user’s machine by modifying system-level services or configurations, such as obtaining elevated privileges, altering startup scripts, or changing system-wide settings.

Why it was flagged

The skill is guidance for Spark Structured Streaming, but it does include operational mutations, such as `dbutils.fs.rm("/checkpoints/stream", recurse=True)` to delete checkpoints, `ALTER TABLE` property changes, and `spark.conf.set` changes. The checkpoint deletion is not described as irreversibly destroying operational state: the same file's text suggests backing up first and restoring from backup, and says Delta deduplication handles reprocessing. Without explicit unrecoverable-loss language tied to this operation, the tier is low.

Low

W011: Third-party content exposure detected (indirect prompt injection risk).

What this means

The skill exposes the agent to untrusted, user-generated content from public third-party sources, creating a risk of indirect prompt injection. This includes browsing arbitrary URLs, reading social media posts or forum comments, and analyzing content from unknown websites.

Why it was flagged

The required runtime path is Kafka ingestion (kafka-streaming.md Quick Start and Pattern 1), where payloads come from user-supplied brokers and topics that an outsider could publish to only if the topic is externally writable. The agent does not consume that content as LLM context by default, and reading payloads, state, or DLQ contents would require it to actively query specific data, so I'm scoring it low under the recall-first override.

Repository

databricks/databricks-agent-skills

Path

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

Audited
Security analysis
Snyk

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.