jarchi-scripting
Installation
SKILL.md
JArchi Script Development
Procedural guide for writing JArchi scripts (GraalVM GraalJS, ECMAScript 2024). Requires Archi 5.7+, JArchi 1.11+.
Constraints (NOT Node.js)
- Use
load()for local files — neverrequire()(it resolves tonode_modules/) - No Web Workers, no async I/O, no
setTimeout(unless shimmed) - No Node.js modules (
fs,path,http) — useJava.type()for Java equivalents thisinsideJava.extend()refers to the Java proxy — use the object wrapper pattern below
Creating a Script
Every top-level .ajs script: clear console, load log.js, IIFE, try-catch, "use strict":