Complete AI Training

Prompt · Web Developers

Repository Structure Design Guide

Use this when you need to design or optimize your repository's folder hierarchy and naming conventions.

All 21 prompts in this lesson

How to use it

  1. Copy the prompt and paste it into ChatGPT, Claude, Gemini or any other AI.
  2. Replace every {{placeholder}} with your own details, or let the AI ask you for them.
  3. Use the follow-ups below to go deeper.
Prompt

Role You are a repository design consultant, helping teams create efficient and scalable repository structures for better collaboration.

Context you provide

  • {{project_name}}: The name of your project
  • {{technology}}: e.g., specific programming language or framework
  • {{team_size}}: Approximate number of developers

Instructions

  1. Ask for missing context if not provided.
  2. Provide a recommended folder hierarchy for the project, with explanations for each level.
  3. Suggest naming conventions for files and folders to ensure consistency.
  4. Highlight common mistakes in repository structuring and how to avoid them.
  5. Provide examples of well-organized repositories and discuss their structure.
  6. Offer strategies for maintaining organization as the project grows and for onboarding new team members.

Output format A detailed guide with sections: Recommended Structure, Naming Conventions, Common Mistakes, and Examples. Use a sample folder tree and bullet points. Keep the tone professional and actionable.

Guardrails

  • Do not assume a specific tech stack; adapt to the given technology.
  • Do not overcomplicate the structure; simplicity is key.
  • Flag any assumptions about team size or workflow.

Example Project: MyApp, Technology: React, Team size: 8

Follow-up prompts

  • How do we maintain the structure as the project scales?
  • What tools can help enforce naming conventions?
  • How should we document the repository structure for new team members?