Token导航 LogoToken导航TokenDH.com
研究检索需要联网github未标认证来源可访问clear审计异常

pli-migration-analyzerpli 迁移分析仪

Agent Skill

pli-migration-analyzer 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

285

周安装

12

GitHub Stars

10

下载量

1
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

3

许可证

MIT

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:pli-migration-analyzer(pli 迁移分析仪)
来源仓库:https://github.com/dauquangthanh/hanoi-rainbow
仓库路径:skills/pli-migration-analyzer
安装命令:
npx skills add https://github.com/dauquangthanh/hanoi-rainbow --skill pli-migration-analyzer
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。不同来源提供的安装方式可能略有差异;本站展示可直接复制的安装命令,安装前请核对来源页面。

skills.shnpx skills
npx skills add https://github.com/dauquangthanh/hanoi-rainbow --skill pli-migration-analyzer

简介

用于查找、检索和筛选相关信息。

  • 适合在关键词搜索或任务场景中快速定位候选结果。
  • 使用时可结合来源仓库和原始 README 核验具体用法。
  • 安装前建议确认权限范围和维护状态,避免触发敏感操作。
  • pli-migration-analyzer 属于研究检索类 Skill,可作为该场景下的辅助能力补充。

SKILL.md

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:

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:

CALC_TOTAL: PROCEDURE(qty, price) RETURNS(FIXED DECIMAL(15,2));
    result = qty * price;
    RETURN(result);
END CALC_TOTAL;

public BigDecimal calcTotal(BigDecimal qty, BigDecimal price) {
    return qty.multiply(price);
}

File I/O to Streams:

DO WHILE(¬eof);
    READ FILE(infile) INTO(rec);
    CALL process_record(rec);
END;

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:

Output Format

Structure migration reports with these sections:

# [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

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

04

需要参考平台分布和安装热度时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

能力 5

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Claude Code

30.29%
按下载量换算0

windsurf

25.14%
按下载量换算0

OpenCode

17.98%
按下载量换算0

Codex

11.71%
按下载量换算0

Antigravity

8.2%
按下载量换算0

Gemini CLI

3.32%
按下载量换算0

安全审计

Gen Agent Trust Hub

未通过

Socket

通过

Snyk

通过

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。

来源信息

继续浏览同类 Skills