/iris-dev:objectscript-tddfrom iris-dev
Guides through the compile-test-fix loop for ObjectScript development on InterSystems IRIS. Covers compilation, runtime errors, and test validation.
Ships in iris-dev. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Close the feedback loop: write → compile → fix errors → run tests → fix failures → done.
Use the objectscript MCP tool when available (check /mcp):
iris_doc(mode="put", name="MyPackage.MyClass.cls", content="...", compile=true, namespace="USER")
Fallback when MCP is unavailable:
iris session IRIS -U USER "Do $System.OBJ.Load(\"<ClassName>.cls\",\"ck\")"
Never present code to the user that hasn't compiled. If you can't compile (no IRIS access), flag this explicitly:
⚠️ No IRIS connection available — code is unverified. Recommend compiling before use.
A class that compiles clean has not been tested. The compiler does not check that a local is set before it is read, and it cannot check a method name built at runtime. Both of these compile with no error and fail when called:
ClassMethod Total(pA As %Integer, pB As %Integer) As %Integer
{
Set tSum = pA + pB
Quit tSun // <UNDEFINED> tSun at runtime
}
ClassMethod Dyn() As %String
{
Quit $CLASSMETHOD("MyPackage.MyClass", "Nope") // <METHOD DOES NOT EXIST> at runtime
}
A literal ..Nope() is caught at compile time, but a dynamic call is not. Call every method you changed at least once, through iris_execute or a test, before you call it done.
| Error | Cause | Fix |
|---|---|---|
#1043: QUIT argument not allowed | Quit <val> inside TRY/CATCH | Change to Return <val> |
<COMMAND> at runtime | Quit <val> inside a For/While block | Change to Return <val> |
Expected a compilable class | Missing Class keyword or malformed header | Check class declaration line |
Method does not exist | Intra-class call without .. | Add .. prefix |
<UNDEFINED> at runtime | Variable used before SET | Initialize variable before use |
Expected white space | Missing space after command keyword | Add space: Set x=1 not Setx=1 |
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