Skip to main content
Back to registry

regex-vs-llm-structured-text

affaan-m/everything-claude-code

A practical decision framework for parsing structured text (quizzes, forms, invoices, documents). The key insight: regex handles 95-98% of cases cheaply and deterministically. Reserve expensive LLM calls for the remaining edge cases.

Installs601
Install command
npx skills add https://github.com/affaan-m/everything-claude-code --skill regex-vs-llm-structured-text
Security audits
Gen Agent Trust HubPASS
SocketPASS
SnykPASS
About this skill
A practical decision framework for parsing structured text (quizzes, forms, invoices, documents). The key insight: regex handles 95-98% of cases cheaply and deterministically. Reserve expensive LLM calls for the remaining edge cases. Flag items that may need LLM review: From a production quiz parsing pipeline (410 items): - Parsing structured text with repeating patterns (questions, forms, tables) - Deciding between regex and LLM for text extraction - Building hybrid pipelines that combine both approaches - Optimizing cost/accuracy tradeoffs in text processing - Start with regex — even imperfect regex gives you a baseline to improve - Use confidence scoring to programmatically identify what needs LLM help - Use the cheapest LLM for validation (Haiku-class models are sufficient) - Never mutate parsed items — return new instances from cleaning/validation steps - TDD works well for parsers — write tests for known patterns first, then edge cases - Log metrics (regex success rate, LLM call count) to track pipeline health - Sending all text to an LLM when regex handles 95%+ of cases (expensive and slow) - Using regex for free-form, highly variable text (LLM is better here) - Skipping confidence scoring and hoping regex "just works" - Mutating parsed objects during cleaning/validation steps - Not testing edge cases (malformed input, missing fields, encoding issues) - Quiz/exam...

Source description provided by the upstream skill listing. Community reviews and install context appear in the sections below.

Community Reviews

Latest reviews

Sign in to review

No community reviews yet. Be the first to review.

Browse this skill in context
FAQ
What does regex-vs-llm-structured-text do?

A practical decision framework for parsing structured text (quizzes, forms, invoices, documents). The key insight: regex handles 95-98% of cases cheaply and deterministically. Reserve expensive LLM calls for the remaining edge cases.

Is regex-vs-llm-structured-text good?

regex-vs-llm-structured-text does not have approved reviews yet, so SkillJury cannot publish a community verdict.

What agent does regex-vs-llm-structured-text work with?

regex-vs-llm-structured-text currently lists compatibility with codex, gemini-cli, opencode, cursor, kimi-cli, github-copilot.

What are alternatives to regex-vs-llm-structured-text?

Skills in the same category include telegram-bot-builder, flutter-app-size, sharp-edges, iterative-retrieval.

How do I install regex-vs-llm-structured-text?

npx skills add https://github.com/affaan-m/everything-claude-code --skill regex-vs-llm-structured-text

Related skills

More from affaan-m/everything-claude-code

Related skills

Alternatives in Software Engineering