Skip to content

Grok Formatter

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

targets:
- grok

Pick an output version when you need more than the default:

targets:
- grok:
version: full

At a Glance

PropertyValue
TierTier 3
Main outputAGENTS.md
Dot directory.grok/
SkillsYes (.claude/skills/<name>/SKILL.md)
AgentsYes (.claude/agents/<name>.md)
CommandsYes (.claude/commands/<name>.md)
Local filesNo

Output Files

FilePathPurpose
Main instructionsAGENTS.mdPrimary rule file
Lifecycle hooks.grok/hooks/promptscript.jsonProject hooks in full mode
Skills.claude/skills/<name>/SKILL.mdReusable skill definitions
Commands.claude/commands/<name>.mdSlash commands
Agents.claude/agents/<name>.mdAgent configurations

Output Versions

VersionOutput
simpleRoot AGENTS.md only
multifileAGENTS.md, CLAUDE.md, Claude rules and commands
full (default)AGENTS.md, CLAUDE.md, Claude rules, commands, skills, agents, and local memory

MCP and Hooks

BlockSupport
@mcpServers.mcp.json (json)
@hooks.grok/hooks/promptscript.json in full
Hook eventspre-tool-use, post-tool-use, session-start, setup, subagent-start, notification, stop

Native hook reference: https://docs.x.ai/build/features/hooks

Supported Features

FeatureSupported
Markdown OutputYes
MDC FormatNo
Code BlocksYes
Mermaid DiagramsYes
Single File OutputYes
Multiple Rule FilesYes
Workflow FilesYes
Nested Directory StructureNo
YAML FrontmatterYes
Description in FrontmatterNo
Globs in FrontmatterYes
Activation TypeNo
Glob Pattern TargetingYes
Always Apply RulesYes
Manual ActivationNo
Auto/Model ActivationNo
Structured ExamplesYes
Character Limit ValidationNo
Content Section SplittingYes
Guard DependenciesYes
Context File InclusionPlanned
@-MentionsNo
Tool IntegrationYes
Path-Specific RulesYes
Prompt FilesNo
Slash CommandsYes
SkillsYes
Agent InstructionsYes
Local MemoryPartial
Nested MemoryPlanned

See Also