PromptScript compiles your .prs sources to native Grok configuration. The main output is AGENTS.md. It is not enabled by default, add it to targets to use it.
Enable the Target
Pick an output version when you need more than the default:
At a Glance
| Property | Value |
|---|
| Tier | Tier 3 |
| Main output | AGENTS.md |
| Dot directory | .grok/ |
| Skills | Yes (.claude/skills/<name>/SKILL.md) |
| Agents | Yes (.claude/agents/<name>.md) |
| Commands | Yes (.claude/commands/<name>.md) |
| Local files | No |
Output Files
| File | Path | Purpose |
|---|
| Main instructions | AGENTS.md | Primary rule file |
| Lifecycle hooks | .grok/hooks/promptscript.json | Project hooks in full mode |
| Skills | .claude/skills/<name>/SKILL.md | Reusable skill definitions |
| Commands | .claude/commands/<name>.md | Slash commands |
| Agents | .claude/agents/<name>.md | Agent configurations |
Output Versions
| Version | Output |
|---|
simple | Root AGENTS.md only |
multifile | AGENTS.md, CLAUDE.md, Claude rules and commands |
full (default) | AGENTS.md, CLAUDE.md, Claude rules, commands, skills, agents, and local memory |
MCP and Hooks
| Block | Support |
|---|
@mcpServers | .mcp.json (json) |
@hooks | .grok/hooks/promptscript.json in full |
| Hook events | pre-tool-use, post-tool-use, session-start, setup, subagent-start, notification, stop |
Native hook reference: https://docs.x.ai/build/features/hooks
Supported Features
| Feature | Supported |
|---|
| Markdown Output | Yes |
| MDC Format | No |
| Code Blocks | Yes |
| Mermaid Diagrams | Yes |
| Single File Output | Yes |
| Multiple Rule Files | Yes |
| Workflow Files | Yes |
| Nested Directory Structure | No |
| YAML Frontmatter | Yes |
| Description in Frontmatter | No |
| Globs in Frontmatter | Yes |
| Activation Type | No |
| Glob Pattern Targeting | Yes |
| Always Apply Rules | Yes |
| Manual Activation | No |
| Auto/Model Activation | No |
| Structured Examples | Yes |
| Character Limit Validation | No |
| Content Section Splitting | Yes |
| Guard Dependencies | Yes |
| Context File Inclusion | Planned |
| @-Mentions | No |
| Tool Integration | Yes |
| Path-Specific Rules | Yes |
| Prompt Files | No |
| Slash Commands | Yes |
| Skills | Yes |
| Agent Instructions | Yes |
| Local Memory | Partial |
| Nested Memory | Planned |
See Also