Minimal Example
The simplest possible PromptScript setup for a single project.
Project Structure
my-project/├── .promptscript/│ └── project.prs├── promptscript.yaml├── .github/│ └── copilot-instructions.md # Generated└── ...Files
.promptscript/project.prs
@meta { id: "minimal-example" syntax: "1.5.0"}
@identity { """ You are a helpful coding assistant for this project. Focus on clean, readable code. """}
@context { """ This is a TypeScript project using modern best practices. """}
@standards { code: [ "Use functional programming style", "Document public APIs with JSDoc" ]}
@shortcuts { "/help": "Show what you can help with" "/review": "Review code for quality issues" "/test": "Write unit tests"}promptscript.yaml
id: minimal-examplesyntax: '1.5.0'
input: entry: .promptscript/project.prs
targets: - github: output: .github/copilot-instructions.mdUsage
Initialize
If starting from scratch:
prs initValidate
Check for issues before generating anything. Strict mode turns warnings into errors:
prs validate --strictCompile
Generate the output file:
prs compileGenerated Output
Current configuration emits GitHub output only:
.github/copilot-instructions.md:
# GitHub Copilot Instructions
## project
You are a helpful coding assistant for this project.Focus on clean, readable code.
## Context
This is a TypeScript project using modern best practices.
## code-standards
### code
- Use functional programming style- Document public APIs with JSDoc
## shortcuts
- /help: Show what you can help with- /review: Review code for quality issues- /test: Write unit testsAdding More Targets
To also generate for Claude and Cursor:
id: minimal-examplesyntax: '1.5.0'
input: entry: .promptscript/project.prs
targets: - github: output: .github/copilot-instructions.md - claude: output: CLAUDE.md - cursor: output: .cursor/rules/project.mdcThen:
prs compileNext Steps
- Add more detailed standards
- Add restrictions for safety
- Consider team setup for multiple projects