agentleFS
nattawainattawai/web-studio/skills/web-deploy/SKILL.md

web-deploy

Skill0 starsChanged 25 days agoMITView on GitHub

Deploy เว็บขึ้นจริง (default Cloudflare Pages) แล้วตรวจลิงก์จริงอีกครั้ง. ใช้ในขั้นสุดท้ายของ web-director หรือเมื่อผู้ใช้สั่งขึ้นเว็บ/ขอลิงก์.

1 other project uses a version of this.

Adopted by

Most recently taken up by

  • Other versions1 project uses a version of this.

    Word for word · 0

    None found.

    Edited · 0

    None found.

    Wrote their own version · 1

    1. dev-JKim/claude-skills★ 0same name

    How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.

  • In this repository6 other files it gives its agents.

The file

Files
SKILL.md

Web Deploy

  1. ยืนยันกับผู้ใช้ก่อน (เป็นการเผยแพร่สาธารณะ) ✋
  2. npm run build
  3. Cloudflare Pages:
    npx wrangler pages deploy dist --project-name <name>
    (ครั้งแรกผู้ใช้ต้อง npx wrangler login เอง)
  4. เปิดลิงก์จริง: เช็ก console, OG tags, สลับภาษา
  5. อัปเดต STATUS.md: ลิงก์ + วันที่

บทเรียนจากงานจริง (portfolio, 2026-11)

  • ก่อน deploy รัน npx wrangler whoami + npx wrangler pages project list — ถ้ามีโปรเจกต์/โดเมนเดิมอยู่ ถามผู้ใช้ก่อนว่าจะทับหรือแยก (อย่าเดาจากชื่อ)
  • โปรเจกต์ใหม่: wrangler pages project create <name> --production-branch main แล้ว pages deploy dist --project-name <name> --branch main --commit-dirty=true
  • ผูก custom domain: wrangler ไม่มีคำสั่ง และห้ามดึง OAuth token ของ wrangler ไปยิง API เอง → ให้ผู้ใช้ login dashboard ใน browser pane แล้วทำผ่าน UI: dash.cloudflare.com/<account>/pages/view/<project>/domains → Set up a custom domain → ใส่โดเมน → Continue → Activate domain (โซนอยู่บัญชีเดียวกัน CNAME สร้างให้เอง, สถานะ Initializing ไม่กี่นาที)
  • ก่อน deploy เตรียม: og-image 1200×630 (render ด้วย puppeteer จาก token สีของเว็บ), canonical, og:url, twitter:card, sitemap.xml, robots.txt ชี้ sitemap, public/_headers cache /assets/* immutable
  • curl บน Windows (schannel) อาจล้มด้วย CRYPT_E_REVOCATION_OFFLINE กับ *.pages.dev ใหม่ — ตรวจด้วย puppeteer/Chrome แทน: status ไฟล์ static, header cache, title/og, console, สลับภาษา
  • Direct Upload (wrangler pages deploy) เปลี่ยนเป็น Git ทีหลังไม่ได้ — ถ้าผู้ใช้อยากได้ auto-deploy ให้สร้างโปรเจกต์แบบ Import Git ตั้งแต่แรก (dashboard → Workers & Pages → Create → Pages → Import an existing Git repository; build npm run build, output dist, preset None ได้)
  • ย้ายโดเมนระหว่างโปรเจกต์: Remove domain ที่โปรเจกต์เก่า → Set up ที่ใหม่ (ล่มประมาณ 1–2 นาที)
  • repo public: commit ด้วย <id>+<user>@users.noreply.github.com (ตั้ง git config --local), README มี og-image/screenshot/badge Lighthouse/โครงสร้าง/วิธีรัน, LICENSE (MIT สำหรับโค้ด, เนื้อหาส่วนตัวสงวนสิทธิ์), .gitattributes eol=lf
  • gh หลายบัญชี: gh repo create --source . --push ใช้บัญชี active; push ครั้งต่อไปต้อง gh auth switch -u <owner> ก่อน (ตั้ง credential.username ไม่ช่วย)

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.