The ONT Enhancement Proposals (OEP) lay out the standard for tokens on the Ontology platform, including core protocol specifications, client APIs and smartcontract standards.
You can refer to OEP-1 to get the general idea and then clone the OEPrepository and add your own OEP protocol to it. You can refer to the pull requests here.
Here is a list of the token protocols currently available for reference and usage: