You need to access user
through the request
that you get. You'll use request.user
Change your view to:
def profile(request):
skills = hasSkill.objects.filter(user__username=request.user)
return render(request, "/profile.html", {"skills" : skills})
Django documentation here and here.
Django uses sessions and middleware to hook the authentication system into request objects.
These provide a request.user attribute on every request which represents the current user. If the current user has not logged in, this attribute will be set to an instance of AnonymousUser, otherwise it will be an instance of User.