skills/application/SKILL.md
Query and explore IBM i application objects including CL commands, data areas, data queues, programs, environment variables, exit programs, and watches via SQL services. Use when user asks about: (1) CL command attributes or discovery, (2) data area values or inventory, (3) data queue status and messages, (4) program information (ILE/OPM), (5) environment variables, (6) registered exit programs, (7) watch sessions, (8) user spaces or user indexes, or (9) replacing DSPCMD, DSPDTAARA, DSPLIB, DSPPGM commands.
npx skillsauth add ajshedivy/ibmi-agent-skills applicationInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Query and explore application objects on IBM i using SQL services from QSYS2.
The ibmi CLI is the primary tool for executing application queries. Set SKILL_DIR to this skill's installed location (the directory containing this SKILL.md file):
# SKILL_DIR = directory containing this SKILL.md
# Examples: ./skills/application, ~/.claude/skills/application
ibmi tools --tools "$SKILL_DIR/tools/" --toolset application_default
ibmi tool list_programs --tools "$SKILL_DIR/tools/"
ibmi sql "SELECT * FROM QSYS2.PROGRAM_INFO WHERE PROGRAM_LIBRARY = 'MYLIB' FETCH FIRST 20 ROWS ONLY"
List all programs, commands, and data areas in a specific library
Retrieve the current value of a specific data area
Find data queues with the most pending messages
List system or job-level environment variables
Review registered exit programs for security analysis
Find ILE vs OPM programs and their languages
Check active watch sessions and their configuration
| CL Command | SQL Service | |------------|-------------| | DSPCMD | COMMAND_INFO | | DSPDTAARA | DATA_AREA_INFO (table function) | | DSPPGM | PROGRAM_INFO | | WRKREGINF | EXIT_PROGRAM_INFO / EXIT_POINT_INFO | | WRKENVVAR | ENVIRONMENT_VARIABLE_INFO | | WRKWCH | WATCH_INFO |
SELECT COMMAND_NAME, THREADSAFE, TEXT_DESCRIPTION
FROM QSYS2.COMMAND_INFO
WHERE COMMAND_LIBRARY = 'MYLIB'
ORDER BY COMMAND_NAME;
SELECT DATA_AREA_NAME, DATA_AREA_VALUE
FROM TABLE(QSYS2.DATA_AREA_INFO('MYDTAARA', '*LIBL'));
SELECT PROGRAM_NAME, PROGRAM_TYPE, PROGRAM_LANGUAGE, CREATION_TIMESTAMP
FROM QSYS2.PROGRAM_INFO
WHERE PROGRAM_LIBRARY = 'MYLIB'
ORDER BY PROGRAM_NAME;
SELECT DATA_QUEUE_LIBRARY, DATA_QUEUE_NAME, CURRENT_MESSAGES
FROM QSYS2.DATA_QUEUE_INFO
ORDER BY CURRENT_MESSAGES DESC
FETCH FIRST 20 ROWS ONLY;
The tools/application.yaml file provides 8 ready-to-use tools:
| Tool | Description |
|------|-------------|
| list_commands | CL commands with library and attributes |
| list_data_areas | Data area inventory across libraries |
| get_data_area_value | Targeted data area value lookup |
| list_data_queues | Data queues with message counts |
| list_environment_variables | System and job environment variables |
| list_programs | ILE/OPM programs by library and type |
| list_exit_programs | Registered exit programs |
| list_watches | Watch sessions and status |
ibmi tool <tool_name> --tools "$SKILL_DIR/tools/" # Execute
ibmi tool <tool_name> --tools "$SKILL_DIR/tools/" --dry-run # Preview SQL
ibmi tools show <tool_name> --tools "$SKILL_DIR/tools/" # View details
tools
Query, monitor, and analyze jobs on IBM i using SQL table functions via the ibmi CLI. Use when user asks about: (1) finding jobs by status, user, subsystem, or type, (2) monitoring active job performance (CPU, I/O, memory), (3) detecting long-running SQL statements, (4) analyzing lock contention, (5) checking job queues, (6) scheduled jobs, (7) job logs, (8) replacing WRKACTJOB, WRKUSRJOB, WRKSBSJOB, WRKSBMJOB commands, or (9) any IBM i work management task.
testing
Monitor IBM i system health including CPU, memory, disk, ASPs, system limits, and network status via SQL services. Use when user asks about: (1) CPU utilization or system status, (2) memory pool sizes or page faults, (3) disk capacity or ASP usage, (4) system limits approaching thresholds, (5) TCP/IP connections and network status, (6) system activity overview, (7) replacing WRKSYSSTS, WRKDSKSTS, WRKTCPSTS commands, or (8) any system health monitoring task.
development
Monitor and analyze IBM i storage resources including ASPs, disk units, temporary storage, user storage consumption, and NVMe devices via SQL services. Use when user asks about: (1) ASP capacity, usage, or health, (2) disk unit status or I/O performance, (3) temporary storage consumption by jobs, (4) storage used per user profile, (5) NVMe device health, (6) IASP vary operations, or (7) replacing WRKDSKSTS, WRKSYSSTS storage info, or WRKSTG commands.
testing
Manage and analyze spooled files, output queues, and printer configurations on IBM i via SQL services. Use when user asks about: (1) listing or searching output queues, (2) viewing spooled file entries by queue, user, or status, (3) reading spool file content, (4) identifying top spool consumers or old spool files, (5) printer file definitions, (6) spool storage analysis, (7) replacing WRKSPLF, WRKOUTQ, WRKOBJLCK commands, or (8) any spool file management task.