Logo: Sn Sdk Setup

Sn Sdk Setup

Communautéit
guilhermebatista-gbs
sn-sdk-setup

Use when setting up, configuring, building, or deploying with the ServiceNow SDK — scaffolding new projects, configuring Basic or OAuth authentication, converting existing applications, building and deploying to an instance, or validating a development environment. Covers all init templates, auth setup with named aliases, the build→deploy→verify lifecycle, and the check-environment script.

Iwwersiicht

Editeurguilhermebatista-gbs
Repositoryservicenow-architect
Skill-Nummsn-sdk-setup
Stären
26
Forks
14
Matgeliwwert Dateien
10
LizenzMIT
Linken
  • Instruktiounen am Markdown-Format

    Eng SKILL.md-Datei, déi de Modell bei Bedarf luet, soudatt nëmmen Token ufalen, wann eng Ufro tatsächlech dozou passt.

  • Funktionéiert mat all LLM

    KI-Skills si reng Markdown, keen ubidderspezifesche Code. Dofir funktionéiert dëse Skill mat GPT, Claude, Gemini, Grok oder engem lokale Modell.

  • 10 matgeliwwert Dateien

    Skripten, Virlagen a Referenzen, déi de Modell beim Schaffe liese kann. D'Dateie kënnen nëmme gelies ginn a ginn ni ausgeféiert.

  • Open Source

    guilhermebatista-gbs huet de Skill op GitHub verëffentlecht. Liest de Quelltext, ier Dir de Skill installéiert.

Installatioun

Installéiert de KI-Skill Sn Sdk Setup an TypingMind, fir e mat all LLM ze benotzen, oder setzt en an en anere KI-Agent an, deen SKILL.md liest.

1

An TypingMind installéieren

TypingMind installéiert e Skill direkt aus sengem GitHub-Dossier — dobäi gëtt SKILL.md gelies, d'Ressourcedateie gi gebëndelt an d'Resultat gëtt lokal gespäichert.

  1. Maacht d'App op a gitt op Plugins → Skills.
  2. Wielt „Vu GitHub installéieren“.
  3. Pecht d'URL vum Skill-Dossier, déi hei drënner steet, an a bestätegt d'Installatioun.
    https://github.com/guilhermebatista-gbs/servicenow-architect/tree/main/sn-sdk-setup
  4. Aktivéiert de Skill an all Chat, an deem Dir e benotze wëllt.
Plugins → Skills → Skill derbäisetzen → Iwwer eng GitHub-URL. Pecht dann d'URL vum Dossier an a klickt op Weider.
2

An engem anere KI-Agent installéieren

All KI-Agent, deen d'Format Agent Skills liest, kann dëse Skill benotzen — kopéiert den Dossier an d'Skill-Verzeechnes vun deem KI-Agent.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/guilhermebatista-gbs/servicenow-architect.git /tmp/servicenow-architect
mkdir -p .claude/skills
cp -r /tmp/servicenow-architect/sn-sdk-setup .claude/skills/sn-sdk-setup
Start Claude Code nom Kopéieren nei, fir datt den neie Skill erkannt gëtt.

An TypingMind benotzen

Aktivéiert Sn Sdk Setup an engem Chat vun TypingMind, an de Modell iwwerhëlt de Rescht. Den Numm an d'Beschreiwung stinn am System-Prompt. Soubal eng Ufro dozou passt, luet de Modell déi komplett Instruktioune selwer — Dir musst de Skill ni manuell opruffen, an et fale keng Token un, bis en tatsächlech benotzt gëtt.

De Modell luet Sn Sdk Setup automatesch, soubal eng Ufro dozou passt.

Funktionéiert mat all KI-Modell

