Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add jxoesneon/Ciel --skill regex-vs-llm-structured-textgit clone --depth 1 https://github.com/jxoesneon/CielWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/jxoesneon/ciel/regex-vs-llm-structured-text)<a href="https://agentmods.dev/skills/jxoesneon/ciel/regex-vs-llm-structured-text"><img src="https://agentmods.dev/badge/skills/jxoesneon/ciel/regex-vs-llm-structured-text/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/jxoesneon/ciel/regex-vs-llm-structured-text"><img src="https://agentmods.dev/badge/skills/jxoesneon/ciel/regex-vs-llm-structured-text.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00032 | $0.00467 |
| Opus 5.5 | $0.00013 | $0.00187 |
| Sonnet 5.5 | $0.00006 | $0.00093 |
| Haiku 4.5 | $0.00003 | $0.00047 |
Grade A, and why
regex-vs-llm-structured-text scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
What it actually says
CIEL ADAPTATION: Regex vs. LLM (Parsing Strategy)
This skill provides a decision framework for structured text extraction, prioritizing deterministic speed (Regex) for the common case and reserving LLM reasoning for the long tail.
The Hybrid Pipeline Pattern
- Regex Parser (95%): Attempt to extract structure using deterministic regular expressions. Optimized for speed and cost.
- Confidence Scorer: Programmatically flag items that deviate from expected patterns (e.g., missing fields, short text).
- LLM Validator (5%): Dispatch low-confidence items to a cheap LLM (e.g., Haiku) for intelligent extraction/fixing.
Decision Matrix
- Use Regex IF: The format is consistent (>90% repeating), and you need deterministic speed.
- Use LLM IF: The text is free-form, highly variable, or the regex parser returns low confidence (<0.95).
Efficiency Metrics (Target)
- Cost Savings: >90% reduction compared to an all-LLM pipeline.
- Accuracy: >99% combined accuracy (Regex speed + LLM reasoning).
- Latency: Near-instant processing for the majority of inputs.
Implementation Standards
- Chunking: For large documents, chunk the input to prevent regex timeouts.
- Test-Driven Development: Write tests for known patterns first, then add LLM fallbacks for the edge cases.
- Statelessness: Parsers should be pure functions that do not mutate input state.
Anti-Patterns
- Brute Force LLM: Sending simple repeating forms to an LLM without an initial regex attempt.
- Regex Purity: Attempting to write a 500-line regex to handle an edge case that an LLM can solve in one sentence.
- Blind Faith: Assuming a regex "just works" without a programmatic confidence/validation check.
What ships with it
1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 1mo ago Changed · -13 lines db604397bf60
- 1mo ago First seen · 55 lines · 32 tokens per session scan A d859837cd7ce
regex-vs-llm-structured-text is a skill published in the GitHub repository jxoesneon/Ciel (1 stars, last pushed 4d ago), licensed Apache-2.0. It adds 32 tokens to every session and 467 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.
Other skills, from other repositories
ralph-prompt-generator
Use when a user has a rough prompt that needs a staged prompt-improvement workflow for $ralph-wiggum-codex, with saved draft/final files and explicit review checkpoints.
opik-optimizer
Optimize LLM prompts, tools, and agents in Opik using standardized optimizer workflows (prompt optimization, tool optimization, and parameter tuning), dataset/metric wiring, and result interpretation.
proxy-local-ai-subscriptions
A guide for exposing your local Codex, ChatGPT Codex, or Claude Code subscription through a protected local OpenAI-compatible endpoint, then connecting it to NextClaw as a custom provider.
post-cutoff-jev
TypeSafe Jev and the System One typed-decision model class — typed decisions with probabilities in 70-500ms instead of generated text. Read BEFORE designing a classifier, router, gate, scorer, ranker, or any LLM call whose output you immediately parse down to a single field. In production in Bugsy. Valid through…
prompt-cache-agent-harness
Plan and inspect prompt-cache behavior for long-running Claude agent loops. Use when a user wants to split stable tool, system, and history context into cacheable layers, compare captured cache metadata, estimate cost impact from supplied pricing inputs, or keep durable memory outside the cached prefix.
prompt-optimizer
Analyze raw prompts, identify intent and gaps, match ECC components (skills/commands/agents/hooks), and output a ready-to-paste optimized prompt. Advisory role only — never executes the task itself. TRIGGER when: user says "optimize prompt", "improve my prompt", "how to write a prompt for", "help me prompt", "rewrite…