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 @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.md .github/agents/reviewer.md .factory/skills/security-review/ .cursor/rules/project.mdc 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.
Instructions and policy
Project context, standards, restrictions, examples, and path-specific rules.
@skillsPortable skills
Reusable capabilities with resources, scripts, dependencies, and typed contracts.
@agentsSpecialized agents
Roles, models, tool policies, skills, permissions, and MCP access.
@mcpServersTools and integrations
MCP servers and reusable plugins defined once at project level.
@hooksAutomation
Lifecycle hooks, repeatable workflows, and scoped monorepo builds.
policiesGovernance
Inheritance boundaries, protected properties, registry controls, and CI validation.
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.
# 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"
} Inherit a base
Single-parent "IS-A" chains from organization to team to project. Blocks merge with predictable rules.
Compose fragments
Mix in multiple "HAS-A" capabilities like security or testing. Later imports win on conflicts.
Extend and override
Patch specific paths, append or negate references, and seal properties that layers cannot change.
From intent to native files
PromptScript brings compiler guarantees to agent configuration without hiding platform-specific capabilities.
Define
Compose organization, team, and project configuration from versioned .prs sources.
@inherit @company/platform Validate
Catch syntax, broken references, policy violations, and unsafe referenced content before deployment.
prs validate --strict Compile
Generate deterministic, reviewable files that every selected agent platform understands natively.
prs compile 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
CLAUDE.md .claude/agents/reviewer.md .claude/skills/security-review/SKILL.md .claude/settings.json .github/copilot-instructions.md .github/agents/reviewer.md .github/skills/security-review/SKILL.md .github/prompts/review.prompt.md AGENTS.md .factory/droids/reviewer.md .factory/skills/security-review/SKILL.md 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.
@company/platform @team/web@team/services@team/dataStart from where you are
Create a new platform definition, import existing agent files, or establish shared configuration for many repositories.
Initialize in minutes
prs init Detect the stack, choose targets, and generate a validated starting point.
Start the tutorial → Existing setupImport what already works
prs import CLAUDE.md Convert current Claude, Copilot, Cursor, AGENTS.md, and other instruction files.
See import options → OrganizationBuild a control plane
@inherit @company/platform Layer organization policy, team capabilities, and project context with Git-native governance.
Plan the rollout →
Watch the introduction Explore PromptScript in your browser
Edit a real PromptScript source and inspect generated output without changing your local environment.
Give every AI agent the right context.
Start with one repository today. Scale the same model across teams when you are ready.