
WorqHat Wizard
A zero-setup CLI that scans your project, scaffolds WorqHat integration files, installs needed packages, writes usage docs, and optionally commits and opens a pull request for you.⚠️ Experimental: This wizard is still in an experimental phase. If you have any feedback, please drop an email to sagnik [at] worqhat [dot] com.WorqHat wizard ✨ The WorqHat wizard helps you quickly add WorqHat to your project using AI. Works with JavaScript/TypeScript, plus guidance for Python and Ruby projects.
Features
- Project scan: Detects languages and generates a project tree snapshot.
- Guided setup: Choose to scaffold Workflows and/or Database helpers.
- Smart scaffolding: Creates
worqhat/config.*,worqhat/workflows.*, andworqhat/db.*(when applicable). - Docs generation: Appends clear usage docs to
WORQHAT.mdper generated file. - Package install: Installs language-appropriate dependencies.
- Git automation: Creates a dedicated branch, commits, pushes, and opens a PR via GitHub CLI (if available).
Requirements
- Node.js >= 18
- Git installed and a Git repository (for branch/commit/PR automation)
- Optional: GitHub CLI (
gh) for automatic PR creation
Installation
Global install (recommended):Quick Start
- In your Git repo, run
worqhat-wizard. - Follow the prompts to pick WorqHat components (Workflows, Database).
- When asked, provide your WorqHat API key.
- Review newly created files and the
WORQHAT.mdguide. - The wizard will commit your changes on a dedicated branch and push a PR (if
ghis available).
What it generates
Depending on your choices and detected language, the wizard generates:WORQHAT.md: A living guide with project snapshot and usage docs.worqhat/config.*: WorqHat client config and environment setup guidance.worqhat/workflows.*: Starter workflow helpers (examples avoid importing/passing the client explicitly).worqhat/db.*: Optional database helpers when you select Database.
WORQHAT.md for the generated files.
CLI usage and options
| Option | Type | Default | Description |
|---|---|---|---|
| —help | boolean | — | Show help |
| —version | boolean | — | Show version number |
| —force-install | boolean | false | Force install packages even if peer dependency checks fail |
| —logout | boolean | — | Remove saved API key |
| —branch-prefix (prefix) | string | worqhat-wizard | Prefix for the new git branch created by the wizard (format: —branch-prefix <prefix> or —branch-prefix=<prefix>) |
Branching, commits, and PRs
The wizard prepares work on a dedicated branch before making changes:- Creates and checks out a branch named
<prefix>/<YYYY-MM-DD-HHMMSS>(default prefix:worqhat-wizard). - Stages and commits all changes with a descriptive message.
- Pushes the branch to
origin. - If the GitHub CLI (
gh) is available, opens a pull request and prints a confirmation.
Configuration and secrets
- On first run, the wizard prompts for your WorqHat API key.
WORQHAT.mdincludes an Environment Setup section explaining how to setWORQHAT_API_KEYvia shell or.env.- Never commit secrets to version control. Treat
.envfiles with care and add them to.gitignore.
Troubleshooting
- No Git repo detected: Initialize Git first (
git init) or run in an existing repo. The wizard can still generate files without Git. - Cannot push or create PR: Ensure
originis set and you have permissions. Installghto enable automatic PR creation. - Package installation issues: Use
--force-installto bypass strict peer checks, or install dependencies manually as prompted. - Missing API key: Re-run the wizard and supply the key, or set
WORQHAT_API_KEYin your shell/.env. Use--logoutto remove the stored key.

