---
name: snowpark-connect
description: |
  Snowpark Connect (SCOS) skills for migrating and validating PySpark workloads on Snowflake.
  Use when: migrating PySpark to Snowpark Connect, validating SCOS migrations,
  analyzing Spark compatibility, or working with Snowpark Connect for Spark.
  Triggers: snowpark connect, scos, pyspark migration, spark connect,
  validate migration, pyspark compatibility.
---

# Snowpark Connect

Skills for working with Snowpark Connect for Spark (SCOS) on Snowflake.

## When to Use

- User wants to migrate PySpark or Databricks code to Snowflake
- User asks about SCOS or Snowpark Connect compatibility
- User mentions "spark connect", "scos", or "snowpark connect"

## Intent Detection

<!-- SNOW-3289405: Simplified router — migration-only routing, validation removed from automatic routing -->
Determine which sub-skill to load based on user intent:

```
Start
  ↓
Analyze User Request
  ↓
  └─→ Migration intent → Load migrate-pyspark-to-snowpark-connect/SKILL.md
        (convert, migrate, update imports, rewrite for SCOS)
```

### Route: Migrate PySpark to Snowpark Connect

**If user wants to migrate or convert PySpark code:**
- Keywords: migrate, convert, rewrite, update imports, move to SCOS
- **Load** `migrate-pyspark-to-snowpark-connect/SKILL.md`
- Follow the migration workflow

> **Note:** Validation sub-skill (`validate-pyspark-to-snowpark-connect`) remains available for explicit manual invocation but is no longer offered automatically after migration.

## Stopping Points

None — this skill routes to sub-skills. Stopping points are defined within each sub-skill.

## Output

Output is determined by the loaded sub-skill:
- **Migration**: Migrated `_scos` files with compatibility fixes, migration headers, and SCOS-compatible dashboard reports (`Reports/Issues.csv`, `Reports/InputFilesInventory.csv`, `Reports/ArtifactDependencyInventory.csv`) using `SPRKCNTPY*` codes
