Skip to content

An interactive lesson showing how to modernize a legacy software project written in Cobol using GitHub Copilot

License

Notifications You must be signed in to change notification settings

spec-ops-method/modernize-your-legacy-code-with-github-copilot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Modernize Your Legacy Code with GitHub Copilot (SpecOps Edition)

Note: This is an adaptation of the original GitHub Skills lesson that has been modified to demonstrate SpecOps principles. SpecOps is a methodology for using AI to modernize legacy systems by focusing on knowledge preservation and verified specifications rather than direct code translation.

Welcome

  • Who is this for: Developers looking to update and improve their legacy codebases using specification-driven development.
  • What you'll learn: How to leverage GitHub Copilot to extract specifications from legacy code and generate modern implementations from those specifications.
  • What you'll build: A software specification and a modern Node.js application that implements it.
  • Prerequisites:
  • How long: This exercise takes less than 30 minutes to complete.

In this exercise, you will:

  1. Analyze legacy COBOL code to understand its behavior.
  2. Generate a software specification that captures business rules in plain language.
  3. Create a test plan derived from the specification.
  4. Implement a modern Node.js application from the specification—not by translating code.
  5. Validate the implementation against the specification using tests.

SpecOps Toolkit

This repository includes standard SpecOps components that you can reuse in your own projects:

Component Description
AGENTS.md Instructions for AI agents working on this codebase. Encodes the SpecOps methodology—specification-driven development where the spec is the source of truth. Configure this file to guide AI assistants in your own projects.
.github/instructions/cobol.instructions.md COBOL comprehension instructions that automatically apply when Copilot analyzes .cob files. Helps AI understand COBOL structure and extract specifications in plain language.
.github/workflows/spec-change-issues.yml GitHub Actions workflow using the SpecOps Action to automatically create issues when specification files are modified. This ensures spec changes generate trackable work items for implementation review.

How to start this exercise

Simply copy the exercise to your account, then give your favorite Octocat (Mona) about 20 seconds to prepare the first lesson, then refresh the page.

Start the exercise

Having trouble? 🤷

When copying the exercise, we recommend the following settings:

  • For owner, choose your personal account or an organization to host the repository.
  • We recommend creating a public repository, since private repositories will use Actions minutes.

If the exercise isn't ready in 20 seconds, please check the Actions tab.

  • Check to see if a job is running. Sometimes it simply takes a bit longer.
  • If the page shows a failed job, please submit an issue. Nice, you found a bug! 🐛

MIT License

About

An interactive lesson showing how to modernize a legacy software project written in Cobol using GitHub Copilot

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •