Skip to main content

Project Organization Workflow

Transform chaotic folders into well-organized, findable information

This example shows how to use Lovelace CLI to organize project files, create clear structure, and establish naming conventionsβ€”perfect for anyone managing information, technical or not.

Scenario

Alex is managing a growing design system project. Files are scattered across folders with inconsistent naming. Documentation is outdated. Team members can't find what they need. Alex will use Lovelace CLI to create order.

Time to complete: 2-3 hours Technical level: No coding required Output: Organized project structure, clear naming conventions, updated documentation

Phase 1: Assess Current State (20 minutes)

Alex starts by understanding the mess:

$ lovelace chat

πŸ€– Lovelace CLI v1.0.0

You: I need to organize my project files. They're a disaster.

πŸ€– I can help with that! Let me understand what we're working with.

A few questions:
1. What type of project is this? (code, design files, documentation, mixed)
2. Roughly how many files are we talking about?
3. What's the biggest problem? (can't find things, unclear naming, mixed content types?)

You: It's a design system project - Figma files, component documentation, design tokens, and some React code. Maybe 200+ files across 15 folders. The problem is I can't find anything and neither can my team.

πŸ€– Got it - a multi-format design system with findability issues. Let's start with a quick audit.

Can you share your current folder structure? You can use:
  β€’ Paste it here
  β€’ Or run: ls -R (Mac/Linux) or tree (if installed)

You: /context ./

πŸ€– Thanks! I can see your project structure now. Let me analyze it:

**Current State Analysis:**

πŸ“ Root Issues:
β€’ 8 folders at root level - no clear hierarchy
β€’ Mix of asset types in same folders
β€’ Inconsistent naming (camelCase, snake_case, spaces)

Example of chaos I see:

/components

  • Button v2.fig
  • button-docs.md
  • Button.tsx
  • button_tokens.json
  • old-button.fig

/docs

  • readme.txt
  • CHANGELOG.md
  • random notes.txt
  • meeting-notes-2024.md

**Top 3 Problems:**
1. **No separation** of Figma files vs code vs docs
2. **Versioning nightmare** (v2, old-, final- in names)
3. **Duplicate/outdated** files everywhere

Want me to propose a new structure?

You: Yes, propose a structure

πŸ€– **Proposed Organization Structure:**

design-system/ β”œβ”€β”€ design/ # All design assets β”‚ β”œβ”€β”€ figma/ # Source Figma files β”‚ β”‚ β”œβ”€β”€ components/ β”‚ β”‚ β”œβ”€β”€ foundations/ β”‚ β”‚ └── patterns/ β”‚ β”œβ”€β”€ exports/ # PNG, SVG exports β”‚ └── archive/ # Old versions β”‚ β”œβ”€β”€ code/ # Implementation β”‚ β”œβ”€β”€ components/ # React components β”‚ β”œβ”€β”€ tokens/ # Design tokens β”‚ └── utils/ # Utilities β”‚ β”œβ”€β”€ docs/ # Documentation β”‚ β”œβ”€β”€ guides/ # How-to guides β”‚ β”œβ”€β”€ reference/ # Component specs β”‚ └── decisions/ # Design decisions (ADRs) β”‚ β”œβ”€β”€ assets/ # Supporting files β”‚ β”œβ”€β”€ images/ β”‚ └── fonts/ β”‚ └── admin/ # Project management β”œβ”€β”€ meetings/ β”œβ”€β”€ roadmap/ └── archive/


**Key Principles:**
β€’ Separate by **function** (design, code, docs)
β€’ Clear **naming** hierarchy
β€’ Archive instead of delete
β€’ Single source of truth per asset

Want me to create a migration plan?

What happened:

  • βœ… AI analyzed the messy structure
  • βœ… Identified specific problems
  • βœ… Proposed logical organization
  • βœ… Explained reasoning behind structure

Phase 2: Naming Conventions (30 minutes)

Creating consistent naming rules:

You: Create naming conventions for all these file types

πŸ€– **Naming Convention Guide**

**1. Figma Files**
Format: `[category]-[name]-[version].[stage].fig`

Examples:

foundations-colors-v1.fig components-button-v3.fig patterns-form-layout-v2.draft.fig (draft stage)


Rules:
β€’ Lowercase with hyphens
β€’ Version number (v1, v2, v3)
β€’ Optional stage suffix (.draft, .review, .approved)
β€’ No spaces or underscores

**2. React Components**
Format: `PascalCase.tsx`

Examples:

Button.tsx IconButton.tsx FormField.tsx


Rules:
β€’ PascalCase (capital first letter)
β€’ Descriptive, not abbreviated
β€’ No version numbers (use git)

**3. Design Tokens**
Format: `category.tokens.json`

Examples:

colors.tokens.json spacing.tokens.json typography.tokens.json


Rules:
β€’ Lowercase
β€’ Always `.tokens.json` suffix
β€’ Category name describes content

**4. Documentation**
Format: `component-name.md`

Examples:

button.md form-field.md installation.md


Rules:
β€’ Lowercase with hyphens
β€’ Markdown extension
β€’ Match component name exactly

