Date: 2026-01-30
Estimated Time: 50 minutes
Status: ⏳ AWAITING APPROVAL
REORGANIZATION_SUMMARY.mdREORGANIZATION_PLAN.mdVISUAL_COMPARISON.mdcd /Users/darrenhinde/Documents/GitHub/MYBUSINESS/OpenAgentsControl
# Create backup commit
git add .opencode/context/development/
git commit -m "backup: development context before reorganization"
# Note the commit hash for rollback
git log -1 --oneline
Validation: ✅ Commit created successfully
# Create frontend/react directory
mkdir -p .opencode/context/development/frontend/react
Validation: ✅ Directory exists
# Move file
mv .opencode/context/development/react-patterns.md \
.opencode/context/development/frontend/react/react-patterns.md
Validation:
# Delete 4 UI duplicate files
rm .opencode/context/development/animation-patterns.md
rm .opencode/context/development/design-systems.md
rm .opencode/context/development/ui-styling-standards.md
rm .opencode/context/development/design-assets.md
Validation:
# Delete 2 principle duplicate files
rm .opencode/context/development/clean-code.md
rm .opencode/context/development/api-design.md
Validation:
# Delete redundant READMEs
rm .opencode/context/development/README.md
rm .opencode/context/development/ai/mastra-ai/README.md
Validation:
Create: .opencode/context/development/frontend/react/navigation.md
# React Development
**Purpose**: Modern React patterns, hooks, and component design
---
## Files
| File | Description | Priority |
|------|-------------|----------|
| [react-patterns.md](react-patterns.md) | React hooks, components, state management | high |
---
## Related Context
- **UI Styling** → `../../../ui/web/ui-styling-standards.md`
- **Animations** → `../../../ui/web/animation-patterns.md`
- **Clean Code** → `../../principles/clean-code.md`
Validation:
File: .opencode/context/development/navigation.md
Changes:
Key sections to update:
Validation:
File: .opencode/context/development/ui-navigation.md
Changes:
Find and replace:
- | **React patterns** | `frontend/react/hooks-patterns.md` [future] |
+ | **React patterns** | `frontend/react/react-patterns.md` |
Validation:
File: .opencode/context/development/frontend/navigation.md
Changes:
Validation:
File: .opencode/profiles/developer/profile.json
Find and replace (4 updates):
- "context:development/ui-styling-standards",
+ "context:ui/web/ui-styling-standards",
- "context:development/design-systems",
+ "context:ui/web/design-systems",
- "context:development/design-assets",
+ "context:ui/web/design-assets",
- "context:development/animation-patterns",
+ "context:ui/web/animation-patterns",
Validation:
File: .opencode/context/core/visual-development.md
Find and replace (6 updates):
- | **Animation patterns** | `development/animation-patterns.md` | - | - |
+ | **Animation patterns** | `ui/web/animation-patterns.md` | - | - |
- | **Design system** | `development/design-systems.md` | - | - |
+ | **Design system** | `ui/web/design-systems.md` | - | - |
- | **UI standards** | `development/ui-styling-standards.md` | - | - |
+ | **UI standards** | `ui/web/ui-styling-standards.md` | - | - |
- - **Animation Patterns**: `.opencode/context/development/animation-patterns.md`
+ - **Animation Patterns**: `.opencode/context/ui/web/animation-patterns.md`
- - **Design Systems**: `.opencode/context/development/design-systems.md`
+ - **Design Systems**: `.opencode/context/ui/web/design-systems.md`
- - **UI Styling Standards**: `.opencode/context/development/ui-styling-standards.md`
+ - **UI Styling Standards**: `.opencode/context/ui/web/ui-styling-standards.md`
Validation:
File: .opencode/context/core/workflows/design-iteration.md
Find and replace (4 updates):
- - [Animation Patterns](../development/animation-patterns.md)
+ - [Animation Patterns](../ui/web/animation-patterns.md)
- - [Design Systems Context](../development/design-systems.md)
+ - [Design Systems Context](../ui/web/design-systems.md)
- - [UI Styling Standards](../development/ui-styling-standards.md)
+ - [UI Styling Standards](../ui/web/ui-styling-standards.md)
- - [Design Assets](../development/design-assets.md)
+ - [Design Assets](../ui/web/design-assets.md)
Validation:
File: .opencode/context/openagents-repo/lookup/file-locations.md
Find and replace (1 update):
- - `.opencode/context/development/react-patterns.md`
+ - `.opencode/context/development/frontend/react/react-patterns.md`
Validation:
# Count files
find .opencode/context/development -type f -name "*.md" | wc -l
Expected: 26 files
Validation:
# Check that deleted files are gone
ls .opencode/context/development/animation-patterns.md 2>/dev/null
ls .opencode/context/development/design-systems.md 2>/dev/null
ls .opencode/context/development/ui-styling-standards.md 2>/dev/null
ls .opencode/context/development/design-assets.md 2>/dev/null
ls .opencode/context/development/clean-code.md 2>/dev/null
ls .opencode/context/development/api-design.md 2>/dev/null
ls .opencode/context/development/README.md 2>/dev/null
ls .opencode/context/development/ai/mastra-ai/README.md 2>/dev/null
Expected: All commands should return "No such file or directory"
Validation:
# Check that react-patterns.md moved
ls .opencode/context/development/react-patterns.md 2>/dev/null
ls .opencode/context/development/frontend/react/react-patterns.md
Expected:
Validation:
# Validate JSON syntax
cat .opencode/profiles/developer/profile.json | jq . > /dev/null
Expected: No errors
Validation:
Manually check:
.opencode/context/development/navigation.md - All links work.opencode/context/development/ui-navigation.md - All links work.opencode/context/development/frontend/navigation.md - All links work.opencode/context/development/frontend/react/navigation.md - All links workValidation:
# Stage all changes
git add .opencode/
# Commit with descriptive message
git commit -m "refactor(context): reorganize development folder
- Remove 7 duplicate files (ui/design files exist in ui/web/)
- Remove 2 redundant READMEs (use navigation.md instead)
- Move react-patterns.md to frontend/react/
- Update 4 navigation files
- Update developer profile (4 path changes)
- Update 3 core context files (11 path changes)
Result: 26 files (down from 36), no duplicates, clean structure
Refs: REORGANIZATION_PLAN.md, REORGANIZATION_SUMMARY.md"
Validation:
If issues are discovered:
# Find backup commit
git log --oneline | head -5
# Rollback to backup (replace <hash> with actual commit hash)
git reset --hard <backup-commit-hash>
# Or restore specific files
git checkout <backup-commit-hash> -- .opencode/context/development/
git checkout <backup-commit-hash> -- .opencode/profiles/developer/profile.json
git checkout <backup-commit-hash> -- .opencode/context/core/
git checkout <backup-commit-hash> -- .opencode/context/openagents-repo/lookup/
✅ All steps completed without errors
✅ All validations passed
✅ File count correct (26 files)
✅ No duplicate files
✅ All references updated
✅ Developer profile works
✅ Navigation links work
✅ Git commit created
| Step | Estimated | Actual | Notes |
|---|---|---|---|
| 1. Backup | 1 min | ||
| 2. Create dirs | 1 min | ||
| 3. Move file | 1 min | ||
| 4. Delete UI dupes | 1 min | ||
| 5. Delete principle dupes | 1 min | ||
| 6. Delete READMEs | 1 min | ||
| 7. Create nav file | 5 min | ||
| 8. Update dev nav | 3 min | ||
| 9. Update ui nav | 2 min | ||
| 10. Update frontend nav | 3 min | ||
| 11. Update profile | 5 min | ||
| 12. Update visual-dev | 5 min | ||
| 13. Update design-iteration | 5 min | ||
| 14. Update file-locations | 2 min | ||
| 15. Validate count | 2 min | ||
| 16. Validate dupes | 2 min | ||
| 17. Validate move | 1 min | ||
| 18. Test profile | 3 min | ||
| 19. Test nav | 3 min | ||
| 20. Commit | 2 min | ||
| TOTAL | 50 min |
Use this space to record any issues, deviations, or observations during execution:
[Add notes here]
Status: ⏳ Ready for execution after approval
Next Step: Obtain approval, then execute steps 1-20 in order