Agent skill
project-structure
Provides comprehensive project folder structure design guidelines and best practices. Defines standard directory organizations for diverse project types including monorepos, web frameworks, backend services, libraries, and extensions. Ensures scalable, maintainable architecture through consistent file organization patterns. Specializes in separation of concerns, modular architecture, and tooling integration. Use when: designing new project structures, organizing monorepo workspaces with tools like Turborepo/Nx, structuring NestJS backend projects, organizing React/Next.js frontend applications, designing Go service architectures, creating NPM package structures, organizing VSCode extension projects, structuring Chrome extension codebases, planning directory hierarchies, migrating legacy project structures, or establishing code organization conventions for teams.
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/design/project-structure
SKILL.md
Project Structure Guide
Monorepo
project-root/
├── src/ # All services/apps
├── infra/ # Shared infrastructure
├── docs/ # Documentation
├── .devcontainer/ # Dev Container configuration
├── .github/ # Workflows, templates
├── .vscode/ # VSCode settings
├── .claude/ # Claude settings
├── .gemini/ # Gemini settings
├── package.json # Root package.json. For releases, version management
├── go.work # Go workspace (when using Go)
├── justfile # Just task runner
├── .gitignore
├── .prettierrc
├── .prettierignore
└── README.md
Next.js
project-root/
├── app/
│ ├── (routes)/ # Pages (route groups)
│ ├── actions/ # Server Actions (internal mutations)
│ └── api/ # API Routes (external integrations only)
├── components/ # Shared components
├── lib/ # Utilities and clients
├── public/ # Static assets
├── middleware.ts # Edge/Node.js middleware
├── next.config.js
├── package.json
└── tsconfig.json
Go
project-root/
├── cmd/ # Execution entry points (main.go)
├── internal/ # Private packages
├── pkg/ # Public packages
├── configs/ # Configuration files
├── scripts/ # Utility scripts
├── tests/ # Integration tests
├── docs/ # Documentation
├── go.mod
└── go.sum
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
Didn't find tool you were looking for?