KI-Skills si reng Markdown-Instruktiounen amplaz vun ubidderspezifeschem Code. Dofir ass Sn Sdk Setup net un de Modell gebonnen, fir deen de Skill geschriwwe gouf. Installéiert en eemol an TypingMind a benotzt e mat GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama oder engem lokale Modell, deen Dir selwer bedreift — alles mat Ären eegenen API-Schlësselen.

  • Gëtt nëmme gelueden, wann et néideg ass

    De System-Prompt enthält nëmmen den Numm an d'Beschreiwung. D'Instruktioune gi bei der éischter passender Ufro gelueden, soudatt en onbenotzte Skill näischt kascht.

  • De Modell am lafende Chat wiesselen

    Well de Skill aus Instruktiounen amplaz vu Code besteet, funktionéiert en och no engem Modellwiessel — den nächste Modell liest déi selwecht SKILL.md-Datei.

Skill-Instruktiounen

Dëst ass den Inhalt vu SKILL.md, deen de Modell luet. Liest e virun der Installatioun — e Skill besteet aus Instruktiounen, déi Äre Modell befollegt.

ServiceNow SDK Setup

The ServiceNow SDK (now-sdk) CLI scaffolds, builds, and deploys Fluent DSL applications. Use this skill for any SDK installation, project creation, authentication, or environment validation task.

Reference Files

Read only the file relevant to your task. Do not pre-load references at session start.

FileWhen to read
references/setup-workflows.mdWhen scaffolding a new project, configuring auth, converting an existing app, or diagnosing environment issues
references/auth-profiles.mdWhen configuring Basic or OAuth auth, managing named aliases, or passing --auth to commands
references/init-templates.mdWhen choosing a project template or passing non-interactive init flags
references/convert-existing-app.mdWhen converting an existing application from XML metadata or Update Set
references/third-party-libraries.mdWhen adding npm packages to an SDK project
references/js-modules-types.mdWhen using JS modules in src/server/, TypeScript in server-side modules, or @servicenow/glide type definitions
references/cli-reference.mdWhen looking up auth, init, build, install, download, or dependencies command flags

Scripts

ScriptWhen to use
scripts/check-environment.shWhen validating the developer environment before starting SDK work. Use --offline in CI pipelines.

Hard Rules

  1. Read before advising. Always read references/setup-workflows.md before giving setup instructions. Do not rely on memory for command syntax — SDK commands change between versions.
  2. Use now-sdk auth --add, not auth save or login. auth save does not exist. login is deprecated. The correct command is now-sdk auth --add <url> --alias <name>.
  3. Always use a named alias. Use now-sdk auth --add <url> --alias dev — aliases allow multiple instances.
  4. Never pick a template without understanding the use case. Follow the discovery flow in the scaffold behavior below. Default to typescript.basic only as a last resort after two unanswered prompts.
  5. The scope prefix comes from now.config.json. For writing Fluent DSL code after setup, read the main file in ../sn-sdk-fluent/ — that sub-skill owns code generation.
  6. Never run install without a successful build first. now-sdk install deploys whatever is in dist/. Running it without a prior now-sdk build silently pushes stale or missing artifacts. Build must complete cleanly before deploy.
  7. Always verify auth before deploying. OAuth tokens expire silently. Run now-sdk auth --list and confirm the correct alias is active before every deploy. A mid-deploy auth failure is confusing and hard to diagnose.
  8. sys_app.do is the app record, not the running UI. After deploy, the link in the install output points to the app record. The live UI URL is the endpoint value defined in the UiPage() call in the .now.ts source — e.g. https://<instance>.service-now.com/<endpoint>.do.

Behavior by Task Type

New project scaffold

Read references/setup-workflows.md and references/init-templates.md first, then follow this flow:

Step 1 — Instance URL If not already provided, ask:

"What's your ServiceNow instance URL? (e.g. https://dev12345.service-now.com)"

Step 2 — Auth

  • Recommend OAuth. Ask: "OAuth (recommended) or Basic auth?"
  • Important: OAuth requires interactive terminal input — Claude Code cannot handle this. See references/cli-reference.md → auth --add (token refresh) for the Terminal workaround.
  • Once they confirm auth succeeded, verify with: now-sdk auth --list

Step 3 — What to build Ask one question with examples to guide the answer:

