IRIS Code Formatter for Openclaw

A specialized tool for the automated formatting, auditing, and correction of InterSystems IRIS and ObjectScript codebases.

yaoxin521123
v3.1.0
Apr 18, 2026
3
1.4k
0

Install & Download

1. ClawHub CLI

The fastest way to install a skill directly from the registry.

npx clawhub@latest install iris-code-formatter

2. Manual Installation

Copy the skill folder to one of these locations

Global
~/.openclaw/skills/
Workspace
<project>/skills/

Priority: Workspace > Local > Bundled

3. Prompt Installation

Copy this prompt to OpenClaw to install it automatically.

Help me install iris-code-formatter using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).

Prefer to download?

Get the raw skill files in a ZIP archive.

What is IRIS Code Formatter?

The IRIS Code Formatter is a sophisticated automation utility designed to enforce rigorous coding standards within InterSystems IRIS and Cache ObjectScript environments. By integrating this tool into your development workflow via Openclaw Skills, you can ensure that your code adheres to professional benchmarks for variable naming, method structure, transaction safety, and performance-minded formatting. It is specifically engineered to handle the nuances of ObjectScript, such as Global naming conventions and specific compiler requirements for post-conditional expressions.

This skill serves as both an auditor and a refactoring assistant, identifying technical debt and providing immediate, production-ready corrections. It eliminates the manual effort of code reviews by automatically checking for common pitfalls like deadlocks, open transactions, and non-standard abbreviations, making it an essential asset for teams using Openclaw Skills to maintain high-quality legacy and modern IRIS applications.

IRIS Code Formatter Use Cases

  • Automating the standardization of legacy ObjectScript codebases to modern naming conventions.
  • Performing deep security and stability audits on transaction and locking logic in InterSystems IRIS.
  • Enforcing consistent formatting and abbreviation rules across large developer teams.
  • Preparing code for migration by ensuring strict compliance with IRIS compiler requirements.
  • Rapidly refactoring variable and method names to follow lowerCamelCase and UpperCamelCase standards.

How IRIS Code Formatter Works

  1. The user provides raw ObjectScript code or a full IRIS class definition to the agent.
  2. The skill performs a multi-dimensional analysis covering naming, formatting, locks, transactions, and error handling.
  3. It identifies specific violations, such as incorrect global naming like ^TEMP instead of ^CacheTemp.
  4. A comprehensive audit report is generated, categorizing issues by severity and providing the underlying rationale.
  5. The skill generates a fully corrected version of the code, ensuring all command abbreviations and spacing are optimized.
  6. The final output is delivered as a complete, deployable code block without any omitted sections.

IRIS Code Formatter Setup

To begin using this tool within your automation environment, ensure you have access to the Openclaw Skills library. You can initialize the skill by including the definition in your agent's configuration.

# Example of referencing the skill in your project structure
openclaw install iris-code-formatter

No additional database drivers are required as the skill processes the code as structured text following the ObjectScript grammar rules defined in the iris-code-formatter specification.

IRIS Code Formatter Data Schema & Taxonomy

The skill organizes its audit and formatting logic based on the following technical taxonomy:

Category Standard Description
Variable Naming lowerCamelCase Applied to local, member, and parameter variables.
Method/Class Naming UpperCamelCase Ensures consistent class and method identification.
Global Naming ^CacheTemp* Restricts temporary globals to system-optimized namespaces.
Abbreviations s, d, q, n, k Standardizes command abbreviations for code density.
Locking +/^Global:3 Enforces timeouts and incremental locking to prevent deadlocks.
Transactions ts/tc/tro Ensures all transactions are scoped and closed within a single method.

IRIS Code Formatter Advanced Features

  • Intelligent post-conditional spacing: Automatically corrects spacing in expressions like q:(a = "")&&(b = "") to prevent IRIS compiler errors.
  • Automated transaction proximity checking: Ensures tstart and tcommit are logically close to prevent long-running open transactions.
  • Error trap injection: Suggests and implements standard $ztrap and error handling patterns for robust process management.
  • SQL optimization: Formats embedded SQL within ObjectScript for better readability and alignment with project standards using Openclaw Skills.
  • Global node validation: Automatically ensures that lock commands include required subscripts to prevent system-wide resource blocking.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*