project-structure-guide

Solid

依各語言的最佳實踐組織專案目錄結構的指南。 Use when: 建立專案、重整結構、新增模組、設定建置流程、決定檔案該放哪裡。 Not for: 專門為 AI 導覽而設計的結構——請用 /ai-friendly-architecture;原地重整既有程式碼——請用 /refactor。 Keywords: project, structure, directory, layout, gitignore, scaffold, file placement, utils, helpers, shared, 專案結構, 目錄配置, 檔案擺放.

Code & Development 71 stars 13 forks Updated today NOASSERTION

Install

View on GitHub

Quality Score: 81/100

Stars 20%
62
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# 專案結構指南 > **Language**: [English](../../../../skills/project-structure-guide/SKILL.md) | 繁體中文 **版本**:1.1.0 **最後更新**:2026-03-04 **適用性**:Claude Code Skills --- ## 目的 此技能提供根據語言和框架慣例建構專案的指引,協助建立一致、可維護的目錄佈局。 ## 觸發時機 在以下情況使用此技能: - 建立新專案 - 重組現有專案結構 - 新增模組或功能 - 設定建構配置 - 建立 .gitignore 檔案 - 決定檔案的放置位置(程式碼、文件、設定、資源) - 在 utils/、helpers/、shared/、lib/ 或 internal/ 之間做選擇 - 放置開發中間產物(腦力激盪、RFC、POC、技術調查) ## 支援的語言 | 語言 | 框架/模式 | |------|-----------| | Node.js | Express、NestJS、Next.js | | Python | Django、Flask、FastAPI | | Java | Spring Boot、Maven、Gradle | | .NET | ASP.NET Core、Console | | Go | 標準佈局、cmd/pkg | | Rust | Binary、Library、Workspace | | Kotlin | Gradle、Android、Multiplatform | | PHP | Laravel、Symfony、PSR-4 | | Ruby | Rails、Gem、Sinatra | | Swift | SPM、iOS App、Vapor | ## 常見結構模式 ### 標準目錄 ``` project-root/ ├── src/ # 原始碼 ├── tests/ # 測試檔案 ├── docs/ # 文件 ├── tools/ # 建構/部署腳本 ├── examples/ # 使用範例 ├── config/ # 配置檔案 └── .github/ # GitHub 配置 ``` ### 建構輸出(始終 gitignore) ``` dist/ # 發佈輸出 build/ # 編譯產物 out/ # 輸出目錄 bin/ # 二進位執行檔 ``` ## 語言特定指南 ### Node.js ``` project/ ├── src/ │ ├── index.js │ ├── routes/ │ ├── controllers/ │ ├── services/ │ └── models/ ├── tests/ ├── package.json └── .gitignore ``` ### Python ``` project/ ├── src/ │ └── package_name/ │ ├── __init__.py │ └── main.py ├── tests/ ├── pyproject.toml └── .gitigno...

Details

Author
AsiaOstrich
Repository
AsiaOstrich/universal-dev-standards
Created
8 months ago
Last Updated
today
Language
JavaScript
License
NOASSERTION

Integrates with

Bundled in these plugins

Similar Skills

Semantically similar based on skill content — not just same category

Code & Development Solid

documentation-guide

引導文件結構、內容需求與專案文件的最佳實踐。 Use when: 建立 README、撰寫文件、規劃 docs 目錄、專案初始設定、技術文件。 Not for: 從原始碼機械式產生文件——請用 /docgen;變更日誌條目——請用 /changelog。 Keywords: README, docs, documentation, CONTRIBUTING, CHANGELOG, ARCHITECTURE, API docs, 文件, 說明文件, 技術文件.

71 Updated today
AsiaOstrich
Code & Development Solid

ai-friendly-architecture

設計 AI 友善架構,包含明確的模式、分層文件與語意邊界。 Use when: 為 AI 協作規劃專案結構、最佳化程式碼庫以利 AI 分析、建立 AI 上下文。 Not for: 撰寫指令檔本身——請用 /ai-instruction-standards;依語言慣例安排目錄配置——請用 /project-structure-guide。 Keywords: architecture, AI-friendly, context, modules, documentation layers, .ai-context.yaml, 架構, AI 友善, 上下文, 語意邊界.

71 Updated today
AsiaOstrich
Code & Development Listed

17-

通用项目目录结构标准。Use when: 新项目初始化(创建仓库前必读)/ 老项目整理 cleanup / 添加新文档分类 / 决定文件该放 docs/ 哪个子分类 / 写各级 README 时触发。包含顶层结构(apps/packages/infra/scripts/docs/archive)+ docs/ 10 大分类(strategy/planning/research/decisions/product/engineering/marketing/operations/investor/archive)+ 命名约定 + 各级 README 必含项 + Day 0 启动流程(详见 body)。SKIP: 安全配置/.gitignore/pre-commit/secret 防泄露 → 18(17 建结构,18 配安全,配套用)/ 对外开源发布前审计 → 16 / 部署发布记录 → 06。

2 Updated 2 weeks ago
xcodethink