Introduce Fk

Turn a tuple-inferred-identity pattern (`.filter(status=X, created_at__gt=Y).first()`) into an explicit ForeignKey + two-step data migration proposal. Consumes an introduce-fk candidate from /find-implicit-state (or an explicit `OWNER_FILE::OwnerModel -> TARGET_FILE::TargetModel [via fk_name]` target) and emits reports/introduce-fk/<target>/proposal.md with the FK field shape, backfill migration sketch, caller migration table, tie-break strategy, and risks. Read-only — no code edits. Hands off to /fix-workflow or /refactor-subsystem.

KhurrumMahmood Updated

File contents

KhurrumMahmood/senior-vibe-engineer/tree/main/.claude/skills/introduce-fk commit da79f99f07

Frequently asked questions

npx skillmds@latest add khurrummahmood/introduce-fk