After seven years of working at Kleiner Perkins, one of Silicon Valley’s pre-eminent venture-capital firms, Ellen Pao felt that bosses had passed her over for promotions, choosing instead less-qualified candidates. So in 2012, she filed a gender-discrimination lawsuit. Though she didn’t win, her trial helped expose the tech industry’s persistent lack of diversity and frequent gender-harassment issues. She has since become an ear and a voice for others with shared experiences. Here she offers insights on how to create an inclusive workplace in the Valley—and beyond.