/servicenow:fluent-developmentfrom ServiceNow
Develops ServiceNow applications using the Fluent SDK with declarative TypeScript and git-based workflows. Builds, installs, and manages scoped apps as code.
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.
Fluent is ServiceNow's pro-code model: application metadata as declarative TypeScript, with git as the source of truth instead of the instance. You edit .now.ts files locally, compile them (build), and push the compiled package to an instance (install). The CLI behind the tools is now-sdk from @servicenow/sdk (4.x, Node 20+).
Where these tools run: the
snow_fluent_*tools are local-only — they execute the ServiceNow SDK (now-sdk) on the developer's machine, so they only exist when the MCP server runs locally over stdio. Over a hosted HTTP transport (e.g. a web chat) they are not available, so do not call them; drive the same flow through git + CI instead: commit the project files, trigger the build/deploy pipeline, and follow the workflow runs.
| Task | Use |
|---|---|
| Build/evolve an app whose definition should live in git | Fluent tools (snow_fluent_*) |
| Data operations (query/create/update records) | API tools (snow_query_table, ...) |
| ITSM/config changes on an existing non-Fluent instance | API tools (e.g. snow_create_business_rule) |
| Metadata types Fluent doesn't cover (see §5) | API tools, or keep as XML in metadata/ |
Fluent changes the definition of an app; the API tools change a live instance directly. Don't mix them for the same artifact: editing a Fluent-managed record via the API gets overwritten on the next install.
now.config.json # { "scope": "x_acme_myapp", "scopeId": "<sys_app sys_id>", "name": "My App" }
package.json # devDeps: @servicenow/sdk, @servicenow/glide
src/fluent/*.now.ts # the Fluent DSL (entry: index.now.ts)
src/fluent/generated/keys.ts # Now.ID registry -> sys_ids. MUST be committed.
src/server/ # server-side code referenced from script: properties
metadata/ # original XML for records not (yet) converted to Fluent
dist/ # build output (gitignored)
now.config.json binds the project to one scope: scopeId is the sys_app sys_id (generated locally for new apps, taken from the instance with init from=sys_id). It contains no instance/connection info — auth lives separately.Now.ID['my-key'] gives every record a stable identity; the build regenerates src/fluent/generated/keys.ts mapping those keys to sys_ids.keys.ts → next build elsewhere mints new sys_ids → duplicate records on install.keys.ts with every change; in CI run build with frozen_keys so a stale keys file fails the pipeline ("Keys file is out-of-date...")..now.ts entity and as XML in metadata/ uses the XML version on build. Delete the XML twin after converting, or pass error_on_conflict to make the collision fatal instead of silent.snow_fluent_status — what project am I in? Scope, SDK pin, keys.ts state, XML-vs-Fluent counts. Run this first in any existing project.snow_fluent_explain — offline SDK docs (now-sdk explain). Always check the topic for an API before writing its DSL — property names changed across 4.x and guessing produces compile errors. Use the topic list to discover names; topics include keys-file, ci-integration, developing-apps-guide, and one per API.snow_fluent_init — scaffold a new app, or convert an existing instance app with from=<sys_id> (conversion keeps everything as XML in metadata/; nothing changes on the app at the start)..now.ts files.snow_fluent_build — compile. Fix TypeScript errors and re-run until clean (compile errors → exit 1).snow_fluent_install — deploy to a dev instance. Then verify on the instance (e.g. snow_query_table against the target table, or install with info=true to read the last install status).snow_fluent_download (instance → local XML, supports incremental), then snow_fluent_transform to convert selected XML to Fluent (supports table targeting and from=<local file/dir>). Conversion is opt-in and incremental — migrate record-by-record, leave the rest as XML.snow_fluent_dependencies to sync type definitions, with add_table + scope to register a specific table.The ES5 rule applies to code that runs on the instance's Rhino engine — i.e. the string inside script: — NOT to the Fluent DSL itself. Fluent files are modern TypeScript compiled locally by the SDK. Do not "ES5-ify" .now.ts files; do not put ES6 inside script: strings.
// src/fluent/business-rules/close-children.now.ts
// (verify exact properties first: snow_fluent_explain topic for BusinessRule)
import '@servicenow/sdk/global'
import { BusinessRule } from '@servicenow/sdk/core'
// ✅ Modern TypeScript here — this never runs on Rhino
export const closeChildren = BusinessRule({
$id: Now.ID['close-children-br'],
name: 'Close child incidents',
table: 'incident',
when: 'after',
action: ['update'],
script: `
// ❌ const/let/arrow/template-literals — Rhino will reject them
// ✅ ES5 only inside this string:
var child = new GlideRecord('incident');
child.addQuery('parent_incident', current.getUniqueValue());
child.addQuery('active', true);
child.query();
while (child.next()) {
child.state = current.state;
child.update();
}
`,
})
Now.ID inside a Record API's data block — it only resolves in $id and produces blank references elsewhere.$id: Now.ID['stable-key'] on every entity; never hand-write sys_ids.Fluent has dedicated APIs for the common core (tables, business rules, ACLs, client/UI scripts via ClientScript/UiAction/UiPolicy, script includes, roles, properties, scheduled scripts, Scripted REST, Flow Designer, Service Catalog, Service Portal, ATF, AI Agents). Not first-class: classic Workflow (wf_workflow), UI Builder pages, reports/PA dashboards, UI macros, UI scripts, processors, schedules (cmn_schedule), decision tables, data sources.
Record API, or $override (4.7.0+) to set fields the typed API doesn't expose — or simply leave them as XML in metadata/ (XML round-trips unchanged through build/install).Table augments (4.6.1+).sys_upgrade_history only. Never install straight to production — promote via the App Repository; dev/test instances only.--demoData to TRUE; the snow_fluent_install tool defaults it to FALSE — pass demo_data=true only when the user wants the project's demo data on the instance.reinstall is destructive: uninstall + fresh install (-r/--reinstall). It is the only "rollback", and side-effect records (e.g. auto-created M2M rows) are not cleaned up.skip_flow_activation to suppress that.dist/ output, not just the exit code.glide.appcreator.company.code.snow_fluent_explain before writing DSL.After an install, report: target instance, scope, install result (from info), whether demo data was included, and a reminder that the change is not in an update set and cannot be rolled back except via reinstall.
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