Automated summary
Queries the PXW_Xref.Data table in InterSystems IRIS to find which ObjectScript classes, methods, and properties reference a given class or member.
Strengths
- Documents the PXW_Xref.Data schema precisely (ItemKey1/2, CalledByKey1/2/3, LineNumber) and ships a ready-to-adapt SQL query template
- Enforces clear guardrails: read pxw.xref.connection, never query %SYS, stop and ask if the namespace is missing
- Maps returned class names to workspace .cls files with Markdown links anchored on the xref line number, and forbids fabricated or file:// links
- Calls out known caveats: stale xref data, uppercase results from IRIS SQL, and the gap between token search and xref-built relationships
Limitations
- Assumes a repository with a populated PXW_Xref.Data table and a pxw.xref.connection entry already present in VS Code settings
- Not portable as written: the procedure is tuned to one repository (it names the USER namespace explicitly)
- Does not fully specify how line anchors are built or how classes outside the source roots are resolved beyond a workspace search
Use it whenever an ObjectScript developer asks which classes or members call or reference a class, method, or property in IRIS.
Avoid it when the workspace has no configured PXW_Xref.Data xref database, or when the question concerns non-ObjectScript code.
Security analysis
SafeThe skill is purely a read-only documentation/query guide for an InterSystems IRIS xref table. It declares no tools, contains no shell commands, network calls, credential handling, or destructive operations. It references reading workspace VS Code settings to obtain a namespace name, but only uses that value locally to scope SQL queries and explicitly forbids querying the sensitive %SYS namespace — a guardrail, not a risk. No exfiltration or obfuscation is present.
No concerns found
How this analysis is madeExamples
Which classes use %ISQL.Transformer? Exclude internal references from the class itself and link each caller to its source file.Find every place that calls the Execute method of %ISQL.Transformer and show the calling class, member, and line number.What classes reference the property Status in MyApp.Model.Patient, and can you confirm the surprising ones with a direct source search?name: objectscript-xref-usage description: 'Query PXW_Xref.Data in InterSystems IRIS to find which ObjectScript classes, methods, and properties use or reference another class member. Use for xref questions, caller lookups, and "what classes use" requests.' argument-hint: 'Target class or member, for example %ISQL.Transformer' user-invocable: true
ObjectScript Xref Usage
Use this skill when the user asks which classes, methods, or properties use an ObjectScript class or member in the PXW xref database.
Data Model
PXW_Xref.Data stores xref relationships:
ItemType = 'CLS'identifies class relationships.ItemKey1is the referenced class name.ItemKey2is the referenced method or property name.CalledByTypeidentifies the caller document type.CalledByKey1is the calling class or document name.CalledByKey2is the calling method or property name.CalledByKey3identifies the call occurrence within the caller member.CalledByCommanddescribes the relationship kind.LineNumberis the source line in the caller member.
The caller columns are named CalledByKey1, CalledByKey2, and CalledByKey3.
Procedure
- Read the workspace VS Code settings and locate
pxw.xref.connection. - Use the
namespacevalue frompxw.xref.connectionas the namespace for every xref query. Do not infer it from the active connection, the target class, or another settings key. If the setting or its namespace is missing, stop and ask for it rather than choosing a fallback. - Never query
PXW_Xref.Datain%SYS. In particular, do not fall back to%SYSwhen the configured namespace is unavailable, and do not run SQL in%SYSfor this data. For this repository, the configured namespace isUSER. - Query
PXW_Xref.Datain that configured namespace withItemType = 'CLS'and the target class inItemKey1. - Select
CalledByKey1,CalledByKey2, andLineNumberfor the caller list. IncludeCalledByCommandwhen the relationship type matters. - Exclude rows where
CalledByKey1 = ItemKey1when the user wants external users rather than the target class's internal references. - Use
DISTINCTonly when duplicate relationship rows are not useful; preserve individual rows when the user needs every occurrence. - Resolve each returned class name to an existing workspace source file where possible. ObjectScript class names map to class files by replacing dots with path separators and appending
.cls; search the workspace source roots when the class is not at the repository root. - Render resolved class names as Markdown links to the workspace-relative file, using the xref
LineNumberas the link anchor when that line exists in the local source. Link the member name separately only when a precise member location is known. - Leave classes without a local source file as plain text and say that the source is not present in the workspace. Never fabricate file links or use
file:///vscode://URLs. - Report the calling class, calling member, and source line. State clearly whether internal self-references were excluded.
Query Template
SELECT DISTINCT
CalledByKey1,
CalledByKey2,
LineNumber
FROM PXW_Xref.Data
WHERE ItemType = 'CLS'
AND ItemKey1 = '<target-class>'
AND CalledByKey1 <> '<target-class>'
ORDER BY CalledByKey1, CalledByKey2, LineNumber
For a specific method or property, add:
AND ItemKey2 = '<target-member>'
Important Checks
- The xref database may contain stale or incomplete data, so use a direct source search to corroborate surprising results.
- Class names and member names may be returned in uppercase by IRIS SQL even when source uses mixed case.
- A direct search for the exact token can miss relationships represented by the xref builder, while the xref table can include internal implementation references. Explain this distinction when relevant.
From the file to a first result
The download contains exactly the content displayed on this page. This copy may differ from the latest version in the source repository.
View the source and supporting filesThis download contains SKILL.md only. Any scripts, references, templates and dependencies are not included. Get the required files from the source, preserving their directory structure, before continuing.
1. Download the file
Download SKILL.mdFrom the root of a test project, save the file as .skill-downloads/objectscript-xref-usage-mtfbwmk3/SKILL.md, or use the command below. This folder is for inspecting the skill before installation.
Command for macOS/Linux or WSL: requires a POSIX shell and curl. On Windows without WSL, use the download button and create the folder manually.
mkdir -p '.skill-downloads/objectscript-xref-usage-mtfbwmk3' && curl --fail --show-error --location 'https://skills-guides.com/api/skills/objectscript-xref-usage-mtfbwmk3/download' --output '.skill-downloads/objectscript-xref-usage-mtfbwmk3/SKILL.md.part' && mv '.skill-downloads/objectscript-xref-usage-mtfbwmk3/SKILL.md.part' '.skill-downloads/objectscript-xref-usage-mtfbwmk3/SKILL.md'2. Check prerequisites
Read SKILL.md before using it. If it references scripts or external services, inspect them and prepare the required access in your test environment.
No recognized prerequisites section in this file. This does not mean it is self-contained: libraries, tools and access requirements may be mentioned elsewhere in the content or source repository.
The platforms on this page are catalog indications. The paths below follow tool documentation; they do not prove this skill has been run in those tools. No minimum tool version is confirmed for this listing.
3. Load the skill
After inspection, copy the complete folder into your project using one of the commands below, then open a new tool session. The command stops if a folder with the same name already exists: compare the files before replacing it.
Claude Code
test -f '.skill-downloads/objectscript-xref-usage-mtfbwmk3/SKILL.md' && test -s '.skill-downloads/objectscript-xref-usage-mtfbwmk3/SKILL.md' && mkdir -p '.claude/skills' && test ! -e '.claude/skills/objectscript-xref-usage' && cp -R '.skill-downloads/objectscript-xref-usage-mtfbwmk3' '.claude/skills/objectscript-xref-usage'Cursor
test -f '.skill-downloads/objectscript-xref-usage-mtfbwmk3/SKILL.md' && test -s '.skill-downloads/objectscript-xref-usage-mtfbwmk3/SKILL.md' && mkdir -p '.cursor/skills' && test ! -e '.cursor/skills/objectscript-xref-usage' && cp -R '.skill-downloads/objectscript-xref-usage-mtfbwmk3' '.cursor/skills/objectscript-xref-usage'OpenSkills
OpenSkills must already be installed. The local install/read procedure is checked with OpenSkills 1.5.0, which requires Node.js ≥ 20.6.0. Catalog slugs are not resolved automatically.
Official OpenSkills installationopenskills install './.skill-downloads/objectscript-xref-usage-mtfbwmk3'openskills read 'objectscript-xref-usage-mtfbwmk3'Reading should display the installed file content and its base directory. It does not run the skill or install its dependencies.
For an agent that reads AGENTS.md, then sync the index. This command changes AGENTS.md: review the diff before using it.
openskills syncManual method or another tool: attach SKILL.md to a conversation, or open it in an agent that can read files. Include any required supporting resources. No universal folder is recognized by every tool.
4. Try a first task
Use a short, synthetic input: an API endpoint, a small document or an interface brief. In a new conversation, attach the file or give the agent its path, then adapt this request:
Read .skill-downloads/objectscript-xref-usage-mtfbwmk3/SKILL.md and apply its instructions to this example: [describe a test input]. Identify any missing files, dependencies or access. Produce the result requested by the skill without inventing data or running unreviewed scripts.Expected result: output matching the skill instructions, or a precise list of missing prerequisites. A read confirmation alone does not validate a first use. If an external resource is unavailable, that path remains untested.
React Hook Form Best Practices
Development
Master React Hook Form: avoid anti-patterns, manage subscriptions, and handle reset, dirty state, and controlled inputs correctly.
Emotion to Mantine Migration
Development
Migrate Emotion styled-components to Mantine components with style props and CSS modules. Use when converting .styled.tsx files or removing @emotion imports.
Scope Creep Detector
Development
Analyzes git diffs against a stated intent to detect scope creep, unrelated files, broad PRs, and oversized changes, then suggests keep, split, or justify actions.