Who owns the skills and other code I write for Misty II?

You do. Even when sharing those skills with others and Misty you retain ownership and simply grant usage rights.