- Home
- Skills
- APIs & Backend
- as400 feature reverse engineering
as400 feature reverse engineering
Map business features across legacy IBM i ERP systems using a multi-layered reverse-engineering workflow.
$2
Works with the AI Agents you already use
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
| Component | Member/Object | Type | Role | Evidence Level |
|---|---|---|---|---|
| Master Data | PRMHEADPF | *FILE-PF | Promotion Header (Keys: PRID, VDAT) | Verified (Data) |
| Master Data | PRMDETLPF | *FILE-PF | Promotion Lines/Rules | Verified (Data) |
| Engine | PRMCALCRG | *PGM-RPGLE | Calculation Engine (Price/Discount) | Verified (Content) |
| UI | PRM010DF | *FILE-DSPF | Promotion Maintenance Screen | Inferred (Name) |
| Integration | ORDENTRG | *PGM-RPGLE | Sales Order Entry (Calls PRMCALCRG) | Verified (Call Ref) |
| Override | ORDPRECL | *PGM-CLP | Sets OVRDBF for promotion work files | Verified (Source) |
Data Model & Flow
- Entry Point:
ORDENTRG(Order Entry) captures items and triggers the promotion check. - Logic:
PRMCALCRGreadsPRMHEADPFfiltered byVDAT(Validity Date) andCUSTID. - Persistence: Discounts are written to
ORDDETLPFand a temporary work filePRMWORK. - 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
PRMLST01joins with price master).
Next steps
- Scan the
AR%prefix to see if promotions affect the Invoicing/Accounting postings. - Verify the
PRMWORKcleanup routine in the end-of-day batch cycle. - Perform a data query on
PRMDETLPFto 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
- Define vocabulary by identifying synonyms and naming patterns for the target feature.
- Execute metadata passes using
as400_table_listandas400_column_searchto find candidate files and fields. - Trace data logic by analyzing master file relationships and sampling rows to validate status value meanings.
- Perform content scans across program sources in batched member prefixes to identify specific
CHAIN,READE, andUPDATEoperations.
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
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
Sign in to Agensi
Your agent shows a sign-in link. Sign in and click Allow.
- 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