@pelagornis/prompt-guide
v1.0.3
Published
Initialize prompt-guide in any project: pick platform, copy config, set .gitignore
Downloads
24
Maintainers
Readme
@pelagornis/prompt-guide
Set up prompt-guide in any directory with one command — no project config required. Install globally on macOS (or any system with Node) and run prompt-guide init from anywhere.
Built with Commander, Zod, and TypeScript.
Install globally (macOS / any Node host)
npm i -g @pelagornis/prompt-guideThen from any directory (your app, monorepo, new folder):
prompt-guide init
# or with platform
prompt-guide init --platform=ios
prompt-guide init -p flutterNo need to add the package to your project’s package.json or use npx in each repo.
Publish to npm (maintainer)
From the prompt-guide repo root:
cd cli
npm install
npm run build # optional: prepublishOnly will run this
npm publish # runs copy-templates + build, then publishesOr from repo root with workspaces:
npm run build -w @pelagornis/prompt-guide
cd cli && npm publish- prepublishOnly copies repo root
docs/,prompts/,.cursor/intocli/and runstsc, so the tarball includes everything needed. - files in package.json: only
bin,dist,docs,promptsare published (nosrc/,scripts/, etc.).
Commands
init — Create config and copy prompts/docs
- Creates
prompt.config.jsand copiesprompts/,docs/into the current directory. - Sets platform and tool in
prompt.config.js. - Appends platform-specific
.gitignoreentries.
Interactive: prompt-guide init
Non-interactive: prompt-guide init --platform=ios --tool=cursor (or -p ios -t codex)
install — Generate tool-specific rules
- Reads
prompt.config.jsand writes rule files for yourtool(Cursor →.cursor/rules/, Codex →AGENTS.md, Windsurf →.windsurfrules, Claude Code →.claude/rules/).
Then edit prompt.config.js to adjust context.include for your repo; run prompt-guide install again after changes.
What gets created
| Path | Description |
|------|-------------|
| prompt.config.js | Single config (tool, platform, model, context, taskPresets). |
| prompts/*.yml | system.core, review, rules.by-platform, guide.template. |
| docs/*.md | Human-readable rule summaries. |
| (after install) | .cursor/rules/, AGENTS.md, .windsurfrules, or .claude/rules/ depending on tool. |
| .gitignore | Appended block (platform-specific + common). |
License
MIT.