**5. Exported Assets**
Format: `component-name-variant-size.extension`

Examples:

icon-close-24px.svg button-primary-large.png logo-dark-mode.svg


Rules:
β€’ Lowercase with hyphens
β€’ Include all relevant metadata in name
β€’ Descriptive, not cryptic

**6. Archive Files**
Format: `original-name.YYYY-MM-DD.extension`

Examples:

button-old.2024-01-15.fig legacy-colors.2023-12-01.json


Rules:
β€’ Preserve original name
β€’ Add ISO date before extension
β€’ Never delete, always archive

Want me to create a rename script for your current files?

You: Yes, show me what would change

πŸ€– **Proposed Renaming**

I'll show you what would change with examples from each category:

**Figma Files (15 files):**

Before: Button v2.fig After: components-button-v2.fig Location: design/figma/components/

Before: final-colors.fig After: foundations-colors-v3.fig Location: design/figma/foundations/

Before: old-button.fig After: button-old.2024-01-15.fig Location: design/archive/


**React Components (28 files):**

Before: button.tsx After: Button.tsx Location: code/components/

Before: icon_button.tsx After: IconButton.tsx Location: code/components/


**Documentation (42 files):**

Before: Button Component.md After: button.md Location: docs/reference/

Before: random notes.txt After: project-notes.2024-01-15.md Location: admin/archive/


**Design Tokens (8 files):**

Before: colors-v2.json After: colors.tokens.json Location: code/tokens/

Before: spacing_tokens.json After: spacing.tokens.json Location: code/tokens/


**Total Changes:**
β€’ 93 files to rename
β€’ 87 files to move
β€’ 12 duplicates to archive

**Risk Assessment:**
🟒 Low risk - Most are static assets
🟑 Medium risk - 28 component imports may need updating
πŸ”΄ No high-risk changes

Want me to:
1. Generate shell script to perform these changes
2. Create step-by-step manual instructions
3. Show just high-priority changes first

You: Show step-by-step manual instructions

πŸ€– **Manual Migration Guide**

**Phase 1: Create New Structure (15 minutes)**

