# Workflow Template

ใช้ไฟล์นี้ออกแบบ workflow แรกของทีมหลังเรียนบท 07

## Workflow Overview

```text
Workflow name:
Owner:
Team:
Who uses it:
When to run it:
Trigger command:
```

## Required Input

```text
Goal:
Audience/User:
Source files or context:
Constraints:
Deadline:
Sensitive data restrictions:
```

## Claude Role

```text
Role:
Quality bar:
Tone/style:
Things Claude must ask before acting:
Things Claude must not do:
```

## Output Contract

ทุกครั้งที่รัน workflow ควรได้ output ที่ตรวจง่าย

```text
Summary:
Draft/result:
Risks:
Checklist:
Files changed:
What to review:
Next steps:
```

## Review Gate

```text
Reviewer:
Review criteria:
Must pass before:
Escalation path:
```

## Example Prompt

```text
คุณคือ [role]
เป้าหมาย: [goal]
บริบท: [context]
input: [source/input]
ข้อจำกัด: [constraints]
รูปแบบคำตอบ: [output contract]
เกณฑ์คุณภาพ: ระบุ assumptions, risks, what to review และ next steps
```

## Done Definition

- [ ] input ครบ
- [ ] output ตรง format
- [ ] ระบุ risk แล้ว
- [ ] ระบุสิ่งที่ต้องตรวจแล้ว
- [ ] ผ่าน review gate แล้ว
- [ ] อัปเดต playbook ถ้ามีบทเรียนใหม่
