Workflow theo Role
Module 16.2: Workflow theo Role
Phần tiêu đề “Module 16.2: Workflow theo Role”Thời gian ước tính: ~35 phút
Yêu cầu trước: Module 16.1 (Case Studies)
Kết quả: Customized Claude Code workflow optimized cho role của bạn.
1. WHY — Tại sao cần học
Phần tiêu đề “1. WHY — Tại sao cần học”Frontend developer và DevOps engineer dùng Claude Code rất khác. Frontend generate React component và CSS. DevOps viết Terraform và GitHub Actions.
Generic workflow lãng phí thời gian. Role-specific workflow maximize impact — focus vào task BẠN làm hàng ngày, pattern của DOMAIN bạn, tool BẠN dùng. Customize Claude Code cho JOB của bạn.
2. CONCEPT — Khái niệm cốt lõi
Phần tiêu đề “2. CONCEPT — Khái niệm cốt lõi”Role-Based Workflow Design
Phần tiêu đề “Role-Based Workflow Design”graph TB A[Your Role] --> B[Common Tasks] A --> C[Key Patterns] A --> D[Primary Tools] A --> E[Quality Focus] A --> F[Collaboration]Role Matrix
Phần tiêu đề “Role Matrix”| Role | Task chính | Technique | Priority Phase |
|---|---|---|---|
| Frontend | Component, UI | Template, image | 5, 15 |
| Backend | API, database | Think mode, test | 6, 9 |
| Fullstack | End-to-end | Task breakdown | 7, 14 |
| Tech Lead | Review, arch | Quality, team | 10, 14 |
| DevOps | CI/CD, infra | Automation | 11, 12 |
| Data | Pipeline, analysis | Data analysis | 13 |
Xây Dựng Workflow
Phần tiêu đề “Xây Dựng Workflow”- List 10 task hàng ngày
- Map mỗi task → technique
- Tạo template cho task lặp lại
- Define quality criteria
- Build CLAUDE.md section
3. DEMO — Từng bước cụ thể
Phần tiêu đề “3. DEMO — Từng bước cụ thể”Workflow 1: Frontend Developer
Phần tiêu đề “Workflow 1: Frontend Developer”Daily Tasks: Component, design từ Figma, styling, state
Key Techniques:
- Phase 5: Image context cho design
- Phase 15: Component template
- Phase 3: Read existing pattern
CLAUDE.md Section:
## Frontend Standards- Components: Functional TypeScript- Styling: Tailwind CSS- State: Zustand global, useState localTemplates: /component, /style, /a11y
Workflow 2: Backend Developer
Phần tiêu đề “Workflow 2: Backend Developer”Daily Tasks: API, database schema, auth, performance
Key Techniques:
- Phase 6: Think mode cho API design
- Phase 9: Legacy refactoring
- Phase 13: Log analysis
CLAUDE.md Section:
## Backend Standards- API: REST + OpenAPI- Database: PostgreSQL, migration- Auth: JWT tokenTemplates: /api, /schema, /query
Workflow 3: Tech Lead
Phần tiêu đề “Workflow 3: Tech Lead”Daily Tasks: Code review, architecture, mentoring
Key Techniques:
- Phase 10: Team CLAUDE.md
- Phase 14: Quality optimization
- Phase 6: Think mode architecture
CLAUDE.md Section:
## Tech Lead Focus- Review: Security, performance- Architecture: ADR document- Mentor: Explain WHY not WHATTemplates: /review, /arch, /mentor
Workflow 4: DevOps Engineer
Phần tiêu đề “Workflow 4: DevOps Engineer”Daily Tasks: CI/CD, infrastructure, monitoring, incident
Key Techniques:
- Phase 11: GitHub Actions, hooks
- Phase 12: n8n automation
- Phase 13: Log analysis
CLAUDE.md Section:
## DevOps Standards- CI/CD: GitHub Actions- Infra: Terraform modules- Monitor: Prometheus + GrafanaTemplates: /pipeline, /terraform, /incident
4. PRACTICE — Luyện tập
Phần tiêu đề “4. PRACTICE — Luyện tập”Bài 1: Define Your Role Workflow
Phần tiêu đề “Bài 1: Define Your Role Workflow”Mục tiêu: Tạo workflow customized cho role bạn.
Hướng dẫn:
- List 5 task hàng ngày của bạn
- Map mỗi task → technique từ course
- Identify 3 template cần tạo
- Draft CLAUDE.md section cho role
💡 Gợi ý
Bắt đầu với task làm NHIỀU NHẤT. Map đến phase trực tiếp address task đó.✅ Giải pháp
Ví dụ: Mobile Developer
5 task:
- Build UI screen → Phase 15 template
- API integration → Phase 6 Think mode
- Debug crash → Phase 13 log
- Code review → Phase 10 team
- Performance → Phase 14
Templates: /screen, /api-call, /debug
CLAUDE.md:
## Mobile Standards- UI: SwiftUI/Compose- Network: async/await- State: MVVM5. CHEAT SHEET
Phần tiêu đề “5. CHEAT SHEET”Role Workflow Template
Phần tiêu đề “Role Workflow Template”## [Role] Workflow
### Daily Tasks1. [Task thường xuyên nhất]2. [Task thứ 2]
### Key Techniques- Phase X: [Technique]
### Templates/template — [Description]
### Quality Criteria- [What "done" means]Role → Priority Phase
Phần tiêu đề “Role → Priority Phase”| Role | Focus Phase |
|---|---|
| Frontend | 5, 15 |
| Backend | 6, 9 |
| Fullstack | 7, 14 |
| Tech Lead | 10, 14 |
| DevOps | 11, 12 |
| Data | 13 |
6. PITFALLS — Sai lầm thường gặp
Phần tiêu đề “6. PITFALLS — Sai lầm thường gặp”| ❌ Sai | ✅ Đúng |
|---|---|
| Generic workflow cho all role | Customize cho task CỤ THỂ |
| Quá nhiều template (10+) | Focus top 5 task |
| Ignore team context | Align với team CLAUDE.md |
| Không đo impact | Track time saved |
| Static workflow mãi | Evolve khi role thay đổi |
7. REAL CASE — Câu chuyện thực tế
Phần tiêu đề “7. REAL CASE — Câu chuyện thực tế”Scenario: Tech company Việt Nam, 20 developer, 4 role. Mọi người dùng Claude Code generic — có người thích, có người thấy không helpful.
Role Workflow Initiative:
- Tuần 1: Survey top task mỗi role
- Tuần 2: Build role-specific workflow + template
- Tuần 3: Training theo role
- Tuần 4: Đo và iterate
Kết quả (1 tháng):
- Frontend: 40% nhanh hơn component
- Backend: 50% nhanh hơn API
- DevOps: 60% nhanh hơn pipeline
- Tech Lead: 30% nhanh hơn review
Quote: “Generic training was okay. Role-specific workflow made Claude Code essential cho JOB của tôi.”
Tiếp theo: Module 16.3: Thiết kế Workshop →