# netsuite-suitescript-upgrade

This skill assesses SuiteScript 1.0, 2.0, and 2.x migrations, converts scripts to 2.1, and checks the result. Use it when updating a NetSuite codebase.

- skill · `type=skill` · Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, OpenCode · 776 installs · ★ 362
- Author: Oracle NetSuite
- License: not stated · policy=link-only · description only; the file stays with the author
- Source: https://github.com/oracle/netsuite-suitecloud-sdk/tree/HEAD/packages/agent-skills/netsuite-suitescript-upgrade/SKILL.md
- Updated: 2026-10-22
- HTML: https://affpapa.org/en/nevibecode/skills/netsuite-suitescript-upgrade

## What it does

The analysis mode estimates migration complexity. Conversion moves a script to SuiteScript 2.1 and modernizes its JavaScript; explanation mode covers API mappings and migration concepts, while validation checks for leftover 1.0 patterns and conversion mistakes. Reference material covers API and object mappings, alternatives for unmapped APIs, entry point changes, and behavioral differences.

Run `/netsuite-suitescript-upgrade` with a mode and file path. Use `convert` to update a script and `validate` to inspect the result. Conversion supports `--dry-run` to preview changes without writing files and `--annotated` to include numbered notes. SuiteScript 2.1 is the target, including when the source uses 2.0 or 2.x.

## Install

### Claude Code (native platform)

1. **Skills CLI (Vercel)**
```bash
npx skills add oracle/netsuite-suitecloud-sdk --skill netsuite-suitescript-upgrade -a claude-code
```

2. **Manually: put the files in place**
- File: `~/.claude/skills/netsuite-suitescript-upgrade/SKILL.md` — Copy the whole skill folder; for one project use .claude/skills/netsuite-suitescript-upgrade/

### Codex

1. **Skills CLI (Vercel)**
```bash
npx skills add oracle/netsuite-suitecloud-sdk --skill netsuite-suitescript-upgrade -a codex
```

2. **Manually: put the files in place**
- File: `.agents/skills/netsuite-suitescript-upgrade/SKILL.md` — For all projects use ~/.agents/skills/

### Cursor

1. **Skills CLI (Vercel)**
```bash
npx skills add oracle/netsuite-suitecloud-sdk --skill netsuite-suitescript-upgrade -a cursor
```

2. **Manually: put the files in place**
- File: `.cursor/skills/netsuite-suitescript-upgrade/SKILL.md` — Cursor also reads .agents/skills/ and .claude/skills/

### GitHub Copilot

1. **GitHub CLI**
```bash
gh skill install oracle/netsuite-suitecloud-sdk netsuite-suitescript-upgrade
```

2. **Manually: put the files in place**
- File: `.github/skills/netsuite-suitescript-upgrade/SKILL.md`

### Gemini CLI

1. **Skills CLI (Vercel)**
```bash
npx skills add oracle/netsuite-suitecloud-sdk --skill netsuite-suitescript-upgrade -a gemini-cli
```

2. **Platform CLI**
```bash
gemini skills install https://github.com/oracle/netsuite-suitecloud-sdk --path packages/agent-skills/netsuite-suitescript-upgrade
```

### Windsurf (Devin Desktop)

**Manually: put the files in place**
- File: `.devin/skills/netsuite-suitescript-upgrade/SKILL.md` — The legacy .windsurf/skills/ path still works

### OpenCode

**Skills CLI (Vercel)**
```bash
npx skills add oracle/netsuite-suitecloud-sdk --skill netsuite-suitescript-upgrade -a opencode
```

### Claude.ai

**Claude.ai**
- Zip the folder and upload it in Settings → Capabilities → Skills

Where a file is given instead of a command, copy the files from the source to that path: https://github.com/oracle/netsuite-suitecloud-sdk/tree/HEAD/packages/agent-skills/netsuite-suitescript-upgrade/SKILL.md

## When to use it
- estimate the effort to migrate SuiteScript
- move a SuiteScript 1.0 file to version 2.1
- upgrade a SuiteScript 2.0 or 2.x script
- check a converted file for remaining 1.0 patterns
- look up a 2.1 replacement for an nlapi* or nlobj* API

## Example prompts
- Assess the migration for `/SuiteScripts/my_ue.js` with `/netsuite-suitescript-upgrade analyze`.
- Convert `/SuiteScripts/my_ue.js` to SuiteScript 2.1 with `/netsuite-suitescript-upgrade convert`.
- Check `/SuiteScripts/my_ue_v2.js` for migration issues with `/netsuite-suitescript-upgrade validate`.

## Similar
- [migrate-to-shoehorn](https://affpapa.org/en/nevibecode/skills/migrate-to-shoehorn.md) — skill · 475388 installs
- [write-swift](https://affpapa.org/en/nevibecode/skills/write-swift.md) — skill · 119300 installs
- [megacave](https://affpapa.org/en/nevibecode/skills/megacave.md) — skill · 25400 installs
- [find-docs](https://affpapa.org/en/nevibecode/skills/find-docs.md) — skill · 9400 installs
- [typescript-advanced-types](https://affpapa.org/en/nevibecode/skills/typescript-advanced-types.md) — skill · 92169 installs
- [smart-explore](https://affpapa.org/en/nevibecode/skills/smart-explore.md) — skill · 7300 installs

From the same set: [oracle/netsuite-suitecloud-sdk](https://affpapa.org/en/nevibecode/by/oracle/netsuite-suitecloud-sdk.md) — 11 cards

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
