pli-migration-analyzer
Analyzes legacy PL/I (Programming Language One) programs to assist with migration to modern Java applications. Extracts business logic, data structures, procedure definitions, and file operations from PL/I code. Generates migration reports and creates Java implementation strategies. Use when working with mainframe migration, PL/I analysis, legacy system modernization, or when users mention PL/I to Java conversion, analyzing .pli/.PLI/.pl1 files, working with PL/I procedures, or planning Java service implementations from PL/I programs.
What this skill does
# PL/I Migration Analyzer
Analyzes legacy PL/I programs and generates Java migration strategies. Extracts business logic, data structures, procedures, and dependencies to produce actionable migration plans.
## Workflow
### 1. Discover PL/I Programs
Find PL/I source files in the workspace:
```bash
find . -name "*.pli" -o -name "*.PLI" -o -name "*.pl1"
```
### 2. Analyze Program Structure
For each PL/I program, extract:
- **Entry points**: PROCEDURE OPTIONS(MAIN)
- **Declarations**: DCL statements (FIXED DECIMAL, FIXED BINARY, CHARACTER, BIT, structures)
- **Procedures**: Nested procedures and functions
- **File operations**: OPEN, READ, WRITE, CLOSE statements
- **Exception handling**: ON conditions (ENDFILE, ERROR, etc.)
- **Dependencies**: CALL statements, %INCLUDE directives
Use scripts for automation:
- `extract-structure.py <source_file>` - Extract structural information
- `analyze-dependencies.sh <directory>` - Generate dependency graph
- `estimate-complexity.py <source_file>` - Estimate migration effort
### 3. Map to Java Design
Convert PL/I elements to Java:
- **Structures** → POJOs with appropriate types
- **Procedures** → Service methods
- **File operations** → Java I/O or database operations
- **ON conditions** → try-catch exception handling
- **Arrays** → Lists or arrays (adjust 1-based to 0-based indexing)
**Critical Type Mapping:**
- `FIXED DECIMAL(n,m)` → `BigDecimal` (**NEVER float/double**)
- `FIXED BINARY(n)` → `int`, `long`
- `CHARACTER(n)` → `String`
- `BIT(1)` → `boolean`
### 4. Generate Java Implementation
Create Java classes using:
- `generate-java-classes.py <data_structure_file>` - Generate POJOs from structures
Ensure:
- BigDecimal for all financial calculations
- Proper exception handling (no GO TO)
- Array bounds adjustment (1-based → 0-based)
- String operations adjustment (SUBSTR is 1-based, substring is 0-based)
### 5. Produce Migration Report
Generate comprehensive report with:
1. **Program Overview**: Purpose, entry points, complexity estimate
2. **Dependencies**: Called procedures, included files, external references
3. **Data Structures**: Tables with PL/I types and Java equivalents
4. **Business Logic Summary**: Key algorithms and rules
5. **Java Design**: Proposed classes, methods, packages
6. **Migration Estimate**: Effort in person-days, risk assessment
7. **Action Items**: Prioritized tasks with owners
Use template: `assets/migration-report-template.md`
## Quick Reference
### Common Conversions
**Procedure to Method:**
```pli
CALC_TOTAL: PROCEDURE(qty, price) RETURNS(FIXED DECIMAL(15,2));
result = qty * price;
RETURN(result);
END CALC_TOTAL;
```
→
```java
public BigDecimal calcTotal(BigDecimal qty, BigDecimal price) {
return qty.multiply(price);
}
```
**File I/O to Streams:**
```pli
DO WHILE(¬eof);
READ FILE(infile) INTO(rec);
CALL process_record(rec);
END;
```
→
```java
try (BufferedReader reader = Files.newBufferedReader(path)) {
reader.lines().forEach(this::processRecord);
}
```
### Critical Rules
1. **Use BigDecimal for FIXED DECIMAL** - Float/double lose precision
2. **Arrays are 1-based in PL/I, 0-based in Java** - Adjust loops and indices
3. **Refactor GO TO statements** - Use structured control flow
4. **ON conditions map to try-catch** - Exception handling strategy required
5. **SUBSTR is 1-based** - Java substring is 0-based and end-exclusive
## Detailed References
For comprehensive information:
- **Type mapping & patterns**: [pli-reference.md](references/pli-reference.md) - Complete data type conversions, code patterns, migration checklist, common pitfalls
- **Pseudocode translation**: [pseudocode-pli-rules.md](references/pseudocode-pli-rules.md) - Rules for converting PL/I to pseudocode
- **Transaction handling**: [transaction-handling.md](references/transaction-handling.md) - Database transaction patterns
- **Performance**: [performance-patterns.md](references/performance-patterns.md) - Optimization strategies
- **Messaging**: [messaging-integration.md](references/messaging-integration.md) - Event-driven patterns
- **Testing**: [testing-strategy.md](references/testing-strategy.md) - Test approach and validation
## Output Format
Structure migration reports with these sections:
```markdown
# [Program Name] Migration Analysis
## Executive Summary
High-level overview and recommendations
## Program Overview
Purpose, functionality, complexity metrics
## Dependencies
Procedure calls, file dependencies, external references
## Data Structures
Tables mapping PL/I structures to Java classes
## Business Logic Analysis
Key algorithms, rules, calculations
## Java Design Proposal
Package structure, class design, API interfaces
## Migration Estimate
Effort (person-days), risk level, timeline
## Action Items
Prioritized tasks with acceptance criteria
```
Related in Ads & Marketing
ads
IncludedMulti-platform paid advertising audit and optimization skill. Analyzes Google, Meta, YouTube, LinkedIn, TikTok, Microsoft, and Apple Ads. 250+ checks with scoring, parallel agents, industry templates, and AI creative generation.
banana
IncludedAI image generation Creative Director powered by Google Gemini Nano Banana models. Use this skill for ANY request involving image creation, editing, visual asset production, or creative direction. Triggers on: generate an image, create a photo, edit this picture, design a logo, make a banner, visual for my anything, and all /banana commands. Handles text-to-image, image editing, multi-turn creative sessions, batch workflows, and brand presets.
rpg-migration-analyzer
IncludedAnalyzes legacy RPG (Report Program Generator) programs from AS/400 and IBM i systems for migration to modern Java applications. Extracts business logic from RPG III/IV/ILE source code, identifies data structures (D-specs), file operations (F-specs), program dependencies (CALLB/CALLP), and converts RPG constructs to Java equivalents. Generates migration reports, complexity estimates, and Java implementation strategies with POJO classes, JPA entities, and service methods. Use when modernizing AS/400 or IBM i legacy systems, analyzing RPG source files (.rpg, .rpgle, .RPGLE), converting RPG to Java, mapping data specifications to Java classes, planning legacy system migration, or when user mentions RPG analysis, Report Program Generator, RPG III/IV/ILE, AS/400 modernization, IBM i migration, packed decimal conversion, or mainframe application rewrite.
brand-library-architect
IncludedBuild a complete brand library for a product — visual asset render pipeline, brand documentation set (BRAND, COPY, MANIFESTO, BIOS, FAQ, GLOSSARY, TONE, PRICING), open-source convention files (README, CONTRIBUTING, SECURITY, CODE_OF_CONDUCT), and a self-contained press kit. This skill should be used when the user asks to "build a brand library / brand kit / press kit / brand assets" for a product, "set up a brand library workflow," "create a positioning manifesto plus visual identity," or any combination of brand documentation + visual asset pipeline. Apply phase-by-phase or run end-to-end. Templates are product-agnostic and use {{TOKEN}} placeholders the skill prompts the user to fill.
writing-tech-post
IncludedAuthors engineering blog posts end-to-end: launch deep-dives, incident postmortems, architecture migrations, performance case studies, tutorials, AI/agent system writeups, security disclosures, and research-to-product translations. Picks the correct archetype, plans the abstraction ladder, enforces an evidence cadence (diagrams, benchmarks, profiles, traces, code, ablations), tunes voice against publisher house styles (Datadog, Vercel, GitHub, AWS, Meta, Cloudflare, Jane Street), and runs a pre-publish gate for narrative momentum and disclosure ethics. Use when drafting a new engineering post, restructuring a draft that feels flat, deciding which evidence form belongs where, validating that depth and product context are balanced, or preparing a postmortem, migration, or performance narrative for external publication. Do not use for API reference documentation, README authoring, marketing copy, release notes, generic SEO content, ghost-written executive thought leadership, or non-engineering long-form essays.
blog-google
IncludedGoogle API integration for blog performance: PageSpeed Insights, CrUX Core Web Vitals with 25-week history, Search Console performance, URL Inspection, Indexing API, GA4 organic traffic, NLP entity analysis for E-E-A-T, YouTube video search for embedding, and Google Ads Keyword Planner. Progressive feature availability based on credential tier (API key, OAuth/service account, GA4, Ads). Shares config with claude-seo at ~/.config/claude-seo/google-api.json. Use when user says "google data", "page speed", "core web vitals", "search console", "indexation", "GA4", "keyword research", "nlp entities", "blog performance", "youtube search", "google api setup".