🎯 පාඩමේ අරමුණු
මේ පාඩම ඉවර වෙද්දී ඔයාට:
- Roles assign කිරීම AI output dramatically improve කරන්නේ ඇයි තේරුම් ගන්න පුළුවන් වෙයි
- Role categories හතර සහ ඒවා use කරන්න ඕන වෙලාවන් දැනගන්න පුළුවන් වෙයි
- Complex tasks වලට role stacking master කරන්න පුළුවන් වෙයි
- Common scenarios වලට ready-to-use role templates ලැබෙයි
📖 Roles වල Power එක
Fascinating දෙයක් තියෙනවා: එකම question different roles එක්ක completely different answers produce කරනවා.
Roles Work කරන්නේ ඇයි
ඔයා role එකක් assign කරනකොට, AI:
- Vocabulary adjust කරනවා — Appropriate terminology use කරනවා
- Depth change කරනවා — Technical අවශ්ය විදියට වැඩි අඩු කරනවා
- Perspective shift කරනවා — Teacher explain කරනවා, expert deliver කරනවා
- Expectations match කරනවා — Professional roles වලට professional output
🔬 එකම Question, Different Roles
Question: "CSS වල div එකක් center කරන්නේ කොහොමද?"
Role එකෙන් response style එකයි usefulness එකයි completely change වෙනවා!
📚 Role Categories හතර
1. 🎓 Expertise Roles
Purpose: Best practices එක්ක professional-quality output ගන්න
| Role | Best For |
|---|---|
| "Senior frontend developer" | Web development tasks |
| "Python expert" | Python-specific coding |
| "Database architect" | Database design questions |
| "Security specialist" | Security-related code |
| "DevOps engineer" | Deployment, infrastructure |
Example:
You are a senior React developer with 10 years of experience.
Create a reusable button component with TypeScript.
2. 👨🏫 Teaching Roles
Purpose: Clear explanations සහ learning-focused responses ගන්න
| Role | Best For |
|---|---|
| "Patient coding teacher" | New concepts ඉගෙන ගන්න |
| "Tutor explaining to a 10-year-old" | Very simple explanations |
| "Bootcamp instructor" | Practical, hands-on guidance |
| "College professor" | Thorough, academic explanations |
Example:
You are a patient coding teacher who uses simple analogies.
Explain what an API is to someone who has never programmed.
3. 🔍 Quality Roles
Purpose: Code quality improve කරන්න සහ issues catch කරන්න
| Role | Best For |
|---|---|
| "Code reviewer" | Bugs හොයන්න, code improve කරන්න |
| "UX designer who codes" | User-friendly interfaces |
| "Performance expert" | Code faster කරන්න |
| "Clean code advocate" | Readable, maintainable code |
Example:
You are a code reviewer focused on best practices.
Review this code and suggest improvements:
[code]
4. 🎨 Style Roles
Purpose: Specific tone, approach, හෝ aesthetic ගන්න
| Role | Best For |
|---|---|
| "Minimalist developer" | Simple, no-frills code |
| "Creative web designer" | Visually interesting designs |
| "Practical engineer" | No-nonsense, working solutions |
| "Encouraging mentor" | Motivation සහ confidence building |
Example:
You are a minimalist developer who values simplicity.
Create the simplest possible navigation bar using only HTML and CSS.
🎭 Role Decision Guide
Right role එක choose කරන්න මේ table use කරන්න:
| ඔයාට ඕනේ... | මේ Role එක Use කරන්න |
|---|---|
| Work කරන Code | "Senior [language] developer" |
| Concept එකක් තේරුම් ගන්න | "Patient teacher" |
| Better code | "Code reviewer" |
| Nice-looking design | "UX designer who codes" |
| Simple solution | "Minimalist developer" |
| Fast code | "Performance expert" |
| Secure code | "Security specialist" |
| Learning explanation | "Tutor for beginners" |
🔗 Advanced: Role Stacking
Complex tasks වලට multiple roles combine කරන්න:
Role Stacking
Formula: "You are a [role 1] AND [role 2]"
මේකෙන් perspectives දෙකෙනුම benefits ලැබෙනවා!
Role Stacking Examples:
Builder + Explainer:
You are an expert React developer AND a patient teacher.
First, create a toggle switch component.
Then, explain each line like I'm a beginner.
Creator + Critic:
You are a web developer AND a code reviewer.
First, create a login form.
Then, review your own code and suggest improvements.
Designer + Developer:
You are a UX designer AND a frontend developer.
Create a pricing table that is both visually appealing and well-coded.
📝 Activity: Role Comparison
Roles action එකේදී බලන්න මේ experiment try කරන්න:
✅ Role Responses Compare කරන්න
0/4📋 Role Prompt Templates
මේ templates copy කරලා use කරන්න:
Features Build කරන්න:
Learning වලට:
Code Review වලට:
Design + Code වලට:
⚠️ Common Role Mistakes
✅ පාඩමේ සාරාංශය
Key Takeaways
- Roles AI responses dramatically change කරනවා — එකම question, different answers
- Categories හතරක්: Expertise, Teaching, Quality, Style
- Role task එකට match කරන්න — Decision guide use කරන්න
- Role stacking complex tasks වලට benefits combine කරනවා
- Specific වෙන්න — "developer" නෙමෙයි "Senior React developer"
📝 Mini Quiz
📝 ඔයාගේ Understanding Check කරන්න
1/3Which role is best for learning a new concept?