How to unlock Mastery Cave
Reach level 10 in all five skills, find the door in Cindersap Forest, and earn enough XP to claim your first mastery.

In Stardew Valley 1.6, the Mastery Cave opens when Farming, Mining, Foraging, Fishing, and Combat all reach level 10. Opening the door lets you visit the cave. Claiming your first mastery takes another 10,000 mastery XP.
Find the cave in Cindersap Forest
Check the Skills tab for any skill still below level 10. Once all five are maxed, head to the southeast part of Cindersap Forest. Look for the carved door in the cliff near the drainage grate.
How to claim a mastery
1. Keep doing activities that award skill experience. After all five skills reach level 10, the XP feeds a shared mastery bar in the Skills tab. 2. Fill the bar to earn your first mastery level at 10,000 XP. You can earn mastery XP before visiting the cave. From version 1.6.6, Farming XP contributes at half its usual rate. 3. Return to the cave and claim one of the five mastery rewards. You can pick any of the five, regardless of which skill activities filled the bar. Earn another mastery level to choose another reward.
If the door opens but you cannot claim anything yet, check the mastery bar. The door requirement is your five skill levels. The reward requirement is a completed mastery level. You can eventually claim all five rewards.