Gas Best Practices
Google Apps Script best practices for production web apps and automation — project layout with clasp, Spreadsheet/Drive ops, LockService for concurrency, ScriptCache, web app RPC pattern with Thai error messages, PDF generation with placeholders, schema migrations, data-integrity guards for overwrite/bulk-delete protection, OAuth scopes, time-driven triggers, onFormSubmit, UrlFetchApp / LINE Messaging API, email quotas, deployment versioning (/dev vs /exec), and 6-minute limit workarounds. Use whenever working with .gs/.js files in clasp projects, when appsscript.json or .clasp.json exists, wh
Install
npx skills add kpcrmv4/gas-best-practices --skill gas-best-practicesgit clone --depth 1 https://github.com/kpcrmv4/gas-best-practices.git /tmp/gas-best-practices
mkdir -p ~/.claude/skills
cp -r /tmp/gas-best-practices/. ~/.claude/skills/gas-best-practicesPersonal skills live in ~/.claude/skills. Use .claude/skills in a project folder to share a skill with your team.
From the SKILL.md
# Google Apps Script — Best Practices ใช้กฎเหล่านี้เมื่อทำงานกับ Google Apps Script (ตรวจสอบจาก `.clasp.json`, `appsscript.json`, ไฟล์ `.gs`, หรือผู้ใช้พูดถึง "Apps Script" / "clasp") ## วิธีอ่าน แต่ละไฟล์ใน `rules/` มีโครงสร้าง: - **Rule** — กฎข้อเดียวสั้น ๆ - **Why** — ทำไม (มักเป็น bug จริงที่เคยเจอ) - **✗ Bad** — โค้ดที่ทำให้พัง - **✓ Good** — แม่แบบที่ถูก - **Edge cases** — ข้อยกเว้น ถ้ามี ไฟล์ยาว (spreadsheet-ops, pdf-generation, external-frontend, drive-ops) มีสารบัญต้นไฟล์ — ข้ามไป rule ที่ตรงกับงานได้เลย ## เมื่อ trigger ใช้ rule ตามบริบทของ task (อ่านได้หลายไฟล์ถ้างานคาบเกี่ยว): | ผู้ใช้กำลังทำ | อ่านกฎเหล่านี้ | |---|---| | Setup โปรเจ็คใหม่, จัดไฟล์ | `rules/project-structure.md` | | Read/write Sheet, batch update | `rules/spreadsheet-ops.md` | | ทำ web app ที่เรียกผ่าน `google.script.run` | `rules/web-app-rpc.md` | | HTML head, viewport, partial include, template syntax | `rules/htmlservice-frontend.md` | | ใช้กล้อง/PWA/SW — frontend แยกไป GitHub Pages | `rules/external-frontend.md` | | สร้าง PDF จาก template | `rules/pdf-generation.md` | | จัดการ folder/file ใน Drive | `rules/drive-ops.md` | | operation ที่ user หลายคนอาจชนกัน | `rules/lock-service.md` | | query ที่ซ้ำบ่อย | `rules/cache-service.md` | | เขียนทับข้อมูลจริง, กันลบยกชุด, ตรวจข้อมูลหลังแก้ | `rules/data-integrity.md` | | custom menu ใน Sheet | `rules/onopen-menu.md` | | dropdown ปี/เดือน/enum ที่ไม่ฟิกตายตัว | `rules/dynamic-dropdowns.md` |
Details
- Skill name
gas-best-practices- Repository
- kpcrmv4/gas-best-practices
- License
- MIT
- Repo updated
- 15 October 2026
FAQ
What does the Gas Best Practices skill do?
Google Apps Script best practices for production web apps and automation — project layout with clasp, Spreadsheet/Drive ops, LockService for concurrency, ScriptCache, web app RPC pattern with Thai error messages, PDF generation with placeholders, schema migrations, data-integrity guards for overwrite/bulk-delete protection, OAuth scopes, time-driven triggers, onFormSubmit, UrlFetchApp / LINE Messaging API, email quotas, deployment versioning (/dev vs /exec), and 6-minute limit workarounds. Use whenever working with .gs/.js files in clasp projects, when appsscript.json or .clasp.json exists, wh
How do I install the Gas Best Practices skill?
skills CLI (Claude Code, Cursor, Codex and more): npx skills add kpcrmv4/gas-best-practices --skill gas-best-practices. Skills go in ~/.claude/skills (personal) or .claude/skills (project), and Claude loads them automatically when a task matches the description.
Is Gas Best Practices popular?
It lives in kpcrmv4/gas-best-practices, which has 8 GitHub stars and 10 forks.
Related skills
One Slide
10marcozhou26/one-slide
直接把单页 Markdown 提示词、自然语言或附件实现为恰好一页原生可编辑 PowerPoint;不要求 JSON 页面规格。
AI Presentation
12mchardyan/ai-presentation
Membuat presentasi PowerPoint (.pptx) profesional, padat, dan siap pakai untuk sidang skripsi, pitch deck, presentasi produk, dan kebutuhan presentasi formal lainnya. Gunakan skill ini setiap kali pengguna melampirkan naskah skripsi atau dokumen lain dan meminta dirangkum jadi slide, meminta dibuatkan pitch deck, presentasi produk, atau PPT dalam bentuk apa pun (deck, slide, bahan sidang, bahan presentasi). Tidak perlu menyebut kata ".pptx" secara eksplisit. Skill ini mengatur struktur konten sesuai jenis presentasi (skripsi mulai Latar Belakang sampai Saran, produk dari umum ke detail, pitch
Resume2site Skill
12Bearcoder6/Resume2Site-Skill
Root pointer for the Resume2Site Agent Skill repository. Use when an agent is given this repository and needs to find the primary Resume2Site Skill instructions for turning resumes, projects, and papers into polished GitHub Pages personal websites.
Patent Lens to Excel
11anvcor/patent-lens-to-excel
把光学镜头专利 PDF(日本特开 JP-A、中国 CN-A、美国 US、WO 等)里的透镜面数据表提取成 Excel 并反查 OHARA / HOYA / CDGM / HIKARI 玻璃牌号,也可直接输出带多重结构与对焦位置解的 Zemax .zmx(定焦 INF/0.02x/0.06x/MFD 四结构;变焦 W/M/T 各 ∞ + 0.06x 六结构;自带评价函数与对焦变量)和 CODE V .seq。凡是用户提到"专利数据整理""提取专利镜片数据""专利转 excel / 转 zmx""查玻璃/牌号/nd vd 对应""实施例数据""面数据/レンズデータ/透镜表面",或者丢过来一个带镜头设计表的专利 PDF 并想要表格化结果时,都要用这个 skill。即使用户只说"整理一下这个专利"也应当触发。此外,用户手上已有的 CODE V 序列文件(.seq)要转成 Zemax .zmx、或反过来要 .seq 时,也用这个 skill(seq2zmx.py / make_seq.py)。
Office Bridge
9alphaparkinc/genpark-skill-office-bridge
Office Bridge — Productivity agent specialized in native integration with Microsoft Office (Word, Excel, PowerPoint) and Google Workspace to automate document, spreadsheet, and slide creation.
Laporan Generator
11FRCHN-GSTN/MenulisCep4t
Menulis, menyunting, dan memformat dokumen akademik berbahasa Indonesia dari bahan mentah sampai PDF dan DOCX: skripsi, tesis, tugas akhir, laporan PKL/magang/KKN, makalah, proposal, artikel jurnal. Menyunting dengan kaidah EYD V dan KBBI, menandai pola tulisan AI, memeriksa rujukan lewat OpenAlex/Crossref, lalu membangun dokumen sesuai preset kampus (UI, ITB, UGM, ITS, UNPAD, UB, UNDIP, UNAIR, IPB, Telkom) dengan mesin Typst dan Pandoc. Use for Indonesian academic writing, proofreading, EYD, campus thesis formatting, citation checks, PDF/DOCX export. Tidak mengubah angka, hasil, atau sitasi;
Browse the most popular Claude skills, all documents & office files skills, or write your own with the skills generator.