The Code of Ri'brahim was a set of precepts compiled over ten millennia by an intelligent species in the Delta Quadrant.
Q considered the creators of the Code of Ri'brahim to be "highly intelligent and insightful" and thought Robin Lefler's "Lefler's Laws" were virtually identical to the Code. (ST reference: Q's Guide to the Continuum)