We will fly into and out of Edinburgh
We are using frequent flyer miles, so not a lot of options to fly into Edinburgh out of Glasgow, or into Glasgow out of Edinburgh which would have been my first choice, and keep us from backtracking.
Arrive Edinburgh and spend 2-3 nights exploring the town
Travel via train to Glasgow, spend 1 night there
Train to Ft Williams to start a 10 day self guided hiking trip (hiking The Great Glen Way - Ft Williams to Inverness)
End in Inverness, spend one night
Rent a car in Inverness, OR take a train to Portree, rent a car there (where is better to rent, Inverness and drive to Skye, or train to Portree, rent there --- your suggestion)
Explore Isle of Skye for 3-4 nights- hiking where we can, with freedom of our own transportation
Drive, or train back to Inverness, then catch train to Edinburgh
One night Edinburgh to catch flight home
Feel free to start a PM conversation with me-