migration-scoring
БесплатноБез исполняемых скриптовНе проверенEvaluate code migration quality with coverage, correctness, and style scoring. Generates executive reports with actionable recommendations.
от OpenHands★ 190 звёзд на GitHubОб этом скилле
Comprehensive quality evaluation for code migration projects.
Overview
This plugin evaluates completed migrations through multiple lenses:
- Mapping — Document source-to-target file relationships
- Quality Scoring — Measure coverage and correctness
- Style Scoring — Evaluate code quality and conventions
- Reporting — Generate executive summary with recommendations
Prerequisites
- Completed migration with both source and target code present
- Python 3.13 with
uv - LLM API key (Anthropic or OpenAI)
- Optional: Custom style rubric file
Quick Start
export LLM_API_KEY="your-api-key"
export LLM_MODEL="anthropic/claude-3-5-sonnet-20241022"
uv run python -m lc_sdk_examples.migration_scoring \
--src-path /path/to/migration/project \
--rubric-path /path/to/style_rubric.txt
PowerShell equivalent for the environment setup:
$env:LLM_API_KEY = "your-api-key"
$env:LLM_MODEL = "anthropic/claude-3-5-sonnet-20241022"
uv run python -m lc_sdk_examples.migration_scoring `
--src-path C:\path\to\migration\project `
--rubric-path C:\path\to\style_rubric.txt
Workflow Phases
Phase 1: Migration Mapping
See ../migration-mapping/SKILL.md
Creates a source→target file mapping:
- Identifies which target files implement each source file
- Supports many-to-many relationships
- Flags unmigrated source files
Output: migration_mapping.json
{
"CALC001.cbl": ["InvoiceCalculator.java", "TaxCalculator.java"],
"CUST002.cbl": ["CustomerService.java"]
}
Phase 2: Quality Scoring
Scores each source file on:
- Coverage (1-5): How much functionality was migrated
- Correctness (1-5): How accurately behavior was preserved
Output: migration_score.json
{
"CALC001.cbl": {
"coverage": 4,
"correctness": 5,
"justification": "All calculation logic migrated..."
}
}
Phase 3: Style Scoring
Evaluates target code against style guidelines:
- Naming conventions
- Code organization
- Error handling
- Documentation
- Idiomaticity
Output: style_score.json
Phase 4: Executive Report
See ../migration-report/SKILL.md
Generates a comprehensive report:
- Overall health assessment
- Score statistics and distribution
- Risk categorization (Green/Yellow/Red)
- Prioritized recommendations
Output: final_report.md
Output Structure
your-project/
├── .lc-sdk/
│ ├── migration_mapping.json
│ ├── migration_score.json
│ ├── style_score.json
│ └── final_report.md
Scoring Criteria
See ../score-quality/references/scoring-criteria.md for the 1-5 scoring scales.
Risk Categories
- Green: All scores ≥ 4
- Yellow: Any score 3-4
- Red: Any score < 3
Установить migration-scoring в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл migration-scoring?
Evaluate code migration quality with coverage, correctness, and style scoring. Generates executive reports with actionable recommendations.
Как установить скилл migration-scoring?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл migration-scoring запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic