---
name: site-rework
description: Change, extend or fix an existing multi-page website, web demo or back-office demo so every page stays consistent with what the site promises and looks finished on desktop and mobile. Use for edits to a live site, "แก้เว็บ", "ปรับหน้า", "เว็บดูลวก", "ไม่สอดคล้อง", redesign of existing pages and demos. Not for a brand-new site from nothing or a 360 tour (photo-tour-360).
---
# Rework an existing website without breaking its concept
A site is one product. Every page, demo and back office must tell the same story, use the same words and look finished at 1440 and 390 px. Patching the one screen the user pointed at is the failure this skill prevents.
## Stop rule
When the user reports a defect, or says the work is sloppy or inconsistent, stop editing. Do not patch that screenshot alone. Run steps 1–4 on the whole site, show the defect list in Thai, then fix.
## Steps
1. **Read the project rules.** Load the project's memory records (brand, words, forbidden content, deploy steps). Find the generator: when HTML is built by scripts, edit the scripts or shared CSS/JS, never the generated HTML.
2. **Write the promise sheet** in the scratchpad (`promise.md`):
- Run `python3 "<skill>/scripts/promises.py" "<site_dir>" index.html <service pages> <demo pages>`.
- Write the concept in one line, the fixed terms, and every feature the site promises.
- For each feature, name the page or demo that shows it and mark it `ตรง`, `ขาด` or `ขัด`.
- Two pages that say different things count as `ขัด`. Two demos of the same feature (for example two back offices) count as `ขัด`.
3. **Walk every journey.** List each role's journey from the promise sheet (for example customer: browse → ask → book; owner: sees message → replies → confirms). Drive it in the browser at 1440 and 390, screenshot each step and look at each screenshot. Note:
- mismatched labels between instructions and buttons;
- duplicated controls;
- results that land off-screen on mobile;
- invented-looking times or numbers;
- styles that differ from the brand.
4. **Sweep every page**, not only changed ones:
- Run `node "<skill>/scripts/site-audit.mjs" <base_url> <all pages, comma separated> "<scratch>/audit"`.
- Fix every reported `OVERFLOW`, `CLIP`, `HALF-EMPTY`, `BLANK-BAND`, `IMG-FAILED` and `JS-ERROR`, or record why it is not a defect.
- Open every full-page screenshot and check for cut words, half-empty lines, blank bands, overlap, wrong fonts or colors, and leftover team notes.
5. **Make one defect list.** For each defect record the page, the width, the root cause, and the source file and rule to change. Group by root cause, and fix the shared rule, template or data once instead of patching each page.
6. **Decide before coding.** When pages contradict, the home page and the user's recorded rules decide. Ask the user only when the fix changes what the product offers or costs.
7. **Implement the whole list in one pass**, then regenerate.
8. **Re-run steps 3 and 4 completely.** Do not deploy while any defect is open unless the user accepts it as known.
9. **Deploy, then check the live site once** at both widths. Use `verification-before-completion`. Report in at most three Thai lines.
## Hard rules
- One demo per feature. Remove or embed duplicates; never keep two versions that disagree.
- Demo data looks plausible and stays labeled as sample: relative times, no fake reviews and no invented statistics.
- Body text fills its line. Use text balancing only on headings and short leads.
- Never deploy a half-finished rework to look busy. One complete pass beats several partial ones.
<!-- ‹guest · 2026-12-06› -->
این نسخه با نشانهگذاری اختصاصی حساب شما نمایش داده میشود. برای نصب سریع، به تب نصب و راهاندازی بروید.