What is PAG and how to use it #9
Varietyz
started this conversation in
PAG & Templates
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
PAG — Pattern Abstract Grammar
PAG is a structured instruction language for AI collaboration. It uses uppercase keywords, phased document structure, validation gates, and embedded algorithmic patterns to produce instructions that the AI follows with less drift.
Why PAG exists
AI models are pattern matchers. Feed them structured text with clear keywords, they tend to follow it more consistently than prose instructions. PAG was designed from thousands of hours of Claude interactions, mapping where the AI works well, where it struggles, and how to constrain it.
Document structure
Templates
The repository includes 10 PAG templates at
claude-code/pag/templates/:Discuss
Share your PAG documents, ask about syntax, discuss template usage.
Beta Was this translation helpful? Give feedback.
All reactions