xiaohongshu
xiaohongshu
docs
引導文件結構、內容需求和專案文件最佳實踐。 使用時機:建立 README、文件、docs 目錄、專案設定、技術文件。 關鍵字:README, docs, documentation, CONTRIBUTING, CHANGELOG, ARCHITECTURE, API docs, 文件, 說明文件, 技術文件.
Full skill instructions
語言: English | 繁體中文
版本: 2.0.0 最後更新: 2026-01-12 適用範圍: Claude Code Skills
本 Skill 提供專案文件的全面指導,包括:
# === 專案類型 → 文件需求 ===
document_matrix:
# README ARCH API DB DEPLOY MIGRATE ADR CHANGE CONTRIB
new: [REQ, REQ, if_app, if_app, REQ, NO, REC, REQ, REC]
refactor: [REQ, REQ, REQ, REQ, REQ, REQ, REQ, REQ, REC]
migration: [REQ, REQ, REQ, REQ, REQ, REQ, REQ, REQ, REC]
maintenance:[REQ, REC, REC, REC, REC, NO, if_app, REQ, if_app]
# REQ=必要, REC=建議, if_app=如適用, NO=不需要
# === 文件金字塔 ===
pyramid:
level_1: "README.md → 入口點,快速概覽"
level_2: "ARCHITECTURE.md → 系統概述"
level_3: "API.md, DATABASE.md, DEPLOYMENT.md → 技術細節"
level_4: "ADR/, MIGRATION.md, CHANGELOG.md → 變更歷史"
# === 必要檔案 ===
root_files:
README.md: {required: true, purpose: "專案概述、快速入門"}
CONTRIBUTING.md: {required: "recommended", purpose: "貢獻指南"}
CHANGELOG.md: {required: "recommended", purpose: "版本歷史"}
LICENSE: {required: "for OSS", purpose: "授權資訊"}
docs_structure:
INDEX.md: "文件索引"
ARCHITECTURE.md: "系統架構"
API.md: "API 文件"
DATABASE.md: "資料庫綱要"
DEPLOYMENT.md: "部署指南"
MIGRATION.md: "遷移計畫(如適用)"
ADR/: "架構決策記錄"
# === 檔案命名 ===
naming:
root: "UPPERCASE.md (README.md, CONTRIBUTING.md, CHANGELOG.md)"
docs: "lowercase-kebab-case.md (getting-started.md, api-reference.md)"
# === 品質標準 ===
quality:
format:
language: "英文(或專案指定)"
encoding: "UTF-8"
line_length: "建議 ≤120 字元"
diagrams: "優先使用 Mermaid,其次 ASCII Art"
links: "內部連結使用相對路徑"
maintenance:
sync: "程式碼變更時更新文件"
version: "頂部標示版本和日期"
review: "文件變更納入程式碼審查"
periodic: "每季檢查文件是否過時"
| 文件 | 新專案 | 重構 | 遷移 | 維護 |
|---|---|---|---|---|
| README.md | ✅ 必要 | ✅ 必要 | ✅ 必要 | ✅ 必要 |
| ARCHITECTURE.md | ✅ 必要 | ✅ 必要 | ✅ 必要 | ⚪ 建議 |
| API.md | ⚪ 如適用 | ✅ 必要 | ✅ 必要 | ⚪ 建議 |
| DATABASE.md | ⚪ 如適用 | ✅ 必要 | ✅ 必要 | ⚪ 建議 |
| DEPLOYMENT.md | ✅ 必要 | ✅ 必要 | ✅ 必要 | ⚪ 建議 |
| MIGRATION.md | ❌ 不需要 | ✅ 必要 | ✅ 必要 | ❌ 不需要 |
| ADR/ | ⚪ 建議 | ✅ 必要 | ✅ 必要 | ⚪ 如適用 |
| CHANGELOG.md | ✅ 必要 | ✅ 必要 | ✅ 必要 | ✅ 必要 |
🆕 新專案 → README + ARCHITECTURE + DEPLOYMENT + CHANGELOG
🔄 重構 → 所有文件 + MIGRATION + ADR(記錄「為何重構」)
🚚 遷移 → 所有文件 + MIGRATION(核心文件)+ 資料驗證
🔧 維護 → README + CHANGELOG(依變更範圍更新)
┌─────────────┐
│ README │ ← 入口點,快速概覽
├─────────────┤
┌──┴─────────────┴──┐
│ ARCHITECTURE │ ← 系統概述
├───────────────────┤
┌──┴───────────────────┴──┐
│ API / DATABASE / DEPLOY │ ← 技術細節
├─────────────────────────┤
┌──┴─────────────────────────┴──┐
│ ADR / MIGRATION / CHANGELOG │ ← 變更歷史
└───────────────────────────────┘
# === README.md ===
readme:
minimum:
- "# 專案名稱"
- "簡短的單行描述"
- "## 安裝"
- "## 使用"
- "## 授權"
recommended:
- "# 專案名稱 + 徽章"
- "## 功能(項目符號列表)"
- "## 安裝"
- "## 快速入門 / 使用"
- "## 文件(連結至 docs/)"
- "## 貢獻(連結至 CONTRIBUTING.md)"
- "## 授權"
# === ARCHITECTURE.md ===
architecture:
required:
- system_overview: "目的、範圍、主要功能"
- architecture_diagram: "Mermaid 或 ASCII Art"
- module_description: "職責、相依性"
- technology_stack: "框架、語言、版本"
- data_flow: "主要業務流程"
recommended:
- deployment_architecture: "生產環境拓撲"
- design_decisions: "關鍵決策(或連結至 ADR)"
# === API.md ===
api:
required:
- api_overview: "版本、基礎 URL、身份驗證"
- authentication: "Token 取得、過期時間"
- endpoint_list: "所有 API 端點"
- endpoint_specs: "請求/回應格式"
- error_codes: "錯誤碼和說明"
recommended:
- code_examples: "常見語言的範例"
- rate_limiting: "API 呼叫頻率限制"
endpoint_format: |
### POST /api/v1/resource
**請求**: | 欄位 | 類型 | 必要 | 說明 |
**回應**: | 欄位 | 類型 | 說明 |
**錯誤**: | 代碼 | 說明 |
# === DATABASE.md ===
database:
required:
- db_overview: "類型、版本、連線資訊"
- er_diagram: "實體關係圖"
- table_list: "所有資料表及用途"
- table_specs: "欄位定義"
- index_docs: "索引策略"
- migration_scripts: "腳本位置"
recommended:
- backup_strategy: "頻率、保留期限"
table_format: |
### 資料表名稱
**欄位**: | 欄位 | 類型 | 可為空 | 預設值 | 說明 |
**索引**: | 名稱 | 欄位 | 類型 |
**關聯**: | 關聯表 | 連接欄位 | 關係 |
# === DEPLOYMENT.md ===
deployment:
required:
- environment_requirements: "硬體、軟體、網路"
- installation_steps: "詳細流程"
- configuration: "設定檔參數"
- verification: "確認部署成功"
- troubleshooting: "常見問題和解決方案"
recommended:
- monitoring: "健康檢查、日誌位置"
- scaling_guide: "水平/垂直擴展"
# === MIGRATION.md ===
migration:
required:
- overview: "目標、範圍、時程"
- prerequisites: "必要準備工作"
- migration_steps: "詳細流程"
- verification_checklist: "遷移後檢查"
- rollback_plan: "失敗時的步驟"
- backward_compatibility: "API/資料庫相容性"
recommended:
- partner_notification: "需通知的外部系統"
# === ADR(架構決策記錄)===
adr:
filename: "NNN-kebab-case-title.md(例如:001-use-postgresql.md)"
required:
- title: "決策名稱"
- status: "proposed | accepted | deprecated | superseded"
- context: "為何需要此決策"
- decision: "具體決策內容"
- consequences: "影響(正面/負面)"
recommended:
- alternatives: "考慮過的其他選項"
project-root/
├── README.md # 專案入口文件
├── CONTRIBUTING.md # 貢獻指南
├── CHANGELOG.md # 變更日誌
├── LICENSE # 授權檔案
└── docs/ # 文件目錄
├── INDEX.md # 文件索引
├── ARCHITECTURE.md # 架構文件
├── API.md # API 文件
├── DATABASE.md # 資料庫文件
├── DEPLOYMENT.md # 部署文件
├── MIGRATION.md # 遷移文件(如需要)
└── ADR/ # 架構決策記錄
├── 001-xxx.md
└── ...
# 專案名稱
簡短的單行描述。
## 安裝
```bash
npm install your-package
const lib = require('your-package');
lib.doSomething();
MIT
### 建議的 README 章節
1. **專案名稱與描述**
2. **徽章**(CI 狀態、覆蓋率、npm 版本)
3. **功能**(項目符號列表)
4. **安裝**
5. **快速入門 / 使用**
6. **文件**(連結至 docs/)
7. **貢獻**(連結至 CONTRIBUTING.md)
8. **授權**
---
## ADR 範本
```markdown
# ADR-001: [決策標題]
## 狀態
已接受
## 背景
[為何需要此決策...]
## 決策
[具體決策內容...]
## 影響
### 正面
- 好處 1
- 好處 2
### 負面
- 缺點 1
- 缺點 2
## 考慮過的替代方案
1. 方案 A - 因為...而被拒絕
2. 方案 B - 因為...而被拒絕
審查專案文件時:
□ README.md 存在且包含必要章節
□ 安裝說明清楚且經過測試
□ 使用範例已提供且可運作
□ 已指定授權
□ ARCHITECTURE.md 存在(非簡單專案)
□ API.md 存在(如有暴露 API)
□ DATABASE.md 存在(如使用資料庫)
□ DEPLOYMENT.md 存在(已部署的專案)
□ ADR/ 存在於重大決策
□ CHANGELOG.md 遵循 Keep a Changelog 格式
□ 所有內部連結正常運作
□ 圖表是最新的
□ 無過時資訊
CONTRIBUTING.md 中的「停用 Skills」區段CONTRIBUTING.md 中的「文件語言」區段如果缺少文件:
CONTRIBUTING.md 中記錄:## 文件標準
### 語言
此專案使用 **英文** 作為文件語言。
### 必要文件
根據專案類型,我們維護:
- README.md
- ARCHITECTURE.md
- DEPLOYMENT.md
- CHANGELOG.md
完整標準請參閱:
| 版本 | 日期 | 變更 |
|---|---|---|
| 2.0.0 | 2026-01-12 | 新增:專案類型矩陣、文件範本、文件金字塔 |
| 1.0.0 | 2025-12-24 | 初始版本 |
本 Skill 以 CC BY 4.0 授權發布。
xiaohongshu
technical spec
product ux expert
database patterns
Conduct multi-agent task orchestration and workflow coordination.
Initialize project with Conductor artifacts (product definition,
Expert in web animations, transitions, and motion design using Framer Motion and CSS
Creates Mermaid and ASCII diagrams for flowcharts, architecture, ERDs, state machines, mindmaps, and more. Use when user mentions diagram, flowchart, mermaid, ASCII diagram, text diagram, terminal diagram, visualize, C4, mindmap, architecture diagram, sequence diagram, ERD, or needs visual docume...
PostgreSQL bindings for H3 hexagonal grid system. Use when working with H3 cells in Postgres, including spatial indexing, geometry/geography integration, and raster analysis.
Context-Driven Development skill for projects using Conductor. Use this skill when you detect a `conductor/` directory in the project, when working on tasks defined in a `plan.md` file, or when the user asks about tracks, specs, or plans. Automatically applies TDD workflow, tracks task completion...
Display project status, active tracks, and next actions
Official Stakpak application containerization standard operating procedure, a step-by-step guidline to properly dockerize applications. This is a rule book curated by the Stakpak Team.
Generate, edit, and beat-sync AI video with leading models in one workspace.
The world's fastest calendar for remote work
Transform Your Design with AI Designer by ImgCreator.ai
Revolutionizing Video Production with AI-Powered Creativity
Extend an image past the frame and let AI fill the new aspect ratio.
Discover your celebrity doppelgänger with StarByFace!
ChainClarity explains 700+ crypto whitepapers in plain English, with layered summaries, comparisons, research tools, alerts, and a $4.99 Pro plan.
Opus.ai: Revolutionize Your Web Experience