"What are you building? For example:

  • Business rules, script includes, flows, Service Portal widgets → typescript.basic
  • App with a custom React UI page → typescript.react
  • App with a custom Vue UI page → typescript.vue"
  • If they answer → map to the right template, state your reasoning in one sentence, confirm with user, then scaffold.
  • If no answer → ask once more: "Does it need a custom UI, or is it server-side only?"
  • If still no answer → use typescript.basic and say: "Going with typescript.basic — works for everything server-side. You can add React later with partial.typescript.react."

Step 4 — Scaffold

bash
now-sdk init \
  --template <chosen-template> \
  --appName "<App Name>" \
  --packageName <package-name> \
  --scopeName <x_scope_name> \
  --auth dev

Then: npm install

Step 5 — Hand off

"Project ready — next step is writing .now.ts files." Then continue with the sn-sdk-fluent sub-skill (read the main file in ../sn-sdk-fluent/).


Authentication setup (standalone)

  1. Read references/setup-workflows.md section 2 (Configure Authentication)
  2. Determine Basic vs OAuth — recommend OAuth
  3. For full flag reference and alias management, read references/auth-profiles.md.
  4. OAuth requires interactive terminal input — Claude Code cannot handle this. See references/cli-reference.md → auth --add (token refresh) for the Terminal workaround.
  5. Verify with: now-sdk auth --list

Convert existing application

  1. Read references/setup-workflows.md section 3 (Convert Existing Application)
  2. For full 5-step workflow with gotchas, read references/convert-existing-app.md.
  3. Walk through the full workflow: init --from → transform → build → install

Build & Deploy

Pre-deploy checklist — always run through this first:

  1. now-sdk auth --list → confirm the correct alias is marked as default
  2. Ensure source changes are saved and complete
  3. Run build — it must succeed cleanly before proceeding

The sequence — never skip or reorder:

bash
npm run build    # now-sdk build — type-check + bundle
npm run deploy   # now-sdk install — push artifacts to instance

Post-deploy verification — always confirm the right version landed:

  1. Open https://<instance>.service-now.com/sys_app.do?sys_id=<scopeId> (scopeId is in now.config.json)
  2. Confirm version matches what you just deployed
  3. Confirm state is Active
  4. If either is wrong, check sys_app_install_log on the instance for errors

Finding the live UI URL after deploy: The install output shows a sys_app.do link — that is the app record, not the running UI. To get the live URL:

  1. Open the UiPage() definition in your .now.ts source file
  2. Read the endpoint value (e.g. x_snc_myapp_portal.do)
  3. Live URL: https://<instance>.service-now.com/<endpoint>.do

Targeting a specific instance:

bash
now-sdk install --auth <alias>   # override the default alias

Common failures and fixes:

SymptomCauseFix
Auth error mid-deployExpired OAuth tokenOAuth token refresh requires interactive input — see references/cli-reference.md → auth --add (token refresh) for the Terminal workaround, then retry deploy.
"Could not determine app installation status"Upload processor returns no tracker ID; SDK's sys_upgrade_history poll times out after 30s--reinstall can clear it — but it is DESTRUCTIVE: it removes instance metadata not present in the local package, irreversibly. First run now-sdk transform to pull current instance state into source, confirm nothing only-on-instance will be lost, then now-sdk install --auth <alias> --reinstall (see ../sn-sdk-fluent/references/gotchas.md #3).
Install succeeds but UI shows old codeBuild was skipped or staleRe-run npm run build then npm run deploy
Type-check error blocks buildTypeScript error in sourceFix the error reported — do not bypass
Scope conflict on installAnother app owns the scopeCheck sys_app for conflicting scope, resolve before retrying

Environment validation

  1. Direct user to run scripts/check-environment.sh --offline (if in CI) or without flag (to also check connectivity)
  2. Interpret the JSON output and explain any failed checks

Matgeliwwert Dateien

De Modell liest dës Dateie bei Bedarf, wärend de Skill gelueden ass. Si ginn als liesbar Dateie bereetgestallt a ginn ni ausgeféiert.

Heefeg gestallte Froen

Wat mécht de KI-Skill Sn Sdk Setup?

