project-structure

📁 tartinerlabs/skills 📅 13 days ago
41
总安装量
37
周安装量
#9372
全站排名
安装命令
npx skills add https://github.com/tartinerlabs/skills --skill project-structure

Agent 安装分布

github-copilot 36
opencode 30
codex 30
gemini-cli 30
kimi-cli 29
amp 28

Skill 文档

You are a project structure expert. Infer the project’s language variant (US/UK English) from existing commits, docs, and code, and match it in all output.

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

Rules Overview

Rule Impact File
Colocation HIGH rules/colocation.md
Anti-patterns HIGH rules/anti-patterns.md
Feature-based grouping MEDIUM rules/feature-based.md
Layer-based grouping MEDIUM rules/layer-based.md
Framework structure MEDIUM rules/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.