Agent platform configuration as code

Define your agent platform once.
Compile it everywhere.

One composable source for instructions, skills, agents, MCP servers, hooks, workflows, and policies. Inherit it across teams and compile native configuration for 48 AI coding platforms.

npm install -g @promptscript/cli Open source · Git-native · CI-ready
project.prs source
@inherit @company/platform
@identity {
  "Checkout service"
}
@skills {
  security-review: {
    description: "Review code"
  }
}
@agents {
  reviewer: {
    skills: ["security-review"]
    mcpServers: ["issues"]
  }
}
@hooks {
  validate: {
    event: "post-tool-use"
  }
}
Claude Code CLAUDE.md
GitHub Copilot .github/agents/reviewer.md
Factory AI .factory/skills/security-review/
Cursor .cursor/rules/project.mdc
+ 44 targets
Native output for Claude Code GitHub Copilot Cursor Codex Factory AI Gemini CLI OpenCode and 41 more
One language, complete platform

More than instruction files

Model the complete operating environment for AI coding agents, then let each formatter emit the richest native representation its platform supports.

Prompts as code

Inherit, compose, and extend

Configuration is composable source, not copied text. Inherit a shared base, mix in reusable fragments, and override only what changes - with deterministic, reviewable merges.

project.prs source
# IS-A: inherit the organization base
@inherit @company/platform

# HAS-A: compose reusable fragments
@use @core/security
@use @fragments/testing

# override only what changes
@extend standards.code {
  framework: "react"
}

@extend restrictions {
  - "Use functional components only"
}
A deterministic toolchain

From intent to native files

PromptScript brings compiler guarantees to agent configuration without hiding platform-specific capabilities.

01

Define

Compose organization, team, and project configuration from versioned .prs sources.

@inherit @company/platform
02

Validate

Catch syntax, broken references, policy violations, and unsafe referenced content before deployment.

prs validate --strict
03

Compile

Generate deterministic, reviewable files that every selected agent platform understands natively.

prs compile
Native, not lowest common denominator

Every platform gets the files it expects

PromptScript preserves one source model while formatters map supported capabilities to native instructions, agents, skills, commands, hooks, and integrations.

  • Rich target-specific output where supported
  • Deterministic diffs ready for code review
  • No runtime proxy between developers and their tools
  • New targets without rewriting source configuration
Explore all 48 target formats
Claude Codefull native output
CLAUDE.md .claude/agents/reviewer.md .claude/skills/security-review/SKILL.md .claude/settings.json
GitHub Copilotfull native output
.github/copilot-instructions.md .github/agents/reviewer.md .github/skills/security-review/SKILL.md .github/prompts/review.prompt.md
Factory AIfull native output
AGENTS.md .factory/droids/reviewer.md .factory/skills/security-review/SKILL.md
Built for one repo or an organization

Change policy once. Propagate with control.

Keep shared standards in Git, inherit them through explicit layers, pin remote dependencies, and enforce the result in CI.

Organization @company/platform
Frontend@team/web
Backend@team/services
Data@team/data
100+ project repositories
PoliciesSkillsAgentsNative files
Adopt without a rewrite

Start from where you are

Create a new platform definition, import existing agent files, or establish shared configuration for many repositories.

PromptScript introduction video Watch the introduction
See it before installing

Explore PromptScript in your browser

Edit a real PromptScript source and inspect generated output without changing your local environment.

One source of truth

Give every AI agent the right context.

Start with one repository today. Scale the same model across teams when you are ready.