PromptScript¶
The Prompt-as-Code for AI Instructions
Standardize, audit, and deploy instructions across any AI coding assistant.
# Checkout Service
← inherited from @acme/platform-standards
## Project
Expert Fullstack Engineer.
## Tech Stack
TypeScript 5.x · Node 20+ · PostgreSQL
## Standards
✓ Strict mode, no `any`
✓ Zod for validation
✓ API: https://api.acme.io
## Security
⛔ Never log PII/card data
⛔ Parameterized SQL only ---
mode: agent
tools: [codebase, terminal]
description: Security code review
---
Perform security-focused code review.
Check for:
• SQL injection vulnerabilities
• XSS attack vectors
• Exposed secrets/API keys
• Input validation gaps ---
mode: agent
tools: [terminal, codebase]
description: Database migration
---
Generate Prisma migration safely.
Steps:
1. Analyze schema changes
2. Generate migration file
3. Review for data loss
4. Create rollback plan ---
name: security-audit
description: Audit for vulnerabilities
---
# Security Audit Skill
Scan for:
• OWASP Top 10 issues
• Hardcoded credentials
• Insecure dependencies
• Missing input sanitization # Checkout Service
← @acme/platform-standards
## Project
Expert Fullstack Engineer.
## Tech TypeScript · Hexagonal · DDD
## API https://api.acme.io
## Commands
/review Security code review
/test Write vitest tests
/migrate DB migration helper
## Don'ts
✗ Don't use `any` - use Zod
✗ Don't log payment data
✗ Don't skip validation ---
name: review
description: Security code review
---
Perform security-focused review.
Focus areas:
• Authentication flows
• Data validation
• Error handling
• Secrets management ---
name: migrate
description: Database migration
---
Help with Prisma migrations.
Capabilities:
• Schema diff analysis
• Migration generation
• Rollback scripts
• Data preservation ---
description: Checkout Service
globs: ["src/**/*.ts"]
alwaysApply: true
---
# Checkout Service
← @acme/platform-standards
## Project
Expert Fullstack Engineer.
## Stack
TypeScript 5.x · Node 20+ · Prisma
## API https://api.acme.io
## Rules
✓ Strict mode, no `any`
✓ Zod validation on inputs
✓ 90% test coverage
## Security
⛔ Never log PII or card data
⛔ Parameterized queries only ---
description: Security audit skill
globs: ["src/**/*.ts"]
---
# Security Audit
Scan for vulnerabilities:
• SQL injection risks
• XSS attack vectors
• Hardcoded secrets
• Missing input validation
• Insecure dependencies
• IDOR vulnerabilities Why PromptScript?
Enterprise-grade features for managing AI instructions at scale
1,100+ Ready Configurations
Official registry with templates for React, Vue, Node, Python, Rust, Go. Inherit from @stacks/react and start coding in seconds.
Hierarchical Inheritance
Structure instructions like code. Inherit from @company/backend-security, compose with @use @fragments/testing.
Enterprise Governance
CISO-approved standards propagate to 100+ repos. Audit trails, version control, and policy enforcement built-in.
One Source, 4+ AI Tools
Write once, compile to GitHub Copilot, Claude Code, Cursor, and Antigravity. Switch vendors without rewriting.
Parameterized Templates
Create reusable templates with {{projectName}} variables. Like infrastructure-as-code for AI instructions.
Registry & Sharing
Host standards in your own Git repo. Run prs pull to sync latest configs across all projects instantly.
The Problem: Prompt Drift
As you scale AI tools across your organization, chaos emerges
Scale Problem
Updating a security policy across 100 microservices takes weeks of manual PRs. One change = 100 commits.
Model Volatility
New models require different prompting strategies. You shouldn't rewrite 1000 files when a model upgrades.
Governance Void
No audit trail. Junior devs miss critical security context. Unvetted instructions everywhere.
The Solution: PromptOps
Treat your AI instructions as managed infrastructure — compiled, validated, and deployed
flowchart TB
subgraph org["🏢 Organization Registry"]
direction TB
OrgSec["@company/security<br/>(CISO approved)"]
OrgTS["@company/typescript<br/>(Platform team)"]
OrgJava["@company/java<br/>(Platform team)"]
end
subgraph teams["👥 Team Standards"]
direction TB
Backend["@backend/standards"]
Frontend["@frontend/standards"]
Data["@data/standards"]
end
subgraph projects["📦 Project Repos (100+)"]
direction TB
P1["checkout-service/.prs"]
P2["user-api/.prs"]
P3["dashboard/.prs"]
Pn["...more repos"]
end
OrgSec --> Backend & Frontend & Data
OrgTS --> Backend & Frontend
OrgJava --> Data
Backend --> P1 & P2
Frontend --> P3
Data --> Pn
subgraph compile["⚙️ prs compile"]
Compiler
end
P1 & P2 & P3 --> Compiler
Compiler --> Copilot["GitHub Copilot"]
Compiler --> Claude["Claude Code"]
Compiler --> Cursor["Cursor"]
Compiler --> Antigravity["Antigravity"]
Compiler --> Other["Other Tools..."]
Compiler --> CI["CI/CD Audit"] See It In Action
Write once, compile to all major AI tools
@meta { id: "checkout-service" syntax: "1.0.0" }
@inherit @company/backend-standards
@identity {
"""
You are an expert Fullstack Engineer working on the Checkout Service.
This service handles payments using hexagonal architecture.
"""
}
@standards {
typescript: [
"Strict mode enabled",
"Never use any type"
]
testing: [
"Use vitest as test framework",
"Maintain 90% code coverage"
]
}
@restrictions {
- "Never expose API keys in code"
- "Never skip input validation"
}
@shortcuts {
"/review": "Security-focused code review"
"/test": "Write unit tests with Vitest"
}
@skills {
security-audit: {
description: "Audit code for vulnerabilities"
content: "Check for: SQL injection, XSS, IDOR, PII leaks."
}
}
Generated file tree:
.github/
├── copilot-instructions.md
├── prompts/
│ ├── review.prompt.md
│ └── test.prompt.md
└── copilot-skills/
└── security-audit.md
.github/copilot-instructions.md
# GitHub Copilot Instructions
> Auto-generated from project.prs
## Project
You are an expert Fullstack Engineer working on the Checkout Service.
This service handles payments using hexagonal architecture.
## Code Standards
- TypeScript: strict mode, no `any` types
- Testing: vitest, 90% coverage
## Restrictions
- Never expose API keys in code
- Never skip input validation
<!-- Inherited from @company/backend-standards -->
.github/prompts/review.prompt.md
---
mode: agent
description: Security-focused code review
---
Perform a security-focused code review on the selected code.
Check for: SQL injection, XSS, IDOR, PII leaks.
.github/prompts/test.prompt.md
---
mode: agent
description: Write unit tests with Vitest
---
Write comprehensive unit tests for the selected code using Vitest.
Target coverage: 90%.
.github/copilot-skills/security-audit.md
Generated file tree:
CLAUDE.md
# CLAUDE.md
## Project
You are an expert Fullstack Engineer working on the Checkout Service.
This service handles payments using hexagonal architecture.
## Code Style
- Strict TypeScript, no `any`
- Testing: vitest, >90% coverage
## Don'ts
- Don't expose API keys in code
- Don't skip input validation
## Commands
/review - Security-focused code review
/test - Write unit tests with Vitest
.claude/skills/review.md
---
name: review
description: Security-focused code review
---
Perform a security-focused code review.
Check for: SQL injection, XSS, IDOR, PII leaks.
.claude/skills/test.md
---
name: test
description: Write unit tests with Vitest
---
Write comprehensive unit tests using Vitest.
Target coverage: 90%.
.claude/skills/security-audit.md
Generated file tree:
.cursor/rules/checkout-service.mdc
---
description: Checkout Service standards
globs: ["src/**/*.ts"]
alwaysApply: true
---
You are working on the Checkout Service.
This service handles payments using hexagonal architecture.
## Code Style
- TypeScript: strict mode, no `any`
- Testing: vitest, 90% coverage
## Never
- Expose API keys in code
- Skip input validation
.cursor/rules/security-audit.mdc
Generated file tree:
.agent/rules/checkout-service.md
---
description: Checkout Service standards
activation: always
---
You are working on the Checkout Service.
This service handles payments using hexagonal architecture.
## Code Style
- TypeScript: strict mode, no `any`
- Testing: vitest, 90% coverage
## Never
- Expose API keys in code
- Skip input validation
.agent/rules/security-audit.md
Ready to Standardize Your AI Instructions?
Join engineering teams using PromptScript to manage AI context at scale
Get Started Try Playground View on GitHub