skills/ifs/SKILL.md
Browse, search, read, and inspect files in the IBM i Integrated File System (IFS) including authorities, locks, and server shares. Use when user asks about: (1) listing IFS directory contents, (2) searching for files by name or pattern, (3) reading text file contents, (4) checking file authorities or permissions, (5) diagnosing file lock contention, (6) finding large files consuming disk space, (7) viewing NetServer file shares, or (8) replacing WRKLNK, DSPAUT, DSPLNK command output.
npx skillsauth add ajshedivy/ibmi-agent-skills ifsInstall 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.
Browse, search, read, and inspect files in the IFS including authorities, locks, and server shares using QSYS2 SQL services.
The ibmi CLI is the primary tool for IFS operations. 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/ifs, ~/.claude/skills/ifs
ibmi tools --tools "$SKILL_DIR/tools/" --toolset ifs_default
ibmi tool list_ifs_directory --tools "$SKILL_DIR/tools/" --path /home
ibmi sql "SELECT PATH_NAME, DATA_SIZE FROM TABLE(QSYS2.IFS_OBJECT_STATISTICS(START_PATH_NAME => '/tmp', SUBTREE_DIRECTORIES => 'NO'))"
ibmi tool list_ifs_directory --tools "$SKILL_DIR/tools/" --path /
ibmi tool search_ifs_by_name --tools "$SKILL_DIR/tools/" --path /home --name-pattern '%.log'
ibmi tool read_ifs_file --tools "$SKILL_DIR/tools/" --path /etc/hosts
ibmi tool get_ifs_object_authorities --tools "$SKILL_DIR/tools/" --path /home/myuser
The tools/ifs.yaml file provides 10 ready-to-use tools:
| Tool | Description |
|------|-------------|
| list_ifs_directory | List directory contents with type, size, owner |
| get_ifs_object_info | Detailed object info including journaling and CCSID |
| search_ifs_by_name | Recursive file search by name pattern |
| list_ifs_large_objects | Find largest files in a directory tree |
| get_ifs_object_authorities | Authority settings for IFS objects |
| read_ifs_file | Read text file contents line by line |
| list_ifs_object_locks | Lock information for file contention diagnosis |
| list_server_shares | NetServer file and print shares |
| compare_ifs_objects | Compare attributes and content of two IFS objects |
| list_ifs_job_info | IFS file handles held by a specific job |
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.