The examples are what helped me the most for learning cloudscript. Here are some more real-use examples -- I'm not sure how standard it is, but PF once used my old examples as a template somewhere on GitHub so it should at least be "decent". It's not meant for copy+paste because it won't work, but for example-use and perhaps a few snippets you could pull:
Rename from .txt to .js >> Open with Notepad++ or your favorite IDE.
PS -- The stat examples are for dynamic stats (we abandoned it since the limit is 20) -- don't use those examples unless you don't mind a paid plan. This is a dynamic spawn-rate example that could take ~100 stat slots.