Use when setting up, configuring, building, or deploying with the ServiceNow SDK — scaffolding new projects, configuring Basic or OAuth authentication, converting existing applications, building and deploying to an instance, or validating a development environment. Covers all init templates, auth setup with named aliases, the build→deploy→verify lifecycle, and the check-environment script.

Firwat Sn Sdk Setup op TypingMind benotzen?

Well Dir en eemol installéiert a mat all Modell benotze kënnt. Sn Sdk Setup besteet aus einfachem Markdown amplaz vun ubidderspezifeschem Code. Dee selwechte Skill funktionéiert also mat GPT-5, Claude, Gemini, Grok oder engem lokale Modell – an Dir kënnt de Modell matzen am Chat wiesselen, ouni datt de Skill ophält ze funktionéieren. TypingMind benotzt Är eegen API-Schlësselen, sou datt Dir d'Ubidder direkt bezuelt, amplaz en Abonnement pro Benotzerplaz ze bezuelen. Är Skills a Chats bleiwen an Ärem eegene Späicher.

Wéi installéieren ech Sn Sdk Setup an TypingMind?

Maacht an TypingMind Plugins → Skills → Vu GitHub installéieren op a setzt https://github.com/guilhermebatista-gbs/servicenow-architect/tree/main/sn-sdk-setup an. TypingMind liest d'Datei SKILL.md, bëndelt déi zougehéiereg Dateien an installéiert dat Ganzt als Skill, deen Dir pro Chat aktivéiere kënnt.

Wéi eng KI-Modeller kënnen Sn Sdk Setup benotzen?

All Modell, deen Dir an TypingMind verbënnt. KI-Skills sinn einfach Markdown-Instruktiounen an net ubidderspezifesche Code. Dofir kënne GPT, Claude, Gemini, Grok a lokal Modeller dëse Skill lueden, wann eng Ufro dozou passt.

Wéi vill KI-Modeller kann ech mat Sn Sdk Setup benotzen?

Esou vill wéi Dir wëllt. Soulaang e Modell Skills ënnerstëtzt, kënnt Dir Sn Sdk Setup domat benotzen – zum Beispill mat GPT, Claude, Gemini, Grok, DeepSeek, Mistral oder Llama – alles op TypingMind mat Ären eegenen API-Schlësselen.

Ass de KI-Skill Sn Sdk Setup gratis?

Jo. guilhermebatista-gbs huet de Skill ënner der Lizenz MIT op GitHub publizéiert. Dir bezuelt nëmmen Ären eegene KI-Ubidder fir d'Token, déi Dir benotzt.

Wat si KI-Skills?

E KI-Skill ass e weiderverwendbare Pak vun Instruktiounen, deen engem KI-Modell bäibréngt, wéi en eng bestëmmt Aufgab erfëllt. E follegt dem oppenen Agent Skills-Format: eng Datei SKILL.md mat engem Numm an enger Beschreiwung, plus all Scripten, Virlagen oder Referenzdateien, déi de Modell eventuell brauch. De Modell liest d'Instruktiounen eréischt, wann Är Ufro zum Skill passt. En installéierte Skill kascht also näischt, bis e benotzt gëtt.

Wéi ënnerscheede sech KI-Skills vu Plugins oder MCP-Serveren?

E Plugin oder MCP-Server gëtt engem Modell nei Tools, déi en opruffe kann – Code, deen iergendwou leeft an e Resultat zeréckgëtt. E KI-Skill gëtt dem Modell dogéint Wëssen an eng Virgoensweis: wéi en eng Aufgab ugeet, wéi eng Schrëtt e maache soll a wéi eng gutt Ausgab ausgesäit. Skills bestinn aus einfachem Markdown, brauche kee Server, keen API-Schlëssel a kee Lafzäitëmfeld a funktionéiere mat all Modell.

Alleguer weisen

Elo Ären eegene KI-Aarbechtsberäich ariichten

Abonnéiert Iech op eisen Newsletter, fir iwwer nei Funktiounen an zukünfteg Gewënnspiller informéiert ze ginn 👇