Skip to content
TrustedSkillsbeta
Back to all skills

Window Function Builder

Listed
dengineproblem·vlatest·data

Build complex SQL window functions quickly by visually selecting columns and defining calculations – streamlining data analysis workflows.

Install on your platform

This skill no longer installs under the name window-function-builder. dengineproblem/agents-monorepo is deleted or private, so it cannot be installed from.

We check each listing against its upstream repository with the rules the skills CLI uses, last on 2026-10-22. We don't show a command we know will fail.

Repository install instructions

What we know about this skill

Publisher

dengineproblem

Taken from the source listing. We haven't verified who controls this account.

Install target

Live repository

Not pinned. Installing fetches whatever the repository holds at the time you run the command.

Nobody has reviewed this code. TrustedSkills indexes and links skills; it does not audit, run or scan them. A skill runs with whatever access you give your agent — read the source before you install it.

Automated safety checks

scanned

We could not read this skill's source, so none of the checks below were run.

Not scanned. repository not found or private Source recorded as dengineproblem/agents-monorepo.
This is a static scan, not a review. It reads the skill's files; it does not run them, and it cannot tell you whether the skill is any good or whether the code does what its description says. A skill runs with whatever access you give your agent.
What each check looks for →

About this skill

The window-function-builder skill constructs SQL window functions to perform complex aggregations and calculations across ordered result sets. It enables AI agents to generate queries that calculate running totals, moving averages, and rank-based metrics without collapsing rows into a single summary line.

When to use it

  • Generating cumulative sums or running balances for financial ledgers.
  • Calculating rolling averages over time-series data like stock prices or sensor readings.
  • Ranking records within specific partitions, such as finding the top 3 salespeople per region.
  • Creating lagged or lead values to compare current metrics against previous periods.

Key capabilities

  • Constructs OVER clauses to define window frames and partitioning logic.
  • Supports standard window functions like ROW_NUMBER(), RANK(), DENSE_RANK(), and NTILE().
  • Handles aggregate functions within windows, such as SUM() OVER, AVG() OVER, and COUNT() OVER.
  • Allows specification of frame boundaries using ROWS BETWEEN or RANGE BETWEEN clauses.

Example prompts

  • "Write a SQL query to calculate the 7-day moving average of daily sales for each product category."
  • "Generate a query that assigns a unique row number to every transaction within each customer's order history."
  • "Create a statement that ranks employees by salary within their respective departments using dense ranking."

Tips & gotchas

Ensure your SQL dialect supports the specific window functions you request, as syntax can vary between PostgreSQL, MySQL, and SQL Server. When defining partitions, be explicit about the grouping columns to avoid unintended global calculations across the entire dataset.