ai-friendly-architecture

Solid

設計 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 友善, 上下文, 語意邊界.

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

# AI 友善架構指南 > **語言**: [English](../../../../skills/ai-friendly-architecture/SKILL.md) | 繁體中文 **版本**: 1.0.0 **最後更新**: 2026-01-25 **適用範圍**: Claude Code Skills --- > **核心標準**: 本技能實作 [AI 友善架構](../../core/ai-friendly-architecture.md)。完整方法論文件請參閱核心標準。 ## 目的 本技能協助設計專案架構,透過明確模式、分層文件和語義邊界,最大化 AI 協作效能。 ## 快速參考 ### 核心原則 | 原則 | 描述 | 效益 | |------|------|------| | **明確優於隱含** | 明確記錄行為 | AI 無需猜測即可理解 | | **分層上下文** | 多層級文件 | 依任務提供適當細節 | | **語義邊界** | 清晰的模組邊界 | 獨立分析 | | **可發現結構** | 自我說明的結構 | 快速定位 | ### 上下文層級 | 層級 | Token 預算 | 內容 | |------|------------|------| | **L1: 快速參考** | < 500 | 單行說明、API 簽章、入口點 | | **L2: 詳細** | < 5,000 | 完整 API 文件、使用範例 | | **L3: 範例** | 無限制 | 完整實作、邊界案例 | ### 建議結構 ``` project/ ├── .ai-context.yaml # AI 上下文配置 ├── docs/ │ ├── QUICK-REF.md # 第 1 層文件 │ └── ARCHITECTURE.md # 第 2 層文件 ├── src/ │ └── auth/ │ ├── index.ts # 入口點與模組標頭 │ ├── QUICK-REF.md # 模組快速參考 │ └── README.md # 模組文件 └── CLAUDE.md # AI 指令檔案 ``` ## 模組標頭範本 ```javascript /** * ═══════════════════════════════════════════════════════════ * 模組: [模組名稱] * ═══════════════════════════════════════════════════════════ * * 目的: [單句描述] * * 相依性: * - [dep1]: [原因] * - [dep2]: [原因] * * 匯出: * - [function1](params): [描述] * - [function2](params): [描述] * * 配置: * - [CONFIG_VAR]: [描述] * * ═══════════════════════════════════════════════════════════ */ ``` ## 詳細指南 完整標準請參閱: - [AI 友善架構標準](../../core/ai-friendly-archite...

Details

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

Bundled in these plugins

Similar Skills

Semantically similar based on skill content — not just same category

AI & Automation Solid

ai-instruction-standards

建立並維護 AI 指令檔(CLAUDE.md、AGENTS.md、.cursor/rules/ 等),並採用適當結構。 Use when: 建立 AI 指令檔、區分通用規則與專案特定規則、設定 AI 工具。 Not for: 調整程式碼庫結構讓 AI 好導覽——請用 /ai-friendly-architecture;要求以證據為基礎的回答——請用 /ai-collaboration-standards。 Keywords: CLAUDE.md, AGENTS.md, cursorrules, windsurfrules, clinerules, AI instructions, system prompt, 指令檔, AI 設定, 系統提示詞.

71 Updated today
AsiaOstrich
Code & Development Solid

project-structure-guide

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

71 Updated today
AsiaOstrich
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