design-sync
Skill315 starsChanged 10 months agoApache-2.0View on GitHub
Check DESIGN.md synchronization with codebase architecture
2 other projects use a version of this.
Adopted by
Most recently taken up by
- me2resh/apexyardtheir own version, first seen Oct 8, 2026
- vikisingh23/neuraforge-aitheir own version, first seen May 4, 2026
Other versions2 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 2
- me2resh/apexyard★ 542same name
- vikisingh23/neuraforge-ai★ 4same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository8 other files it gives its agents.
- AGENTS.mdAGENTS.md
- commit-helperSkill
- deep-analyseSkill
- docs-drift-reviewSkill
- doc-syncSkill
- sanity-checkSkill
- theme-auditSkill
- worktree-managerSkill
The file
We split this skill into the rules it gives an agent
9 rules. About 0 are common, 9 are distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈9
Distinctive · estimate
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 8
Verify that DESIGN.md accurately reflects the current codebase architecture.
- Distinctive: line 45
Verify the file still exists at that path
- Distinctive: line 46
Check if line numbers still point to the documented code section
- Distinctive: line 47
If lines have shifted due to refactoring, report the new correct line numbers
- Distinctive: line 64
Check for circular dependencies (which violate documented patterns)
- Distinctive: line 67
Verify the count of theme fields matches between documentation and actual code
- Distinctive: line 68
If counts differ, identify which fields are missing from documentation
- Distinctive: line 115
After merging large architectural PRs
- Distinctive: line 116
When DESIGN.md feels outdated
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
DESIGN.md Synchronization Check
Verify that DESIGN.md accurately reflects the current codebase architecture.
Current Directory Structure
!ls -la internal/ | grep '^d'
DESIGN.md Directory Section
!sed -n '/^## Directory Structure/,/^## /p' DESIGN.md | head -50
Critical File References from DESIGN.md
!grep -oE 'internal/[a-z/]+\.go:[0-9]+-[0-9]+' DESIGN.md | sort -u
Recent Changes Since Last DESIGN.md Update
!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
Current Package Import Graph
!go list -f '{{.ImportPath}}: {{join .Imports ", "}}' ./internal/... 2>/dev/null | grep 'lazyworktree/internal' | head -30
DESIGN.md Metadata
!head -20 DESIGN.md | grep -E '(Last updated|Version)'
Theme Fields Documented vs Actual
!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
Analysis Instructions
Based on the data above, check for:
1. Directory Structure Drift
- Are there new directories under
internal/not documented in DESIGN.md? - Have documented directories been removed or renamed?
- Compare the actual directory listing with the documented structure section
2. Critical File References
- Extract all
file:line-rangereferences from DESIGN.md (e.g.,app.go:77-210) - For each reference:
- Verify the file still exists at that path
- Check if line numbers still point to the documented code section
- If lines have shifted due to refactoring, report the new correct line numbers
- Report any broken references or significant drift
3. Recent Architectural Changes
- Review files changed since the last DESIGN.md update
- Identify if changes affect documented abstractions:
- BubbleTea Model/Update/View pattern
- Git service semaphore implementation
- Screen manager stack
- Theme system
- Config cascade
- Flag changes to critical files that may require DESIGN.md updates
4. Import Graph Consistency
- Compare current package imports with the documented dependency graph
- Flag new internal dependencies not mentioned in DESIGN.md
- Flag removed dependencies still documented
- Check for circular dependencies (which violate documented patterns)
5. Theme System Accuracy
- Verify the count of theme fields matches between documentation and actual code
- If counts differ, identify which fields are missing from documentation
6. Staleness Check
- Report if DESIGN.md hasn't been updated in >90 days
- Suggest updating the "Last updated" date if structural changes were made
Report Format
Provide output as:
✅ Up to Date
- List specific aspects that are still accurate and synchronized
⚠️ Needs Minor Updates
- Line number corrections (e.g.,
app.go:77-210 → app.go:87-220) - New directories to add to documentation
- Minor import graph changes
- Theme field count discrepancies
🔴 Needs Major Updates
- New abstractions or components not documented
- Documented components removed or significantly changed
- Architecture decisions that have changed
- Broken file references
📝 Recommended Actions
- Specific edits with DESIGN.md line numbers to update
- New sections to add (with suggested content outline)
- Sections to remove or rewrite
- Line number corrections for all file references
Usage Workflow
When to Invoke /design-sync
Proactive triggers (before committing):
- Added new package under
internal/ - Refactored critical files (app.go, service.go, model.go, etc.)
- Changed architecture pattern (Model-Update-View, semaphore, etc.)
- Added new screen type or theme field
- Modified config cascade or precedence rules
Periodic triggers:
- Quarterly maintenance review
- Before major release
- After merging large architectural PRs
- When DESIGN.md feels outdated
Recommended Workflow
# 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 togetherDoes it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

