Normalize line endings

This commit is contained in:
2026-06-11 14:20:26 +08:00
parent 983fa5b1dc
commit f5042d6e02
18 changed files with 3810 additions and 3812 deletions
-26
View File
@@ -1,26 +0,0 @@
---
description: 當使用者完成程式碼修改、改檔任務後,必須強制執行的結尾規範。
globs: "*"
alwaysApply: true
---
# Git commit 訊息絕對規範
只要本次對話中**有任何改檔、寫 Code、生成程式碼、調整結構的任務完成**,你(AI)在回覆結尾**必須、強制、主動**附上 commit 指令,絕對不准等使用者開口要!
> ⚠️ **死線警告**:若本次對話完全沒有改動任何檔案、純屬聊天或觀念問答,則「不必」附上。
**禁止**為了附 commit 而跑 `git status``git diff``git log`;只貼指令,由站主在本機執行。
### 輸出格式(一字不差):
```bash
git add .
git commit -m "type: 重點"
```
| 項目 | 約定 |
|------|------|
| type | `feat``fix``style` 三選一 |
| 重點 | **15 字以內**(標點計入) |
| add | **一律 `git add .`**,禁止只 add 單檔 |
@@ -19,21 +19,6 @@ alwaysApply: true
- 內頁:**`header.inner-page-header`**。首頁 Hero**`header#origin`**。樣式以站主在電子書頁調過的為準;要套他頁須站主說執行。
## Git:改完末尾附 commit
見 **`git-commit-required.mdc`**(格式、死線、禁止為 commit 跑終端機檢查)。
## Git:禁止擅自 push
- **禁止 `git push`**,除非站主原句「幫我 push」等。只貼 push 錯誤 ≠ 同意 push。
- 修 push 失敗:只動本機(壓圖、`.gitignore`、`amend`filter-branch **先問**),末尾只給站主:
```bash
git push origin main
```
- GitHub 單檔 **> 100 MB** 拒 push。`*.png.bak` 已在根 `.gitignore`,勿 `git add .` 送進備份檔。
## 回覆
- 站主要短句時:先答做沒做、為什麼壞,勿長篇道歉後又擅自改一輪。
@@ -43,5 +43,5 @@ alwaysApply: true
## 文件與規則檔
- **不要**主動新增或長篇修改 `README`、`docs/*.md`,除非站主明講。
- **約定只寫在** `.cursor/rules/*.mdc`**合併進既有檔**,勿再新增散落 `*-notes.md`/目錄索引)。禁止放在 `docs/` 或站主日常會開的目錄。
- **約定只寫在** `developer-rules/rules/*.mdc`**合併進既有檔**,勿再新增散落 `*-notes.md`/目錄索引)。禁止放在 `docs/` 或站主日常會開的目錄。
- 動導覽/籌備中/`site-guide`**只讀** `portal-nav-rules.mdc`。
@@ -0,0 +1,39 @@
---
description: 改檔後的 commit 規範、push 禁令與本機修復流程。
globs: "*"
alwaysApply: true
---
# Git 規範(commit・push
## Commit:改完必附
只要本次對話中**有任何改檔、寫 Code、生成程式碼、調整結構的任務完成**,在回覆結尾**必須、強制、主動**附上 commit 指令,絕對不准等使用者開口要!
> ⚠️ **死線警告**:若本次對話完全沒有改動任何檔案、純屬聊天或觀念問答,則「不必」附上。
**禁止**為了附 commit 而跑 `git status``git diff``git log`;只貼指令,由站主在本機執行。
### 輸出格式(一字不差):
```bash
git add .
git commit -m "type: 重點"
```
| 項目 | 約定 |
|------|------|
| type | `feat``fix``style` 三選一 |
| 重點 | **15 字以內**(標點計入) |
| add | **一律 `git add .`**,禁止只 add 單檔 |
## Push:禁止擅自執行
- **禁止 `git push`**,除非站主原句說「幫我 push」等。只貼 push 錯誤 ≠ 同意 push。
- 修 push 失敗:只動本機(壓圖、`.gitignore`、`amend`filter-branch **先問**),末尾只給站主:
```bash
git push origin main
```
- GitHub 單檔 **> 100 MB** 拒 push。`*.png.bak` 已在根 `.gitignore` 保護,`git add .` 不會送進備份檔。