Scripts
scripts/ — utility script 6 ตัวที่ใช้บริหาร repo
| Script | ภาษา | หน้าที่ |
|---|---|---|
| check.py | Python | ลินต์ manifest, ตรวจ cross-reference, ตรวจ skill drift |
| orchestrate.py | Python | engine สำหรับรัน Managed Agent + จัดการ handoff |
| sync-agent-skills.py | Python | คัดลอก skill จาก vertical ไปยัง agent plugin |
| validate.py | Python | ตรวจ output ของ subagent ตาม JSON Schema |
| deploy-managed-agent.sh | Shell | deploy cookbook ขึ้น Managed Agents API |
| test-cookbooks.sh | Shell | dry-run ตรวจ cookbook ทั้งหมดก่อน deploy |
ทำไมไม่มี unit test?
repo นี้เป็น reference template ไม่ใช่ library — ดังนั้นไม่มี pytest/jest แต่ quality ถูก enforce ผ่าน 4 ชั้น:
- Manifest lint (
check.py) — YAML/JSON syntax + cross-ref - Skill drift (
check.py) — สำเนาใน agent ต้องตรงกับ source ใน vertical - Schema validate (
validate.py) — output ของ subagent ตาม JSON schema - Dry-run deploy (
test-cookbooks.sh) — simulate ทุก cookbook ก่อน deploy จริง
อ่านรายละเอียดที่ 10 Development