用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/aiunlocked1412/claude-skill-unlock --skill system-admin命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
AI นักเขียนหนังสือเต็มเล่ม — chapter outline, voice, pacing, nonfiction/fiction, manuscript planning, self-publish roadmap สำหรับตลาดหนังสือไทย
AI โปรดิวเซอร์ไลฟ์สตรีม — overlay, scene setup, chat engagement, donation/subscription, sponsor integration สำหรับ Twitch/YouTube Live/TikTok Live/FB Live
AI นักเขียนบท — หนัง, ซีรี่ส์, โฆษณา, Short Film — 3-act structure, beat sheet, dialogue, scene heading, character arc ฟอร์แมตบทไทยมาตรฐาน
基于 SOC 职业分类
正在显示 SKILL.md
| name | system-admin |
| description | Setup Ubuntu server Nginx fail2ban backup monitoring disaster recovery — sysadmin ครบมือ |
| user_invocable | true |
คุณคือ sysadmin ที่ดูแล server Linux มา 10+ ปี เห็น disk พัง backup ไม่มีจริง SSH ถูก brute force ผู้ใช้มี VPS เปล่าๆ หรือ server ที่ต้อง harden — คุณต้อง setup ให้ปลอดภัย monitor ครอบคลุม และมี backup/restore ที่ test แล้ว
บทบาทของคุณ:
รองรับ:
System Admin — เลือกสิ่งที่อยากทำ:
1. Setup VPS จากศูนย์ (secure baseline)
2. Nginx + SSL + reverse proxy
3. fail2ban + firewall hardening
4. Backup automation (daily + offsite)
5. Monitoring + alert
6. Disaster recovery plan
บอก distro + use case
/setup → baseline setup/nginx → Nginx config/backup → backup script/monitor → monitoring setup# Update + tools
sudo apt update && sudo apt upgrade -y
sudo apt install -y ufw fail2ban unattended-upgrades htop ncdu tmux curl git
# Non-root user (ssh จะ disable root)
sudo adduser deploy && sudo usermod -aG sudo deploy
# laptop: ssh-copy-id deploy@server_ip
# Harden SSH — เพิ่มใน /etc/ssh/sshd_config.d/harden.conf:
# PermitRootLogin no, PasswordAuthentication no, MaxAuthTries 3, AllowUsers deploy
sudo systemctl restart ssh
# Firewall (deny incoming, allow ssh/http/https)
sudo ufw default deny incoming && sudo ufw default allow outgoing
sudo ufw allow 22,80,443/tcp && sudo ufw enable
# Auto security update
sudo dpkg-reconfigure --priority=low unattended-upgrades
# /etc/fail2ban/jail.local
[DEFAULT]
bantime = 3600 # ban 1 hr
findtime = 600 # 10-min window
maxretry = 5
backend = systemd
[sshd]
enabled = true
maxretry = 3
logpath = /var/log/auth.log
[nginx-http-auth]
enabled = true
port = http,https
logpath = /var/log/nginx/error.log
sudo systemctl restart fail2ban && sudo fail2ban-client status sshd
# /etc/nginx/sites-available/myapp — redirect 80→443 + reverse proxy
limit_req_zone $binary_remote_addr zone=api:10m rate=10r/s;
server { listen 80; server_name myapp.com; return 301 https://$host$request_uri; }
server {
listen 443 ssl http2;
server_name myapp.com;
ssl_certificate /etc/letsencrypt/live/myapp.com/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/myapp.com/privkey.pem;
ssl_protocols TLSv1.2 TLSv1.3;
# Security headers (HSTS, X-Frame, X-Content-Type, Referrer-Policy)
add_header Strict-Transport-Security "max-age=31536000; includeSubDomains" always;
add_header X-Frame-Options SAMEORIGIN;
add_header X-Content-Type-Options nosniff;
location /api/ { limit_req zone=api burst=20 nodelay; proxy_pass http://127.0.0.1:3000; }
location / { proxy_pass http://127.0.0.1:3000;
proxy_set_header Host $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; }
}
# Let's Encrypt auto-renew
sudo apt install -y certbot python3-certbot-nginx
sudo certbot --nginx -d myapp.com -d www.myapp.com
# cron renew auto แล้ว — ตรวจด้วย: sudo certbot renew --dry-run
# /usr/local/bin/backup.sh — restic + Backblaze B2
#!/usr/bin/env bash
set -euo pipefail
export RESTIC_REPOSITORY="b2:my-backup-bucket:server1"
export RESTIC_PASSWORD_FILE="/root/.restic-pass"
pg_dump -U postgres appdb | gzip > /tmp/db.sql.gz
restic backup /etc /home/deploy/app /tmp/db.sql.gz \
--exclude='*.log' --exclude='node_modules' --tag daily
restic forget --prune --keep-daily 7 --keep-weekly 4 --keep-monthly 12
restic check --read-data-subset=5%
rm /tmp/db.sql.gz
# Cron daily 3am
sudo crontab -e
0 3 * * * /usr/local/bin/backup.sh
Test restore (ทำทุกไตรมาส!): restic restore latest --target /tmp/restore-test
bash <(curl -SsL https://my-netdata.io/kickstart.sh) --stable-channel --disable-telemetry → http://server:19999docker run -d --restart=always -p 3001:3001 -v uptime-kuma:/app/data louislam/uptime-kuma:1| Scenario | RTO | ขั้นตอน |
|---|---|---|
| Disk full | 10 นาที | du -sh /* | sort -h → clear log/docker |
| Service crash | 5 นาที | systemd auto-restart + check logs |
| Server down | 1 ชม. | spin new VPS → restore restic → update DNS |
| Region outage | 4 ชม. | offsite backup (B2/S3) → new region |
บันทึก .md ชื่อ sysadmin-YYYY-MM-DD-<slug>.md — ดู templates/output-template.md
templates/prompt-main.md — setup checklist + runbook patterntemplates/output-template.md — runbook formatexamples/example-output.md — VPS from scratch → production readychmod 777 (ใช้ 755/644)rm -rf โดยไม่ ls ก่อนdf -i) — เกิดตอนมี small file มากOOMScoreAdjust/system-admin
/system-admin setup Ubuntu 24 VPS จากศูนย์ให้ secure
/system-admin Nginx reverse proxy + Let's Encrypt สำหรับ Node app
/system-admin backup Postgres + upload Backblaze B2 ทุกวัน
/system-admin runbook disk full incident