Step 1: Create new folders
```bash
mkdir -p design/{figma/{components,foundations,patterns},exports,archive}
mkdir -p code/{components,tokens,utils}
mkdir -p docs/{guides,reference,decisions}
mkdir -p assets/{images,fonts}
mkdir -p admin/{meetings,roadmap,archive}

Step 2: Verify structure created

bash
tree -L 2 .

Phase 2: Move Files by Category (45 minutes)

Step 3: Move Figma files (start here - easiest)

Current location: /components/Button v2.fig
New location: design/figma/components/components-button-v2.fig

Actions:
1. Open file in Figma
2. "Save As" β†’ rename to new convention
3. Save to new location
4. Verify file opens correctly
5. Move original to design/archive/ with date

Repeat for all 15 Figma files. Take breaks - this is tedious.

Step 4: Move documentation (high value, do next)

Priority files to move:
1. Button Component.md β†’ docs/reference/button.md
2. Installation Guide.md β†’ docs/guides/installation.md
3. README.txt β†’ README.md (root level)

Phase 3: Update References (30 minutes)

Step 5: Find broken links in documentation

The CLI can help:


Let me search your docs for file references and suggest updates.

[AI searches and finds]:
β€’ 12 docs reference old file paths
β€’ 8 Figma links need updating
β€’ 5 component imports need fixing

Step 6: Update each reference [AI provides specific line-by-line changes]

Phase 4: Archive Old Files (10 minutes)

Step 7: Move duplicates and old versions

Don't delete! Move to appropriate archive:
β€’ Old Figma files β†’ design/archive/
β€’ Old docs β†’ admin/archive/
β€’ Old code β†’ code/archive/ (create if needed)

Phase 5: Document Changes (10 minutes)

Step 8: Create MIGRATION.md

Document what changed, why, and where things are now.
This helps your team adjust.

Phase 6: Team Communication (5 minutes)

Step 9: Notify team β€’ Share new structure β€’ Explain naming conventions β€’ Link to MIGRATION.md β€’ Schedule Q&A session

Total Time: ~2 hours

Want me to help with any specific step in detail?


---

## Phase 3: Documentation Update (45 minutes)

Alex creates documentation for the new structure:

You: Create a README for this project explaining the new structure

πŸ€– README.md

Design System

Our company's design language and component library

πŸ“ Project Structure

This project is organized into clear functional areas:

design/ - Design Assets

All design source files and exports.

design/
β”œβ”€β”€ figma/         # Source Figma files
β”œβ”€β”€ exports/       # Generated PNG/SVG
└── archive/       # Old versions (don't delete)

Finding design files: β€’ Components: design/figma/components/ β€’ Colors, typography, spacing: design/figma/foundations/ β€’ Complex patterns: design/figma/patterns/

code/ - Implementation

React components and design tokens.

code/
β”œβ”€β”€ components/    # React components
β”œβ”€β”€ tokens/        # JSON design tokens
└── utils/         # Helper functions

Finding components: β€’ Button component: code/components/Button.tsx β€’ Design tokens: code/tokens/colors.tokens.json

docs/ - Documentation

How-tos, component specs, and design decisions.

docs/
β”œβ”€β”€ guides/        # Step-by-step tutorials
β”œβ”€β”€ reference/     # Component documentation
└── decisions/     # Why we made certain choices

Finding documentation: β€’ How to use a component: docs/reference/[component].md β€’ How to contribute: docs/guides/contributing.md

assets/ - Supporting Files

Images, fonts, and other assets.

admin/ - Project Management

Meeting notes, roadmaps, planning documents.

πŸ“ Naming Conventions

Figma Files:

Format: category-name-version.fig
Example: components-button-v3.fig

React Components:

Format: ComponentName.tsx
Example: Button.tsx

Documentation:

Format: component-name.md
Example: button.md

Design Tokens:

Format: category.tokens.json
Example: colors.tokens.json

πŸ” Finding Things

Looking for a component?

  1. Check code/components/ for code
  2. Check design/figma/components/ for designs
  3. Check docs/reference/ for documentation

Looking for design tokens? β€’ All in code/tokens/ with .tokens.json extension

Can't find something? β€’ Check design/archive/ or admin/archive/ β€’ Ask in #design-system Slack channel

πŸš€ Quick Start

New to this project?

  1. Read docs/guides/getting-started.md
  2. Browse components in code/components/
  3. Check Figma files in design/figma/

πŸ“ž Contact

Questions? Reach out: β€’ Slack: #design-system β€’ Email: design-team@company.com β€’ Lead: Alex (alex@company.com)


Want me to add sections for: β€’ Contributing guidelines β€’ Version history β€’ Links to Figma workspace β€’ Installation instructions


**What happened:**
- βœ… Created clear, scannable documentation
- βœ… Included visual structure diagrams
- βœ… Added "how to find things" guidance
- βœ… Covered common questions

---

## Phase 4: Team Onboarding (30 minutes)

Creating materials to help the team adapt:

You: Create a quick reference guide for the team

πŸ€– Quick Reference: New Project Structure

Print this and pin it to your desk πŸ“Œ

Where Did Everything Go?

Looking for...Check here
Figma component filesdesign/figma/components/
Color/spacing tokensdesign/figma/foundations/
React componentscode/components/
Component docsdocs/reference/
Design tokens (JSON)code/tokens/
Exported icons/imagesdesign/exports/
Old versionsdesign/archive/
Meeting notesadmin/meetings/

File Naming Cheat Sheet

Figma:        components-button-v3.fig
React:        Button.tsx
Docs:         button.md
Tokens:       colors.tokens.json
Exports:      icon-close-24px.svg
Archives:     old-file.2024-01-15.fig

Common Tasks

Finding a component:

  1. Code: code/components/Button.tsx
  2. Design: design/figma/components/components-button-v2.fig
  3. Docs: docs/reference/button.md

Adding a new component:

  1. Create Figma file: design/figma/components/components-[name]-v1.fig
  2. Build React component: code/components/[Name].tsx
  3. Extract tokens: code/tokens/[category].tokens.json
  4. Document it: docs/reference/[name].md

Versioning files: β€’ Figma: Use v1, v2, v3 in filename β€’ React: Use git (no version in filename) β€’ Tokens: Use git (no version in filename)

Archiving old files:

Don't delete!
Move to archive folder with date:
old-button.2024-01-15.fig

Questions? β€’ Check README.md first β€’ Ask in #design-system β€’ DM Alex if urgent


Pro tip: Bookmark README.md - it has detailed explanations of everything!


Want me to create: β€’ FAQ document β€’ Migration guide for specific workflows β€’ Training video script


---

## What Alex Accomplished

In **2-3 hours**, Alex:

1. βœ… Audited current mess and identified problems
2. βœ… Designed logical organization structure
3. βœ… Created comprehensive naming conventions
4. βœ… Generated step-by-step migration guide
5. βœ… Documented new structure in README
6. βœ… Created team quick reference guide

**No coding required**β€”just conversational problem-solving with AI.

## Key Takeaways

### Universal File Organization Principles

The AI helped Alex apply proven organizational principles:
- **Separation of concerns** (design vs code vs docs)
- **Consistent naming** (predictable = findable)
- **Never delete** (archive with dates)
- **Single source of truth** (one place per file type)

### For Anyone Managing Information

You can use this workflow for:
- Personal file organization
- Team shared drives
- Documentation systems
- Asset management
- Knowledge bases

### Best Practices

**Start with assessment:**
- Show AI your current state
- Let it identify specific problems
- Get objective analysis

**Iterate on structure:**
- Propose ideal structure
- Refine based on constraints
- Validate with AI before implementing

**Document everything:**
- README for high-level structure
- Quick reference for daily use
- Migration guide for transition

**Communicate clearly:**
- Explain why changes were made
- Provide before/after examples
- Make it easy to adapt

## Try It Yourself

Start organizing your files:

```bash
$ lovelace chat "Help me organize my project files"

The AI will ask questions to understand your situation and guide you through reorganization.

Related Examples