Not loaded · from iris-dev
Runs Python code inside InterSystems IRIS, calls Python libraries from ObjectScript, and uses the IRIS Python native API. Includes convenience utilities and integration pattern examples.
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.
Project: iris-embedded-python-wrapper
Install: zpm "install iris-embedded-python-wrapper" (or built into IRIS 2021.2+)
Requires: IRIS 2021.2+ (Embedded Python is a built-in feature; the wrapper adds convenience utilities)
Embedded Python lets you write Python methods directly in ObjectScript classes, call any Python library from IRIS, and call IRIS globals/SQL from Python — all in-process, without a separate server.
The iris-embedded-python-wrapper package adds:
ClassMethod RunPython() As %Status
{
Set pyobj = ##class(%SYS.Python).Import("mymodule")
// Quote a Python name that contains _. Unquoted, _ is ObjectScript concatenation:
// an unquoted my_function asks Python for `my` and fails with <NOLINE> wrapping an
// AttributeError (seen on IRIS 2026.2).
Set result = pyobj."my_function"(42)
Return $$$OK
}
import iris
# Open a global
node = iris.gref("^MyGlobal")
node["key"] = "value"
# Run a SQL query
rs = iris.sql.exec("SELECT TOP 5 Name FROM Sample.Person")
for row in rs:
print(row[0])
Method ProcessData(data As %String) As %String [ Language = python ]
{
import json
parsed = json.loads(data)
return str(parsed.get("key", ""))
}
iris.sql.exec() runs inside the IRIS process, but several SQL patterns that work fine
via external tools fail or crash here:
| Pattern | Problem | Fix |
|---|---|---|
SELECT ... FETCH FIRST n ROWS ONLY | SIGSEGV / exit 139 | Use SELECT TOP n ... instead |
COUNT, HOUR, YEAR, DATE, TIME as column aliases | SQL error | Rename the alias |
iris.sql.exec(query, args...) with keyword args | SIGSEGV on some builds | Use positional args only |
Aggregate return types (COUNT, AVG, SUM) | Returns Decimal/str/float inconsistently | Cast explicitly: int(row[0]), float(row[1]) |
These are not edge cases — the SIGSEGV ones produce no Python traceback, just a hard
crash. Always use SELECT TOP n in embedded Python code, never FETCH FIRST.
Queries that work in iris_query (external Atelier REST) are not guaranteed to work in
iris.sql.exec(). If a query behaves differently in embedded context, check this table
first.
zpm "install iris-embedded-python-wrapper"
Embedded Python itself requires no installation on IRIS 2021.2+. Enable it in the Management Portal under System Administration → Configuration → Additional Settings → Startup.
What SKILL.md sets; muted values are Claude Code's defaults
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