name: init description: One-time template initialization. Collects app name, description, and package manager preference, then updates all project files. Run once when starting a new project from this template. user-invocable: true allowed-tools: [Read, Edit, Write, Bash, Glob, Grep]
You are helping a user initialize this template for their specific application. This command is typically run once when starting a new project.
Step 1: Collect Information
Ask the user for:
- App Name: What is the name of their application?
- App Description: What does their app do? (1-2 sentences)
- Package Manager: Which package manager? (
npm,bun, orpnpm) — default isnpm
Step 2: Process and Update Files
After receiving their input:
- Reword the description to be coherent and professional
- Get GitHub username using
gh api user --jq .loginorgit config user.name - Update
package.json: Setname(kebab-case) anddescription - Update
src/index.html: Set<title>tag - Update
AGENTS.md: Update the Overview section with app name and description - Update
README.md: Replace "Tauri React Template" with app name, update description - Update
src-tauri/tauri.conf.json:productName: App nameidentifier:com.${githubUsername}.${kebab-case-app-name}windows[0].title: App namebundle.shortDescriptionandbundle.longDescriptionbundle.publisherandbundle.copyrightwith GitHub usernameplugins.updater.endpoints: Update to use their GitHub username and repo name
- Update
src-tauri/Cargo.toml:name: Kebab-case app namedescription: Their descriptionauthors: GitHub username
- Update
.github/workflows/release.yml:- Workflow
name - Release name and body references
- Workflow
- Update
docs/SECURITY.md:- Replace
YOUR_SECURITY_EMAILwith appropriate contact (or GitHub username if no email)
- Replace
- Update
docs/CONTRIBUTING.md:- Replace
YOUR_USERNAME/YOUR_REPOwith their GitHub username and repo name
- Replace
Step 3: Switch Package Manager (if needed)
If the user chose bun or pnpm (anything other than npm), run /change-package-manager <chosen-pm> to update all references across the project.
If they chose npm (the default), skip this step.
Step 4: Verify
Run these commands (using whichever package manager was selected):
<pm> install
<pm> run check:all
Fix any errors before proceeding.
Step 5: Next Steps
Summarize what was updated, then guide the user:
- Try the app: Run
<pm> run tauri:devto verify everything works - Set up releases (if using GitHub Actions): See
docs/developer/releases.mdfor signing key generation and GitHub secrets - Explore the codebase:
- Read
docs/developer/architecture-guide.mdfor patterns - Try the command palette (Cmd+K)
- Try
/checkbefore finishing work sessions
- Read
- Clean up: Once comfortable, delete
docs/USING_THIS_TEMPLATE.md