packkit_scaffold
Create a runnable project from a preset by writing files to disk, then optionally initialize git, install dependencies, and create a GitHub repository.
Instructions
Generate a project to disk. Writes files under / (or ./), optionally runs git init, installs dependencies, and creates the GitHub repository. Call packkit_schema first if you have not already — picking the preset by guess is how projects end up the wrong shape. If the target directory already has files in it (an existing clone, for instance), pass merge: true rather than failing.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| git | No | git init + initial commit (default false) | |
| name | Yes | Package name (also the folder name) | |
| merge | No | Scaffold into a non-empty directory. Existing files are never overwritten — colliding ones are skipped and reported. Use this when the target is an already-cloned repo. | |
| github | No | Create the repository on GitHub and push to it, using the `gh` CLI. Requires git. Private unless "public" is set. | |
| preset | No | A preset or alias | |
| public | No | When creating the repository, make it public (default: private) | |
| install | No | Install dependencies (default false) | |
| options | No | Any options from packkit_schema | |
| directory | No | Parent directory to create the project in (default: current working directory) |