skills/ptf/SKILL.md
Monitor and analyze PTFs, PTF groups, and system patching status on IBM i via SQL services. Use when user asks about: (1) PTF group currency or update status, (2) finding outdated or critical PTF groups, (3) individual PTF details by product, (4) installed PTF group levels, (5) defective PTF checks, (6) PTF patching summaries, (7) replacing DSPPTF, WRKPTFGRP commands, or (8) any PTF management or compliance task.
npx skillsauth add ajshedivy/ibmi-agent-skills ptfInstall 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.
Monitor and analyze Program Temporary Fixes (PTFs), PTF groups, and patching status using SQL services from QSYS2 and SYSTOOLS.
The ibmi CLI is the primary tool for executing PTF 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/ptf, ~/.claude/skills/ptf
# List all PTF tools
ibmi tools --tools "$SKILL_DIR/tools/" --toolset ptf_default
# Run a specific tool
ibmi tool check_ptf_currency --tools "$SKILL_DIR/tools/"
# Ad-hoc SQL for custom queries
ibmi sql "SELECT * FROM QSYS2.GROUP_PTF_INFO WHERE PTF_GROUP_STATUS = 'INSTALLED'"
ibmi tool check_ptf_currency --tools "$SKILL_DIR/tools/"
ibmi tool list_outdated_ptf_groups --tools "$SKILL_DIR/tools/"
ibmi tool list_individual_ptfs --tools "$SKILL_DIR/tools/" --product-filter 5770SS1
WITH iLevel(iVersion, iRelease) AS (
SELECT OS_VERSION, OS_RELEASE FROM SYSIBMADM.ENV_SYS_INFO
)
SELECT PTF_GROUP_CURRENCY, COUNT(*) AS CNT
FROM iLevel, SYSTOOLS.GROUP_PTF_CURRENCY P
WHERE PTF_GROUP_RELEASE = 'R' CONCAT iVersion CONCAT iRelease CONCAT '0'
GROUP BY PTF_GROUP_CURRENCY;
SELECT PTF_IDENTIFIER, PTF_PRODUCT_ID, PTF_SUPERSEDED_BY_PTF
FROM QSYS2.PTF_INFO
WHERE PTF_SUPERSEDED_BY_PTF IS NOT NULL
ORDER BY PTF_STATUS_TIMESTAMP DESC
FETCH FIRST 20 ROWS ONLY;
The tools/ptf.yaml file provides 8 ready-to-use tools:
| Tool | Description |
|------|-------------|
| check_ptf_currency | PTF group currency status for current release |
| list_outdated_ptf_groups | Groups with updates available, ranked by levels behind |
| get_ptf_group_details | Detailed levels for a specific PTF group |
| list_installed_ptf_groups | All installed PTF groups with status and release filters |
| summarize_ptf_status | High-level PTF currency summary with counts |
| find_critical_ptf_updates | Groups significantly behind a threshold |
| list_individual_ptfs | Individual PTFs filtered by product and status |
| check_defective_ptfs | Check for IBM-identified defective PTFs |
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.