mcp4131 and attiny85

What have you tried? Looks like all you need is this

int command_data;  upper 4-6 bits are command related, lower 10 are data

digitalWrite (CS, LOW);
SPI.transfer (highByte, (command_data) );
SPI.transfer (lowByte, (command_data) );
digitalWrite (CS, HIGH);