The Artificer's Flash of Genius says:
When you or another creature you can see within 30 feet of you makes an ability check or a saving throw, you can use your reaction to add your Intelligence modifier to the roll.
On the one hand, an initiative roll is an ability check, which means that it's eligible for Flash of Genius. However, it's not clear whether I would have my reaction available at the moment when initiative is being rolled. So, can I use Flash of Genius to add to an initiative roll? Does it make a difference if I'm surprised?
Best Answer
You can take reactions outside of combat.
As evidence of being able to take a reaction in response to a relevant trigger outside of combat, consider the spell feather fall:
Feather fall has a casting time of 1 Reaction,
I think it quite obvious that the act of falling does not initiate combat or require rolling initiative, and so there is a clear sense in which feather fall is intended to be usable outside of combat. Therefore, you have your reaction available outside of combat.
Flash of Genius works if you are not surprised.
In the order of combat section of the Player's Handbook, determining surprise comes before rolling initiative. Surprise is the only thing that would prevent you from taking your reaction at this point:
It is in the section following the surprise rules that the rules for initiative are explained. After determining surprise comes the ability check for initiative:
This is the reaction trigger:
You are making an ability check when you roll initiative1, so as long as you are not surprised, you may use your reaction at this point to use Flash of Genius.
1 To further solidify this particular point, the Sage Advice Compendium clarifies that the Bard's Jack of All Trades feature adds half-proficiency to initiative roles: "Don’t forget that initiative rolls are Dexterity checks, so Jack of All Trades can benefit a bard’s initiative".