S

Skills Samber

chrome-extension
samber
Comprehensive guide for building Chrome extensions with Manifest V3. Use this skill whenever the user mentions Chrome extension, browser extension, manifest.json, content script, service worker (in extension context), popup, side panel, chrome.runtime, chrome.tabs, chrome.storage, chrome.scripting, background script, MV3, Manifest V3, or any Chrome extension API. Also trigger when the user wants to inject scripts into web pages, communicate between page and background, bypass CSP from a...
developmentbrowser-automation
conventional-git
samber
มาตรฐานการตั้งชื่อสาขา การตั้งชื่อ worktree และข้อความ commit ตามรูปแบบ Conventional Commits v1.0.0 สำหรับโปรเจกต์บน GitHub และ GitLab ใช้เมื่อสร้างสาขา ตั้งชื่อ worktree เขียน commit สร้างข้อความ commit ตรวจสอบรูปแบบสาขา หรือตั้งค่าระบบอัตโนมัติสำหรับ changelog ใช้เมื่อโปรเจกต์ของคุณต้องการประวัติ git ที่สอดคล้องกัน การเผยแพร่แบบ SemVer การสร้าง changelog ที่สามารถแยกวิเคราะห์ได้ หรือการปิด issue อัตโนมัติ เรียกใช้เมื่อผู้ใช้ถามถึงวิธีการตั้งชื่อ worktree สร้าง git worktree หรือ...
developmentcode-reviewdevops
copywriting-cta
samber
ออกแบบ CTA ท้ายบทความ (คำกระตุ้นการตัดสินใจที่วางไว้ท้ายบล็อกโพสต์ จดหมายข่าว เรียงความ บทความ หรือเนื้อหาที่ยาวใดๆ) ใช้ทักษะนี้เมื่อผู้ใช้ขอให้เขียน ออกแบบ ทบทวน หรือปรับปรุง CTA ท้ายบทความ บล็อกโพสต์ หรือเรียงความ กล่าวถึง "CTA ท้ายโพสต์" "ท้ายบทความ" "คำกระตุ้นการตัดสินใจ" "กล่องสมัครสมาชิก" "CTA จดหมายข่าว" "บล็อกสมัครรับข้อมูล" "ควรใส่อะไรท้ายบทความ" "จะให้ผู้อ่านสมัครสมาชิก / แชร์ / จองการโทร / ซื้อ /...
marketingcreativecommunication
copywriting-hooks
samber
สร้างพ่วงเปิดและหัวข้อโพสต์สำหรับบทความรูปแบบยาวเป็นภาษาอังกฤษหรือฝรั่งเศส — โพสต์บล็อก, Substack/Medium/dev.to, LinkedIn โพสต์ยาว, จดหมายข่าวแบบเสียเงิน, บทความความคิดเห็น, ฟีเจอร์รายงาน, บทความเจาะลึกทางเทคนิค เรียกใช้เมื่อผู้ใช้ขอพ่วงเปิด, การเปิด, การนำ, บทนำ, ประโยค/ย่อหน้าแรก, ตัวเปิด, accroche, attaque, phrase d'accroche, หรือ première phrase — รวมถึงการทำให้บทนำที่ราบเรียบมีชีวิตชีวาขึ้นหรือเขียนใหม่การเปิดแบบร่าง นอกจากนี้ยังเรียกใช้เมื่อผู้ใช้ขอหัวข้อโพสต์, titre d'article,...
marketingcreativecommunication
copywriting-prose-creator
samber
กำหนดรูปแบบการเขียนของบุคคลหรือแบรนด์ — กลไกการเขียนร้อยแก้ว (คลังคำศัพท์ วากยสัมพันธ์ จังหวะ โครงสร้าง ลายเซ็นเฉพาะตัว) โดยไม่ขึ้นกับน้ำเสียงทางอารมณ์ ผลลัพธ์: PROSE.md สามโหมด: BUILD สร้างคู่มือใหม่จาก SOUL.md + TONE.md + การสัมภาษณ์เพื่อค้นหา; ADAPT ปรับคู่มือที่มีอยู่ให้เข้ากับช่องทางใหม่; AUDIT ตรวจสอบคลังข้อความเพื่อหารูปแบบการเขียนร้อยแก้วก่อนกำหนดกฎเกณฑ์ ใช้เมื่อ: ต้องการกฎการเขียนสำหรับโรงงานผลิตเนื้อหา, กำหนดเสียงของนักเขียนเงาเพื่อความสม่ำเสมอในทีมนักเขียนหลายคน, กำหนดคำต้องห้ามและเป้าหมายความยาวประโยค,...
creativecommunicationdocument
copywriting-tone-of-voice-creator
samber
สร้างคู่มือโทนเสียงของแบรนด์ (TONE.md) ผ่านการค้นพบ การกำหนดเสียง และการปรับเปลี่ยนตามช่องทาง ผลลัพธ์ประกอบด้วยคุณลักษณะของเสียงพร้อมข้อควรทำ/ไม่ควรทำ การวางตำแหน่งตาม NN/g เมทริกซ์การปรับโทนเสียง คลังคำศัพท์ กลไก และกฎของช่องทาง — ใช้โดยทักษะเนื้อหาปลายทางในการเขียนคัดลอกที่สอดคล้องกับแบรนด์ ครอบคลุมแบรนด์ B2B SaaS, B2C/D2C, NGO, ภาครัฐ, ที่ปรึกษา, อุตสาหกรรม, ที่ขับเคลื่อนด้วยผลิตภัณฑ์, ส่วนบุคคล และอาสาสมัคร; ค้นคว้าบริบทที่ยังไม่ครอบคลุม (การเมือง, กลุ่มเฉพาะที่มีกฎระเบียบ, องค์กรทางศาสนา, เกมมิ่ง) ต่อไป...
marketingcreativecommunication
crxjs
samber
CRXJS Chrome extension development — true HMR for popup, options, content scripts, side panels, manifest-driven builds, dynamic content script imports (`?script`, `?script&module`), and `defineManifest` for type-safe manifests. Uses Vite as its build tool. Use when the user mentions CRXJS, crxjs, @crxjs/vite-plugin, 'extension with hot reload', 'HMR for chrome extension', or wants to set up a CRXJS-based Chrome extension project with any framework (React, Vue, Svelte, Solid, Vanilla). Also...
developmentbrowser-automation
deep-research
samber
ทักษะการวิจัยเชิงลึก — การค้นหาเว็บแบบขนานในวงกว้าง การตรวจสอบความถูกต้องจากหลายแหล่ง การติดตามความเชื่อมั่น รายงาน Markdown พร้อมการอ้างอิง รองรับการวิจัย 11 ประเภท: ตลาด (TAM/SAM, ส่วนแบ่งตลาด, ราคา, แนวโน้ม), โดเมน (โครงสร้างอุตสาหกรรม, ระบบนิเวศ, ภาพรวมกฎระเบียบ), เทคนิค (สถาปัตยกรรม, เครื่องมือ, เกณฑ์มาตรฐาน), การแข่งขัน (การวิเคราะห์คู่แข่ง, การวางตำแหน่ง, ชนะ/แพ้), ผลิตภัณฑ์ (การวิเคราะห์คุณสมบัติ, บทวิจารณ์, สัญญาณแผนงาน), วิชาการ (การสำรวจวรรณกรรม, เครือข่ายการอ้างอิง, ผู้เขียนหลัก), บุคคล/องค์กร (การตรวจสอบ...)
researchweb-scrapingdata-analysis
frontend-design-deslop
samber
สร้าง UI และแอปพลิเคชันดีไซน์ที่โดดเด่น ไม่ซ้ำใคร โดยทำงานแบบเน้นกลยุทธ์ก่อน ระบุโปรเจกต์ (แลนดิ้งเพจ, แอป SaaS, แดชบอร์ด, อีคอมเมิร์ซ, พรีเซนเทชัน, เอกสาร, พอร์ตโฟลิโอ...) รวมถึงตำแหน่งและบุคลิกภาพของโปรเจกต์ ยึดมั่นในคำคุณศัพท์ของแบรนด์ แปลงเป็นระบบตัวอักษรและสี จากนั้นใช้เลเยอร์งานฝีมือ (เลย์เอาต์ คอมโพเนนต์และสถานะ การเคลื่อนไหว ไอคอน ภาพ โหมดมืดและการธีม การเข้าถึง) หลีกเลี่ยงรูปแบบเริ่มต้นแบบ AI-slop หรือสไตล์คล็อด นี่เป็นทั้ง...
designdevelopmentcreative
golang-benchmark
samber
การวัดประสิทธิภาพ การทำโปรไฟล์ และการวัดสมรรถนะของ Golang ใช้เมื่อเขียน รัน หรือเปรียบเทียบเบนช์มาร์กของ Go การทำโปรไฟล์เส้นทางที่ใช้ทรัพยากรมากด้วย pprof การตีความโปรไฟล์ CPU/หน่วยความจำ/เทรซ การวิเคราะห์ผลลัพธ์ด้วย benchstat การตั้งค่าการตรวจจับการถดถอยของเบนช์มาร์กใน CI หรือการตรวจสอบประสิทธิภาพในระบบผลิตด้วยเมตริกรันไทม์ของ Prometheus นอกจากนี้ยังใช้เมื่อนักพัฒนาต้องการการวิเคราะห์เชิงลึกเกี่ยวกับตัวบ่งชี้ประสิทธิภาพเฉพาะ — ทักษะนี้ให้ระเบียบวิธีการวัด ในขณะที่...
developmenttestingcode-review
golang-cli
samber
Golang CLI application development. Use when building, modifying, or reviewing a Go CLI tool — especially for command structure, flag handling, configuration layering, version embedding, exit codes, I/O patterns, signal handling, shell completion, argument validation, and CLI unit testing. Also triggers when code uses cobra, viper, or urfave/cli. For cobra-specific APIs → See `samber/cc-skills-golang@golang-spf13-cobra` skill; for viper configuration layering → See...
development
golang-code-style
samber
Golang code style conventions — line length and breaking, variable declarations, control flow clarity, when comments help vs hurt. Use when writing or reviewing Go code, asking about style or clarity, or establishing project coding standards. Not for naming conventions (→ See `samber/cc-skills-golang@golang-naming` skill), linter configuration (→ See `samber/cc-skills-golang@golang-lint` skill), or doc comments (→ See `samber/cc-skills-golang@golang-documentation` skill).
developmentcode-review
golang-concurrency
samber
รูปแบบการทำงานพร้อมกันของ Golang ใช้เมื่อเขียนหรือตรวจสอบโค้ด Go ที่ทำงานพร้อมกันซึ่งเกี่ยวข้องกับ goroutines, channels, select, locks, sync primitives, errgroup, singleflight, worker pools หรือ fan-out/fan-in pipelines นอกจากนี้ยังทำงานเมื่อตรวจพบ goroutine leaks, race conditions, ปัญหาการเป็นเจ้าของ channel หรือจำเป็นต้องเลือกระหว่าง channels และ mutexes
developmentcode-review
golang-context
samber
การใช้ context.Context ตามแบบฉบับใน Golang — การส่งต่อผ่านขอบเขต API, การยกเลิก, การหมดเวลาและกำหนดเส้นตาย, ค่าที่มีขอบเขตตามคำขอ, context.WithoutCancel สำหรับงานเบื้องหลังที่อยู่ยาวนานกว่าคำขอ ใช้เมื่อออกแบบการส่งต่อ context ข้ามเลเยอร์, แก้ไข context ที่รั่วไหลหรือไม่หมดอายุ, เลือกระหว่าง context.Background/TODO/WithoutCancel, หรือเก็บค่าใน context ไม่ใช่สำหรับโค้ดที่รับ ctx เป็นพารามิเตอร์แรกเท่านั้น
development
golang-continuous-integration
samber
การกำหนดค่าไปป์ไลน์ CI/CD โดยใช้ GitHub Actions สำหรับโปรเจกต์ Golang — การทดสอบ, การตรวจสอบโค้ด, SAST, การสแกนความปลอดภัย, ความครอบคลุมของโค้ด, Dependabot, Renovate, GoReleaser, ระบบอัตโนมัติในการตรวจสอบโค้ด และไปป์ไลน์การเผยแพร่ ใช้เมื่อตั้งค่าหรือปรับปรุง CI ของโปรเจกต์ Go, กำหนดค่าเวิร์กโฟลว์ GitHub Actions, เพิ่ม linter หรือเครื่องมือสแกนความปลอดภัย, ทำให้การอัปเดต dependencies เป็นอัตโนมัติ หรือเพิ่มเกณฑ์คุณภาพ
developmentdevopstesting
golang-data-structures
samber
โครงสร้างข้อมูล Golang — slices (ภายใน, การเติบโตของความจุ, การจัดสรรล่วงหน้า, แพ็กเกจ slices), maps (ภายใน, บัคเก็ตแฮช, แพ็กเกจ maps), arrays, container/list/heap/ring, strings.Builder เทียบกับ bytes.Buffer, คอลเลกชันเจนเนอริก, พอยน์เตอร์ (unsafe.Pointer, weak.Pointer), และความหมายของการคัดลอก ใช้เมื่อเลือกหรือปรับแต่งโครงสร้างข้อมูล Go, การใช้งานคอนเทนเนอร์เจนเนอริก, การใช้แพ็กเกจ container/, พอยน์เตอร์ unsafe หรือ weak, หรือการสอบถามภายในของ slice หรือ map
developmentdata-analysis
golang-database
samber
คู่มือครอบคลุมการเข้าถึงฐานข้อมูลใน Go — คิวรีแบบมีพารามิเตอร์, การสแกนโครงสร้าง, คอลัมน์ที่รองรับค่า NULL, ธุรกรรม, ระดับการแยกธุรกรรม, SELECT FOR UPDATE, พูลการเชื่อมต่อ, การประมวลผลแบบแบตช์, การส่งต่อบริบท, และเครื่องมือจัดการไมเกรชัน ใช้เมื่อเขียน, ตรวจสอบ, หรือดีบักโค้ด Golang ที่ทำงานกับ PostgreSQL, MariaDB, MySQL, หรือ SQLite; สำหรับการทดสอบฐานข้อมูล; หรือสำหรับคำถามเกี่ยวกับ database/sql, sqlx, หรือ pgx ไม่สร้างสคีมาฐานข้อมูลหรือ SQL สำหรับไมเกรชัน
developmentdatabase
golang-dependency-injection
samber
Comprehensive guide for dependency injection (DI) in Golang. Covers why DI matters (testability, loose coupling, separation of concerns, lifecycle management), manual constructor injection, and DI library comparison (google/wire, uber-go/dig, uber-go/fx, samber/do). Use this skill when designing service architecture, setting up dependency injection, refactoring tightly coupled code, managing singletons or service factories, or when the user asks about inversion of control, service...
developmentcode-reviewapi
golang-dependency-management
samber
Dependency management strategies for Golang projects — go.mod management, installing/upgrading packages, Minimal Version Selection, vulnerability scanning, outdated dependency tracking, binary size analysis, Dependabot/Renovate setup, conflict resolution, and go.work workspaces. Use when adding, removing, or upgrading Go dependencies, auditing vulnerabilities, resolving version conflicts, or setting up automated dependency updates.
developmentsecuritydevops
golang-design-patterns
samber
รูปแบบการออกแบบ Go ที่เป็นธรรมชาติ — ตัวเลือกเชิงฟังก์ชัน, คอนสตรัคเตอร์, การไหลของข้อผิดพลาดและการเรียงลำดับ, การจัดการทรัพยากรและวงจรชีวิต, การปิดระบบอย่างนุ่มนวล, ความยืดหยุ่น, สถาปัตยกรรม, การฉีด dependencies, การจัดการข้อมูล, การสตรีม และอื่นๆ ใช้เมื่อเลือกอย่างชัดเจนระหว่างรูปแบบสถาปัตยกรรม, การใช้ตัวเลือกเชิงฟังก์ชัน, การออกแบบ API ของคอนสตรัคเตอร์, การตั้งค่าการปิดระบบอย่างนุ่มนวล, การใช้รูปแบบความยืดหยุ่น, หรือการถามว่ารูปแบบ Go ที่เป็นธรรมชาติใดเหมาะกับปัญหาเฉพาะ
developmentdesigncode-review
golang-documentation
samber
Comprehensive documentation guide for Golang projects, covering godoc comments, README, CONTRIBUTING, CHANGELOG, Go Playground, Example tests, API docs, and llms.txt. Use when writing or reviewing doc comments, documentation, adding code examples, setting up doc sites, or discussing documentation best practices. Triggers for both libraries and applications/CLIs.
developmentdocumentcode-review
golang-error-handling
samber
Idiomatic Golang error handling — creation, wrapping with %w, errors.Is/As, errors.Join, custom error types, sentinel errors, panic/recover, the single handling rule, structured logging with slog, HTTP request logging middleware, and samber/oops for production errors. Built to make logs usable at scale with log aggregation 3rd-party tools. Apply when creating, wrapping, inspecting, or logging errors in Go code. For samber/oops specifics → See `samber/cc-skills-golang@golang-samber-oops`...
developmentcode-review
golang-google-wire
samber
Compile-time dependency injection in Golang using google/wire — wire.NewSet, wire.Build, wire.Bind (interface→concrete), wire.Struct, wire.Value, wire.InterfaceValue, wire.FieldsOf, cleanup functions, //go:build wireinject injector files, and generated wire_gen.go. Apply when using or adopting google/wire, when the codebase imports `github.com/google/wire`, or when wiring an application graph at compile time via `wire.Build`. For runtime DI with reflection, see...
developmentcode-review
golang-graphql
samber
Implements GraphQL APIs in Golang using gqlgen or graphql-go. Apply when building GraphQL servers, designing schemas, writing resolvers, handling subscriptions, or integrating GraphQL with existing Go HTTP services. Also apply when the codebase imports `github.com/99designs/gqlgen` or `github.com/graph-gophers/graphql-go`.
developmentapi
golang-grpc
samber
ให้แนวทางการใช้งาน gRPC การจัดระเบียบ protobuf และรูปแบบที่พร้อมสำหรับการผลิตสำหรับไมโครเซอร์วิส Golang ใช้เมื่อนำไปใช้ ตรวจสอบ หรือดีบักเซิร์ฟเวอร์/ไคลเอนต์ gRPC เขียนไฟล์ proto ตั้งค่า interceptor จัดการข้อผิดพลาด gRPC ด้วยรหัสสถานะ กำหนดค่า TLS/mTLS ทดสอบด้วย bufconn หรือทำงานกับสตรีมมิ่ง RPC
developmentapicode-review
golang-how-to
samber
ตัวประสานทักษะ Golang — ทำงานตลอดเวลาสำหรับงานเขียนโค้ด ตรวจสอบ แก้ไขบั๊ก หรือตั้งค่า Golang อ่านบริบทของงานและโหลดทักษะที่เกี่ยวข้องมากที่สุดจาก samber/cc-skills-golang ซึ่งมักจะโหลดหลายทักษะพร้อมกัน เช่น การเขียนบริการ gRPC จะโหลด golang-grpc + golang-testing + golang-error-handling การแก้ไขบั๊ก panic จะโหลด golang-troubleshooting + golang-safety การตรวจสอบความปลอดภัยจะโหลด golang-security + golang-lint + golang-safety นอกจากนี้ยังแยกแยะคลัสเตอร์ที่แข่งขันกันเมื่อสองทักษะดูเหมือนจะทับซ้อนกัน...
developmentcode-reviewtesting
golang-lint
samber
แนวทางปฏิบัติที่ดีที่สุดในการ lint และการกำหนดค่า golangci-lint สำหรับโปรเจกต์ Golang — การรัน linter, การกำหนดค่า .golangci.yml, การระงับคำเตือนด้วย nolint directives, การตีความผลลัพธ์ lint, และการเลือก linter ใช้เมื่อกำหนดค่า golangci-lint, สอบถามเกี่ยวกับคำเตือน lint หรือการระงับ nolint, ตั้งค่าเครื่องมือคุณภาพโค้ด, หรือเลือก linter นอกจากนี้ยังใช้เมื่อผู้ใช้กล่าวถึง golangci-lint, go vet, staticcheck, หรือ revive
developmentcode-reviewtesting
golang-linter
samber
golang-linter — ทักษะที่สามารถติดตั้งได้สำหรับเอเจนต์ AI
developmentcode-review
golang-modernize
samber
Modernize Golang code to use recent language features, standard library improvements, and idiomatic patterns. Trigger proactively when writing or reviewing Go code and old-style patterns are detected, or when encountering a deprecation warning. Also use when the user explicitly asks for modernization, a Go version upgrade, or a CI/tooling refresh.
developmentcode-review
golang-naming
samber
Go (Golang) naming conventions — covers packages, constructors, structs, interfaces, constants, enums, errors, booleans, receivers, getters/setters, functional options, acronyms, test functions, and subtest names. Use this skill when writing new Go code, reviewing or refactoring, choosing between naming alternatives (New vs NewTypeName, isConnected vs connected, ErrNotFound vs NotFoundError, StatusReady vs StatusUnknown at iota 0), debating Go package names (utils/helpers anti-patterns), or...
developmentcode-review
golang-observability
samber
การสังเกตการณ์ Golang ในชีวิตประจำวัน — สัญญาณที่เปิดตลอดเวลาในระบบผลิต ครอบคลุมการบันทึกแบบมีโครงสร้างด้วย slog, เมตริก Prometheus, การติดตามแบบกระจาย OpenTelemetry, การทำโปรไฟล์ต่อเนื่องด้วย pprof/Pyroscope, การติดตามเหตุการณ์ RUM ฝั่งเซิร์ฟเวอร์, การแจ้งเตือน และแดชบอร์ด Grafana ใช้เมื่อทำการติดตั้งเครื่องมือในบริการ Go สำหรับการตรวจสอบในระบบผลิต, การตั้งค่าเมตริกหรือการแจ้งเตือน, การเพิ่มการติดตาม OpenTelemetry, การเชื่อมโยงบันทึกกับร่องรอย, การย้ายตัวบันทึกแบบเก่า (zap/logrus/zerolog) ไปยัง slog, การเพิ่ม...
developmentdevops
golang-performance
samber
รูปแบบและวิธีการปรับแต่งประสิทธิภาพของ Golang - หากพบคอขวด X ให้ใช้ Y ครอบคลุมการลดการจัดสรรหน่วยความจำ ประสิทธิภาพของ CPU การจัดวางหน่วยความจำ การปรับแต่ง GC การใช้พูล การแคช และการปรับแต่งเส้นทางร้อน ใช้เมื่อการโปรไฟล์หรือการวัดประสิทธิภาพระบุคอขวดและคุณต้องการรูปแบบการปรับแต่งที่ถูกต้องเพื่อแก้ไข ยังใช้เมื่อตรวจสอบโค้ดด้านประสิทธิภาพเพื่อแนะนำการปรับปรุงหรือการวัดประสิทธิภาพที่ช่วยระบุการเพิ่มประสิทธิภาพอย่างรวดเร็ว ไม่ใช่สำหรับวิธีการวัดผล (→...
developmentcode-review
golang-popular-libraries
samber
แนะนำไลบรารีและเฟรมเวิร์ก Golang ที่พร้อมใช้งานจริง ใช้เมื่อผู้ใช้ขอคำแนะนำเกี่ยวกับไลบรารีอย่างชัดเจน ต้องการเปรียบเทียบทางเลือกอื่น จำเป็นต้องเลือกไลบรารีสำหรับงานเฉพาะ หรือเมื่อมีการเพิ่ม dependency ใหม่ในโปรเจกต์
developmentresearchcode-review
golang-project-layout
samber
Provides a guide for setting up Golang project layouts and workspaces. Use when starting a new Go project, organizing an existing codebase, setting up a monorepo with multiple packages, creating CLI tools with multiple main packages, deciding between cmd/internal/pkg directory conventions, or discussing package restructuring, package splits, or module splits.
development
golang-safety
samber
การเขียนโค้ด Golang แบบป้องกันเพื่อหลีกเลี่ยง panic, การปนเปื้อนข้อมูลแบบเงียบ, และบั๊ก runtime ที่ซับซ้อน ใช้เมื่อพบ nil panic, append aliasing, การเข้าถึง map พร้อมกัน, ข้อผิดพลาดการเปรียบเทียบ float, หรือคำถามเกี่ยวกับการออกแบบค่าเริ่มต้น ใช้เมื่อตรวจสอบโค้ดเพื่อความปลอดภัยจาก nil, overflow ในการแปลงตัวเลข, ปัญหาวงจรชีวิตทรัพยากร (defer ในลูป), หรือการคัดลอก slice และ map แบบป้องกัน
developmentcode-reviewsecurity
golang-samber-do
samber
การฉีด dependency ใน Golang โดยใช้ samber/do — service containers, การจัดการ lifecycle, scopes, health checks, graceful shutdown, และการจัดระเบียบโมดูล ใช้เมื่อใช้งานหรือนำ samber/do มาใช้ เมื่อ codebase นำเข้า github.com/samber/do หรือ github.com/samber/do/v2 หรือเมื่อปรับโครงสร้างการฉีด constructor แบบ manual ไปเป็น DI container
developmentcode-reviewtesting
golang-samber-hot
samber
การแคชในหน่วยความจำด้วย Golang โดยใช้ samber/hot — อัลกอริธึมการขับไล่ (LRU, LFU, TinyLFU, W-TinyLFU, S3FIFO, ARC, TwoQueue, SIEVE, FIFO), TTL, ตัวโหลดแคช, การแบ่งส่วน, stale-while-revalidate, การแคชคีย์ที่หายไป และเมตริก Prometheus ใช้เมื่อใช้งานหรือนำ samber/hot มาใช้ เมื่อโค้ดเบส import github.com/samber/hot หรือเมื่อโปรเจกต์โหลดทรัพยากรที่มีคาร์ดินัลลิตี้ปานกลางถึงต่ำซ้ำๆ ด้วยความถี่สูงและต้องการลดความหน่วงหรือแรงกดดันจากแบ็กเอนด์
developmentdatabase
golang-samber-lo
samber
ตัวช่วยการเขียนโปรแกรมเชิงฟังก์ชันสำหรับ Golang โดยใช้ samber/lo — ฟังก์ชันเจนเนอริกที่ปลอดภัยต่อชนิดข้อมูลกว่า 500 รายการสำหรับ slices, maps, channels, strings, math, tuples และการทำงานพร้อมกัน (Map, Filter, Reduce, GroupBy, Chunk, Flatten, Find, Uniq ฯลฯ) แพ็กเกจหลักแบบ immutable (lo), รูปแบบ concurrent (lo/parallel หรือ lop), การเปลี่ยนแปลงในที่ (lo/mutable หรือ lom), lazy iterators (lo/it หรือ loi สำหรับ Go 1.23+) และ SIMD ทดลอง (lo/exp/simd) ใช้เมื่อกำลังใช้งานหรือนำ samber/lo มาใช้ เมื่อโค้ดเบสนำเข้า...
development
golang-samber-mo
samber
Monadic types for Golang using samber/mo — Option, Result, Either, Future, IO, Task, and State types for type-safe nullable values, error handling, and functional composition with pipeline sub-packages. Apply when using or adopting samber/mo, when the codebase imports `github.com/samber/mo`, or when considering functional programming patterns as a safety design for Golang.
developmentcode-review
golang-samber-oops
samber
การจัดการข้อผิดพลาดแบบมีโครงสร้างใน Golang ด้วย samber/oops — ตัวสร้างข้อผิดพลาด, การติดตามสแต็ก, รหัสข้อผิดพลาด, บริบทของข้อผิดพลาด, การห่อหุ้มข้อผิดพลาด, คุณลักษณะของข้อผิดพลาด, ข้อความสำหรับผู้ใช้เทียบกับนักพัฒนา, การกู้คืนจาก panic, และการรวมเข้ากับ logger ใช้เมื่อใช้งานหรือนำ samber/oops มาใช้ หรือเมื่อโค้ดเบสมีการนำเข้า github.com/samber/oops อยู่แล้ว
development
golang-samber-ro
samber
Reactive streams and event-driven programming in Golang using samber/ro — ReactiveX implementation with 150+ type-safe operators, cold/hot observables, 5 subject types (Publish, Behavior, Replay, Async, Unicast), declarative pipelines via Pipe, 40+ plugins (HTTP, cron, fsnotify, JSON, logging), automatic backpressure, error propagation, and Go context integration. Apply when using or adopting samber/ro, when the codebase imports github.com/samber/ro, or when building asynchronous...
developmentapidata-analysis
golang-samber-slog
samber
Structured logging extensions for Golang using samber/slog-**** packages — multi-handler pipelines (slog-multi), log sampling (slog-sampling), attribute formatting (slog-formatter), HTTP middleware (slog-fiber, slog-gin, slog-chi, slog-echo), and backend routing (slog-datadog, slog-sentry, slog-loki, slog-syslog, slog-logstash, slog-graylog...). Apply when using or adopting slog, or when the codebase already imports any github.com/samber/slog-* package.
developmentapi
golang-security
samber
แนวทางปฏิบัติด้านความปลอดภัยและการป้องกันช่องโหว่สำหรับ Golang ครอบคลุมการฉีด (SQL, command, XSS), การเข้ารหัส, ความปลอดภัยของระบบไฟล์, ความปลอดภัยเครือข่าย, คุกกี้, การจัดการความลับ, ความปลอดภัยของหน่วยความจำ และการบันทึก ใช้เมื่อเขียน ตรวจสอบ หรือตรวจสอบโค้ด Go เพื่อความปลอดภัย หรือเมื่อทำงานกับโค้ดที่มีความเสี่ยงที่เกี่ยวข้องกับการเข้ารหัส I/O การจัดการความลับ การจัดการอินพุตจากผู้ใช้ หรือการยืนยันตัวตน รวมถึงการกำหนดค่าเครื่องมือด้านความปลอดภัย
securitycode-reviewdevelopment
golang-spf13-cobra
samber
Golang CLI command tree library using spf13/cobra — cobra.Command, RunE vs Run, PersistentPreRunE hook chain, Args validators (NoArgs, ExactArgs, MatchAll, custom), persistent vs local flags, command groups, ValidArgsFunction, RegisterFlagCompletionFunc, ShellCompDirective, usage/help template customization, man-page and markdown doc generation, and testing with SetArgs/SetOut/SetErr. Apply when using or adopting spf13/cobra, or when the codebase imports `github.com/spf13/cobra`. For...
development
golang-spf13-viper
samber
Golang configuration library using spf13/viper — layered precedence (flag > env > file > KV > default), BindPFlag/BindPFlags, SetEnvPrefix + SetEnvKeyReplacer + AutomaticEnv, ReadInConfig + ConfigFileNotFoundError, Unmarshal + mapstructure struct tags, Sub for sub-trees, WatchConfig + OnConfigChange for hot reload, viper.New() for test isolation, and remote KV integration. Apply when using or adopting spf13/viper, or when the codebase imports `github.com/spf13/viper`. For CLI command...
developmentapicode-review
golang-stay-updated
samber
Provides resources to stay updated with Golang news, communities and people to follow. Use when seeking Go learning resources, discovering new libraries, finding community channels, or keeping up with Go language changes and releases.
developmentresearch
golang-stretchr-testify
samber
Comprehensive guide to stretchr/testify for Golang testing. Covers assert, require, mock, and suite packages in depth. Use when writing tests with testify, creating mocks, setting up test suites, or choosing between assert and require. Covers testify assertions, mock expectations, argument matchers, call verification, suite lifecycle, and advanced patterns like Eventually, JSONEq, and custom matchers. Apply when the codebase imports github.com/stretchr/testify.
developmenttestingcode-review
golang-structs-interfaces
samber
รูปแบบการออกแบบ struct และ interface ของ Golang — การประกอบ (composition), การฝัง (embedding), การยืนยันชนิด (type assertions), การสลับชนิด (type switches), การแยก interface (interface segregation), การฉีด dependency ผ่าน interface, แท็กฟิลด์ struct (struct field tags), และตัวรับแบบ pointer กับ value ใช้ทักษะนี้เมื่อออกแบบชนิดข้อมูล Go, การกำหนดหรือการนำ interface ไปใช้, การฝัง struct หรือ interface, การเขียน type assertions หรือ type switches, การเพิ่มแท็กฟิลด์ struct สำหรับการทำให้เป็นอนุกรม JSON/YAML/DB, หรือการเลือกระหว่างตัวรับแบบ pointer และ value รวมถึงเมื่อผู้ใช้...
developmentcode-review
golang-swagger
samber
เอกสาร Golang OpenAPI/Swagger พร้อมคอมเมนต์คำอธิบายของ swaggo/swag (@Summary, @Param, @Success, @Router, @Security), การสร้างโค้ดด้วย swag init, การรวมเฟรมเวิร์ก (gin, echo, fiber, chi, net/http), คำจำกัดความด้านความปลอดภัย (Bearer/JWT, OAuth2, API key), และแท็กโครงสร้าง (swaggertype, enums, example, swaggerignore) ใช้เมื่อเพิ่มหรือดูแลเอกสาร Swagger/OpenAPI ในโปรเจกต์ Go หรือเมื่อโค้ดเบสมีการนำเข้า github.com/swaggo/swag, github.com/swaggo/gin-swagger,...
developmentapi
golang-testing
samber
Production-ready Golang tests — table-driven tests, testify suites and mocks, parallel tests, fuzzing, fixtures, goroutine leak detection with goleak, snapshot testing, code coverage, integration tests, idiomatic test naming. Use when writing or reviewing Go tests, choosing a testing approach, setting up Go test CI, or debugging flaky/slow tests. For testify-specific APIs see `samber/cc-skills-golang@golang-stretchr-testify`; for measurement methodology see...
developmenttestingcode-review
golang-troubleshooting
samber
Troubleshoot Golang programs systematically - find and fix the root cause. Use when encountering bugs, crashes, deadlocks, or unexpected behavior in Go code. Covers debugging methodology, common Go pitfalls, test-driven debugging, pprof setup and capture, Delve debugger, race detection, GODEBUG tracing, and production debugging. Start here for any 'something is wrong' situation. Not for interpreting profiles or benchmarking (→ See `samber/cc-skills-golang@golang-benchmark` skill) or applying...
developmenttesting
golang-uber-dig
samber
Implements dependency injection in Golang using uber-go/dig — reflection-based container, Provide/Invoke, dig.In/dig.Out parameter and result objects, named values, value groups, optional dependencies, scopes, and Decorate. Apply when using or adopting uber-go/dig, when the codebase imports `go.uber.org/dig`, or when wiring an application graph at startup. For higher-level lifecycle and modules, see `samber/cc-skills-golang@golang-uber-fx` skill.
developmentapi
golang-uber-fx
samber
Golang application framework using uber-go/fx — fx.New, fx.Provide, fx.Invoke, fx.Module, fx.Lifecycle hooks, fx.Annotate (name/group/As), fx.Decorate, fx.Supply, fx.Replace, fx.WithLogger, and signal-aware Run(). Apply when using or adopting uber-go/fx, when the codebase imports `go.uber.org/fx`, or when wiring services with fx.New. For raw DI without lifecycle, see `samber/cc-skills-golang@golang-uber-dig` skill.
developmentapi
humaniseur-fr
samber
Remove AI-writing patterns from French text and inject voice, personality, and soul. Use when editing, reviewing, rewriting, or cleaning up French content that reads like ChatGPT/Claude output. Humanize, humanise, déslopifier. Detects and fixes 27 patterns: AI vocabulary overuse (crucial, essentiel, notamment, par ailleurs, dans le paysage), anglicisms from English-first models (faire du sens, adresser un problème), copula avoidance, formulaic openings (À l'ère de, Dans le paysage actuel),...
creativecommunication
influence-and-negotiation
samber
ชุดเครื่องมืออิทธิพลและการเจรจาต่อรองสำหรับการโต้ตอบใดๆ ที่ต้องได้รับความยินยอมจากบุคคลอื่น แม้จะไม่ได้ถูกกำหนดกรอบว่าเป็น 'การเจรจา' ครอบคลุม: การขาย B2B, การทบทวนเงินเดือน, การต่อรองร่วมกัน/สหภาพแรงงาน, การพูดคุยแบบตัวต่อตัวที่ยาก, การประกาศตัดสินใจ, การไกล่เกลี่ย, ข้อตกลงข้ามวัฒนธรรม, การสรรหาบุคลากร, การติดต่อผู้จัดการ, CFO, ลูกค้า, ผู้ขาย หรือเพื่อนร่วมงาน, การตอบสนองต่อข้อเสนอแนะ, การขออัตรากำลังคน, การปฏิเสธ, การโต้แย้งขอบเขตงาน, การชี้แจงเหตุผลที่ล่าช้า, การอธิบายการตัดสินใจ, การหยิบยกข้อกังวล, การได้รับ...
communicationresearchproductivity
linkedin-ghostwriter
samber
linkedin-ghostwriter — ทักษะที่สามารถติดตั้งได้สำหรับเอเจนต์ AI
marketingcommunicationcreative
linkedin-ghostwriting
samber
B2B LinkedIn ghostwriting — strategic interview, hook engineering, and post body. Use when the user wants to write LinkedIn content, create ghostwritten posts, ghostwrite for a founder or executive, develop a B2B social strategy, or needs hooks, post structures, or copywriting frameworks for LinkedIn. Apply when the user shares a story, result, or insight and wants it turned into a post.
marketingcommunicationcreative
press-release-writer
samber
เขียนข่าวประชาสัมพันธ์ระดับมืออาชีพสำหรับทุกโอกาส สื่อทุกประเภท และทุกประเทศ ใช้เมื่อผู้ใช้ต้องการเขียน ร่าง หรือปรับปรุงข่าวประชาสัมพันธ์ คอมมูนิเกเดอเพรส ประกาศสื่อ ข่าวแจก หรือแถลงการณ์ประชาสัมพันธ์ รวมถึงการเปิดตัวผลิตภัณฑ์ การระดมทุน ความร่วมมือ การสื่อสารในภาวะวิกฤต ผลประกอบการ การแต่งตั้งผู้บริหาร กิจกรรม การควบรวมและซื้อกิจการ เหตุการณ์สำคัญในโอเพนซอร์ส และคำแนะนำสื่อ ครอบคลุมข่าวประชาสัมพันธ์ทุกประเภท กลุ่มเป้าหมายสื่อ (สิ่งพิมพ์ ดิจิทัล/ไวร์ กระจายเสียง โซเชียล/SMPR สื่อการค้า) และ...
marketingcommunicationcreative
promql-cli
samber
CLI สำหรับสอบถาม Prometheus และเอนจินที่รองรับ PromQL (Thanos, Cortex, VictoriaMetrics, Grafana Mimir, Grafana Tempo...) — คำสั่งแบบทันที, คำสั่งแบบช่วง, การค้นพบเมตริก (คำสั่งย่อย metrics/labels/meta), รูปแบบเอาต์พุต (table/csv/json/graph) ใช้เมื่อดำเนินการสอบถาม PromQL, แก้ไขปัญหาประสิทธิภาพในซอฟต์แวร์ที่มีการสังเกตการณ์, ตรวจสอบอัตราความหน่วง/ข้อผิดพลาด/ความอิ่มตัว, หรือวิเคราะห์ข้อมูลอนุกรมเวลา
developmentdevopsdata-analysis
site-launch-checklist
samber
รายการตรวจสอบก่อนเปิดตัวสำหรับการเปิดตัวเว็บไซต์ใหม่ จัดการการตั้งค่าการวิเคราะห์ (GA4, PostHog, Google Search Console, Ahrefs) การปฏิบัติตามกฎหมาย ความปลอดภัยของส่วนหัวและการตรวจสอบ SEO และ GEO พร้อมการวิจัยคำหลักที่ตรวจสอบความถูกต้องกับ Google Trends (robots.txt, sitemaps, llms.txt, นโยบาย AI, schema markup, hreflang) ความสอดคล้องของการเขียนคำโฆษณาผ่าน TONE.md และการปรับให้เป็นธรรมชาติในภาษาที่ตรงกัน OpenGraph และตัวอย่างโซเชียล ชุด favicon ที่สมบูรณ์พร้อม manifest การควบคุมคุณภาพ (Lighthouse, Core Web...
developmentresearch
skill-progressive-disclosure-design
samber
ตัดสินใจว่าจะแบ่งเนื้อหาสกิลระหว่าง SKILL.md และไฟล์อ้างอิงอย่างไรเพื่อประสิทธิภาพของบริบทและการเรียกใช้งานที่เชื่อถือได้ ใช้สิ่งนี้ทุกครั้งที่สร้างสกิล Claude ใหม่ ปรับโครงสร้างสกิลที่มีอยู่ หรือเมื่อ SKILL.md มีความยาวเกิน 300-400 บรรทัด นอกจากนี้ให้เรียกใช้เมื่อผู้ใช้พูดถึง "progressive disclosure", "reference files", "splitting skills", "skill bundling", "context window for skills", "SKILL.md too long", "what goes in references/", "skill structure" หรือแสดงความไม่แน่ใจเกี่ยวกับ...
designdocumentdevelopment
snyk-agent-scan-compliance
samber
ผู้เชี่ยวชาญด้านการปฏิบัติตามข้อกำหนดสำหรับ snyk-agent-scan — ตัวสแกนไฟล์ skill agent — ไม่ใช่สำหรับเครื่องมือ Snyk CLI อื่นๆ (snyk test, snyk code SAST, snyk iac, snyk container) แก้ไขการแจ้งเตือนผ่านการปรับโครงสร้างเนื้อหา โดยไม่เคยระงับหรือลบข้อมูล ครอบคลุมทุกไฟล์ในไดเรกทอรี skill: SKILL.md, references/, assets/, และ markdown รองใดๆ ใช้เมื่อเขียน skill ใหม่ แก้ไข skill ที่มีอยู่ ตรวจสอบการทำงานของ snyk-agent-scan ที่ล้มเหลวในเครื่องหรือใน CI หรือปลดล็อก PR ที่ถูกค้างโดย agent...
developmentsecuritycode-review
substack-ghostwriting
samber
เขียน ปรับแต่ง และเติบโตคอนเทนต์บน Substack ทั้งจดหมายข่าว (เน้นอีเมล) และโพสต์บนเว็บ (บทความ/เรียงความที่เน้นเว็บ) ครอบคลุมการเขียนแบบโกสต์ไรท์ติ้งพร้อมปรับเสียงให้ตรงกับผู้เขียน การปรับแต่งอัลกอริทึมของ Substack กลยุทธ์ Notes การจัดรูปแบบอีเมล SEO กลยุทธ์การเติบโต และการวางแผนสร้างรายได้ ใช้เมื่อผู้ใช้พูดถึง Substack จดหมายข่าว เขียนจดหมายข่าว โพสต์ Substack บทความ Substack โพสต์เว็บบน Substack คอนเทนต์ที่คงทน SEO สำหรับ Substack การเติบโตของจดหมายข่าว กลยุทธ์ Notes การเขียนแบบโกสต์ไรท์...
creativemarketing
technical-article-writer
samber
Write compelling technical articles and blog posts for developer audiences. Use this skill whenever the user asks to write a blog post, technical article, or any long-form technical content. Also trigger when the user says 'write about [technical topic]', 'help me draft an article', 'turn this into a blog post', 'write a post about', 'I want to publish something about', or mentions writing for a developer audience. Covers the full pipeline: idea sharpening, hook/title generation, article...
developmentcreativeresearch
training-report
samber
Produce a professional training/workshop report as a .docx file. Use this skill whenever the user mentions "training report", "workshop report", "compte rendu", "compte rendu de formation", "formation report", "debriefing a workshop", "write up a training session", "résumé de formation", or any request to document a training session, workshop, or onboarding event with individual participant feedback and recommendations. Also trigger when the user says things like "I just ran a workshop and...
documentproductivitycommunication