prompts-gpt generate
Generate a new reusable prompt pack from a concrete developer goal using AI.
Usage
prompts-gpt generate --goal <text> [options]
Options
| Flag | Description |
|---|---|
--goal <text> | Required. The task to generate a prompt for (8–160 chars). |
--context <text> | Extra project/stack context (max 1600 chars). |
--constraints <text> | Constraints the prompt must honor (max 1600 chars). |
--desired-output <text> | Preferred output shape (max 1600 chars). |
--tool <name> | Target tool. Default: Codex. |
--mode <name> | Generation mode. Default: implement. |
--artifact-type <name> | Artifact type. Default: prompt-file. |
--web-search | Allow server-side web research. |
--out <dir> | Output directory. Default: .prompts-gpt. |
--overwrite | Replace existing file. |
--agent <targets> | Sync agent files for specific targets after generation. |
--sync-agents | Sync all agent files (same as --agent all). |
--token <token> | Override token. |
Examples
# Basic generation
prompts-gpt generate --goal "Review PRs for security issues"
# With context and agent sync
prompts-gpt generate --goal "Write unit tests" --context "Next.js + Prisma + Vitest" --sync-agents
# Target specific agents
prompts-gpt generate --goal "Add error handling" --agent cursor,codex
Data Privacy
The --goal, --context, and --constraints text is sent to prompts-gpt.com for AI generation. No local files or repo content are uploaded. Do not include PII, secrets, or confidential data.
See Also
- sync — Pull + generate + sync in one command
- generate-sweep — Scaffold sweep files
- generate-orchestration — Scaffold orchestration files