Not loaded · from iris-dev
Looks up InterSystems IRIS documentation via Algolia search. Covers when to use iris_doc_search vs docs_introspect vs iris_doc for API lookups, error codes, and class inspection.
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.
| Situation | Tool |
|---|---|
| "What are all the ways to do X in IRIS?" | iris_doc_search |
| "What does error code Y mean?" | iris_doc_search |
"What methods does %SQL.Statement have?" | iris_doc_search |
| "Does this method exist / what's its signature?" | docs_introspect (live container) |
| "Read/write a class document in IRIS" | iris_doc |
iris_doc_search is the primary path. Use it for any question where the answer
lives in official documentation. docs_introspect is for inspecting classes in a
running container. iris_doc is for reading/writing IRIS documents, not docs.
iris_doc_search tool{
"tool": "iris_doc_search",
"query": "SQL execution methods ObjectScript",
"product": "InterSystems IRIS",
"version": "2025.1",
"hits": 5
}
Parameters:
query — natural language or keyword (required)version — e.g. "2025.1", "2026.1" (optional; omit for all versions)product — e.g. "InterSystems IRIS" (optional; omit for all products)hits — max results 1–10 (optional; default 5)Returns {query, total_hits, hits: [{title, url, excerpt, breadcrumbs, version, product}]}.
Use iris_doc_search for DocBook content, not WebFetch or curl. docs.intersystems.com is
a JavaScript SPA: a fetch of DocBook.UI.Page.cls returns HTTP 200 with a navigation shell and
no body text. The shell does carry the ALG-* meta tags (the Algolia credentials), and that is
all the re-scrape recipe below reads from it. iris_doc_search queries the Algolia index and
returns the body text. Documatic URLs (below) render server-side and WebFetch works on them.
The index behaves as if terms are AND-ed. Every word you add shrinks the result set toward zero. Measured against the live tool:
| Query | Hits |
|---|---|
CREATE INDEX AS HNSW parameters M efConstruct Distance | 0 |
CREATE INDEX AS HNSW syntax vector index | 0 |
efConstruction | 133, correct page is top hit |
efConstruct | 1492, same top hit |
vector search index efSearch tune table selectivity optimizer use ANN | Caché 2011/2017 upgrade notes |
Rules:
iris_doc_search returns parameter and member NAMES but not their default VALUES.
For defaults you have to fetch the page.
iris_doc_search on the bare class name or bare parameter name → find the Class
Reference hit.iris_doc mode=get name=<Class>.cls plus
%Dictionary.CompiledIndex and %Dictionary.CompiledParameter are the most
authoritative sources available — the compiled dictionary is ground truth, and
it is what finally settled the HNSW parameter question above.The docs site publishes its Algolia app id and key in every page's ALG-* meta tags, and
robots.txt permits search (Content-Signal: search=yes). Read them from a page each time:
the key rotates, so never copy it into a file.
PAGE="https://docs.intersystems.com/irislatest/csp/docbook/DocBook.UI.Page.cls?KEY=GCM_monitoring"
HTML=$(curl -sS -A "Mozilla/5.0" "$PAGE")
meta() { printf '%s' "$HTML" | grep -o "name=\"ALG-$1\"[^>]*" | sed -E 's/.*content="([^"]*)".*/\1/'; }
APP=$(meta AppID) KEY=$(meta SearchKey)
curl -sS "https://$APP-dsn.algolia.net/1/indexes/docs/query" \
-H "X-Algolia-API-Key: $KEY" \
-H "X-Algolia-Application-Id: $APP" \
-H "Content-Type: application/json" \
-d '{
"query": "YOUR QUERY HERE",
"hitsPerPage": 5,
"facetFilters": ["product:InterSystems IRIS", "version:2025.1"],
"attributesToRetrieve": ["title","URL","text","breadcrumbs","version","product"]
}' | python3 -c "
import sys,json
d=json.load(sys.stdin)
print('nbHits:', d.get('nbHits'))
for h in d.get('hits',[]):
print('---')
print(h.get('title',''))
print(h.get('URL',''))
print(str(h.get('text',''))[:500])
"
Re-scrape credentials if key rotates:
UA="Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36"
curl -sS -A "$UA" "https://docs.intersystems.com/irislatest/csp/docbook/DocBook.UI.Page.cls?KEY=GCM_monitoring" \
| grep -oiE 'ALG-[A-Za-z]+.*content="[^"]*"'
For direct class reference when you know the exact class name:
https://docs.intersystems.com/iris{VERSION}/csp/documatic/%25CSP.Documatic.cls?LIBRARY={LIBRARY}&CLASSNAME={CLASS}
Version codes: iris20261, iris20251, iris20241, irislatest
Library codes: %25SYS (system classes), USER (app classes), ENSLIB (Ensemble/Interop)
Add &PRIVATE=1 to include private/internal members.
Documatic renders server-side — WebFetch works on it. This is the one docs.intersystems.com
path that does. It carries parameters with their default values, which iris_doc_search
does not return. Use iris_doc_search first to find the class name, then Documatic for
the details.
$SYSTEM.Security.Check(resource, permission) — checks CURRENT user. Method name
is Check, NOT CheckPermission() or HasPermission() (neither exists)%SYSTEM.Security.CheckUserPermission(username, resource, permission) — checks
ANOTHER user; requires %Admin_Secure:USEEns.* classes are in ENSLIB library, NOT %SYSEns.Director.GetAutoStart() — does NOT exist; use $GET(^Ens.AutoStart) directlySYS.Database SQL table does NOT exist; use ##class(%ResultSet).%New("SYS.Database:List")$ZVERSION (not $VERSION) is the full IRIS version string%SYS in URLs must be %25SYS (URL-encoded percent sign)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