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

client-scripts

Skill by serac-labs

Client Script Patterns gives an AI assistant ServiceNow client script examples. It covers onLoad, onChange, onSubmit and onCellEdit scripts, the g_form and g_user APIs, and GlideAjax calls, for ServiceNow developers.

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

Install client-scripts

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/client-scripts ~/.claude/skills/client-scripts

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

Step-by-step: install client-scripts in Claude Code

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

About

This skill gives an AI assistant patterns for writing ServiceNow client scripts. It explains the four script types (onLoad, onChange, onSubmit and onCellEdit) and shows how to use the g_form API to get and set values, toggle field visibility and mandatory state, show field and form messages, and manage sections and labels. It also covers the g_user object for user details and role checks.

The skill includes GlideAjax examples with a matching server-side script include, plus guidance on reducing server calls, using the isLoading parameter, and debouncing rapid changes. It lists common mistakes such as forgetting the isLoading check and manipulating the DOM directly. It is aimed at developers building ServiceNow forms and lists. The skill is version 1.0.0, licensed under Apache-2.0, and designed for Serac and ServiceNow development.

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

What it can do

  • Client script typesExplains when onLoad, onChange, onSubmit and onCellEdit scripts run and what each is used for.
  • g_form value handlingShows how to get, set and clear field values, including reference fields with display values.
  • Field state controlCovers setting fields visible, displayed, mandatory, read-only or disabled.
  • Messages and validationShows field and form messages, error checks on submit, and flashing a field to draw attention.
  • GlideAjax server callsProvides a client script calling a script include and the matching server-side AbstractAjaxProcessor code.
  • g_user objectShows reading current user details and checking roles, including exact and list-based role checks.
  • Performance patternsRecommends a single server call, skipping work during load with isLoading, and debouncing rapid changes.

What you need

  • Designed for Serac and ServiceNow development

Try asking

  • Write an onChange client script that sets priority to 1 when category is security
  • Create an onSubmit validation that requires close notes when state is resolved
  • Show a GlideAjax client script that loads user details on a caller change

Good to know

  • Client scripts run in the user's browser and use the g_form API rather than server-side GlideRecord calls.
  • Examples are patterns for ServiceNow forms and are not tested against a specific instance in the source.

Security check

A

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

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

Alternatives to client-scripts

All alternatives →
openclaw-github-repo-commandersickn33
94

Runs a 7-stage workflow for auditing, cleaning up and reviewing GitHub repositories, plus competitor analysis. Written for developers who want a repo checked for secrets, junk files and documentation gaps.

AAA Skill 50k
gradiogradio-app
94

Teaches an AI assistant to build, debug and explain Gradio web UIs and ML demos in Python. It covers the core API, components, event listeners, layouts and the MCP server option. Aimed at Python developers who work with Gradio.

AAA Skill 44k
hig-components-menussickn33
94

Recommends menus, buttons, toolbars and disclosure controls for Apple platforms using Human Interface Guidelines conventions. Built for developers and designers making iOS, iPadOS, macOS or visionOS interfaces. Checks existing project design context before asking questions.

AAA Skill 50k
fastapi-templateswshobson
94

Creates production-ready FastAPI project structures with async patterns, dependency injection, and error handling. It is for developers starting new FastAPI applications or backend API projects.

AAA Skill 43k
appfunctionsandroid
94

Analyzes Android apps to find user workflows to expose as AppFunctions, so AI agents and system shortcuts can run them without opening the app UI. Generates Kotlin code and refines KDoc for Android developers.

AAA Skill 11k
agent-qa-authoringsickn33
94

Creates, edits, validates and runs Agent QA tests, suites and hooks through MCP or CLI. It keeps canonical IDs and schema contracts intact, for developers and QA teams using Agent QA.

AAA Skill 50k

Compare with openclaw-github-repo-commander, gradio or hig-components-menus

client-scripts: common questions

Which ServiceNow client script types does this skill cover?

It covers onLoad, onChange, onSubmit and onCellEdit scripts, with a table describing when each one runs.

Does the skill include server-side code?

Yes. It includes a GlideAjax example with a Class.create script include that returns JSON for a client script to read.

Does the skill mention browser testing?

Yes. Its common mistakes table advises testing in Chrome, Firefox and Edge to avoid cross-browser issues.

How do I install client-scripts?

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

Is client-scripts free?

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

Is client-scripts safe to use?

It scores 48 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 client-scripts?

Similar skills: openclaw-github-repo-commander, gradio, hig-components-menus, fastapi-templates.

client-scripts Install

Add to stack

Loading.