Skip to content

Instantly share code, notes, and snippets.

View peerasak-u's full-sized avatar

Peerasak Unsakon peerasak-u

View GitHub Profile
@peerasak-u
peerasak-u / prd_summary.md
Last active May 7, 2026 16:14
Summary of Order Extractor Enhancement (Issue #8)

📋 สรุปแผนงานพัฒนาระบบ Order Extractor (Issue #8)

อัปเกรดระบบดึงข้อมูลออเดอร์ให้รองรับราคา, Webhook และไฟล์รูปแบบใหม่

1. ดึงข้อมูลราคา (Pricing Data) 💰

  • เพิ่มการดึงข้อมูล pack_size (เช่น 12x750ml) และ price_per_pack (ราคาต่อลัง/แพ็ค)
  • รองรับคู่ค้าเดิม: CPALL, Lotus, BigC, TopsMini
  • เพิ่มฟิลด์ใน Database ทั้งส่วน Order และ Item

2. ระบบ Webhook 🔗

@peerasak-u
peerasak-u / SKILL.md
Created April 29, 2026 07:42
study-from-github: Learn SDKs/APIs by studying real code on GitHub
name study-from-github
description Learn undocumented or poorly-documented SDKs/APIs by studying real-world code on GitHub. Use when asked to "learn from GitHub", "study source code", "find examples", "understand unknown API", "check how others use X", "look for patterns".

Study from GitHub

Learn how to use unknown or poorly-documented APIs by searching, cloning, and studying real-world code on GitHub.

When to Use This Skill

@peerasak-u
peerasak-u / mcp-mega-context-problem-fb-post.md
Last active April 28, 2026 04:08
FB post draft in Peerasak voice about Matt Carey: MCP = Mega Context Problem

เมื่อคืนผมดูคลิป MCP = Mega Context Problem ของ Matt Carey จากช่อง AI Engineer แล้วรู้สึกว่า เออ... คนนี้พูดสิ่งที่หลายคนน่าจะเริ่มเจอเหมือนกัน แต่ยังไม่ค่อยมีใครพูดตรงๆ น่ะครับ

Matt ทำงานเรื่อง MCP กับ agents ที่ Cloudflare เลยไม่ได้พูดจากมุมคนดูเฉยๆ แต่พูดจากมุมคนที่ต้องเอา agent ไปชนกับ API จริงแบบใหญ่จัด

สำหรับผม แกกำลังชี้อยู่เรื่องเดียวเลยครับ

ปัญหามันไปอยู่ที่ฝั่ง agent มากกว่า

คือเราเอา tools ไปยัดใส่ context แบบไม่ลืมหูลืมตาเอง

@peerasak-u
peerasak-u / mcp-mega-context-problem.md
Created April 28, 2026 02:42
MCP = Mega Context Problem — บล็อกสรุปคลิป Matt Carey (Cloudflare) ในสไตล์ พรศ

MCP = Mega Context Problem — แล้วทางออกคือไรกันแน่?

วันนี้ไถ YouTube ไปเจอคลิปจากช่อง AI Engineer ตัวนึง ชื่อว่า "MCP = Mega Context Problem" ของ Matt Carey จาก Cloudflare

ชื่อคลิปนี่ทำเอาต้องหยุดดู (เพราะเดือนที่ผ่านๆมาดราม่า MCP vs CLI ในทวิตเตอร์ก็ปั่นกันแบบไม่ลง) — ฟังจบแล้วก็เลยอยากเอามาเล่าให้ฟังว่า มุมที่ Cloudflare มอง MCP กับที่หลายๆคนมองนี่ มันต่างกันยังไง

ปัญหาที่ทำให้ทุกคนปวดหัว

MCP เปิดตัวมาประมาณเมษาปีที่แล้ว แล้วทุกคนก็ปั่นกันใหญ่ — เพราะมัน standardize tool calling ให้ agent ใช้ของกลางได้ ไม่ต้อง bundle tools เองในทุก app

MCP = Mega Context Problem: เมื่อ Tool เยอะเกินไปจน AI เอ๋อ (และวิธีแก้ที่ถูกต้อง)

จำโพสต์ก่อนหน้านี้ที่ผมเคยบ่นเรื่อง "อย่าใช้ MCP ถ้าไม่จำเป็น" ได้ไหมครับ? ที่ผมบอกว่าลง MCP Server ตัวนึงอย่าง XcodeBuild บางทีมันล่อ context เราไป 45k tokens (เกือบ 25% ของโควตา!) ทั้งๆ ที่เรายังไม่ได้สั่งให้มันทำอะไรเลยด้วยซ้ำ

นั่นแหละครับคือสิ่งที่ Matt Carey จาก Cloudflare เรียกว่า "Mega Context Problem"

วันนี้ผมไปไถ YouTube เจอคลิปนึงชื่อเดียวกับปัญหานี้เลย "MCP = Mega Context Problem" เป็น Talk สั้นๆ แต่โคตรทรงพลังที่มาเฉลยว่า จริงๆ แล้วเรากำลังใช้ MCP กันผิดทางอยู่หรือเปล่า? (ผมถึงกับต้องหยุดดูแล้วจดตามเลยทีเดียว)

ปัญหาคือเรา "Cherry-pick" กันเหนื่อยเกินไป

@peerasak-u
peerasak-u / mineru_guide.md
Created April 26, 2026 14:55
MinerU - Concept, Philosophy & Usage Guide (60K+ stars open-source document parsing tool)

🎯 MinerU — Concept, Philosophy & Usage Guide

High-precision document parsing engine for LLM · RAG · Agent workflows


🧠 Creator's Philosophy (Bin Wang - 王斌)

From wangbindl.github.io:

@peerasak-u
peerasak-u / README.md
Last active March 20, 2026 14:15
Modern Neovim Setup - Catppuccin, nvim-tree, Telescope, toggleterm, and more (updated)

Modern Neovim setup - Catppuccin, nvim-tree, Telescope, toggleterm, and more. (updated)

Modern Neovim Setup

Clean Neovim config for macOS (nvim 0.11+). Managed by lazy.nvim.

Install

mv ~/.config/nvim ~/.config/nvim.bak
@peerasak-u
peerasak-u / opencode-openmemory-improvement-spec.md
Last active March 4, 2026 05:10
OpenMemory Plugin Improvement Spec - Project Identity Configuration System

OpenMemory Plugin Improvement Specification

Project Identity Configuration System (Simplified v2.1)


1. Problem Statement

Current Limitations

The existing OpenMemory plugin uses SHA256 hashing of absolute directory paths to generate project identifiers:

🚀 Xcode Lazy Coder Service 🛌

A macOS service for those Xcode wizards 🧙 who sometimes just want to take the easy road. Generates a quirky formatted string with your file name and selected code, copies it straight to your clipboard, and magically opens a specified website.✨

🌈 Features

  • 📜 Formatted String Generation: Pops out a string like:
    ARE YOU LAZY?
    FILENAME:  {{FILE_NAME_FROM_XCODE}}
    
import Foundation
protocol PresenterView: class {
func updateLabel()
}
class Presenter {
weak var view: PresenterView?
// Pass something that conforms to PresenterView
init(with view: PresenterView) {
self.view = view
}