# Integration Plan Document Template

> Referenced from `steps/step-plan.md` — Markdown template for generated plan documents.

**Write to:** `.claude/gitflow/plans/{branch-name}_{date}.md`

---

```markdown
# Integration Plan: {CURRENT} → {BASE_BRANCH}

**Generated:** {timestamp}
**Status:** PENDING

## Summary

| Field | Value |
|-------|-------|
| Source | {CURRENT} |
| Target | {BASE_BRANCH} |
| Commits | {COMMITS} |
| Strategy | {MERGE_STRATEGY} |
| Merge Back | {MERGE_BACK or "N/A"} |

## Commits to Integrate

{COMMIT_LIST}

## EF Core Analysis

| Check | Status |
|-------|--------|
| Branch migrations | {count} |
| Base migrations | {count} |
| Snapshot diverged | {yes/no} |
| Conflict type | {none/migration/code/both} |

## Pre-Integration Steps

{if migration conflict}
1. [ ] Run `/efcore rebase-snapshot`
2. [ ] Verify migration generates same schema
3. [ ] Run `/gitflow sync`
{endif}

{if code conflict}
1. [ ] Run `/gitflow sync` (includes rebase)
2. [ ] Resolve conflicts manually
3. [ ] Verify build passes
{endif}

## Integration Steps

1. [ ] Create PR: `/gitflow pr`
2. [ ] Review and approve
3. [ ] Merge: `/gitflow merge`
{if release or hotfix}
4. [ ] Merge back to develop
5. [ ] Create tag: v{VERSION}
{endif}
6. [ ] Cleanup: `/gitflow finish`

## Post-Integration

- [ ] Verify CI/CD passes
- [ ] Verify migrations applied
- [ ] Delete source branch
- [ ] Remove worktree
```
