as400 source discovery

    1

    Find, search, and read IBM i (AS/400) source code including RPG, CL, and DDS with pagination and metadata filtering.

    $2

    Secure checkout via Stripe

    Money-back guarantee

    Converts to your local currency at checkout

    Security scanned

    Works with the AI Agents you already use

    Claude CodeClaude CodeCursorCursorCodex CLICodex CLIDeepSeekDeepSeekMuseMuse+22 more

    as400 source discovery

    Example session with this skill installed

    Find all RPG members in library PRODLIB that reference the table 'MGLPC00F' and read the first 50 lines of the first match.

    • Read your context and instructions
    • Compiled the as400 source discovery

    I searched PRODLIB/QRPGLESRC for the token MGLPC00F. The search scanned 142 members and found 3 matches. I have retrieved the header for the first match, MGLPC01R.

    Source Discovery Results: MGLPC00F References

    LibrarySource FileMemberLineMatch Text
    PRODLIBQRPGLESRCMGLPC01R45FMGLPC00F IF E K DISK
    PRODLIBQRPGLESRCMGLPC01R102C MGLPC00F KLIST
    PRODLIBQRPGLESRCAR0042R12* Recompiled for change to MGLPC00F

    Source Content: PRODLIB/QRPGLESRC(MGLPC01R)

         H OPTION(*SRCSTMT : *NODEBUGIO)
         H DFTACTGRP(*NO) ACTGRP(*CALLER)
         *----------------------------------------------------------------*
         * Program: MGLPC01R
         * Desc   : Monthly Global Price Calculator
         * Author : J. Smith
         * Date   : 2023-11-15
         * Change : WI-8842 - Add logic for MGLPC00F pricing lookup
         *----------------------------------------------------------------*
         FMGLPC00F  IF   E           K DISK
         FPRICELOG  O    E           K DISK
         *
         D P_Input         DS                  QUALIFIED
         D  Store                         5S 0
         D  Item                         15A
         *
    

    Next steps

    1. Read lines 51-200 of MGLPC01R to analyze the KLIST and CHAIN logic.
    2. Search for the AR0042R member to see if it actually uses the file or was just recompiled.
    3. Use as400_source_list on QCLSRC to find the batch job that calls these programs.

    Connects securely to your tools. The creator never sees your data.

    About this skill

    Legacy IBM i (AS/400) codebases are often undocumented monoliths where finding a specific logic branch feels like searching for a needle in a haystack. This skill provides the specialized tools to navigate libraries, filter source members, and execute targeted content scans without timing out or hitting output caps.

    What it does

    • Source Inventory lists source files and members within a library, including types, line counts, and modification dates.
    • Targeted Reading retrieves source code from RPG, CL, DDS, or SQL members with support for windowed reading of large files.
    • Cross-Member Search executes substring searches across hundreds of members to find field references, program calls, or work-item IDs.
    • Description Discovery leverages member text descriptions for fast, low-cost initial filtering before performing full content scans.
    • Fixed-Format Support preserves leading blanks and column positions essential for legacy fixed-format RPG code.

    How it works

    1. Use as400_source_list with a name filter to identify relevant source files like QRPGLESRC or QCLSRC and review their descriptions.
    2. Run as400_source_search using selective tokens like file names or unique field IDs to find every member where that logic is referenced.
    3. Call as400_source_read to pull the first 150 lines of identified members to check headers and change logs.
    4. Iterate through large members using fromLine and toLine parameters to bypass character limits.

    Frameworks & tools

    This skill requires an active connection to an IBM i (AS/400) partition via an MCP server supporting the as400_source_ toolset. It handles RPG, RPGLE, SQLRPGLE, CL, CLLE, DDS, and copy members.

    Why this beats prompting it yourself

    Generic LLMs struggle with the strict column-based formatting of legacy RPG and often fail to handle the pagination required for 5,000-line source members. This skill automates the batching and filtering logic needed to scan large IBM i libraries while staying within token and timeout limits.

    Use cases

    • Find every program that references a specific database field name or file.
    • Trace the history of a feature by searching for work-item numbers in source comments.
    • Audit a library to find source members that have no corresponding compiled object.
    • Extract the file declarations and prototypes from a legacy monolithic RPG program.

    Known limitations

    Search is limited to 150 members per batch and 1000 matching lines. It cannot find logic in compiled objects if the source member is missing or stale.

    Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for APIs & Backend.

    Maximum 150 members scanned per search batch. Searches use substring matches, not regex. Requires exact library and file names. Source-only; does not scan compiled object binaries.

    How to use

    1. 1

      Connect your agent to the Agensi MCP

      Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup

    2. 2

      Sign in to Agensi

      Your agent shows a sign-in link. Sign in and click Allow.

    3. 3

      Ask for what you need

      Your agent loads this skill and uses it on your task. It always asks before buying a skill.

    Reviews

    No reviews yet

    Be one of the first to try it. Every listed skill goes through the trust checks below.

    Security scanned

    Checked by our 8-point scan before listing

    Fresh listing

    Recently published to Agensi

    Money-back guarantee

    Doesn't do what its page promises? You get your money back.

    Trust & safety

    Security scan

    Security scan passed 7 days ago

    Software
    As400 Basics MCP

    Permissions

    Read Files
    Listed7 days ago

    What's inside

    Frequently Asked Questions

    Find, search, and read IBM i (AS/400) source code including RPG, CL, and DDS with pagination and metadata filtering.

    This skill uses the open SKILL.md standard. Use it through an MCP-compatible agent connected to Agensi, and check the compatibility information on this page for confirmed agents and required capabilities.

    Connect your AI agent to Agensi through MCP, then ask it to use as400 source discovery on your task. Your agent loads the latest approved version each time. Paid skills require a purchase or active subscription. Skill files are not available for download; your licence does not allow you to save, copy or export any part of a skill.

    New in APIs & Backend