One Source of Truth for All Your AI Coding Assistants
Write once. Compile to GitHub Copilot, Claude Code, Cursor, and more.
| For IT Managers | For Developers |
|---|---|
| Update security policies across 100+ repos in seconds | 1,100+ ready templates for React, Vue, Node, Python, Rust |
| Audit trail for all AI instructions | Zero migration β auto-converts existing files |
| Vendor independence β switch AI tools without rewriting | Watch mode for instant feedback |
| CISO-approved standards propagate automatically | Parameterized templates like IaC |
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β 50+ Repos Γ 4 AI Tools = Chaos β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ€
β β
β repo-1/CLAUDE.md repo-1/.cursorrules repo-1/.github/ β
β repo-2/CLAUDE.md repo-2/.cursorrules repo-2/.github/ β
β repo-3/CLAUDE.md repo-3/.cursorrules repo-3/.github/ β
β ... ... ... β
β repo-50/CLAUDE.md repo-50/.cursorrules repo-50/.github/ β
β β
β β Security policy update = 200 manual file changes β
β β No audit trail for AI instructions β
β β Inconsistent standards across teams β
β β Vendor lock-in to specific AI tool formats β
β β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β One Source β All AI Tools β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ€
β β
β @company/security βββ¬βββ @team/backend βββ checkout-service/.prs β
β (CISO approved) β β
β ββββ @team/frontend βββ dashboard/.prs β
β @company/typescript β β
β (Platform team) ββββ @team/data βββ analytics/.prs β
β β
β β prs compile β
β β
β ββββββββββββββ¬βββββββββββββ¬βββββββββββββ β
β β Copilot β Claude β Cursor β β
β β .github/ β CLAUDE.md β .cursor/ β β
β ββββββββββββββ΄βββββββββββββ΄βββββββββββββ β
β β
β β
Update once β propagates to all repos β
β β
Full audit trail in version control β
β β
Hierarchical inheritance like code β
β β
Switch AI vendors without rewriting β
β β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
| Approach | Problem |
|---|---|
| Copy-paste | 50 repos Γ 4 tools = 200 files to update manually |
| Symlinks | Don't work with Git, break in CI/CD |
| Git submodules | Complex, no inheritance, same format issue |
| Scripts | Custom code to maintain, no validation |
PromptScript gives you: inheritance, validation, multi-format output, and version control β in one tool.
# Install globally
npm install -g @promptscript/cli
# Initialize in your project (auto-detects tech stack)
prs init
# Compile to all AI tools
prs compile# Compile your project
docker run --rm -v $(pwd):/workspace ghcr.io/mrwogu/promptscript:latest compile
# Validate before CI merge
docker run --rm -v $(pwd):/workspace ghcr.io/mrwogu/promptscript:latest validate --strictOpen Playground β no installation needed.
Source: .promptscript/project.prs
@meta { id: "checkout-service" syntax: "1.0.0" }
# Inherit company-wide security standards (CISO approved)
@inherit @company/backend-security
# Compose with reusable fragments
@use @fragments/testing
@use @fragments/typescript-strict
# Project-specific context
@identity {
"""
You are an expert Backend Engineer working on the Checkout Service.
This service handles payments using hexagonal architecture.
"""
}
# Custom commands for your team
@shortcuts {
"/review": "Security-focused code review"
"/test": "Write unit tests with Vitest"
"/migrate": "Generate Prisma migration"
}
Run: prs compile
Generated Outputs:
| AI Tool | Output Files |
|---|---|
| GitHub Copilot | .github/copilot-instructions.md, .github/prompts/*.prompt.md |
| Claude Code | CLAUDE.md, .claude/skills/*.md |
| Cursor | .cursor/rules/*.mdc |
| Antigravity | .agent/rules/*.md |
# Organization level (managed by platform team)
@inherit @company/global-security # CISO-approved standards
@inherit @company/typescript # Platform standards
# Team level
@inherit @team/backend-standards # Team conventions
# Project level overrides
@extend @standards.testing {
coverage: "95%" # Override inherited value
}
@meta {
id: "@stacks/typescript-service"
params: {
projectName: string
port: number = 3000
database: enum("postgres", "mysql", "mongodb") = "postgres"
}
}
@identity {
"""
You are building {{projectName}} on port {{port}}.
Database: {{database}}
"""
}
Usage: @inherit @stacks/typescript-service(projectName: "checkout", port: 8080)
Already have CLAUDE.md, .cursorrules, or copilot-instructions.md?
# Discover and convert existing files
prs init --migrate
# Then use the migration skill in your AI tool
/migrateThe AI analyzes your existing instructions and generates properly-structured PromptScript files.
# Auto-recompile on changes
prs compile --watch# Use in GitHub Actions, GitLab CI, etc.
docker run --rm -v $(pwd):/workspace \
ghcr.io/mrwogu/promptscript:latest \
validate --strict --output jsonInherit from battle-tested templates instead of starting from scratch.
| Category | Examples | Count |
|---|---|---|
| @stacks/ | React, Vue, Node, Python, Rust, Go, TypeScript | 7 |
| @fragments/ | Testing, Security, Accessibility, Performance | 441 |
| @prompts/ | Code review, Documentation, Refactoring | 632 |
| @roles/ | Backend Engineer, Frontend Expert, DevOps | 18 |
| @skills/ | Claude Code skills with permissions | 28 |
| @agents/ | Specialized AI agents | 5 |
Example:
@inherit @stacks/react
@use @fragments/testing
@use @fragments/security
@use @fragments/accessibility
| AI Tool | Output Format | Features |
|---|---|---|
| GitHub Copilot | .github/copilot-instructions.md |
Agent mode, skills, prompts |
| Claude Code | CLAUDE.md |
Skills with tool permissions |
| Cursor | .cursor/rules/*.mdc |
Glob patterns, alwaysApply |
| Google Antigravity | .agent/rules/*.md |
Activation modes |
See Roadmap for upcoming platforms and features β contributions welcome!
| Feature | Description |
|---|---|
| Private Registries | Host standards on internal Git repos |
| Version Pinning | @inherit @company/security@2.1.0 |
| CI Validation | prs validate --strict --output json |
| Full Audit Trail | All changes tracked in Git |
| Resource | Description |
|---|---|
| Getting Started | 5-minute quickstart guide |
| Language Reference | Full syntax documentation |
| Inheritance Guide | Hierarchical composition patterns |
| Registry Guide | Using and publishing packages |
| Migration Guide | Converting existing files |
| Enterprise Guide | Scaling across organizations |
- More platforms: Windsurf, Aider, Continue, Cline, Zed
- GitHub Action for CI/CD drift detection
- VS Code Extension with LSP
- Public Registry for community sharing
We welcome contributions! See CONTRIBUTING.md for guidelines.