data-policies

data-policies is a skill for Claude Code from serac-labs/serac. It costs 43 tokens per session (2,652 once invoked), scanned A, original, Apache-2.0.

A guide for defining ServiceNow tables and fields and enforcing data rules. A dictionary describes the data structure, while a data policy controls requirements such as mandatory, read-only, or visible fields.

In plain words
What is it for?
Use it to create tables and fields, set field types and defaults, define choice lists and overrides, and enforce condition-based data rules.
Why use it?
It keeps records consistent by applying field behavior at the data layer, even when records are created or changed in different ways.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the servicenow plugin — 70 skills shipped together

Good fit Use it to create tables and fields, set field types and defaults, define choice lists and overrides, and enforce condition-based data rules.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/serac-labs/serac/data-policies
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add serac-labs/serac --skill data-policies
Clone the repo
git clone --depth 1 https://github.com/serac-labs/serac

Made for: Claude Code.

Or install servicenow, the plugin that ships this one along with the rest of its 70 skills.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for data-policies

README.md
[![agentmods](https://agentmods.dev/badge/skills/serac-labs/serac/data-policies/github.svg)](https://agentmods.dev/skills/serac-labs/serac/data-policies)
Your own site
<a href="https://agentmods.dev/skills/serac-labs/serac/data-policies"><img src="https://agentmods.dev/badge/skills/serac-labs/serac/data-policies/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for data-policies

Your own site · 80×15
<a href="https://agentmods.dev/skills/serac-labs/serac/data-policies"><img src="https://agentmods.dev/badge/skills/serac-labs/serac/data-policies.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 43 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,652 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 1 finding, up to high

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • high System Prompt Leakage · line 237
    Skill contains instructions that could directly expose system prompts, internal rules, or hidden instructions to users or external parties.
    Fix: Remove any instructions that reveal, print, or output system prompts or internal rules. System instructions should never be exposed to end users.
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00043 $0.02652
Opus 5.5 $0.00017 $0.01061
Sonnet 5.5 $0.00009 $0.00530
Haiku 4.5 $0.00004 $0.00265

Measured 3mo ago against content hash f76d888527b6, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

data-policies scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

packages/skills/data-policies/SKILL.md · 414 lines

How it starts

The opening of the file, as written. The whole thing — 414 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Data Policies & Dictionary for ServiceNow

Data Policies enforce data integrity rules. Dictionary controls schema and field behavior.

Architecture

Dictionary (sys_dictionary)
    ├── Field Definition
    │   ├── Type, Length, Default
    │   └── Dependent Field
    └── Dictionary Overrides (sys_dictionary_override)

Data Policy (sys_data_policy2)
    └── Data Policy Rules (sys_data_policy_rule)
        └── Condition-based field behaviors

Key Tables

Table Purpose
sys_dictionary Field definitions
sys_dictionary_override Scoped overrides
sys_data_policy2 Data policies
sys_data_policy_rule Policy rules
sys_db_object Table definitions

Dictionary Management (ES5)

Create Table

// Create custom table (ES5 ONLY!)
var table = new GlideRecord("sys_db_object")
table.initialize()

table.setValue("name", "u_custom_table")
table.setValue("label", "Custom Table")
table.setValue("super_class", "task") // Extends task
table.setValue("is_extendable", true)
table.setValue("create_access_controls", true)
table.setValue("live_feed_enabled", false)

table.insert()

Create Field

// Create field on table (ES5 ONLY!)
var field = new GlideRecord("sys_dictionary")
field.initialize()

// Table and element
field.setValue("name", "u_custom_table")
field.setValue("element", "u_customer_name")

// Field properties
field.setValue("column_label", "Customer Name")
field.setValue("internal_type", "string")
field.setValue("max_length", 100)
field.setValue("mandatory", false)
field.setValue("read_only", false)
field.setValue("display", false)
field.setValue("active", true)

// Default value
field.setValue("default_value", "")

// Reference field specific
// field.setValue('reference', 'customer_account');
// field.setValue('reference_qual', 'active=true');

field.insert()

Read the full file on GitHub · 414 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 3mo ago First seen · 414 lines · 43 tokens per session scan A f76d888527b6

Subscribe to this mod's changes

data-policies is a skill published in the GitHub repository serac-labs/serac (77 stars, last pushed today), licensed Apache-2.0. It adds 43 tokens to every session and 2,652 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

data-policies compared with skills from other repositories

data-policies next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
data-policiesserac-labs/seracSkill77todayApache-2.0A43Claude Code
sn-safe-writeIvanBBaev/servicenow-mcp-aiSkill134d agoGPL-3.0A43Claude Code
sn-discoverIvanBBaev/servicenow-mcp-aiSkill134d agoGPL-3.0A53Claude Code
sn-triageIvanBBaev/servicenow-mcp-aiSkill134d agoGPL-3.0A50Claude Code
sn-uibIvanBBaev/servicenow-mcp-aiSkill134d agoGPL-3.0A57Claude Code
sn-securityIvanBBaev/servicenow-mcp-aiSkill134d agoGPL-3.0A73Claude Code
sn-upgradeIvanBBaev/servicenow-mcp-aiSkill134d agoGPL-3.0A62Claude Code