snowflake-create-masking-policy
SkillDatabases & dataConsult Snowflake CREATE MASKING POLICY parameter reference before generating any CREATE MASKING POLICY DDL.
Available today. Use it from your connected AI after setup.
No other account needed.
Connect ahel once, and every AI you use reads what you have installed.
Then ask your AI: use the snowflake-create-masking-policy skill
What this skill tells your AI
The instructions your AI receives, as published by gyrus-dev/frosty in skills/snowflake-create-masking-policy/SKILL.md and read by ahel’s review.
Before writing a CREATE MASKING POLICY statement:
- Read
references/parameters.mdto review all available parameters and their defaults. - For each parameter, decide whether the user's request implies a non-default value.
- Include only the parameters that differ from the default or that the user explicitly requested — do not bloat the DDL with unnecessary clauses.
- Never use
CREATE OR REPLACE— always useCREATE MASKING POLICY IF NOT EXISTS. - The return data type in
RETURNSmust exactly match the data type of the first argument (<arg_name_to_mask>); cross-type transformations are not allowed. - The policy body (
<body>) must be a valid SQL expression — use conditional functions (e.g.IFF,CASE) along with masking functions (e.g.SHA2,REGEXP_REPLACE) or return the column value unchanged. - Only set
EXEMPT_OTHER_POLICIES = TRUEif the user explicitly needs this policy to bypass other row access or conditional masking policies — this setting cannot be changed once the policy is attached to a table or view. - For conditional masking policies (multiple arguments), the first argument represents the column to mask; additional arguments provide context values but cannot be virtual columns.
Signals
- GitHub stars
- 77
- Forks
- 9
- Last commit
- Apr 2026
Advanced
- Catalog kind
- skill
- Gateway key
snowflake-create-masking-policy- Source
- github.com/gyrus-dev/frosty