Ask a coding agent for a NetSuite User Event script and you will often get something that reads well and would not survive a deploy. The agent knows JavaScript. It does not know which N/ members exist, how governance is counted, or why a script "did not fire."
I put 100 open-source skills on GitHub that give Claude Code, Codex and Cursor those NetSuite rules. They were built with AI coding agents and every fact was checked against Oracle's NetSuite Help Center; this article was drafted with AI assistance.
Here are the mistakes the skills are built around.
1. Invented APIs
This is a User Event script of the kind an agent produces when it guesses:
-
record.loadRecord(the real call isrecord.load) -
record.Type.SALESORDER(it isSALES_ORDER) -
search.Operator.EQUALS(it isEQUALTOorIS) -
setFieldValueon a 2.x record, a SuiteScript 1.0 name (it issetValue) - a
beforeSaveentry point (User Events havebeforeLoad,beforeSubmitandafterSubmit)
suitescript-truth-check runs a static check against a catalog of real modules, members, enums and entry points. On that sample it reports 11 invalid items, from invented names to a client-only module in a server script and 2.1 syntax in a 2.0 file, each with its line and a fix. It never runs your code or contacts NetSuite.
2. A Map/Reduce that hides its own failures
Errors thrown in map or reduce do not stop the script. They sit in the summary iterators until someone reads them, and an agent rarely writes that part. suitescript-mapreduce-builder writes the summarize stage first: it walks inputSummary.error, mapSummary.errors and reduceSummary.errors, and reports every one. It also keys the work so a retried record is not processed twice.
3. "My User Event did not run"
The usual causes are boring and easy to miss: the deployment is in Testing (which runs only for the script owner), the record type in Applies To is wrong, the event type does not match, the deployment's execution context filter excludes the way the record was saved, or the record was changed by inline edit, CSV import or another script. user-event-not-firing-triage walks those checks in order and returns a findings table instead of a guess.
4. SuiteQL that quietly stops
query.runSuiteQL returns at most 5,000 results. For more you need runSuiteQLPaged, and Oracle documents a separate cap on total results across pages. suiteql-cookbook has ready queries with the permission each one needs, and suiteql-from-saved-search translates a saved search into SuiteQL, including BUILTIN.DF for display values and the mainline and taxline flags on transactionline.
5. Email from a script
N/email needs an author that is an Employee internal id. A script parameter typed as free text invites someone to paste a name or an email address there. netsuite-email-from-script makes the author a List/Record parameter pointing at Employee, attaches the message to the record with relatedRecords, and explains when to use send and when sendBulk.
6. Deploys and refreshes that do more than you meant
An SDF deploy.xml with a broad path can push far more of the File Cabinet than the change needs, and a script object can point at a file that is not in the project. sdf-deploy-preflight parses the manifest and deploy file and flags missing paths, broad patterns and missing script files before suitecloud project:deploy runs. netsuite-sandbox-refresh-checklist covers the other direction: what a refresh does not copy (OAuth 2.0 authorizations, TBA tokens, Customer Center role assignments among them) and how to keep a fresh sandbox from emailing real customers.
7. OAuth 2.0 machine to machine
When the token endpoint refuses a client credentials request, the cause is usually in the JWT: the algorithm, the audience, or an exp too far after iat. netsuite-oauth2-m2m-setup covers the certificate, the mapping and the claims, and includes an offline checker that decodes your JWT and compares it with the documented rules.
How the skills are built
Each skill lists the Oracle pages it relies on in references/sources.md. Where Oracle is silent, or two Oracle pages disagree, the skill says so and tells you what to confirm in your own account rather than guessing. Every skill went through an independent review against the Help Center before release, and the reviews found and fixed real errors, including a decision guide that had wrongly said SuiteFlow cannot act on sublist lines (it can, with Sublist Action Groups).
The Python checkers use only the standard library, run offline and ship with their own tests. Anything that writes to NetSuite, a deploy, an import or a mass update, stops for your approval and goes to a sandbox first.
Try it
Copy the skill folders into ~/.claude/skills/, ~/.codex/skills/ or a project's .cursor/skills/:
github.com/Azharthegreat/netsuite-agent-skills
If a skill gets a NetSuite fact wrong, open an issue with the Help Center link and it gets fixed.
Originally published on Medium.