Back to list
ruchernchong

folder-org

by ruchernchong

A collection of powertools for Claude Code including specialized agents, slash commands, and skills

0🍴 0📅 Jan 23, 2026

SKILL.md


name: folder-org description: Project code structure and file organization. Use when creating files, organizing components, or deciding where code should live. (project)

Folder Structure

Core Principle: Colocation

Place code as close to where it's relevant as possible. Things that change together should be located together.

Organization Approaches

Group by domain - all related code in one place:

src/features/
├── auth/
│   ├── components/
│   ├── hooks/
│   ├── auth.service.ts
│   └── auth.test.ts
├── users/
└── products/

Layer-Based (Common for Backend)

Group by technical layer:

src/
├── controllers/
├── services/
├── models/
├── routes/
└── middleware/

Monorepo

apps/           # Applications
├── web/
├── api/
packages/       # Shared libraries (by domain, not language)
├── types/
├── utils/
└── ui/

Where to Put Things

TypeLocation
Shared typestypes/ or packages/types/
Utilitieslib/ or utils/ (split by domain)
Configconfig/ or root
Unit testsColocate: foo.test.ts next to foo.ts
E2E testse2e/ or tests/e2e/
Mocks/fixtures__mocks__/ or test/mocks/

Naming Conventions

TypeConvention
Fileskebab-case.ts
Unit tests*.test.ts
E2E tests*.e2e.ts
Schemas*.schema.ts

Anti-Patterns

  • Catch-all files: Avoid utils.ts, helpers.ts - split by domain
  • Deep nesting: Keep < 4 levels, use descriptive names instead
  • Separated unit tests: Don't put all in __tests__/ - colocate instead
  • Language grouping: In monorepos, group by domain not language
  • Bloated barrels: Avoid index.ts with 50+ re-exports

Score

Total Score

65/100

Based on repository quality metrics

SKILL.md

SKILL.mdファイルが含まれている

+20
LICENSE

ライセンスが設定されている

+10
説明文

100文字以上の説明がある

0/10
人気

GitHub Stars 100以上

0/15
最近の活動

1ヶ月以内に更新

+10
フォーク

10回以上フォークされている

0/5
Issue管理

オープンIssueが50未満

+5
言語

プログラミング言語が設定されている

+5
タグ

1つ以上のタグが設定されている

+5

Reviews

💬

Reviews coming soon