Not loaded · from iris-dev
Executes, compiles, and tests ObjectScript code via objectscript MCP tools, with docker exec fallback. Handles arbitrary code, .cls compilation, %UnitTest runs, and class discovery.
Claude Code won't load this skill
It ships in iris-dev at skills/, but Claude Code only loads skills/<name>/SKILL.md and folders listed under skills in plugin.json. Installing the plugin doesn't add it.
Check with /mcp — if objectscript is listed, use these tools exclusively.
iris_execute(code="write $ZVERSION,!", namespace="USER")
iris_execute(code="set x=42\nwrite x,!") # multiline: separate with \n
iris_execute(code="write ##class(My.Pkg).Run()") # call class methods
Returns {success, output, namespace}. Runtime errors are returned as structured errors, not exceptions.
iris_doc(mode="put", name="MyPackage.MyClass.cls", content="...", compile=true, namespace="USER")
iris_compile(target="MyPackage.MyClass.cls") # recompile what IRIS already holds
iris_compile(target="*.cls") # every class in the namespace, on the server
iris_test(pattern=":MyPackage.Tests.MyClassTest") # one class; note the leading colon
Only methods whose names start with Test run. A class with none reports NO_TESTS_FOUND.
iris_symbols(query="MyPackage.*") # live namespace search
iris_symbols_local() # parse .cls files on disk, no IRIS needed
docs_introspect(class_name="My.Class") # full method signatures
Pass server: to any tool to route that call to a named IRIS instance without changing
the default connection:
iris_servers() # list all registered instances
iris_execute(server="dev", code="Write $ZV") # target a specific named server
iris_test_server(server="dev") # verify connectivity first
To switch the default connection to a different Docker container (legacy approach):
iris_list_containers() # see running Docker containers
iris_select_container(name="my-iris-container") # reconnect to that container
Only use this path when the MCP is not connected.
Also use it when the build has no private web server. Enterprise 2026.2.0AI builds shipped
without one (DPP-1192), so Atelier REST is unavailable and every tool that depends on it routes
through docker exec instead.
You usually do not have to configure this: iris-agentic-dev sniffs the version string for
2026.2.0AI and reports atelier_rest: false from check_config on its own. Set
docker_only = true in .iris-agentic-dev.toml when detection cannot help you — a NoPWS build
whose version string doesn't match that literal, or a container where you want to force the
docker exec path regardless. Run check_config first and believe what it reports.
IRIS takes 10-30s to start. Poll before running anything:
docker exec <container> /bin/bash -c \
'for i in $(seq 1 30); do iris session IRIS -U USER "halt" 2>/dev/null && exit 0; sleep 2; done; exit 1'
# Single expression
docker exec <container> iris session IRIS -U USER \
'##class(Sample.Calculator).Add(2, 3)'
# Multi-line via heredoc (always end with halt)
docker exec -i <container> iris session IRIS -U USER <<'EOF'
do $System.OBJ.LoadDir("/home/irisowner/dev/cls/","ck",,1)
halt
EOF
Critical rules for heredoc:
halt or the session hangs-i not -it-U USER (or -U NAMESPACE) to set the namespaceInstead of a heredoc, write a .script file (one ObjectScript command per line,
each indented with a space, ending with halt) and run it:
docker exec <container> iris session IRIS -U USER /home/irisowner/dev/load.script
docker exec <container> iris session IRIS -U USER \
'do $System.OBJ.Load("/home/irisowner/dev/cls/MyPackage/MyClass.cls","ck")'
# Load directory recursively (4th arg 1 = recursive; picks up .cls/.mac/.inc/.int)
docker exec -i <container> iris session IRIS -U USER <<'EOF'
do $System.OBJ.LoadDir("/home/irisowner/dev/cls/","ck",,1)
halt
EOF
# Restrict to one file type
docker exec <container> iris session IRIS -U USER \
'do $System.OBJ.LoadDir("/home/irisowner/dev/cls/","ck","*.cls",1)'
Load/compile flags: c = compile, k = keep source, -d = no display. Leave out
e: $system.OBJ.ShowFlags() lists it as "Delete extent", and with $system.OBJ.Delete
it wipes the class's rows (verified on 2026.2.0L: 3 rows kept with -d, 0 with e-d).
docker exec -i <container> iris session IRIS -U USER <<'EOF'
set ^UnitTestRoot = "/home/irisowner/dev/cls/"
do ##class(%UnitTest.Manager).RunTest("Test","/loadudl")
halt
EOF
^UnitTestRoot must point to the parent of the test package directory. The
first RunTest argument is the subdirectory/package underneath it. /loadudl
tells the test manager to load the UDL-format .cls files from disk.
If the test classes are already compiled in IRIS, skip the load instead:
docker exec -i <container> iris session IRIS -U USER <<'EOF'
do ##class(%UnitTest.Manager).RunTest("","/noload/run")
halt
EOF
docker exec -i <container> iris session IRIS -U USER <<'EOF'
set rs = ##class(%ResultSet).%New("%UnitTest.Result.TestAssert:Assertions")
do rs.Execute("")
while rs.Next() { write rs.Get("Name")," | ",rs.Get("Status"),! }
halt
EOF
Note: the while ... { } block above only works from a .script file or as a
single-line expression — the interactive REPL cannot take block-structured code
line by line (see Common Mistakes).
After zpm load or zpm install, the package's classes may not be compiled.
Run CompilePackage explicitly:
docker exec -i <container> iris session IRIS -U USER <<'EOF'
zpm "load /home/irisowner/dev"
do $system.OBJ.CompilePackage("MyPackage","ck")
halt
EOF
zpm load imports source files but does not guarantee recompilation when the
classes already exist with stale bytecode. Without the explicit CompilePackage,
class lookup succeeds but method dispatch can fail with <NOROUTINE> or return
stale results.
# Via iris-devtester (preferred — handles password auto-remediation)
from iris_devtester import IRISContainer
with IRISContainer.community(version="2025.1").with_name("my-iris") as iris:
conn = iris.get_connection()
# Via idt CLI
idt container up --name my-iris --image intersystemsdc/iris-community:2025.1
Attach to a container that is already running. It belongs to whoever started it, so ask before
changing anything about its accounts. A container you just started has its default password
expired; give _SYSTEM a new generated one with step 4 of the iris-agentic-dev-setup skill (never
reset a password to SYS), then pass that password in:
import os
from iris_devtester import IRISContainer
c = IRISContainer.attach("my-iris", username="_SYSTEM", password=os.environ["IRIS_PASSWORD"])
conn = c.get_connection()
c.execute_objectscript("Write $ZVERSION,!", namespace="USER")
# Via docker run (manual — requires a new _SYSTEM password afterward; 127.0.0.1:: picks a
# random host port and keeps it on this machine)
docker run -d --name my-iris -p 127.0.0.1::1972 \
intersystemsdc/iris-community:2025.1 --check-caps false
Mount the workspace when you plan to load code from disk:
docker run -d --name my-iris \
--publish 127.0.0.1::1972 --publish 127.0.0.1::52773 \
-v "$(pwd):/home/irisowner/dev" \
intersystemsdc/iris-community:latest --check-caps false
A licensed image needs irepo auth and a mounted key:
docker run -d --name my-iris \
--publish 127.0.0.1::1972 --publish 127.0.0.1::52773 \
-v "$(pwd):/home/irisowner/dev" \
-v "$(pwd)/iris.key:/usr/irissys/mgr/iris.key" \
irepo.intersystems.com/intersystems/iris:2025.1 --check-caps false
Clean up when done:
docker stop my-iris && docker rm my-iris
//c/Users/... or $(pwd) in Git Bash, C:\Users\... in
PowerShell..cls files must use Unix line endings (LF) — configure Git accordingly.| Mistake | Fix |
|---|---|
Using docker exec when MCP is connected | Use iris_execute, iris_compile, iris_test instead |
| Session hangs after heredoc | Add halt as last line |
Using -it with heredoc | Use -i only |
| Missing leading space in heredoc lines | Indent each ObjectScript line with at least one space |
^UnitTestRoot wrong dir | Must be the parent of the test package directory |
| Tests not found | The RunTest argument must match a subdirectory under ^UnitTestRoot |
| Wrong namespace | Add -U USER or -U NAMESPACENAME |
Commands fail right after docker run | Poll for readiness first — IRIS needs 10-30s |
Classes load via zpm but methods <NOROUTINE> | Run do $system.OBJ.CompilePackage("Pkg","ck") after zpm load |
All tools fail, check_config shows atelier_rest: false | NoPWS build — expected on 2026.2.0AI; use the docker exec path, no config change needed |
| Password change required on new container | Use iris-devtester — auto-remediates in 1.15.0+ |
| Block-structured code via stdin fails | iris session REPL processes one line at a time — If x { } and While x { } cause <SYNTAX>. Put logic in class methods and call do ##class(X).Method() |
| Partial execution trap: block fails but inner calls run | When a block errors in the REPL, statements INSIDE the block may still have executed. Never assume a <SYNTAX> means nothing ran — check side effects before retrying. |
Windows IIS: /api web application missing | /api/atelier returns 404 even when Management Portal works. In IIS Manager: Add Application at alias /api, map to Web Gateway dir, add wildcard script handler CSPms.dll. Also verify CSP.ini contains [APP_PATH:/api]. See iris-windows-iis-setup skill. |
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub intersystems-community/iris-agentic-dev --plugin iris-dev40 skills in this plugin
/ensemble-productionManage and observe IRIS Interoperability productions — lifecycle, logs, queues, and message tracing. Covers pyprod Python API, ObjectScript Ens.Director, and MCP tool flow./iris-agentic-devConfigure, connect, and troubleshoot the iris-agentic-dev MCP server (iris_execute/iris_query/iris_doc/docs_introspect/kb/etc.) against an IRIS container or instance. Use when its tools return IRIS_UNREACHABLE, when pointing it at a new IRIS, or when a connection edit "isn't taking effect." Covers the .iris-agentic-dev.toml config, live file-watch reload, the OrbStack port-discovery gotcha, and the docker-exec fallback./iris-agentic-dev-setupOther plugins' skills for the same job