IdeaCredIdeaCred

LakshmiN5/promptqc

77

ESLint for your system prompts — catch contradictions, anti-patterns, injection vulnerabilities, and token waste before production

What's novel

ESLint for your system prompts — catch contradictions, anti-patterns, injection vulnerabilities, and token waste before production

Code Analysis

13 files read · 4 rounds

A rule-based linter for LLM system prompts that detects contradictions, injection vulnerabilities, token waste, and structural issues using regex patterns, sentence-transformer embeddings, and optional LLM-as-a-judge analysis.

Strengths

Clean rule-based plugin architecture with three analysis tiers (fast/full/judge), genuinely useful security checks (injection patterns, variable sandboxing via XML state machine), and thoughtful false-positive reduction in contradiction detection (opposing terms + Jaccard overlap + embedding similarity).

Weaknesses

The contradiction/redundancy detection relies on a fixed opposing-terms lexicon which limits recall, and the test suite lacks coverage for the semantic rules, LLM judge, and edge cases like multi-line XML sandboxing. The scoring system is simplistic (flat deductions) and doesn't weight issues by actual impact.

Score Breakdown

Innovation
6 (25%)
Craft
71 (35%)
Traction
17 (15%)
Scope
77 (25%)

Signal breakdown

Innovation

Not Fork+1
Code Novelty+1
Concept Novelty+2

Craft

Ci+0
Tests+5
Polish+2
Releases+1
Has License+5
Code Quality+26
Readme Quality+15
Recent Activity+7
Structure Quality+5
Commit Consistency+0
Has Dependency Mgmt+5

Traction

Forks+6
Stars+6
Hn Points+0
Watchers+3
Early Traction+0
Devto Reactions+0
Community Contribs+2

Scope

Commits+5
Languages+3
Subsystems+13
Bloat Penalty+0
Completeness+7
Contributors+6
Authored Files+12
Readme Code Match+3
Architecture Depth+7
Implementation Depth+8

Evidence

Commits

9

Contributors

2

Files

53

Active weeks

1

TestsCI/CDREADMELicenseContributing

Repository

Language

Python

Stars

1

Forks

1

License

MIT