Files
sechskies/.cursor/rules/agent-must-ask.mdc
T

40 lines
1.9 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
---
description: 必問再改、Git commit/禁 push、UTF-8、內頁 header、對圖與 devtools
alwaysApply: true
---
# 必問再改與 Git(站主訂)
## 改檔
1. **沒說「執行」→ 不改檔**(可先說明、對照、列計畫)。**「檢查」→ 只回報**。
2. **只改被點名的那一頁/區塊**;未寫到的檔不開、不刪、不重構。
3. **class 全站換名**:先問確切字串。內頁 banner 用 **`inner-page-header`**(禁止改回 `map-archive-header` 等)。**禁止** PowerShell 批次改 `.html`(須 UTF-8 安全,如逐檔 `StrReplace`)。
4. **頂欄文案**:禁止擅自加括號、副標(如「傳奇的轉折(六六歌2)」);改 `portal-nav.js` 前對站主原句。
5. **devtools**:勾選/數值照抄;補 devtools 沒有的值須標「這是我補的」,等站主說執行再寫入。
6. **參考圖**:粉線=看這段,不是整段包 span。`mark_y``mark_b` 對照圖裡實際字重。
7. **首頁 `#mission`**:只調 span 時只動 `<span>`;金句未要求時只改內文。沒叫動註解就不動註解。
## 內頁 header
- 內頁:**`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 .` 送進備份檔。
## 回覆
- 站主要短句時:先答做沒做、為什麼壞,勿長篇道歉後又擅自改一輪。