If creatures you controlled had total power 8 or greater at the time you finished declaring attackers, it doesn't matter what the total power of creatures you control is when Kirk's first ability resolves. You'll still exile the top card of your library, and you'll still be able to play it this turn.

Artwork
Loading artwork…
Kirk, Commanding Officer
Star Trek · #243 · EN
Nonfoil—Foil—
Card rules
Whenever you attack while creatures you control have total power 8 or greater, exile the top card of your library. You may play that card this turn.
2, Sacrifice Kirk: Destroy target artifact or enchantment.
3/3
"I don't believe in a no-win scenario."
Uncommon · Illustrated by Cliff Nielsen
Format legality
Brawl Legal
Commander Legal
Competitive Brawl Legal
Duel Legal
Future Legal
Gladiator Legal
Historic Legal
Legacy Legal
Modern Legal
Oathbreaker Legal
Penny Legal
Pioneer Legal
Standard Legal
Standard Brawl Legal
Timeless Legal
Tlr Legal
Vintage Legal
Alchemy Not Legal
Old School Not Legal
Pauper Not Legal
Pauper Commander Not Legal
PreDH Not Legal
Premodern Not Legal
Rulings
Published rulings from the downloaded Scryfall catalog. Source card record · Rules and interactions
You pay all costs and follow all timing rules for cards played this way. For example, if the exiled card is a land card, you may play it only during your main phase while the stack is empty and only if you have an available land play remaining.