objectscript-review

Review ObjectScript code against safety and correctness checklist criteria.

27|10|Updated Apr 21, 2026
One-click install
npx skills add https://github.com/intersystems-community/iris-dev --skill objectscript-review
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: objectscript-review
Source: https://github.com/intersystems-community/iris-dev/tree/main/light-skills/skills/objectscript-review
Command: npx skills add https://github.com/intersystems-community/iris-dev --skill objectscript-review

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Reviews ObjectScript code for common LLM mistakes before presenting to the user, reducing risk of faulty outputs.

Core Features & Use Cases

  • Enforces a HARD GATE that prevents ObjectScript code from being shown to the user until it passes safety and correctness checks.
  • Validates common coding patterns (QUIT/RETURN in TRY/CATCH and loops, intra-class method calls syntax, proper error handling with $$$ThrowOnError/$$$ISOK/$$$ISERR, and safe usage of globals) and highlights violations with actionable guidance.
  • Supports integration with AI-assisted code generation workflows to provide compliant, review-ready code for user presentation.

Quick Start

Trigger the objectscript-review process after generating ObjectScript code blocks to ensure they comply with the checklist before user presentation.

Frequently Asked Questions about objectscript-review

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I review ObjectScript code for common LLM generation mistakes?

Review ObjectScript code by applying a hard validation gate that checks generated code blocks for proper Quit/Return usage, intra-class method calls, and safe global handling before presentation. This enforces correctness and prevents faulty AI-assisted outputs from reaching users.

What is a hard gate in ObjectScript static analysis?

A hard gate in ObjectScript static analysis is a blocking validation mechanism that prevents code from being shown until it passes safety checks. It validates error handling macros, %TimeStamp formatting, and global usage to ensure compliant, review-ready outputs.

How do I validate ObjectScript error handling macros in generated code?

Validate ObjectScript error handling macros by checking generated code for correct usage of $$$ThrowOnError, $$$ISOK, and $$$ISERR. The review process flags violations and provides actionable guidance to ensure proper error handling patterns are enforced.

Can I use automated code review for Intersystems .cls files in AI-assisted development?

Yes, you can use automated code review for Intersystems .cls files by applying a review checklist across typical AI-assisted development sessions. It validates ObjectScript sources for common mistakes like intra-class method call syntax and Quit/Return usage in TRY/CATCH blocks.

What are common ObjectScript mistakes in LLM generated code?

Common ObjectScript mistakes in LLM generated code include incorrect Quit/Return usage in TRY/CATCH blocks and loops, improper intra-class method call syntax, missing error handling macros, invalid %TimeStamp formatting, and unsafe global usage.