Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

gliderecord-patterns

Skill by serac-labs

Gives guidance for writing efficient ServiceNow GlideRecord queries, covering addQuery, addEncodedQuery, setLimit, GlideAggregate counts and safe CRUD. It is aimed at developers who write GlideRecord code.

  • Score 54
  • 77 stars
  • Apache-2.0
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

Install gliderecord-patterns

Built from the published package, never by AI.

git clone --depth 1 https://github.com/serac-labs/serac /tmp/serac && mkdir -p ~/.claude/skills && cp -r /tmp/serac/packages/skills/gliderecord-patterns ~/.claude/skills/gliderecord-patterns

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install gliderecord-patterns in Claude Code

Skills can run scripts on your machine. Some need an API key: check the README.

About

This skill is a best-practice guide for writing GlideRecord queries in ServiceNow. It shows how to get single records by sys_id or by field, how to run multi-record queries, and when to use addEncodedQuery instead of several addQuery calls. It also covers setLimit, avoiding queries inside loops, and using GlideAggregate for counts instead of looping through records.

The guide includes a table of query operators such as CONTAINS, IN and ISEMPTY, plus examples for insert, update, delete and bulk update. Its security section recommends setWorkflow(false) for bulk operations, setLimit to prevent runaway queries, canRead and canWrite checks, and validating user input. The skill declares three tools: snow_query_table, snow_execute_script and snow_discover_table_fields. It is intended for developers working with ServiceNow GlideRecord.

Written from the project's SKILL.md and checked against it.

What it can do

  • Basic query patternsShows how to get single records by sys_id or field and query multiple records.
  • Encoded queriesExplains using addEncodedQuery for complex conditions instead of multiple addQuery calls.
  • Performance tipsCovers setLimit, getValue, getDisplayValue, avoiding loops with queries and using GlideAggregate for counts.
  • CRUD operationsProvides examples for insert, update, delete and bulk update of records.
  • Query operatorsLists GlideRecord operators such as CONTAINS, STARTSWITH, IN, NOT IN, ISEMPTY and ISNOTEMPTY.
  • Security considerationsRecommends setWorkflow(false), setLimit, canRead and canWrite checks and input validation.

Try asking

  • Write a GlideRecord query for active P1 incidents, limited to 50 records.
  • Count open incidents using GlideAggregate instead of looping over records.
  • Rewrite this loop that queries sys_user per ID into a single IN query.

Security check

A

No download-and-run commands, hidden instructions or signs of sending keys out were found.

Checked automatically: packages/skills/gliderecord-patterns/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work

Alternatives to gliderecord-patterns

All alternatives →

Compare with react-component-performance, react-component-performance or lecture-style

gliderecord-patterns: common questions

What does the GlideRecord patterns skill cover?

It covers query methods like addQuery and addEncodedQuery, setLimit, GlideAggregate for counts, avoiding queries in loops, query operators and safe CRUD operations.

Does the skill show how to count records efficiently?

Yes. It recommends GlideAggregate with addAggregate("COUNT") over looping through records and incrementing a counter.

Does the skill include security advice for bulk updates?

It recommends setWorkflow(false) to skip business rules for bulk operations, along with setLimit, canRead and canWrite checks and validating user input.

How do I install gliderecord-patterns?

Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.

Is gliderecord-patterns free?

The code is published under the Apache-2.0 licence. The service it connects to may have its own pricing.

Is gliderecord-patterns safe to use?

It scores 54 of 100. Grades: maintenance B, licence A, quality B. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.

What are alternatives to gliderecord-patterns?

Similar skills: react-component-performance, react-component-performance, lecture-style, workshop-style.

gliderecord-patterns Install

Add to stack

Loading.