CtrlK
BlogDocsLog inGet started
Tessl Logo
SkillPublic

lakeflow-unstructured

This experimental skill guides an agent through designing, authoring, validating, deploying, and verifying a Lakeflow Job for document parsing and extraction. It reuses existing sources, keeps ingestion out of scope, and requires approval for production deployment, scheduling, or replacing existing data or resources. It also covers workflow-file synchronization, safe authentication diagnostics, and handoff for quality evaluation in Document Intelligence and Genie Code.

Quality

87%

Does it follow best practices?

Run evals on this skill

Adds up to 20 points to the overall score

View guide
SecuritybySnyk

Low

Low-risk findings worth noting

SKILL.md
Quality
Evals
Security

Lakeflow Unstructured

Create a local workflow folder that deploys a Lakeflow Job and opens in Data Ingestion > Document Intelligence. Start with files already in a Unity Catalog volume or content already in a Delta table. A volume can feed Document Parsing directly; it does not need a new ingestion pipeline or bronze table.

This skill is experimental. Use the UI and Genie Code for evaluation, improving extraction quality, and visual debugging.

Companion skills

Use databricks-core first for CLI installation, authentication, and the user's selected profile. Use databricks-dabs for bundle configuration and deployment, databricks-jobs for task configuration, and databricks-ai-functions for direct SQL syntax and extraction schemas. These stable skills are available through databricks aitools install. Load them when needed; this skill supplies the workflow-specific file and deployment conventions.

Working with the user

Gather requirements through normal conversation. Reuse details already supplied in the conversation or workflow files, and ask only for information that blocks the next step. Group related missing details briefly and accept partial answers. Inspect authorized sources and samples before asking the user to define a full extraction schema. Present proposed fields, tasks, and unresolved business rules together for review; retain confirmed choices and existing authorization.

Ask directly for paths, table or column names, and other text values. Use multiple-choice questions only for meaningful decisions with distinct outcomes. Keep instructions and commands in normal conversation, outside answer choices. Do not direct the user to client-specific labels or option numbers to enter text.

Keep the selected workspace/profile during authentication recovery. If login requires the user's browser or terminal, provide a copyable command, explain where to run it, and wait for completion before verifying that same profile. If access remains blocked, explain the blocker and continue only independent local design work, marking assumptions that still need source verification.

Limit authentication diagnostics to profile names, workspace URLs, validation results, and whether credential variables are present. Never print environment dumps, credential files, or authentication output containing token values.

Workflow

  1. Establish the starting point. Identify the business goal and the user's selected workspace/profile. Reuse an existing source path or table when supplied. If the user needs help finding the source, use authorized read-only discovery in that workspace and present relevant accessible sources. For an existing workflow, read its manifest, SPEC.md, AGENTS.md, and bundle before changing it, and follow Synchronize workflow edits to reconcile local, workspace, and deployed changes. Preserve the user's source, destinations, and existing assets.
  2. Design the document processing. Read Document processing. Inspect a small representative sample when authorized. Reuse the user's extraction schema or propose typed fields with descriptions from the samples. Confirm business rules and handling of missing values with the user. Resolve the output catalog/schema as the design takes shape. Show the task chain and the planned input/output tables before configuring deployment.
  3. Author the workflow folder. Read Workflow folder. Start from the bundled assets, write the current design to SPEC.md, and keep decisions and validation evidence current as the workflow changes. A plan-only request creates no workspace resources.
  4. Validate and deploy. Read Deploy and open. Validate the bundle and deploy the authorized development target. Publish the workflow files to the same workspace folder recorded by the deployment, with deployment history enabled from the first deploy.
  5. Verify and hand off. Verify the deployed Job's settings and the workflow page's deployment association. When a test run is authorized, state how much input it will process, inspect task outputs and errors, and record the result. Return the workflow and Job links. Offer the UI/Genie Code handoff for evaluation and improvements before production use.

Honor authorization already given. Obtain missing design decisions before implementing them, and get approval for production deployment, scheduling, or replacing existing data or resources.

Scope

  • Build document-processing workflows from existing volumes or tables. Configure parsing and extraction as native AI Function tasks. Add classification only when the workload needs labels or different processing by document type.
  • Keep source ingestion outside this workflow: reuse existing connections and sources. If documents are not yet accessible in a volume or table, explain the required starting point rather than creating connectors or ingestion pipelines.
  • Perform functional checks on schemas, outputs, errors, and repeat runs. Run quality evaluations, hill climbing, and visual debugging in Document Intelligence with Genie Code.
  • Report authoring, deployment, execution, and quality verification separately. A successful deploy does not establish extraction accuracy.
Repository

databricks/databricks-agent-skills

Path

experimental/lakeflow-unstructured/SKILL.md

Last updated
First committed
Purpose
DevelopmentTesting and QADatabase managementDevOpsMachine learning and AIDocumentationPlanning
Form
WorkflowAgenticRulesBest practicesReference
Commands
databricksdatabricks aitoolsdatabricks aitools install
Tools
UIGenie Code
Human confirmation
Required in some cases

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.