locales/zh-CN/skills/project-structure-guide/SKILL.md
--- source: ../../../../skills/project-structure-guide/SKILL.md source_version: 1.1.0 translation_version: 1.1.0 last_synced: 2026-03-04 status: current --- # 项目结构指南 > **Language**: [English](../../../../skills/project-structure-guide/SKILL.md) | 简体中文 **版本**:1.1.0 **最后更新**:2026-03-04 **適用性**:Claude Code Skills --- ## 目的 此技能提供根据语言和框架慣例建構项目的指引,協助建立一致、可維護的目录佈局。 ## 觸發时机 在以下情况使用此技能: - 建立新项目 - 重组现有项目结构 - 新增模块或功能 - 设置构建配置 - 建立 .gitignore 文件 - 决定文件的放置位置(代码、文档、配置、资源) - 在 utils/、helpers/、shared/、l
npx skillsauth add asiaostrich/universal-dev-standards locales/zh-CN/skills/project-structure-guideInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Language: English | 简体中文
版本:1.1.0 最后更新:2026-03-04 適用性:Claude Code Skills
此技能提供根据语言和框架慣例建構项目的指引,協助建立一致、可維護的目录佈局。
在以下情况使用此技能:
| 语言 | 框架/模式 | |------|-----------| | 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 配置
dist/ # 發佈输出
build/ # 编譯产物
out/ # 输出目录
bin/ # 二进位执行檔
project/
├── src/
│ ├── index.js
│ ├── routes/
│ ├── controllers/
│ ├── services/
│ └── models/
├── tests/
├── package.json
└── .gitignore
project/
├── src/
│ └── package_name/
│ ├── __init__.py
│ └── main.py
├── tests/
├── pyproject.toml
└── .gitignore
project/
├── cmd/
│ └── appname/
│ └── main.go
├── internal/
├── pkg/
├── go.mod
└── .gitignore
當被要求建立项目时:
审查現有结构时:
After /project-structure completes, the AI assistant should suggest:
專案結構已建立或審查完成。建議下一步 / Project structure created or reviewed. Suggested next steps:
- 執行
/sdd開始規格驅動開發,將專案結構納入正式規格 ⭐ Recommended / 推薦 — 確保結構決策有規格追蹤 / Ensures structure decisions are tracked in specs- 執行
/docs產生專案文件(README、ARCHITECTURE.md 等) — 讓結構決策有文件記錄 / Document structure decisions- 執行
/ai-friendly-architecture設定 AI 上下文配置 — 讓 AI 助手更好地理解專案結構 / Help AI assistants understand the project structure
development
[UDS] 扫描代码库的调试残留与代码质量问题;可自动修正安全模式。 Use when: before committing, during PR review, or periodic codebase cleanup. Keywords: sweep, debug cleanup, console.log, debugger, TODO, ts-any, code quality, 扫描, 清理.
tools
[UDS] 从规格衍生 BDD 场景、TDD 骨架或 ATDD 表格
development
[UDS] 识别重复流程并以正确的开发深度构建 Skill
tools
[UDS] AI 辅助 git push 安全层:质量门禁 + 协作护栏。 Use when: pushing commits, force pushing, pushing to protected branches, pushing feature branches. Keywords: git push, force push, protected branch, quality gate, push receipt, PR automation, 推送, 保护分支, 质量门禁.