Skip to content
Back to skills

Snowflake Create Aggregation Policy

ASecurity

Consult Snowflake CREATE AGGREGATION POLICY parameter reference before generating any CREATE AGGREGATION POLICY DDL.

  • 77 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added June 11, 2026
code-quality

Security analysis

A100/100

Pro scans all 2 files and shows the line behind each finding

Scanned June 11, 2026

npx -y skills add Gyrus-Dev/frosty --skill snowflake-create-aggregation-policy --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Snowflake Create Aggregation Policy?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Snowflake Create Aggregation Policy
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/gyrus-dev-snowflake-create-aggregation-policy/badge)](https://www.skillsdirectory.com/skills/gyrus-dev-snowflake-create-aggregation-policy)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: snowflake-create-aggregation-policy
description: Consult Snowflake CREATE AGGREGATION POLICY parameter reference before generating any CREATE AGGREGATION POLICY DDL.
---

Before writing a CREATE AGGREGATION POLICY statement:
1. Read `references/parameters.md` to review all available parameters and their defaults.
2. For each parameter, decide whether the user's request implies a non-default value.
3. Include only the parameters that differ from the default or that the user explicitly requested.
4. Never use `CREATE OR REPLACE` — always use `CREATE AGGREGATION POLICY IF NOT EXISTS`.
5. The policy body must call either `NO_AGGREGATION_CONSTRAINT()` (unrestricted access) or `AGGREGATION_CONSTRAINT(MIN_GROUP_SIZE => <n>)` (requires aggregation with at least n rows per group).
6. Aggregation policies require Snowflake Enterprise Edition or higher; warn the user if their account edition is unknown.
7. The policy body cannot reference user-defined functions, tables, or views — only the built-in constraint functions are allowed.

Files in this skill

  • SKILL.md1 KB
  • references/parameters.md2.4 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in code-quality →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.