Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

netsuite-suitescript-upgrade

БесплатноБез исполняемых скриптовНе проверен

SuiteScript 1.0, 2.0, and 2.x to 2.1 migration assistant. Analyzes, converts, explains, and validates script upgrades. Covers 125+ API mappings, 34 object…

oracleот oracle★ 388 звёзд на GitHub

Об этом скилле

NetSuite SuiteScript Upgrade Skill

Created by: Oracle NetSuite

Description

Complete SuiteScript 1.0, 2.0, and 2.x to 2.1 migration assistant with 4 operating modes: analyze, convert, explain, and validate. SuiteScript 2.1 is always the target version. This skill provides:

  • Analyze Mode: Scan SS1.0, SS2.0, and SS2.x scripts and produce migration complexity reports
  • Convert Mode: Transform SS1.0, SS2.0, and SS2.x scripts to SS2.1 with full API mapping and JavaScript modernization
  • Explain Mode: Deep dive into specific API mappings, objects, or migration concepts for a full SS2.1 conversion
  • Validate Mode: Check converted scripts for leftover 1.0 patterns, non-2.1 version tags, and common conversion bugs

Backed by comprehensive reference data:

  • 125+ API function mappings (nlapi* → N/* modules) across 26 modules
  • 34 object conversions (nlobj* → SS2.1 classes) with 331 method mappings
  • 13 unmapped APIs with native JavaScript or alternative workarounds
  • All script type entry point changes (User Event, Client, Suitelet, RESTlet, Scheduled, Map/Reduce, etc.)
  • 16 categories of breaking behavioral changes with before/after examples

How to Use This Skill

Manual Invocation (Slash Command)

Invoke this skill at any time by typing:

/netsuite-suitescript-upgrade

Or use specific mode commands:

/netsuite-suitescript-upgrade analyze [file-path]     # Assess migration complexity for SS1.0/2.0/2.x
/netsuite-suitescript-upgrade convert [file-path]     # Convert SS1.0/2.0/2.x → SS2.1
/netsuite-suitescript-upgrade explain [api-or-concept] # Deep dive into a mapping
/netsuite-suitescript-upgrade validate [file-path]    # Check converted script

Automatic Activation (Recommended for Migration Projects)

For projects undergoing SuiteScript migration, add this skill to your project's .claude/settings.local.json:

{
  "permissions": {
    "allow": [
      "Skill(netsuite-suitescript-upgrade)",
      "Skill(netsuite-sdf-leading-practices)",
      "Skill(netsuite-suitescript-reference)"
    ]
  }
}

With all three skills enabled, Claude will:

  • Detect SS1.0, SS2.0, and SS2.x scripts automatically and offer migration assistance
  • Convert APIs using the complete mapping reference
  • Generate proper deployment XML via the leading-practices skill
  • Look up correct field IDs via the suitescript-reference skill

When to Use This Skill

Proactive Invocation (Recommended)

This skill should be invoked automatically when:

  • User opens or references a SuiteScript 1.0 file (detected by nlapi* calls, no define())
  • User opens or references a SuiteScript 2.0 or ambiguous 2.x file that needs normalization to SuiteScript 2.1
  • User asks about migrating, upgrading, or converting SuiteScript
  • User encounters nlapi* or nlobj* functions and asks what the SS2.1 equivalent is
  • User is working on a project with mixed SS1.0, SS2.0, SS2.x, and SS2.1 scripts

Manual Invocation

  • Commands: "analyze this script", "convert to 2.1", "what's the 2.1 version of nlapiSearchRecord?"
  • Questions: "How do I migrate this User Event?", "What module replaces nlapi functions?"
  • Validation: "Check my converted script", "Did I miss any 1.0 patterns?"

SS1.0 Detection Logic

How to Identify a SuiteScript 1.0 Script

A file is a SuiteScript 1.0 script if it matches any of these patterns:

Indicator Pattern Confidence
Explicit version tag @NApiVersion 1.0 or @NApiVersion "1.0" in JSDoc Definitive
No AMD wrapper No define() or require() call Strong
Global nlapi* calls nlapiLoadRecord, nlapiSearchRecord, nlapiSubmitField, etc. Strong
Global nlobj* constructors new nlobjSearchFilter, new nlobjSearchColumn Strong
No @NScriptType Entry points use function naming conventions, not annotation Moderate
Entry point as bare function function beforeLoad(type, form, request) at global scope Moderate
1-based sublist indexing Loop for (var i = 1; i <= count; i++) with line item ops Moderate
var keyword only No const/let usage (ES3 style) Weak (could be SS2.0)

Version Classification

Version Characteristics
SS1.0 Global nlapi*/nlobj*, no define(), no @NScriptType
SS2.0 define() wrapper, @NApiVersion 2.0, uses var (no arrow functions, no template literals)
SS2.1 define() wrapper, @NApiVersion 2.1, modern JS (const/let, arrow functions, template literals, async/await)

Detection Algorithm

1. Scan for @NApiVersion annotation
   → If "1.0": CONFIRMED SS1.0
   → If "2.0" or "2.x": SS2.0/SS2.x input; upgrade to SS2.1 is required
   → If "2.1": Already SS2.1

2. If no @NApiVersion found:
   → Scan for define() or require() wrapper
     → If absent: Likely SS1.0
   → Scan for nlapi*/nlobj* fu
Полный SKILL.md на GitHub

Установить netsuite-suitescript-upgrade в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

references/api-mapping.jsonreferences/breaking-changes.mdreferences/conversion-guide.mdreferences/object-mapping.jsonreferences/script-type-changes.mdreferences/unmapped-apis.md

FAQ

Что делает скилл netsuite-suitescript-upgrade?

SuiteScript 1.0, 2.0, and 2.x to 2.1 migration assistant. Analyzes, converts, explains, and validates script upgrades. Covers 125+ API mappings, 34 object conversions, 13 unmapped API workarounds, all script type entry point changes, SuiteScript 2.0/2.x to 2.1 upgrade guidance, and 16 categories of breaking behavioral changes. Essential for modernizing legacy SuiteScript codebases.

Как установить скилл netsuite-suitescript-upgrade?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл netsuite-suitescript-upgrade запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить netsuite-suitescript-upgrade с