Not loaded · from iris-dev
Measures ObjectScript line coverage using iris_coverage. Use when a user asks about test coverage, coverage reports, or how well their test suite exercises code.
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.
Measure line coverage for ObjectScript classes using iris_coverage. Coverage tells
you which executable lines were hit during a test run — essential for knowing whether
your test suite exercises production code.
Toolset note:
iris_coverageis only available in the merged toolset. If it returnsNOT_IMPLEMENTEDor is absent from the tool list, addtoolset = "merged"to.iris-agentic-dev.tomlor setIRIS_TOOLSET=merged.
Most tasks need mode=run — it starts the monitor, runs tests, stops, and returns results:
iris_coverage(
mode="run",
classes=["MyApp.MyClass", "MyApp.OtherClass"],
test_path="MyApp.Tests",
namespace="USER"
)
Or use package to auto-discover all concrete classes:
iris_coverage(
mode="run",
package="MyApp",
test_path="MyApp.Tests"
)
Before running coverage, verify the monitor is available:
iris_coverage(mode="check", namespace="USER")
Expected response: {ok: true, bbsiz_state: "ready"}
If you get BBSIZ_NOT_CONFIGURED:
gmheap to 256 (or higher)| Mode | What it does |
|---|---|
run | Start + RunTest + Stop + Report in one call. Use this for most tasks. |
check | Pre-flight: verify monitor is available. Run before first coverage attempt. |
start | Start monitoring (manual flow). |
stop | Stop monitoring (manual flow). |
report | Collect results after manual stop. |
| Parameter | Required for | Description |
|---|---|---|
mode | Always | run, check, start, stop, or report |
classes | start/run/report | Explicit class list (e.g. ["MyApp.MyClass"]). Mutually exclusive with package. |
package | start/run/report | Auto-discover concrete classes (e.g. "MyApp"). Expands via %Dictionary.ClassDefinition. |
test_path | run | Compiled class pattern for %UnitTest.Manager.RunTest (e.g. "MyApp.Tests"). /noload always used — classes must be compiled first. |
target_pct | optional | Coverage target percentage. Response includes meets_target: true/false, or null when no lines were counted or the run threw. |
namespace | optional | IRIS namespace. Defaults to connection default. |
cobertura_path | optional | Path for Cobertura XML output. Requires TestCoverage IPM package (zpm "install testcoverage"). |
{
"success": true,
"total_pct": 73.4,
"hits": 45,
"total": 61,
"meets_target": false,
"target_pct": 90.0,
"testcoverage_available": false,
"testcoverage_hint": "Install with: zpm \"install testcoverage\"",
"classes": [
{
"class": "MyApp.MyClass",
"routine": "MyApp.MyClass.1",
"hit": 45,
"total": 61,
"pct": 73.8
}
]
}
iris_test(coverage=true) runs tests and returns line coverage inline in a single call —
no separate iris_coverage invocation needed:
iris_test(
pattern=":MyApp.Tests.OrderTest",
namespace="USER",
coverage=true,
coverage_target_pct=80.0
)
The response includes a coverage field with the same structure as iris_coverage output.
Use this for quick coverage checks during development. Use iris_coverage(mode=run) when
you need a detailed per-class breakdown, Cobertura XML output, or want to instrument
specific classes that differ from the test path.
iris_coverage checks for the TestCoverage
IPM package (testcoverage). If installed, it unlocks:
Install: zpm "install testcoverage" (requires IPM)
The testcoverage_available field in every response tells you whether it's present.
When it's false, a testcoverage_hint with install instructions is also returned.
mode=check on a new instance before attempting coveragemode=run for automated workflows — it handles the full lifecycle atomicallyiris_coverage — use iris_compile firsttarget_pct to enforce a coverage gate in CI: check meets_target in the responsepct: null had no lines counted (never loaded during the run, or nothing executable): that is not 0%| Code | Meaning | Fix |
|---|---|---|
BBSIZ_NOT_CONFIGURED | gmheap too small for monitor | Increase gmheap to 256+ in Management Portal, restart IRIS |
MONITOR_IN_USE | A line monitor is already running; it was left alone | It may be another session's. mode=stop stops it, if it is yours |
COVERAGE_ROUTINE_UNKNOWN | A class has no compiled routine | Check the class name and compile it; nothing ran |
NO_CLASSES | Package expansion found nothing | Check package name; verify classes are compiled |
MISSING_PARAM | Required param absent | Add test_path for mode=run; add classes or package for start/report |
INVALID_ACTION | Unknown mode string | Use: run, check, start, stop, report |
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