彼は 部長として上手ですが 人間としてあまりやすちくないです。
As the head of the department, he was very good, but as a human being, he wasn't very kind.
・部長として彼は素晴らしかったですが、人としてはあまり親切ではありませんでした or 優しくありませんでした。
・彼は部長としてはとてもいい人でしたが、人としてはあまり優しくありませんでした。
※上手 is not used to describe the personality but if you talk about his ability, like, he was very good at managing his business. then you can say 彼は部長として仕事を管理するのが上手でした。
アメリカでプログラマーとして働いていました。 でも、日本は二年前に日本に学生として来ました。一年のそのあとで学生ビサが仕事のビサを変わりました。
I was working in America as a programmer but I came to Japan as a student 2 years ago. After a year I changed my student visa into a work visa.
私はアメリカでプログラマーとして働いていましたが、2年前に学生として日本にきました。1年後に学生ビザから就労ビザに変更しました。
Hope this helps.