Back to list
lovedragonball

legacy-modernization

by lovedragonball

32🍴 4📅 Jan 17, 2026

SKILL.md


name: legacy-modernization description: Modernize legacy applications and codebases. Use for COBOL conversion, framework upgrades, and technical debt reduction.

🏗️ Legacy Modernization Skill

Modernization Patterns

Strangler Fig Pattern

1. Create new service alongside legacy
2. Route new features to modern service
3. Gradually migrate existing features
4. Eventually retire legacy system

Anti-Corruption Layer

// Legacy API returns old format
const legacyResponse = await legacyApi.getUser(id);
// { usr_id: 1, usr_nm: 'John', usr_email: 'john@example.com' }

// Transform to modern format
const modernUser = {
  id: legacyResponse.usr_id,
  name: legacyResponse.usr_nm,
  email: legacyResponse.usr_email
};

Common Modernization Tasks

JavaScript Upgrades

// ES5 → ES6+
// var → const/let
var name = 'John';  // ❌
const name = 'John'; // ✅

// function → arrow
function add(a, b) { return a + b; }  // Old
const add = (a, b) => a + b;          // Modern

// Callback → Promise → Async/Await
// Callback
getData(function(err, data) { ... });
// Promise
getData().then(data => ...).catch(err => ...);
// Async/Await
const data = await getData();

jQuery → Vanilla JS

// jQuery
$('.button').click(function() { ... });
$('#result').html(data);

// Vanilla JS
document.querySelector('.button').addEventListener('click', () => { ... });
document.getElementById('result').innerHTML = data;

Class → Functional (React)

// Class Component
class Counter extends Component {
  state = { count: 0 };
  componentDidMount() { ... }
  render() { return <div>{this.state.count}</div>; }
}

// Functional + Hooks
function Counter() {
  const [count, setCount] = useState(0);
  useEffect(() => { ... }, []);
  return <div>{count}</div>;
}

Database Modernization

FromToStrategy
SQL ServerPostgreSQLpg_chameleon
MySQLPostgreSQLpgloader
OraclePostgreSQLora2pg
MongoDB → SQLPrismaCustom scripts

Modernization Checklist

  • Document current architecture
  • Identify pain points
  • Create incremental plan
  • Set up parallel testing
  • Migrate with feature flags
  • Monitor and validate
  • Roll back if needed
  • Decommission legacy

Score

Total Score

50/100

Based on repository quality metrics

SKILL.md

SKILL.mdファイルが含まれている

+20
LICENSE

ライセンスが設定されている

0/10
説明文

100文字以上の説明がある

0/10
人気

GitHub Stars 100以上

0/15
最近の活動

3ヶ月以内に更新がある

0/10
フォーク

10回以上フォークされている

0/5
Issue管理

オープンIssueが50未満

+5
言語

プログラミング言語が設定されている

+5
タグ

1つ以上のタグが設定されている

0/5

Reviews

💬

Reviews coming soon