一键导入
design-sync
Check DESIGN.md synchronization with codebase architecture
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Check DESIGN.md synchronization with codebase architecture
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
| name | design-sync |
| description | Check DESIGN.md synchronization with codebase architecture |
Verify that DESIGN.md accurately reflects the current codebase architecture.
!ls -la internal/ | grep '^d'
!sed -n '/^## Directory Structure/,/^## /p' DESIGN.md | head -50
!grep -oE 'internal/[a-z/]+\.go:[0-9]+-[0-9]+' DESIGN.md | sort -u
!git log --since="$(git log -1 --format=%ai DESIGN.md 2>/dev/null || echo '1 month ago')" --name-only --oneline -- 'internal/**/*.go' | grep -E '^internal/' | sort -u
!go list -f '{{.ImportPath}}: {{join .Imports ", "}}' ./internal/... 2>/dev/null | grep 'lazyworktree/internal' | head -30
!head -20 DESIGN.md | grep -E '(Last updated|Version)'
!echo "=== Documented theme fields ===" && grep -A 20 'type Theme struct' DESIGN.md | grep -oE '^\s+[A-Z][a-zA-Z]+' | wc -l && echo "=== Actual theme fields ===" && grep -A 30 'type Theme struct' internal/app/theme.go | grep -oE '^\s+[A-Z][a-zA-Z]+' | wc -l
Based on the data above, check for:
internal/ not documented in DESIGN.md?file:line-range references from DESIGN.md (e.g., app.go:77-210)Provide output as:
app.go:77-210 → app.go:87-220)/design-syncProactive triggers (before committing):
internal/Periodic triggers:
# 1. Make architectural changes
# 2. Run design-sync skill
/design-sync
# 3. Review output for needed updates
# 4. Update DESIGN.md based on recommendations
# 5. Update "Last updated" date in DESIGN.md
# 6. Re-run to verify
/design-sync # Should now show ✅ Up to Date
# 7. Commit changes together
Analyze repository documentation for implementation drift, stale examples, missing coverage, spelling/clarity issues, and reorganization opportunities; produce a prioritized report with exact file references and proposed fixes.
Create, list, switch to, rename, delete, and manage notes for git worktrees using lazyworktree CLI
Check documentation consistency across README, man page, and help screen
Generate conventional commit from staged changes
Thorough code analysis without polluting main context
Run full quality check with live results