peggy

1 stars
14
B

Use when writing PEG grammars with Peggy (formerly PEG.js) - parsing expression grammars, parser generation, and syntax definition

Also in: github

Third-Party Agent Skill: Review the code before installing. Agent skills execute in your AI assistant's environment and can access your files. Learn more about security

Installation for Agentic Skill

View all platforms →
skilz install mcclowes/omg/peggy
skilz install mcclowes/omg/peggy --agent opencode
skilz install mcclowes/omg/peggy --agent codex
skilz install mcclowes/omg/peggy --agent gemini

First time? Install Skilz: pip install skilz

Works with 22+ AI coding assistants

Cursor, Aider, Copilot, Windsurf, Qwen, Kimi, and more...

View All Agents
Download Agent Skill ZIP

Extract and copy to ~/.claude/skills/ then restart Claude Desktop

1. Clone the repository:
git clone https://github.com/mcclowes/omg
2. Copy the agent skill directory:
cp -r omg/.claude/skills/peggy ~/.claude/skills/

Need detailed installation help? Check our platform-specific guides:

Related Agentic Skills

Agentic Skill Details

Repository
omg
Stars
1
Type
Technical
Meta-Domain
development
Primary Domain
javascript
Market Score
14

Agent Skill Grade

B
Score: 81/100 Click to see breakdown

Score Breakdown

Spec Compliance
12/15
PDA Architecture
24/30
Ease of Use
21/25
Writing Style
8/10
Utility
16/20

Areas to Improve

  • Missing TOC for 85-line file
  • No error handling or debugging section
  • Tips section not actionable

Recommendations

  • Address 1 high-severity issues first
  • Add trigger phrases to description for discoverability
  • Add table of contents for files over 100 lines

Graded: 2026-01-24

Developer Feedback

I've been digging into parser generators lately, and peggy's approach to grammar-driven parsing caught my attention. Your B-grade implementation shows solid fundamentals, but I'm curious about some of the design choices around error recovery and token handling.

Links:

The TL;DR

You're at 81/100, solidly in B territory. This is based on Anthropic's skill grading rubric across five pillars. Your Ease of Use is the strongest area (21/25)—the metadata and triggers are dialed in. But Utility (16/20) is where you're losing points, mainly because there's no error handling or debugging guidance.

What's Working Well

  • Triggers are spot-on. "PEG grammars", "parser generation", and "syntax definition" will activate exactly when someone needs this. That's the kind of discoverability that makes a skill actually get used.
  • Token efficiency is excellent. 85 lines that pack real value—every section (Core Syntax, Rule Definitions, Built-in Functions) delivers with practical tables and examples. No fluff.
  • Quick Start example is solid. Shows a complete arithmetic parser grammar and working TypeScript usage back-to-back. That's the right call for getting people rolling fast.

The Big One: Missing Error Handling & Debugging

This is holding you back 3+ points. Right now you're only showing the happy path—successful parsing. But in reality, grammars fail, parse errors happen, and people need guidance.

What to add: New section called "Error Handling" after CLI Usage. Show:

  • The error object structure (e.location, e.expected, e.found)
  • Try/catch wrapper example
  • Common gotchas: left recursion causing infinite loops, rule order mattering, whitespace handling

Why it matters: Utility is about feedback loops—can someone debug when things...

Report Security Issue

Found a security vulnerability in this agent skill?