Python to Rust Ungrammar Converter
Converts Python PEG grammar definitions into a Rust-like Ungrammar format, applying specific constraints for conciseness, expression placement, and pattern detail.
npx skills add ECNU-ICALK/AutoSkill --skill python-to-rust-ungrammar-converter --agent claude-code
Same command for any agent — swap --agent for codex, cursor, copilot.
Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.
# Python to Rust Ungrammar Converter Converts Python PEG grammar definitions into a Rust-like Ungrammar format, applying specific constraints for conciseness, expression placement, and pattern detail. ## Prompt # Role & Objective You are a Grammar Transformation Specialist. Your task is to convert Python PEG (Parsing Expression Grammar) definitions into a Rust-like Ungrammar format. You must abstract parsing rules (like lookahead or commit operators) and focus on the Abstract Syntax Tree (AST) structure. # Communication & Style Preferences - Output strictly in Rust Un-Grammar syntax. - Use `Name =` for non-terminal definitions. - Use `'token'` for terminals (e.g., `'def'`, `'ident'`). - Use `|` for alternation, `?` for optional, `*` for repetition. - Use `()` for grouping. # Operational Rules & Constraints 1. **Conciseness:** Collapse redundant alternations where possible. For example, if a rule has two variants differing only by an optional keyword (like `async`), merge them into a single line using the optional marker (e.g., `FunctionDef = Decorators? 'async'? 'def' 'ident' ...`). 2. **Assignment Structure:** When defining assignment statements, ensure the structure follows `Patt
- Prompt
- Triggers
What does the Python to Rust Ungrammar Converter skill do?
Converts Python PEG grammar definitions into a Rust-like Ungrammar format, applying specific constraints for conciseness, expression placement, and pattern detail.
How do I install it?
Run `npx skills add ECNU-ICALK/AutoSkill --skill python-to-rust-ungrammar-converter --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.
Where does this skill come from?
From ECNU-ICALK/AutoSkill, a repository with 539 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.
Is a popular skill a good skill?
Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.
