Direct answer
Sorry if my answer may sound a little harsh, but it is what it is:
Do what they ask of you.
Reviewing CVs is absolutely part of your job as a software developer. Do you expect some HR guy (which I assume you have none in your small company) to decide who to pick? Based on which expertise?
You will, in the rest of your professional life, very likely be reviewing CVs over and over again. Count yourself lucky that you were asked, it means that your boss trusts you and your ability to make decisions. Maybe you can even sit in on interviews; you should be glad if you can do that sometime.
It does not matter that the other company will hire the person, anyways, not for you at least. They have to decide whether they trust your opinion, they carry the whole risk. You should be glad that you are trusted in this way.
I told him that this is [...] not what we do,
You told your boss that? Holy... your boss carries the risk of running the company. He can do damn well whatever he pleases to do (within legal boundaries, obviously).
is going to be a very painful project because we (specially he) are really bad at management.
So you trust him to manage your work life, but not to talk to other companies? If he is so bad that you do not want to do that project because of his incompetence, why are you still in that company, in the first place?
Your boss may have very good reasons to do it, which you may or may not be able to know about.
refuse it alleging that it's not my job because that's not our business and what I was hired for?
If you were my employee and you did that, I would be pretty sure that I can never trust you with anything of importance again. You would be in the "only ever does what he likes" drawer for the rest of the time, and I would not go out of my way to get you to develop into more mature directions. You do not want to be in that drawer; there may well be "boss decisions" in the future where you would be glad to be involved in instead of learning about them after the fact.
If you really do not wish to develop in that direction
I interpret the answer in the light of an "event" - i.e., a current project, where the boss needs something from you.
One exemption to the things I write here is if the boss tells you that he wants to develop you from being a software developer to, for example, a fulltime consultant or team lead, with minimal coding. If you truly do not wish that, you are of course free to (and invited to) tell the boss that (and, if he insists, skip along to looking for a new job). But I do not really get the impression that the boss in our current scenario intends to do anything like that.
How to handle this kind of situation
Get your act together. If your boss asks you to do something (within boundaries, obviously), there are two possible answers (maybe after you asked to make sure that you really understood what he meant):
- "Yes, when do you need it?"
- "Not right now, but if you give me X, Y and Z, I can do it."
Any other answer does not fit into IT businesses.
Obviously I am not talking about life-changing things here. If your boss asks you to renew the paint job in your office, you might just be a bit more rebellious. But anything remotely involving your expertise as a software developer, and this absolutely includes reviewing CVs and consulting (by the way, what you call "consulting" here is just "talking with people about stuff you know pretty well". It is not "real" consulting in the fashion that you sit down with a team of consultants to work out grand schemes of how to improve a business or whatever.).
This answer is not sarcastic, by the way. If the request is absolutely outlandish, then X, Y and Z will be expensive enough for the boss to decide himself that you are the wrong person. You still were open for it. That is what counts.
Also, your boss may not even be aware about X, Y and Z. By telling him, you help him, and the company as a whole. He will, likely, not forget that, and come to you for advice again and again.
What now
Think constructively about what X, Y and Z are needed right now to make the plan of your boss work. If your boss is, in your humble opinion, not able to handle such a project, then X will need to be "hire a project lead". If you truly feel unable to review CVs (I could not imagine why, but just to assume...), then Y could be "I need to visit a training course about People Management". If the fact that the guy will be hired by the other company bothers you so much, then make it objectively clear why that is so (for example to protect your company's rights on the software), then Z could be "hire that guy in your company, and then outsource him to the other company".
I hope you see what those X, Y and Z do. If you manage to convince your boss that those X, Y and Z are necessary, then he will do the calculations. If at the end of the day it is too expensive for him, he will decide against. If he does decide to invest, then you have reached your original goal, and improved the company.
(And obviously these X, Y and Z are just examples; adapt the process to your full situation.)
If there are no X, Y and Z
Oh. And if you do not find any X, Y and Z, then the answer is
- "Yes, sure" & do the best you can while looking for a new job.