คู่มือฉบับสมบูรณ์สำหรับเข้าใจและใช้งาน Skills ของ AI Agent — 113 skills ใน 18 หมวดหมู่ พร้อมตัวอย่างการใช้งานจริงที่ทำตามได้
Skills คือ "ความรู้เฉพาะทาง" ที่ถูกบรรจุไว้ใน AI Agent — เหมือนการให้ AI มีคู่มือการใช้งานสำหรับงานแต่ละประเภท ทำให้ทำงานได้แม่นยำและรวดเร็วยิ่งขึ้น
แต่ละ skill เก็บคำสั่ง, ขั้นตอน, pitfalls และ best practices สำหรับงานเฉพาะ — เหมือนคู่มือฉบับย่อที่ AI อ่านก่อนทำงาน
ไม่ต้องสอน AI ใหม่ทุกครั้ง — แค่บอกว่าจะทำอะไร AI จะโหลด skill ที่เกี่ยวข้องและทำงานได้ทันที
ไม่ใช่แค่ความรู้ — skills มีคำสั่งที่ใช้งานได้จริง เช่น โค้ด, CLI commands, API calls ที่ AI นำไปปฏิบัติได้ทันที
โหลดได้หลาย skill พร้อมกัน — เช่น ใช้ liquid-glass + claude-design เพื่อสร้างเว็บสวยๆ ได้ในครั้งเดียว
จัดหมวดตามประเภทงาน — คลิกที่การ์ดเพื่อดูรายละเอียด skills ในหมวดนั้น
มอบหมายงานให้ AI agent ทำแทน — เขียนโค้ด สร้าง PR ตรวจสอบงานอัตโนมัติ
5 skillsสร้างสรรค์งานศิลปะดิจิทัล — diagram, ASCII art, infographic, comic, ออกแบบเว็บ
20 skillsวิเคราะห์ข้อมูลด้วย Jupyter notebook — interactive Python แบบ live kernel
1 skillดูแลระบบ — gateway, kanban workflow, health audit, webhook, deploy
6 skillsส่ง-รับอีเมลจาก terminal — IMAP/SMTP ผ่าน Himalaya CLI
1 skillเซิร์ฟเวอร์เกม — Minecraft modpack, Pokemon emulator
2 skillsGitHub workflow ครบวงจร — repo, PR, code review, issues, auth
7 skillsค้นหาสถานที่ใกล้คุณ — ร้านอาหาร คาเฟ่ ร้านขายยา
1 skillเชื่อมต่อ external tools ผ่าน Model Context Protocol — 201+ tools จาก Hostinger
2 skillsสื่อดิจิทัล — YouTube, Spotify, GIF, สร้างเพลง, วิเคราะห์เสียง
5 skillsMachine Learning lifecycle — train, fine-tune, quantize, serve, evaluate LLMs
22 skillsจดบันทึกและจัดการ knowledge base ผ่าน Obsidian
1 skillเพิ่มผลิตภาพ — Google Workspace, Notion, Airtable, Linear, PowerPoint, OCR
10 skillsทดสอบความปลอดภัยของ LLM — jailbreak techniques
1 skillงานวิจัยและข้อมูล — arXiv, RSS feeds, LLM Wiki, Polymarket
5 skillsควบคุม smart home — Philips Hue lights, scenes, rooms
1 skillโพสต์และจัดการ social — X/Twitter ทั้ง API และ scraping
2 skillsพัฒนาซอฟต์แวร์ — Next.js, debugging, TDD, plan, code review, Liquid Glass dashboard
18 skillsแนะนำให้เริ่มจากระดับเริ่มต้นก่อน แล้วค่อยไประดับที่ยากขึ้นเรื่อยๆ
write_file("note.txt", "สวัสดี")ascii-artfind-nearbyobsidiangithub-repo-managementopenhuedelegate_task ให้ subagentcronjob รันซ้ำpowerpointpeft + axolotlคู่มือฉบับสมบูรณ์ — จากไอเดียสู่ skill ที่ใช้งานได้จริง พร้อม case study 3 ระดับ
Skill หนึ่งตัวประกอบด้วยไฟล์ SKILL.md ที่มีโครงสร้าง 2 ส่วนหลัก:
--- # ← ส่วนที่ 1: YAML Frontmatter name: my-skill-name # ชื่อ skill (lowercase, มีขีด, ≤64 ตัวอักษร) description: Use when <trigger>. <behavior>. # คำอธิบาย (≤1024 ตัวอักษร) version: 1.0.0 author: Your Name license: MIT metadata: hermes: tags: [tag1, tag2] related_skills: [other-skill] --- # Skill Title ## Overview คำอธิบายสั้นๆ ว่า skill นี้ทำอะไร ทำไมจึงจำเป็น ## When to Use - เมื่อไหร่ควรใช้ - เมื่อไหร่ไม่ควรใช้ ## ขั้นตอนการทำงาน คำสั่ง, โค้ด, ตัวอย่างแบบทำตามได้ ## Common Pitfalls 1. ข้อผิดพลาดที่พบบ่อย → วิธีแก้ 2. ข้อผิดพลาดที่พบบ่อย → วิธีแก้ ## Verification Checklist - [ ] รายการตรวจสอบ
ชื่อ skill เป็น lowercase ใช้ขีด (-) คั่น
เริ่มด้วย "Use when..." บอกว่าเมื่อไหร่ควรใช้
คำค้นหาสั้นๆ ทำให้ค้นพบ skill ได้ง่าย
Overview → When to Use → Body → Pitfalls
เช็คก่อนว่ามี skill คล้ายๆ กันอยู่แล้วหรือไม่ — ถ้ามี ควรขยาย skill เดิมแทนสร้างใหม่
ระบุ frontmatter ให้ครบ: name, description (Use when...), version, tags, related_skills
แบ่งเป็น Overview, When to Use, ขั้นตอน, Pitfalls, Verification — ใส่คำสั่งจริงที่ใช้ได้
Validate frontmatter — ชื่อต้อง ≤64 ตัวอักษร, description ≤1024 ตัวอักษร, body ไม่เกิน 100KB
เปิด session ใหม่แล้วลองใช้ skill — ดูว่า AI โหลดและใช้งานได้ถูกต้องหรือไม่
บันทึก skill ผ่าน skill_manage หรือ write_file + git commit เพื่อให้ใช้ซ้ำได้
ทีมต้องการสรุปงานประจำวันอัตโนมัติ — อ่าน log จาก Git commits แล้วส่งสรุปทาง Telegram ทุกเช้า
---
name: daily-standup-bot
description: Use when sending a daily standup summary. Reads git commits, formats a standup report, and sends it via Telegram.
version: 1.0.0
author: Your Name
license: MIT
metadata:
hermes:
tags: [standup, automation, telegram]
related_skills: [hermes-gateway]
---
# Daily Standup Bot
## Overview
สรุปงานประจำวันจาก git commits และส่งทาง Telegram อัตโนมัติ
## When to Use
- เมื่อต้องส่งสรุปงานประจำวัน (daily standup)
- เมื่อต้องการรายงานสิ่งที่ทำในวันนี้
- Don't use for: weekly summary (ใช้ cron job แทน)
## ขั้นตอน
1. อ่าน git log ของวันนี้:
git log --since="today 00:00" --oneline
2. จัดกลุ่มตามประเภทงาน (feat, fix, refactor)
3. สร้างข้อความสรุปในรูปแบบ:
☀️ Standup: วันนี้ทำอะไรบ้าง
4. ส่งทาง Telegram:
send_message(target='telegram', message=summary)
## Pitfalls
1. ถ้าไม่มี commit ในวันนี้ → ส่งข้อความว่าง
→ แก้: ตรวจสอบก่อน ถ้าว่างให้บอก "ไม่มีงานในวันนี้"
2. ข้อความยาวเกิน → Telegram ตัดที่ 4096 ตัวอักษร
→ แก้: สรุปแต่ละ commit ให้สั้น
## Verification Checklist
- [ ] git log อ่านได้ถูกต้อง
- [ ] ข้อความสรุปมีรูปแบบที่อ่านง่าย
- [ ] ส่ง Telegram สำเร็จskill_manage( action='create', name='daily-standup-bot', content='...', # เนื้อหา SKILL.md ทั้งหมด category='devops' )
cronjob( action='create', schedule='0 9 * * *', # ทุกวัน 9:00 น. prompt='ส่ง standup summary ของวันนี้', deliver='telegram', skills=['daily-standup-bot'] )
สร้าง skill ที่ deploy เว็บจาก Git repo ไปยัง Hostinger อัตโนมัติ — build, zip, upload, verify ครบวงจร
skills/devops/auto-deploy-hostinger/
├── SKILL.md # คำอธิบาย + ขั้นตอน
├── scripts/
│ ├── build.sh # สร้าง production build
│ └── deploy.py # อัปโหลดผ่าน API
└── templates/
└── nginx.conf # nginx config template---
name: auto-deploy-hostinger
description: Use when deploying a website to Hostinger. Builds, zips, uploads, configures DNS, and verifies deployment automatically.
version: 1.0.0
author: Your Name
license: MIT
metadata:
hermes:
tags: [deploy, hostinger, automation, mcp]
related_skills: [mcporter, native-mcp]
---
# Auto Deploy to Hostinger
## Overview
Deploy เว็บไซต์จาก Git repo ไป Hostinger ครบวงจร
- build → zip → upload → DNS → SSL → verify
## When to Use
- เมื่อต้อง deploy static site หรือ JS app
- เมื่อต้องการ deploy อัตโนมัติจาก git push
- Don't use for: WordPress (ใช้ hosting_importWordpressWebsite)
## ขั้นตอน
1. Build: npm run build หรือใช้ script ใน templates/
2. Zip: สร้าง archive จาก dist/ หรือ build/
zip -r deploy.zip dist/
3. Deploy: เรียก Hostinger MCP
mcporter call hostinger.hosting_deployStaticWebsite ...
4. DNS: เพิ่ม A record สำหรับ domain
DNS_updateDNSRecordsV1 domain="..." zone=[...]
5. SSL: ติดตั้ง certbot บน VPS
6. Verify: curl https://domain → ตรวจ HTTP 200
## Pitfalls
1. node_modules อยู่ใน zip → deploy ช้า + ไฟล์ใหญ่
→ แก้: ใช้ .gitignore หรือ exclude ตอน zip
2. DNS ยังไม่ propagate → เข้าเว็บไม่ได้ทันที
→ แก้: รอ 5-10 นาที หรือใช้ --resolve flag
3. Token หมดอายุ → API ตอบ 401
→ แก้: เก็บ token ใน config ไม่ใช่ในโค้ด
## Verification Checklist
- [ ] Build สำเร็จ ไม่มี error
- [ ] Zip ขนาดเหมาะสม (< 100MB)
- [ ] HTTP 200 จาก domain
- [ ] HTTPS ทำงาน (Let's Encrypt)
- [ ] DNS record ถูกต้อง# scripts/deploy.py
import subprocess, json, os
def deploy(domain, archive_path):
"""Deploy to Hostinger via MCP"""
result = subprocess.run([
'node', 'hostinger-api-mcp',
# MCP will use HOSTINGER_API_TOKEN env var
], capture_output=True, text=True,
env={**os.environ,
'HOSTINGER_API_TOKEN': read_token()})
# Call deploy tool
mcp_call('hosting_deployStaticWebsite', {
'domain': domain,
'archivePath': archive_path,
'removeArchive': True
})
# Add DNS
mcp_call('DNS_updateDNSRecordsV1', {
'domain': domain,
'zone': [{'name': '@', 'type': 'A',
'records': [{'content': VPS_IP}]}]
})# templates/nginx.conf
server {
listen 80;
server_name {{DOMAIN}};
root /var/www/{{DOMAIN}};
index index.html;
location / {
try_files $uri $uri/ =404;
}
gzip on;
gzip_types text/css application/javascript
text/html application/json;
}สร้าง skill ที่วิเคราะห์พฤติกรรมลูกค้าจากหลายแหล่งข้อมูล — ดึงข้อมูลจาก Airtable, รวมกับ Google Sheets, สร้าง chart, สรุปด้วย AI และส่ง report ทางอีเมล
skills/data-science/customer-analysis/
├── SKILL.md # main skill file
├── references/
│ ├── airtable-api.md # Airtable query patterns
│ ├── chart-templates.md # รูปแบบกราฟที่ใช้บ่อย
│ └── report-format.md # รูปแบบรายงานมาตรฐาน
├── scripts/
│ ├── fetch_data.py # ดึงข้อมูลจากหลายแหล่ง
│ ├── analyze.py # วิเคราะห์ + สร้าง insight
│ └── generate_report.py # สร้าง HTML report
└── templates/
├── report.html # HTML report template
└── email-template.html # อีเมล template---
name: customer-analysis
description: Use when analyzing customer behavior. Pulls data from Airtable + Sheets, generates charts, summarizes with AI, and emails a report.
version: 1.0.0
metadata:
hermes:
tags: [data, analysis, airtable, email]
related_skills: [airtable, google-workspace, jupyter-live-kernel]
---
# Customer Analysis Pipeline
## Overview
Pipeline วิเคราะห์ลูกค้า 5 ขั้นตอน:
Fetch → Clean → Analyze → Visualize → Report
## When to Use
- วิเคราะห์พฤติกรรมการซื้อ
- สรุปข้อมูลลูกค้ารายเดือน/รายไตรมาส
- สร้าง report อัตโนมัติสำหรับทีมการตลาด
## Pipeline Steps
### Step 1: Fetch Data
อ่านจากหลายแหล่ง — ดู references/airtable-api.md
สำหรับ query patterns เฉพาะ
### Step 2: Clean + Merge
ใช้ pandas รวมข้อมูล, จัดการ missing values
### Step 3: Analyze
ดู references/chart-templates.md สำหรับ
chart types ที่แนะนำตามประเภทข้อมูล
### Step 4: Generate Report
รูปแบบ report อยู่ใน references/report-format.md
### Step 5: Email
ส่งผ่าน himalaya CLI
## Pitfalls
1. API rate limit (Airtable 5 req/sec)
→ แก้: ใช้ batch requests
2. ข้อมูลซ้ำซ้อนระหว่างแหล่ง
→ แก้: deduplicate ก่อน merge
3. Chart ออกมาไม่อ่านง่าย
→ แก้: ใช้ template จาก references/# Airtable API Patterns
## Query with filter
GET /v0/{base_id}/{table_name}?filterByFormula={formula}
## ตัวอย่าง: ลูกค้าที่ซื้อเดือนนี้
filterByFormula=AND(
{Purchase_Date} >= "2025-01-01",
{Status} = "completed"
)
## Pagination
- offset จาก response ก่อนหน้า
- max 100 records per request
- batch ทีละ 5 requests เพื่อหลีกเลี่ยง rate limit# scripts/fetch_data.py
import requests, pandas as pd, json
def fetch_airtable(base_id, table, token):
"""ดึงข้อมูลจาก Airtable พร้อม pagination"""
all_records = []
offset = None
while True:
url = f"https://api.airtable.com/v0/{base_id}/{table}"
params = {'pageSize': 100}
if offset:
params['offset'] = offset
resp = requests.get(url,
headers={'Authorization': f'Bearer {token}'},
params=params)
data = resp.json()
all_records.extend(data.get('records', []))
offset = data.get('offset')
if not offset:
break
return pd.DataFrame([r['fields'] for r in all_records])
def fetch_gsheet(spreadsheet_id, range_name):
"""ดึงข้อมูลจาก Google Sheets"""
# ใช้ gws CLI
result = subprocess.run(
['gws', 'sheets', 'get', spreadsheet_id, range_name],
capture_output=True, text=True
)
return pd.read_json(result.stdout)# scripts/analyze.py
import pandas as pd, matplotlib.pyplot as plt
import seaborn as sns
def analyze(df):
"""วิเคราะห์ + สร้าง charts"""
insights = {}
# 1. Top customers
top = df.nlargest(10, 'total_spent')
insights['top_customers'] = top[['name','email','total_spent']]
# 2. Purchase frequency
freq = df.groupby('customer_id').size()
insights['avg_frequency'] = freq.mean()
# 3. Monthly trend
df['month'] = pd.to_datetime(df['date']).dt.to_period('M')
monthly = df.groupby('month')['amount'].sum()
fig, ax = plt.subplots(figsize=(10,5))
monthly.plot(kind='bar', ax=ax, color='#3b82f6')
ax.set_title('ยอดซื้อรายเดือน')
fig.savefig('chart_monthly.png', dpi=150, bbox_inches='tight')
return insights# ใน execute_code — รัน pipeline ทั้งหมด
from hermes_tools import terminal
# 1. Fetch
terminal('python3 scripts/fetch_data.py > data.json')
# 2. Analyze
terminal('python3 scripts/analyze.py --input data.json')
# 3. Generate report
terminal('python3 scripts/generate_report.py \
--template templates/report.html \
--output report.html')
# 4. Send email
terminal('himalaya message send \
--to "team@company.com" \
--subject "รายงานวิเคราะห์ลูกค้า" \
--body "$(cat report.html)"')"Use when..."Don't use for: ด้วยreferences/*.md"Deploy"6 ตัวอย่างจากง่ายไปยาก — ทำตามได้จริง พร้อมโค้ดตัวอย่าง
โหลด claude-design สำหรับออกแบบ และ liquid-glass-on-the-web สำหรับเอฟเฟกต์กระจก
# AI จะโหลดอัตโนมัติเมื่อเห็นคำว่า "สร้างเว็บ" # หรือระบุชัดเจน: skill_view(name='claude-design') skill_view(name='liquid-glass-on-the-web')
เพียงบอกแนวคิด — AI จะออกแบบและสร้าง HTML ให้
prompt: "สร้างเว็บ landing page ร้านกาแฟ สไตล์ liquid glass dark theme มี hero section + menu + contact responsive มือถือ"
AI จะเขียน CSS glassmorphism, animated orbs, responsive และตรวจสอบ syntax ให้อัตโนมัติ
ใช้ MCP tools ของ Hostinger เพื่อ deploy และเชื่อม domain
# Deploy static website mcporter call hostinger.hosting_deployStaticWebsite \ domain="yourdomain.com" \ archivePath="./website.zip"
ใช้ live Python kernel สำหรับการวิเคราะห์ข้อมูลแบบ interactive
import pandas as pd
import matplotlib.pyplot as plt
df = pd.read_csv("sales.csv")
print(df.describe())
df.groupby("month")["revenue"].sum().plot(kind="bar")
plt.title("รายได้รายเดือน")
plt.savefig("chart.png")เมื่อต้องประมวลผลหลายขั้น — ใช้ execute_code เพื่อรัน Python ที่เรียก tools หลายตัว
# ใน execute_code
from hermes_tools import read_file, write_file
data = read_file("sales.csv")
# กรอง + สรุป + เขียนผลลัพธ์
write_file("summary.txt", summary_text)เชื่อม Telegram/Discord เข้ากับ AI Agent
send_message( target="telegram", message="🤖 สวัสดี! นี่คือข้อความจาก AI Agent" )
cronjob(action='create', schedule='0 9 * * *', # ทุกวัน 9โมงเช้า prompt="ตรวจสอบราคาหุ้นและส่งสรุปทาง Telegram", deliver='telegram' )
GitHub workflow ครบวงจร — ตั้งแต่สร้าง branch ยา merge
git checkout -b feat/payment-system git add . git commit -m "feat: เพิ่มระบบชำระเงิน"
# โหลด skill code review skill_view(name='github-code-review') # AI จะตรวจสอบ diff, security, best practices # และแนะนำแก้ไข
AI จะตรวจสอบ CI status และ merge เมื่อพร้อม
Stable Diffusion สำหรับ text-to-image หรือ ComfyUI สำหรับ workflow ซับซ้อน
skill_view(name='stable-diffusion-image-generation') prompt: """ พระอาทิตย์ตกที่วัดพระแก้ว, สไตล์ watercolor, แสงทอง, ultra detailed, 4K """
โหลด skill comfyui เพื่อสร้าง workflow แบบ node-based — img2img, inpainting, upscaling
skill_view(name='axolotl') # Fine-tuning skill_view(name='peft-fine-tuning') # LoRA/QLoRA skill_view(name='weights-and-biases') # Experiment tracking
สร้าง dataset ในรูปแบบ instruction-response สำหรับ SFT
# dataset.jsonl
{"instruction": "อธิบาย LoRA",
"output": "LoRA เป็นเทคนิคที่..."}# Axolotl YAML config base_model: meta-llama/Llama-3-8B lora_r: 16 lora_alpha: 32 learning_rate: 2e-4 num_epochs: 3 bf16: true
แปลงเป็น GGUF สำหรับ inference บน CPU หรือ serve ผ่าน vLLM
# Quantize to GGUF skill_view(name='gguf-quantization') # Serve with vLLM skill_view(name='serving-llms-vllm') # หรือ local inference skill_view(name='llama-cpp')
แต่ละ skill ใช้ประโยชน์จาก features เหล่านี้เพื่อทำงานได้สมบูรณ์
terminal, read_file, write_file, search_files, patch
navigate, click, type, screenshot, scroll
delegate_task — มอบหมายให้ subagent ทำขนาน
cronjob — รันงานซ้ำตามเวลาที่กำหนด
บันทึกความจำข้าม session — preferences, facts
113 specialized skills ใน 18 หมวดหมู่
Telegram, Discord, Slack, Signal
Python sandbox — ประมวลผลข้อมูล
เชื่อม external tools — 201+ Hostinger tools
วิเคราะห์ภาพ, อ่าน screenshot
สร้างภาพด้วย SD/ComfyUI
แปลงข้อความเป็นเสียงพูด