script-include-patterns
Skill by serac-labs
Provides ServiceNow Script Include patterns for building Class.create utility classes, AbstractAjaxProcessor APIs for GlideAjax, inheritance with Object.extendsObject, and scoped apps. It is for ServiceNow developers writing server-side JavaScript.
Install script-include-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/script-include-patterns ~/.claude/skills/script-include-patternsRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
Step-by-step: install script-include-patterns in Claude Code
git clone --depth 1 https://github.com/serac-labs/serac /tmp/serac && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/serac/packages/skills/script-include-patterns ~/.gemini/antigravity-cli/skills/script-include-patternsAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Step-by-step: install script-include-patterns in Antigravity CLI
Skills can run scripts on your machine. Some need an API key: check the README.
About
script-include-patterns is an agent skill that gives an assistant ServiceNow Script Include patterns. It covers standard Class.create utility classes, client callable classes that extend AbstractAjaxProcessor for GlideAjax calls, inheritance with Object.extendsObject, and scoped application examples. Each pattern includes ES5 code samples, along with a client-side GlideAjax example.
The skill names three MCP tools for managing Script Includes: snow_create_script_include, snow_artifact_manage, and snow_execute_script. It also lists best practices such as single responsibility, JSDoc comments, underscore-prefixed private methods, and ES5-only syntax. It is aimed at ServiceNow developers who write reusable server-side libraries.
Written from the project's SKILL.md and checked against it.
What it can do
- Standard Script IncludeBuilds Class.create utility classes for reusable server-side logic.
- Client Callable Script IncludeExtends AbstractAjaxProcessor so client scripts can call methods through GlideAjax.
- Client-side GlideAjax callShows how a client script passes parameters and handles the JSON response.
- Inheritance patternDerives classes from a base class using Object.extendsObject.
- Scoped Script IncludeShows an application-scoped class with an app prefix for properties and logging.
- snow_create_script_includeCreates a new Script Include from code, with client callable and description options.
- snow_artifact_manageFinds existing Script Includes (action find) and updates their code (action update).
- snow_execute_scriptRuns test code that calls a Script Include to check its behavior.
What you need
- ServiceNow development environment
Try asking
- Write a ServiceNow Script Include that looks up incidents by number
- Create a client callable Script Include for GlideAjax calls
- Show me how to extend a Script Include with Object.extendsObject
Good to know
- Examples use ES5 syntax only, with no const, let, arrow functions or template literals
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: packages/skills/script-include-patterns/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Alternatives to script-include-patterns
All alternatives →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.
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.
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.
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.
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.
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.
Compare with openclaw-github-repo-commander, gradio or hig-components-menus
script-include-patterns: common questions
How do I call a Script Include from the client?
The source uses a client callable Script Include that extends AbstractAjaxProcessor, called from the client with GlideAjax and a sysparm_name parameter. The method's response is returned as JSON.
Which Script Include types does this cover?
The source lists Standard, Client Callable, On-Demand and AbstractAjaxProcessor types, each with its use case and whether it is client callable.
Does the skill use modern JavaScript?
No. The source says to use ES5 only and avoid const, let, arrow functions and template literals.
How do I install script-include-patterns?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is script-include-patterns free?
The code is published under the Apache-2.0 licence. The service it connects to may have its own pricing.
Is script-include-patterns 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 script-include-patterns?
Similar skills: openclaw-github-repo-commander, gradio, hig-components-menus, fastapi-templates.
