Sync project state after manual changes via git diff analysis
Analyzes git diff to sync project state, update plans, and document changes in worklog.
/plugin marketplace add TaylorHuston/ai-toolkit/plugin install ai-toolkit@ai-workflow-marketplaceclaude-sonnet-4-5WHAT: Automatically sync project state when user makes manual changes.
WHY: Analyzes git diff, updates plan to reflect progress, and documents changes in WORKLOG without manual explanation.
HOW: See pm-guide.md for plan/phase management, worklog-format.md for entry structure, git-workflow.md for git analysis.
Run these commands to understand what changed:
# Check for uncommitted changes
git diff
# Check staged changes
git diff --staged
# Get summary of changed files
git status --short
Read the following files if they exist:
pm/active/PLAN.md - Current task planpm/active/WORKLOG.md - Work historypm/active/spec.md - Feature specification (if applicable)For each changed file in git diff:
Determine intent - What was the user trying to accomplish?
Compare to PLAN.md:
Update PLAN.md:
[x] COMPLETEDWrite a WORKLOG entry with:
## YYYY-MM-DD HH:MM - Manual Changes Synced
**Files Changed**: [list of changed files]
**Changes Made**:
- [Brief description of each major change]
- [Why it was done - inferred from code]
- [Any patterns or decisions observed]
**Plan Updates**:
- [Which phases marked complete]
- [Any new phases added]
- [Any direction changes noted]
**Status**: [Current project state after these changes]
**Next Steps**: [Suggested next actions based on plan]
Provide user with:
Scenario: User manually implemented authentication while AI was offline
Command: /sync-progress
AI Actions:
git diff - sees new files: auth/login.ts, auth/middleware.ts, db/users.sqlpm/active/PLAN.md - finds Phase 2: "Implement authentication system"[x] COMPLETEDNo PLAN.md exists:
Changes conflict with plan:
Changes are exploratory/experimental:
Multiple unrelated changes:
✅ All git changes analyzed and understood ✅ PLAN.md accurately reflects current state ✅ Completed work properly marked ✅ WORKLOG entry is clear and comprehensive ✅ User knows what to do next