"""
SkillAssessment
Generated by Eden via recursive self-improvement
2025-11-01 06:01:47.021785
"""

class SkillAssessment:
    """
    A class designed to help users assess their own skills and receive personalized feedback based on the assessments.
    
    Attributes:
        skill_name (str): The name of the skill being assessed.
        rating (int): User's self-assessment score for the skill. Must be between 1 and 5.
        
    Methods:
        __init__(self, skill_name: str)
        set_rating(self, rating: int) -> None
        get_feedback(self) -> str
    """
    
    def __init__(self, skill_name: str):
        self.skill_name = skill_name
        self.rating = 0

    def set_rating(self, rating: int) -> None:
        if 1 <= rating <= 5:
            self.rating = rating
        else:
            raise ValueError("Rating must be between 1 and 5.")
    
    def get_feedback(self) -> str:
        feedback_levels = {
            1: "You could use some improvement in this skill.",
            2: "Your understanding is basic, but you can improve significantly.",
            3: "Good job! You have a solid grasp of the basics.",
            4: "Excellent! You are performing at an advanced level.",
            5: "Outstanding! Your mastery in this area is exceptional."
        }
        return feedback_levels.get(self.rating, "Invalid rating provided.")
    
# Example usage
assessment = SkillAssessment("Programming")
print(assessment.get_feedback())  # Output based on the current rating of 0

assessment.set_rating(3)
print(assessment.get_feedback())  # Output: Good job! You have a solid grasp of the basics.