Standards bundle สำหรับ solo builder ที่ใช้ AI 100% ในการเขียนโค้ด v3.1.0 · 2026-06-22 · MIT-style license
| สถานการณ์ | เปิดอ่าน |
|---|---|
| 🆕 เริ่ม project ใหม่ | AGENTS.md (copy ไป root ของ project) |
| 🤖 ตั้ง AI agent ในเครื่องใหม่ | AGENTS.md (auto-loaded) + linked BUILDER_CODEX.md |
| 🐛 เจอ bug ที่ไม่รู้แก้ยังไง | BUILDER_CODEX.md § Pattern Library + § Debugging Toolkit |
| 📋 ก่อน deploy | BUILDER_CODEX.md § Pre-Deployment Checklist |
| 🔍 AI generate code แล้วไม่แน่ใจ | skills/verifying-ai-output/SKILL.md |
| 💾 ตั้งระบบ backup | skills/backing-up-solo-projects/SKILL.md |
| 📱 ก่อน submit Play/App Store | skills/preparing-mobile-store-submission/SKILL.md |
| 🇹🇭 ก่อน collect user data ใน Thai | skills/complying-with-thai-pdpa/SKILL.md |
| ✍️ เริ่ม feature ใหญ่ | skills/writing-feature-specs/SKILL.md |
| 🆕 AI ทำผิดอะไร — log อะไร | MEMORY.md (AI เขียนเอง) |
| 🆕 ตอนนี้ project อยู่ตรงไหน | spec.md § Current State |
| 🆕 R0/R1/R2 จัดยังไง | BUILDER_CODEX.md § P-31 |
your-project/
├── AGENTS.md ← Tier 1: <150 lines, agent auto-loads
├── @MEMORY.md ← 🆕 v3.1: AI's failure log (auto-imported)
├── @CAPTURE_LOG.md ← Human's strategic log (auto-imported)
├── spec.md ← 🆕 v3.1: Project save point
├── BUILDER_CODEX.md ← Tier 3: master reference (~700 lines)
├── DR_PLAN.md ← Disaster recovery (7 scenarios)
├── skills/ ← Tier 2: on-demand load
│ ├── verifying-ai-output/SKILL.md
│ ├── backing-up-solo-projects/SKILL.md
│ ├── preparing-mobile-store-submission/SKILL.md
│ ├── complying-with-thai-pdpa/SKILL.md
│ └── writing-feature-specs/SKILL.md
└── features/ ← Per-feature artifacts (P-29)
└── XYZ-feature-name/
├── SPEC.md ← ≠ project-level spec.md
├── PLAN.md
├── TASKS.md
└── REVIEW.md
Adopted from somnus0x/agt-skill-pack/claude-md-setup:
- The 4 AI Misbehaviors Framework (เดา / โกหก / ทำเกิน / ลืม) — mental anchor ใน Executive Summary
- P-31 R0/R1/R2 Reversibility Classification — gradient ระหว่าง "ถามทุกอย่าง" กับ "ทำทุกอย่าง"
- MEMORY.md (AI's failure log, 3-field schema) — แยกจาก CAPTURE_LOG (human's)
- project-level spec.md (4-section save point) — แยกจาก feature-level SPEC.md
- Data Contracts block ใน AGENTS.md — กัน session ใหม่ guess interface ผิด
- @imports syntax ใน AGENTS.md — auto-load MEMORY + CAPTURE_LOG
npx @maya4art/builder-codex initคำสั่งเดียว — ติดตั้งไฟล์ทั้งหมดลง project root ทันที ไม่ต้อง clone repo
หลังติดตั้ง ทำ 3 อย่างนี้:
# 1. Customize ไฟล์หลัก (search [Project Name] แล้วแทนชื่อจริง)
# - AGENTS.md → stack, run commands, project name
# - spec.md → project goal + current state
# - MEMORY.md → project name
# - CAPTURE_LOG.md → project name
# - DR_PLAN.md → project name + inventory
# 2. Commit
git add .
git commit -m "chore: install Builder Codex v3.1.0"
# 3. AI agent จะอ่าน AGENTS.md + MEMORY.md + CAPTURE_LOG.md อัตโนมัติทุก session
# (Claude Code, Cursor, Codex CLI, Windsurf, Gemini CLI, GitHub Copilot ฯลฯ)ก่อน deploy ทุกครั้ง:
npx pdpa-guard . # PDPA compliance scan (P-28) — region, security rules, PII fieldsnpm: https://www.npmjs.com/package/@maya4art/builder-codex
Claude Code, Cursor, Codex CLI, GitHub Copilot, Windsurf, Amp, Devin, Aider, Zed, Jules, VS Code, JetBrains Junie, Gemini CLI (ผ่าน symlink GEMINI.md → AGENTS.md)
- ✅ 4 AI Misbehaviors framework — mental anchor
- ✅ P-31 reversibility classification
- ✅ MEMORY.md separate from CAPTURE_LOG
- ✅ project-level spec.md save point
- ✅ Data Contracts block
- ✅
@importsyntax in AGENTS.md - ✅ Synthesis of incident-derived patterns + behavioral guardrails
เอกสารนี้เปิด — fork, modify, redistribute ได้
กฎเดียว: อย่าให้ AI generate "best practices" ทั่วไปมาใส่ — ทุก pattern ต้องมาจากบทเรียนจริง (ดู §วิธีใช้ ใน BUILDER_CODEX)
Synthesized from:
- Production bug lessons of solo builders
- Linux Foundation AGENTS.md spec (60,000+ repos)
- Anthropic Skills open standard (2025)
- GitHub Spec Kit + OpenSpec + BMAD methodologies
- Claude Code memory hierarchy docs
- Vibe coding ecosystem research 2026
- Thai PDPA (พ.ร.บ. 2562) + PDPC guidelines
- 🆕
somnus0x/agt-skill-pack/claude-md-setup(behavioral guardrails layer)
Original author: Tony (solo builder, Thailand) License: MIT-style — use freely, attribution appreciated
🛠️ Stay safe, ship reliable, let nothing fail silently. Compound, don't repeat.