Overview
robots.txt tells well behaved crawlers which paths they may request. It is not a security wall. Private URLs still need authentication.
This generator writes a robots.txt from allow/disallow rules and a sitemap URL. Disallowing /admin is fine. Disallowing / because you are embarrassed about thin pages is a blunt tool. Noindex on those pages is usually cleaner.
Syntax errors (missing colons, wrong user agent) make the file ignored. Test after deploy.