viraj-dhanushka/ghost-in-the-macro
Migrate business logic out of an Excel workbook into plain-English EARS rules and a pure Python module, with a proof report that checks the new code against the original workbook recalculated by headless LibreOffice.
Examine an Excel workbook (.xlsx/.xlsm) before migration. Reports metrics, proposed inputs and outputs, thresholds, findings, VBA and constructs that cannot be converted. Use first when the user asks to migrate or understand a spreadsheet.
Non-negotiable rules for every Ghost migration (no behaviour change without a Decision, Decimal for money, Excel rounding, no macros from untrusted files, no invented data). Read this before using any other Ghost skill.
Write logic.py and mapping.yaml for a migration from its rules spec, as a pure Python compute(inputs) function. Use after write-rules-spec.
Record a human Decision on a Finding or Mismatch (for example a workbook inconsistency) in decisions.yaml. Use only after the user has chosen the correct behaviour.
Recommend whether Ghost converts a workbook, AWS Transform custom does, or both (Split), and hand off to the AWS Transform power.
Verify a migrated compute(inputs) module against the original workbook recalculated by LibreOffice (the Referee) and write the proof report. Use after implement-from-rules or whenever the code or a Decision changes.
Create the migration spec folder .kiro/specs/<migration>/ with EARS business rules, traceability and findings from a workbook. Use after the autopsy skill.