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★ 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, nodefine()) - 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*ornlobj*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
Установить netsuite-suitescript-upgrade в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
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), без исполняемых скриптов.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic