as400 feature reverse engineering

    1

    Map business features across legacy IBM i ERP systems using a multi-layered reverse-engineering workflow.

    $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 feature reverse engineering

    Example session with this skill installed

    Analyze the 'Promotions' management in library PRODLIB. Find the master files, the calculation engine, and how it links to Sales Orders.

    • Read your context and instructions
    • Compiled the as400 feature reverse

    I have completed the reverse-engineering of the Promotions feature in PRODLIB. I scanned 450 source members and 120 database objects across the PR%, OR%, and SL% prefixes.

    Feature Analysis: Promotions Management

    ComponentMember/ObjectTypeRoleEvidence Level
    Master DataPRMHEADPF*FILE-PFPromotion Header (Keys: PRID, VDAT)Verified (Data)
    Master DataPRMDETLPF*FILE-PFPromotion Lines/RulesVerified (Data)
    EnginePRMCALCRG*PGM-RPGLECalculation Engine (Price/Discount)Verified (Content)
    UIPRM010DF*FILE-DSPFPromotion Maintenance ScreenInferred (Name)
    IntegrationORDENTRG*PGM-RPGLESales Order Entry (Calls PRMCALCRG)Verified (Call Ref)
    OverrideORDPRECL*PGM-CLPSets OVRDBF for promotion work filesVerified (Source)

    Data Model & Flow

    1. Entry Point: ORDENTRG (Order Entry) captures items and triggers the promotion check.
    2. Logic: PRMCALCRG reads PRMHEADPF filtered by VDAT (Validity Date) and CUSTID.
    3. Persistence: Discounts are written to ORDDETLPF and a temporary work file PRMWORK.
    4. Status Codes: STAT='A' (Active), STAT='E' (Expired), STAT='S' (Suspended).

    Module Links Matrix

    • Sales Orders: Verified (Direct call in ORDENTRG).
    • Warehouse: Absent (No direct stock impact found in promotions logic).
    • Price Lists: Verified (Logical file PRMLST01 joins with price master).

    Next steps

    1. Scan the AR% prefix to see if promotions affect the Invoicing/Accounting postings.
    2. Verify the PRMWORK cleanup routine in the end-of-day batch cycle.
    3. Perform a data query on PRMDETLPF to confirm if 'Package' type promotions are actually used.

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

    About this skill

    Legacy IBM i (AS/400) ERP systems are notorious for having thousands of undocumented source members, making feature mapping a manual nightmare. This skill automates the reverse-engineering process to identify how specific business logic—like promotions, pricing, or invoicing—is distributed across physical files, RPG programs, and CL wrappers.

    What it does

    • Scope discovery identifying synonyms, naming conventions, and module prefixes to define the search boundary.
    • Metadata auditing scanning source descriptions, object lists, and column headers to build a candidate list of related components.
    • Data model seeding extracting file descriptors, indexes, and constraints to map entity relationships and status codes.
    • Content-based verification searching source code for I/O operations, overrides, and dynamic file redirections to confirm real dependencies.
    • Call chain reconstruction tracing logic flows from UI entry points through engine functions to data persistence and report output.
    • Module mapping generating a matrix of how the feature interacts with core ERP modules like warehouse, sales, and accounting.

    How it works

    1. Define vocabulary by identifying synonyms and naming patterns for the target feature.
    2. Execute metadata passes using as400_table_list and as400_column_search to find candidate files and fields.
    3. Trace data logic by analyzing master file relationships and sampling rows to validate status value meanings.
    4. Perform content scans across program sources in batched member prefixes to identify specific CHAIN, READE, and UPDATE operations.

    Frameworks & tools

    Built for IBM i ERP environments using the as400_* MCP toolset. It works with RPG (all versions), CL, DDS for display/printer files, and DB2 for i metadata catalogs.

    Why this beats prompting it yourself

    Mapping features across 10,000+ members causes context overflow and hallucinated logic. This skill implements a layered "evidence-based" methodology that tracks what was verified by code versus what was inferred by metadata, ensuring the resulting documentation is audit-ready rather than just a guess.

    Use cases

    • Mapping the impact of a proposed change to the "Promotions" logic across the entire ERP.
    • Documenting the call hierarchy and data flow for a legacy "Web Order" interface.
    • Finding all programs that update a specific field without proper validation logic.
    • Assessing technical debt by identifying unused work files and stale source members.

    Known limitations

    Cannot perform a literal scan of every member in massive libraries; depends on batch-based scans of member prefixes. Source-less objects cannot be analyzed beyond metadata.

    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.

    Requires as400 MCP tools. Scanning is limited by member caps; large libraries require batched prefix-based searches. Cannot analyze logic for objects missing source members.

    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
    Write Files
    Listed7 days ago

    What's inside

    Frequently Asked Questions

    This skill automates the identification of business logic across thousands of legacy source members, replacing weeks of manual 'where-used' searches with a structured, evidence-based mapping of how features like pricing or invoicing actually function.

    It supports all versions of RPG (including RPG III, IV, and ILE), CL programs, DDS for display and printer files, and DB2 for i metadata catalogs. It is specifically designed to work with the as400_* MCP toolset to interact directly with your IBM i environment.

    Unlike a simple search, this skill uses a multi-layered workflow that validates metadata against actual source code operations (like CHAIN or UPDATE), ensuring that the final documentation is based on verified logic rather than LLM hallucinations.

    To prevent context overflow, the skill uses a batched scanning approach based on member prefixes and metadata seeds, allowing it to navigate systems with 10,000+ members that would typically crash a standard AI context window.

    You will receive the complete reverse-engineering workflow, including the metadata auditing logic, the call chain reconstruction sequence, and the module mapping templates required to integrate with your MCP-enabled AI agent.

    While it can map data relationships and call hierarchies for any object with metadata, a full logic analysis requires the original source code; compiled objects without source members cannot be deeply reverse-engineered.

    New in APIs & Backend