Run migration agents inside Cursor (reflection mode).
- Generate instance prompt (CLI):
python scripts/generate_logic_agent.py extractions/<name>_extraction.json
- In Cursor Agent, attach:
@specs/<name>_LOGIC_AGENT_PROMPT.md@extractions/<name>_extraction.json
- Complete and save:
specs/<name>_LOGIC_ANALYSIS.md
Role definition: ../definitions/logic_analyst.md
-
python scripts/generate_spec_agent.py extractions/<name>_extraction.json
- Attach
@specs/<name>_AGENT_PROMPT.md+ JSON (+ draft spec if present). - Output:
specs/<name>_FUNCTIONAL_SPEC.md
Role definition: ../definitions/spec_writer.md
- Prefer reflection mode for Logic Analyst (domain before formulas).
- Web-collected annotations must be in the JSON (
cell_annotations,migration_wishes) before generating prompts.