intersystems-community/iris-agentic-dev/objectscript-repair
Claude Code and agent skill by intersystems-community/iris-agentic-dev
- community
Checking that the SKILL.md file is still in the repository.
Perform coordinated fixes across multiple ObjectScript files. Use when a change in one class requires updates in dependent classes (e.g., method signature changes, renames).
Install
npx vskill@latest install intersystems-community/iris-agentic-dev/objectscript-repairSKILL.md
Multi-File Repair Skill
This skill provides a procedure for handling ObjectScript repairs that span multiple files.
When to use
- Compilation errors in files other than the one being edited.
- Method signature updates where callers need to be updated.
- Renaming properties or classes that are referenced elsewhere.
- Implementing an interface that requires updates to several implementations.
Procedure
1. Dependency Discovery
When a change is made to a class member, identify all call sites before touching any file.
- Tool:
docs_introspect(class_name)— confirms the current method signature and shows the full class definition from%Dictionary - Tool:
docs_introspect(class_name="Package.Class")— lists the methods and properties of the class, inherited ones included. (iris_symbolsmatches class names only.) - Tool:
Grep(regex search across.clsfiles) — finds every reference to the old symbol name - Requirement: You MUST perform this check for every public
ClassMethod,Method, orPropertychange before writing any edits.
2. Multi-File Planning
Update the repair plan to include all affected files.
- The
target_fileslist should contain the root cause file first, followed by all dependent files. - Strategy: Map the change from "Definition" → "Reference" → "Integration".
- Document the full list of files to touch before editing any of them.
3. Coordinated Patching
Apply edits to all target files in a single pass.
- Use the
Edittool for each file in dependency order (definitions before callers). - Validation: After all edits are written, compile the root file first, then each dependent file.
4. Atomic Verification
Always verify the workspace as a whole after the full patch is applied.
- Compile: push each changed file with
iris_doc(mode="put", name="Package.SubPackage.ClassName.cls", content=..., compile=true); fix any errors before proceeding to the next file - Test: Run the full test suite related to the change via
iris_test - Revert: If any file fails to compile or tests regress, revert ALL changes in the iteration using
git checkout -- <file>(via Bash) before starting the next attempt
Common Scenarios
1. Method Signature Update
Context: A method signature is modified (parameters added, removed, or types changed). Discovery:
- Call
docs_introspecton the class to capture the current signature. - Use
Grepto find all callers of the method across.clsfiles. - List all call sites in the repair plan.
Transformation:
- Update all identified call sites to match the new signature.
- Provide default values for newly added parameters if possible.
2. Class/Member Rename
Context: A class name or a public property/method is renamed. Discovery:
- Use
Grepto find all occurrences of the old symbol name across the workspace. - After renaming, run
iris_searchover the affected packages for the old name and confirm it is gone from the server's code. Compiling does not check a rename: a call to a method that no longer exists compiles, and fails only when it runs, with<METHOD DOES NOT EXIST>.
Transformation:
- Rename the definition.
- Rename all occurrences in referencing files.
- Update
##class(OldName)to##class(NewName)everywhere.
3. Interface Implementation Sync
Context: An abstract class or interface is updated, requiring all subclasses to be updated. Discovery:
- Use
Grepto find all classes thatExtendsthe modified class. - Call
docs_introspecton each subclass to see which methods they currently implement.
Transformation:
- Implement or update the required methods in all subclasses to maintain contract compliance.
Common Pitfalls
- Forgetting to update a caller in a different package.
- Mismatching parameter counts after a signature change.
- Circular dependencies causing compilation loops — compile in dependency order (base class first).
- Compiling before pushing —
iris_compilecompiles the source IRIS holds, so push local edits withiris_doc(mode="put", compile=true)first.
Related skills
- objectscript-navigation — to map the full dependency graph before planning repairs
- objectscript-debugging — to trace runtime errors to their source before repairing
- objectscript-review — to review the repaired code before compiling
- objectscript-tdd — to write a failing test first, then repair until it passes
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/skills/objectscript-repair/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/intersystems-community/iris-agentic-dev/objectscript-repair)