in a way, cooking with what you happen to have is what "knowing how to cook" is all about. it's not about knowing recipes and following them religiously.
most of the classic French dishes are like that. a handful of simple ingredients. just clever ways of using them to produce very different results.