Project template utility to learn and intialize project structures, tasks (pt-cli/gui)

For years I’ve been refining a bash script to create new projects based on a template and it’s been fine for most project types. For a while I’ve been wanting to upgrade it. This 2.0 version enables any shape of project now, irrespective of file management opinions, mainly because it “learns” templates from existing projects.

It’s pretty simple, mainly copies folders and files. For most I’m sure this is overkill, but I’ve enjoyed the process of improving and streamlining the process.

I used to cp -r PROJECT_TEMPLATE New_Project; cd New_Project && ./config and then answer a few questions to set some defaults like Godot version, stage after build, etc.

Now I just pt init godot New_Project and answer some of the same questions.

If you’ve been around a while I’d love to hear how you do things. I’ve always been interested in how things work, pipeline and process.

If you haven’t been around a while then you might find it interesting to see how others organize work. Here’s one: GitHub - garyritchie/pt_godot: pt-cli template for Godot Game Engine projects · GitHub – I’m not claiming it’s great but it fits the way my brain “works” :smile: .

Now it’s a little faster to get to experimenting.

Disclaimer: Hermes Agent with local model used for the initial version. Gemini models used for subsequent updates.

1 Like

Example Godot template now available: GitHub - garyritchie/pt_godot: pt-cli template for Godot Game Engine projects · GitHub

GUI is shaping up:


NOTE: pt-gui doesn’t ship with any templates, but you can load examples from here: Repository search results · GitHub

Gumroad page for the GUI if anyone is interested: pt GUI

CLI will remain free/open source.

Some progress on styling the UI…

Filtering in action:

Settings screen showing default tasks and adjustable card colors:

I’m finding this small project is a great way to explore new-to-me areas of Godot.

pt-cli updated with improved UX. Learn → Init → Update: Update now only shows what would be added to a template. This streamlined approach mimics what my project closedown typically includes: a task to improve the template with new tools and processes (documentation.)

npm i @garyr/pt-cli to install

And for the GUI I’m working on a deploy pattern where you can list templates available to be learned. No more blank screen with a fresh install.

1 Like

PT-GUI now “ships” with example templates and the new “deploy” feature could be useful for teams by listing available remote templates in a deploy.yaml|json file.

PT-GUI now highlights new items after an update…

This should close the loop allowing for incremental improvement of templates. For my purposes I might only have a few new items I want to retain for the next project but I can quickly see the ones I’ll likely remove.

Oh, the app background color is customizable now, too.

pt-cli v1.0.0 is live!

After 40+ versions and 146 passing tests, the API is now locked for the 1.x series. No breaking changes to CLI commands, config schema (~/.pt/config.yaml), or JSON template format (.pt-template.json).

What’s in 1.0:

  • pt learn / pt init / pt update
  • Remote templates from GitHub/Gitea URLs
  • Nested variable expansion via .env files
  • JSON template configs for sharing
  • Security model: command validation, 50-cmd rate limit, 30s timeout, audit log
  • Global variables + default post-config tasks

Install:

npm i -g @garyr/pt-cli
# or clone the repo and build from source:
npm i && npm run build:all

Changelog: pt-cli/CHANGELOG.md at main · garyritchie/pt-cli · GitHub

1 Like

Just added shell completions to v1.1.0.

Latest revisions to pt include support for partials, or modular templates. I’m finding it to be a useful addition.

Also made a web app for exploring popular folder structures so newcomers don’t have to start from zero and old-timers can learn something new: https://pt-wizard.lyonritchie.com/

Small update to the thread above. I pulled the wizard apart and rebuilt the discovery side as a gallery: 12 credited structures, each with a ZIP and a pt-cli JSON download: https://pt-gallery.lyonritchie.com/

Two of them are for us. My house layout keeps the engine folder under the working title (SCENE_GODOT), splits assets into MATERIAL/MODEL/TEXTURE, and runs screenshots and captures through RENDER and DAILIES like a film pipeline. The GDQuest card is the engine-side complement: addons, systems, ui, content, gyms. I use the house one for jams and the modular one inside it.

Project templates engineered by you. Grab what fits, rename the rest.

How are you laying out Godot projects these days? …There’s the files in the Godot project folder (res://) and then there’s the rest of it.