Maithri Bodhisatvas Ata pirikara I recently got to know that the Ata Pirikara that is to be given to Maithree Bodhisatva at the time of the renunciation by the Maha Brahma has already been created and ready. 

Is there anything related to this sort of dharma in the tripitaka?
I have not heard of a ‘Atapirikara’ from Maha Brahma, but the legend says: “When Maitreya Buddha appears in the world, he will come to Kukkuta-padagiri (the Cook's-foot Mountain) – presently known as ‘Gurpa’, awaken Maha Kassapa, receive the Buddha’s robes from him, and then begin to announce the new dispensation.
Maha Kassapa had been praised by the Buddha as being equal to him in many respects. He had been the only monk with whom the Buddha had exchanged robes.

Then both Master and disciple walked towards Rajagaha. On the way, the Buddha wanted to rest and went off the road to the root of a tree. Maha Kassapa then folded his double-robe fourfold and requested the Master to sit on it as this would bring him, Kassapa, much benefit for a long time. The Buddha sat down on Kassapa's robe and said: &quot;Soft is your robe of patched cloth, Kassapa.&quot; Hearing this, Kassapa replied: &quot;May the Blessed One, O Lord, accept this robe of patched cloth out of compassion for me!&quot; — &quot;But, Kassapa, can you wear these hempen, worn-out rag-robes of mine?&quot; Full of joy, Kassapa said: &quot;Certainly, Lord, I can wear the Blessed One's rough and worn-out rag-robes.&quot;
This exchange of robes can be regarded as a great distinction bestowed on Kassapa, an honor which was not shared by any other disciple. By that exchange of robes the Buddha may have intended to motivate Kassapa to observe some other &quot;austere practices&quot; (dhutanga) as for instance, wearing only the triple set of robes, going for alms and not omitting any houses on the almsround. This would be a mode of conduct in conformity with wearing the Buddha's patched rag-robes. Thus the commentator says. However, the Buddha's offer may have been a quite spontaneous act in response to his being offered Kassapa's robe.

It is this very same rough and worn-out rag-robe that the Blessed One first wore and then given to Maha Kassapa, and in turn he too wore till his Pari-Nibbhana, that Maitreya Buddha will come to accept. Some say that Maha Kassapa didn’t attain Pari-Nibbhana. Instead, he took Samadhi within the rock - that Maha Kassapa will offer the robes of the Gautama Buddha to the future Buddha when Maitryea Buddha descends to this realm in order to share the next basket of teachings with the world. Others say it is an “Adhisthana” (by the power of his will to make such an event happen) that he made at the time he attained Pari-Nibbhana.