Now liveThe Skillselion MCP - thousands of ranked skills, loaded into your agent mid-task. No install.Get it →
tartinerlabs avatar

Project Structure

  • 329 installs
  • 7 repo stars
  • Updated July 26, 2026
  • tartinerlabs/skills

project-structure is a tartinerlabs Claude skill that audits repository layout against five colocation and grouping rules for developers deciding where new code should live in frontend, backend, or monorepo projects.

About

project-structure is a tartinerlabs Claude skill that acts as a repository layout expert for growing codebases. It loads five rules—colocation, anti-patterns, feature-based grouping, layer-based grouping, and framework structure—from dedicated rule files, then runs a three-step workflow: detect project type from indicators like Next.js SPAs, Express APIs, or apps/packages monorepos; audit the tree against all rules with severity-grouped violations; and recommend where new code should live with colocation prioritized. Frontend SPAs and Next.js apps default to feature-based organization, while backend APIs on Express, Fastify, or Hono default to layer-based layouts, and existing patterns are respected rather than rewritten. Developers reach for project-structure when onboarding to an unfamiliar repo, adding a major feature, or suspecting scattered utils and cross-layer imports. Allowed tools are Read, Glob, and Grep for non-destructive analysis.

  • project-structure
  • AI & Agent Building
  • AI-coding skill

Project Structure by the numbers

  • 329 all-time installs (skills.sh)
  • +10 installs in the week ending Jul 27, 2026 (Skillselion tracking)
  • Ranked #2,183 of 16,546 AI & Agent Building skills by installs in the Skillselion catalog
  • Data as of Jul 27, 2026 (Skillselion catalog sync)
npx skills add https://github.com/tartinerlabs/skills --skill project-structure

Add your badge

Show developers this skill is listed on Skillselion. Paste this into your README.

Listed on Skillselion
Installs329
repo stars7
Last updatedJuly 26, 2026
Repositorytartinerlabs/skills

Where should new code live in this repo?

Helps with ai & agent building tasks.

Who is it for?

Developers onboarding to or refactoring growing frontend, backend, or monorepo codebases who need rule-based folder layout guidance.

Skip if: Teams needing runtime performance profiling, security audits, or language-specific lint fixes instead of directory organization decisions.

When should I use this skill?

A developer asks where to place new files, wants a structure audit, or suspects colocation or anti-pattern violations in the repository tree.

What you get

Project-type classification, severity-grouped structure violation report, and colocation-first recommendations for new file placement.

  • Structure audit report
  • New-file placement recommendations

By the numbers

  • Enforces 5 project structure rules across dedicated rules/ markdown files
  • Runs a 3-step detect, audit, and recommend workflow
  • Maps Next.js and React SPAs to feature-based organization by default

Files

SKILL.mdMarkdownGitHub ↗

You are a project structure expert.

Read individual rule files in rules/ for detailed explanations and examples.

Rules Overview

RuleImpactFile
ColocationHIGHrules/colocation.md
Anti-patternsHIGHrules/anti-patterns.md
Feature-based groupingMEDIUMrules/feature-based.md
Layer-based groupingMEDIUMrules/layer-based.md
Framework structureMEDIUMrules/framework-structure.md

Workflow

Step 1: Detect Project Type

Scan for project indicators to determine the appropriate organisation approach:

  • Frontend SPA / Next.js / React → feature-based
  • Backend API / Express / Fastify / Hono → layer-based
  • Monorepo (apps/ + packages/) → hybrid
  • Existing structure → respect and extend current patterns

Step 2: Audit

Check the existing structure against all rules. Report violations grouped by severity with directory paths.

Step 3: Recommend

Based on project type and existing patterns, recommend where new code should live. Always prioritise colocation.

Related skills

How it compares

Use project-structure for folder-layout and colocation decisions; use a linter or architecture-review skill when the issue is code quality inside files rather than directory organization.

FAQ

How many rules does project-structure check?

project-structure checks five rules loaded from rules/: colocation, anti-patterns, feature-based grouping, layer-based grouping, and framework structure. Violations are reported with directory paths grouped by severity.

Does project-structure rewrite my repository automatically?

No. project-structure uses Read, Glob, and Grep to analyze layout and recommend where new code should live. It respects existing patterns and prioritizes colocation without moving files unless a developer acts on the advice.

This week in AI coding

Five minutes, every Monday - the tools, releases and tactics for developers.

unsubscribe anytime.