1. A method, comprising: maintaining a library of one or more compositional prototypes, wherein each compositional prototype is associated with one or more neurosynaptic programs; searching the library based on one or more search parameters; selecting at least one compositional prototype satisfying the search parameters; and generating or extending a neurosynaptic network by applying one or more rules associated with the selected compositional prototypes.