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.
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-patternsRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/serac-labs/serac /tmp/serac && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/serac/packages/skills/gliderecord-patterns ~/.gemini/antigravity-cli/skills/gliderecord-patternsAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Step-by-step: install gliderecord-patterns in Antigravity CLI
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
ANo 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 →Diagnoses slow React components and suggests targeted performance fixes. Built for developers who want to reduce re-renders or list lag in React UIs.
Diagnoses slow React components and suggests targeted performance fixes. Built for React developers who need to reduce re-renders, list lag, or expensive render work.
Designs masterclass-style lectures as slide courses with dense pages, long teacher narration and rare quizzes. Built for subjects where understanding matters more than hands-on practice.
Designs hands-on workshop courses in which the learner practises through exercise and quiz pages instead of watching. It suits workshops, bootcamp sessions and skills the learner should leave able to use.
Analyzes competition and develops market positioning strategies using Porter's Five Forces, Blue Ocean Strategy, and positioning maps. Useful for founders and teams evaluating competitors or preparing a startup or investor pitch.
Designs courses whose content depends on current or external facts. It researches the topic first, records each claim with its source, and builds the outline and pages from fetched material. Built for educators teaching time-sensitive subjects.
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.
