Files
sechskies/developer-rules/rules/agent-must-ask.md
T

21 lines
1.3 KiB
Markdown
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: 必問再改、UTF-8、內頁 header、對圖與 devtools
alwaysApply: true
---
# 【改檔行為守則】必問再改(站主訂)
## 改檔
1. **沒說「執行」→ 不改檔**(可先說明、對照、列計畫)。**「檢查」→ 只回報**。
2. **只改被點名的那一頁/區塊**;未寫到的檔不開、不刪、不重構。
3. **class 全站換名**:先問確切字串。內頁 banner 用 **`inner-page-header`**(禁止改回 `map-archive-header` 等)。**禁止** PowerShell 批次改 `.html`(須 UTF-8 安全,如逐檔 `StrReplace`)。
4. **頂欄文案**:禁止擅自加括號、副標(如「傳奇的轉折(六六歌2)」);改 `portal-nav.js` 前對站主原句。
5. **devtoolsChrome DevTools Styles 面板)**:勾選/數值照抄;補 devtools 沒有的值須標「這是我補的」,等站主說執行再寫入。
6. **參考圖**:粉線=看這段,不是整段包 span。`mark_y``mark_b` 對照圖裡實際字重。
7. **首頁 `#mission`**:只調 span 時只動 `<span>`;金句未要求時只改內文。沒叫動註解就不動註解。
## 內頁 header
- 內頁:**`header.inner-page-header`**。首頁 Hero**`header#origin`**。樣式以站主在電子書頁調過的為準;要套他頁須站主說執行。