/servicenow:studio-source-controlfrom ServiceNow
Drives ServiceNow's built-in git integration from the instance — linking scoped apps, committing, pushing, stashing, and branching via /api/sn_source_control. Clarifies prerequisites and common pitfalls.
Ships in ServiceNow. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
A scoped application can be linked to a git repository, after which its records are committed and pushed
like code. snow_source_control drives that over /api/sn_source_control.
This is not the Fluent toolchain. The fluent-* skills are about building an app from a local SDK
project; this is the platform's own git integration, reached from inside the instance. Both end up in a
repository and they are different routes.
Source Control fails in ways that look like tool bugs when any of these is missing. Check them first:
sys_app with a scope like
x_company_module.Source Control → Link to Source Control). Nothing here creates the link.sys_repo_credential record holding the repo credential —
a PAT for GitHub/GitLab, not a password. Pass its alias as credentials_alias when the remote needs
auth.Confirm the link before anything else:
await snow_query_table({ table: "sys_app", query: "scope=x_acme_ops",
fields: "sys_id,name,scope,sys_class_name" })
await snow_source_control({ action: "status", app_scope: "x_acme_ops" })
status on an unlinked app is the fastest way to find out you are not where you think you are.
The order is git's, not ServiceNow's, and the tool does not merge the two:
// 1. what changed in the working copy
await snow_source_control({ action: "status", app_scope: "x_acme_ops" })
// 2. commit it locally, with a message
await snow_source_control({ action: "commit", app_scope: "x_acme_ops",
commit_message: "fix: widen the assignment lookup" })
// 3. and only then send it to the remote
await snow_source_control({ action: "push", app_scope: "x_acme_ops", credentials_alias: "acme-github" })
A commit that is never pushed lives only on that instance. This is the most common confusion: the change
looks committed, the repository does not have it, and a second developer's pull overwrites it.
pull applies remote changes onto the working copy. Pull before you start, not after you have edited —
a conflict here is resolved record by record in the UI, not by the tool.
await snow_source_control({ action: "branch", branch_action: "list", app_scope: "x_acme_ops" })
await snow_source_control({ action: "branch", branch_action: "create",
branch_name: "feature/wider-lookup", from_branch: "main",
app_scope: "x_acme_ops" })
await snow_source_control({ action: "branch", branch_action: "switch",
branch_name: "feature/wider-lookup", app_scope: "x_acme_ops" })
Switching a branch changes the records on the instance. This is the part that has no local-git equivalent: there is one working copy and it is the application on that instance. Switching branches mid-session changes what every other user of that instance sees. Do it on a development instance, never on one anybody is testing against.
stash is the escape hatch when a switch refuses because the working copy is dirty:
await snow_source_control({ action: "stash", stash_action: "create", stash_name: "wip",
stash_message: "half-done lookup change", app_scope: "x_acme_ops" })
// … switch, do something else, switch back …
await snow_source_control({ action: "stash", stash_action: "apply", stash_name: "wip",
app_scope: "x_acme_ops" })
diff takes an optional record_sys_id for one record, or nothing for the whole working copy. Read it
before committing — the working copy contains every change any user made on that instance since the last
commit, not only yours.
Not both for the same artefacts. Pick per application:
| Source control | Update sets | |
|---|---|---|
| Scope | one scoped app | anything, including global |
| Unit | a commit | a set of sys_update_xml rows |
| History | the repository's | the instance's |
| Merging | git merge, per branch | last write wins on retrieve |
| Rollback | check out an earlier commit | back out the set |
An app under source control should not also be moved by update sets — you get two histories that disagree about what shipped, and an update set applied over a linked app leaves the working copy dirty against a commit nobody made.
Global-scope work stays on update sets regardless; it cannot be linked. Most real instances therefore run
both, on different artefacts. update-set-workflow covers that half.
snow_track_deployment, snow_create_devops_pipeline, snow_create_devops_change,
snow_get_devops_insights and snow_velocity_tracking sit on the sn_devops_* tables. They record and
report on deployments — they do not perform them, and they are independent of whether the app is linked
to a repository. Reach for them when the question is "what shipped and when", not "put this code
somewhere".
The tool's own description says its paths are best-effort against the published Source Control REST docs
and want live-instance verification. That is accurate, and it shows in the implementation: status,
branch list and stash list fall back to reading sys_repo_status, sys_repo_branch and
sys_repo_stash directly when the REST path 404s, because some releases expose them as records instead.
Practically: run status first on any instance you have not used this on. If it comes back from the
fallback path, the read actions work and the write actions are the ones to try carefully — commit
something trivial and check the repository before relying on push in a pipeline.
update-set-workflow — the other way to move changes, and the right one for global scope.scoped-apps — what makes an application scoped in the first place.fluent-development — building an app from a local SDK project, a different route to the same repo.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub serac-labs/serac --plugin servicenow70 skills in this plugin
/acl-securityCreate and debug ServiceNow ACLs (record, field, REST, script-include). Covers role/condition/script patterns, which ACL names can apply to a table or field, field-level visibility, and impersonation testing for row- and field-level security./agent-workspaceBuild ServiceNow Agent Workspace configurations — workspaces, lists, forms, contextual side panels, Agent Assist similar-record finders, and workspace-specific UI actions on sys_aw_* tables./agile-developmentServiceNow Agile Development 2.0 — the rm_team → rm_sprint → rm_story → rm_epic model, the state and point values ServiceNow actually accepts, how a story is attached to a sprint, and the reporting tools (board, burndown, velocity, capacity, standup, retrospective).Other plugins' skills for the same job