From claude-resources
Project structure principles. Use when starting a new project, major restructuring, or auditing package dependencies. Pair with language-specific project-init skill.
npx claudepluginhub deandum/claude-resources --plugin go-skillsThis skill uses the workspace's default tool permissions.
Organize code by domain entity, not by technical layer.
Searches, retrieves, and installs Agent Skills from prompts.chat registry using MCP tools like search_skills and get_skill. Activates for finding skills, browsing catalogs, or extending Claude.
Searches prompts.chat for AI prompt templates by keyword or category, retrieves by ID with variable handling, and improves prompts via AI. Use for discovering or enhancing prompts.
Guides agent creation for Claude Code plugins with file templates, frontmatter specs (name, description, model), triggering examples, system prompts, and best practices.
Organize code by domain entity, not by technical layer.
Group code by business entity (user, order, product), not by type (controllers, models, services). Layered architecture scatters related feature code across directories — a single "user" change touches controllers/, models/, services/, and repositories/. Entity-focused keeps related code together so a feature change touches one package.
Each entity package encapsulates:
Shared infrastructure in dedicated packages:
| Type | Key Structure |
|---|---|
| Service (HTTP/gRPC) | entry point + internal packages (entity + cross-cutting) + migrations |
| CLI Tool | entry point + internal packages (commands + config) |
| Library | root API surface + internal implementation + examples |
Check periodically:
| Shortcut | Reality |
|---|---|
| "Flat structure is simpler" | Flat becomes chaos at scale. Entity-focused packages scale naturally. |
| "We need a utils package" | Utils is a code smell. Put code where it belongs by domain. |
| "Layered architecture is standard" | Layers scatter related code. Entity-focused keeps related code together. |
| "We'll restructure later" | Structure is expensive to change. Get it right early. |