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

sn

Skill by tehubersheezy

Runs ServiceNow operations through the sn CLI, letting an assistant read and write incidents, changes, problems, requests, CMDB CIs and other records. It is for people who work with a ServiceNow instance and want live ticket lookups and updates.

  • Score 64
  • 16 stars
  • MIT
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

Install sn

Built from the published package, never by AI.

git clone --depth 1 https://github.com/tehubersheezy/servicenow-cli /tmp/servicenow-cli && mkdir -p ~/.claude/skills && cp -r /tmp/servicenow-cli/.claude/skills/sn ~/.claude/skills/sn

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

Step-by-step: install sn in Claude Code

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

About

This skill teaches an AI assistant to use the sn command-line tool against a user's ServiceNow instance. It covers reading and writing incidents, changes, problems, requests, CMDB configuration items, catalog items, attachments, journal comments, XML exports, update sets and ATF runs. The CLI returns JSON by default, with stable exit codes and JSON runtime errors on stderr.

The skill focuses on pitfalls the CLI itself does not explain. It warns that ServiceNow can silently drop an invalid query term and return too many records, and it gives count-based checks to catch this. It also lists the JSON paths that return empty results with jq, along with exit code meanings and notes on display values. It is aimed at people and agents working with ServiceNow tickets and tables.

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

What it can do

  • Incident and change workReads and updates incidents, changes, problems and requests on the user's instance.
  • CMDB accessLooks up and updates configuration items with sn cmdb commands.
  • Schema discoveryFinds table names, writable columns and choice values with sn schema before filtering.
  • Aggregate countsUses sn aggregate --count to compare result sizes and catch overly broad queries.
  • Attachments and journalDownloads attachments and adds journal notes through work_notes updates.
  • Update sets and ATFRuns cicd commands for update sets, applications and ATF test runs.
  • Live record watchStreams record changes from a table with sn watch, bounded by event count, duration or idle time.
  • XML export and importExports records to XML and imports them, with read-back checks after import.

What you need

  • A ServiceNow instance the user can access
  • The sn CLI installed
  • A configured sn profile with valid credentials
  • Roles or API access that allow the requested operations

Try asking

  • Look up incident INC0010023 and summarise its current state
  • Count open incidents assigned to my group before I file a new one
  • Add a work note to change CHG0030012 saying the rollout is paused

Good to know

  • Commands such as cicd updateset back-out and cicd app rollback can affect many records and should be reviewed by a person first.
  • sn raw has no confirmation guard, including for DELETE requests.
  • sn xml export stops at glide.xml.export.limit, which is 10,000 by default, without saying so.
  • sn watch requires a -q query and has no bare table-watch form.

Security check

A

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

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

Alternatives to sn

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

sn: common questions

Why does a ServiceNow query return more records than expected?

ServiceNow can drop an invalid query term and apply only the remaining terms, which can widen the result without an error. The skill recommends checking field names with sn schema and comparing counts with sn aggregate --count.

Does a successful sn xml import mean the records loaded?

No. The source says exit 0 only means the file uploaded, so the records should be read back to confirm they loaded.

What does exit code 4 mean with sn?

Exit 4 covers both 401 and 403 responses. The source says it does not always mean the user must log in again, since roles, ACLs or API access policies can also block a request.

How do I install sn?

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

Is sn free?

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

Is sn safe to use?

It scores 64 of 100. Grades: maintenance A, licence A, quality C. 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 sn?

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

Add to stack

Loading.