add-transform
/add-transform
Add a cleaning rule, a derived column, an aggregate output or a DuckDB query to this Polars pipeline, with its tests and expected output. Use when the user asks for a new rule, metric, summary table, output file or query over the data.
- Author
- steamfield ↗
- Repository
- stacks ↗
- Licence
- Apache-2.0
- Last repository change
- 08.11.2026
Assessment and security
- Files in this package
- 1
- Scripts
- 0
- HTML comments
- 0
- URLs in SKILL.md
- 0
No signals detected. Repository changed on 08.11.2026, without references to retired models or APIs.
Apache-2.0, otwarta: można używać i zmieniać, z zachowaniem licencji i informacji o zmianach.
What it does and when to use it
Add a cleaning rule, a derived column, an aggregate output or a DuckDB query to this Polars pipeline, with its tests and expected output. Use when the user asks for a new rule, metric, summary table, output file or query over the data.
Original author description
Add a cleaning rule, a derived column, an aggregate output or a DuckDB query to this Polars pipeline, with its tests and expected output. Use when the user asks for a new rule, metric, summary table, output file or query over the data.
How it works
SKILL.md has no level-two headings · 13 lines, 196 words
SKILL.md preview
--- name: add-transform description: Add a cleaning rule, a derived column, an aggregate output or a DuckDB query to this Polars pipeline, with its tests and expected output. Use when the user asks for a new rule, metric, summary table, output file or query over the data. --- # Add a transform `revenue_by_region` in `src/<package>/transform.py` and `top_products` in `queries.py` are the models. Read them, `docs/ARCHITECTURE.md` and `docs/data-contract.md` first. 1. Write the transform as a function from `pl.LazyFrame` to `pl.LazyFrame` in `transform.py`, or as SQL with parameters in `queries.py` when SQL reads better. No file access and no `collect()`. 2. A new cleaning rule is one more `when(...).then(...)` in `reject_reason`, in the order the contract lists it. A new raw column changes `ORDER_COLUMNS` in `io.py`, `PARSED` and `ORDER_SCHEMA` together. 3. Unit test it in `tests/test_transform.py` (or `tests/test_queries.py`) with a small inline frame and `assert_frame_equal`, covering the schema and each edge the rule handles. 4. For a new output, add its name to `OUTPUTS` in `pipeline.py`, compute it inside the one `pl.collect_all` call and write it with `io.write_parquet`. 5. When the fixture should exercise it, add a row to `data/fixtures/orders.csv`. Then update `data/fixtures/expected/` with the new output's CSV or the changed rows; work the values out by hand from the fixture rather than copying the pipeline's output, so the check can catch a wrong transform. 6. Update `docs/data-contract.md` (rules, outputs) and, if a notebook should show it, `notebooks/explore.py`. 7. Run `make lint typecheck coverage pipeline-check notebooks`.
Versions
The database has no other skills named add-transform.
Database snapshot: 13.11.2026 · package version 060932284bcf (SHA-256 digest of the entire package)
Downloads in the last 30 days: 0 · ranking
Report a problem with this skill: harmful content, incorrect descriptions or an author’s removal request.
Similar skills
- 100duckdb
Expert DuckDB analytical database assistance covering embedded SQL, Parquet querying, Arrow integration, and vectorized execution. Use when running in-process OLAP, analyzing local datasets, or processing pandas/polars data. - 92write-script-duckdb
MUST use when writing DuckDB queries. - 90polars
Apply polars in reproducible local data workflows with version-aware APIs, explicit assumptions, and validation. Use when the user chooses polars or its strengths fit the task. - 100data-analysis
Analyzes tabular data from CSV, Parquet or dataframes with pandas, Polars and DuckDB. Use when totals do not reconcile, a join duplicates rows, comparing groups or trends, a metric's grain or denominator matters, timezones shift daily counts, or a file is too large to load into… - 95data_analysis
High-performance data analysis using Polars - load, transform, aggregate, visualize and export tabular data. Use for CSV/JSON/Parquet processing, statistical analysis, time series, and creating charts. - 95duckdb-en
DuckDB CLI specialist for SQL analysis, data processing and file conversion. Use for SQL queries, CSV/Parquet/JSON analysis, database queries, or data conversion. Triggers on "duckdb", "sql", "query", "data analysis", "parquet", "convert data".