Build setup

From OpenHands/extensions · View interactive version

Build setup is an AI agent skill from the GitHub repository OpenHands/extensions. Set up build environment and test fixtures for COBOL-to-Java migrations. Creates compilation infrastructure for both languages and generates golden test data.

How to use this skill

Skill file

Set up a build environment and create test fixtures for validating COBOL-to-Java migrations.

To install GnuCOBOL, run: ./scripts/install-gnucobol.sh

On Windows, run that shell script from Git Bash/WSL (bash scripts/install-gnucobol.sh) or install GnuCOBOL with a Windows package manager and document the chosen command in build_notes.md.

Phase 1: Build Setup

COBOL Build

Java Build

Phase 2: Test Fixture Generation

For each major COBOL program:

Create Synthetic Test Inputs

Generate Golden Outputs

Create Test Manifest

Save to test_manifest.json:

{
  "PROGRAM1": {
    "description": "Brief description of what this program does",
    "test_cases": [
      {
        "name": "normal_invoice",
        "input": "inputs/PROGRAM1/test_001.dat",
        "expected": "expected_outputs/PROGRAM1/test_001.out",
        "description": "Happy path"
      }
    ]
  }
}

Deliverables

  1. build_notes.md — Build instructions for COBOL and Java
  2. test-fixtures/ — Directory with inputs/ and expected_outputs/
  3. test_manifest.json — JSON manifest of all test cases

Priority

Focus on programs with core business logic (transactions, calculations, data processing). UI-heavy programs (menu screens, reports) are lower priority.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.