prompt-set-qa

Validates prompt sets for contamination, evidence entailment, duplicates, and architecture consistency.

663|47|Updated May 19, 2026
One-click install
npx skills add https://github.com/elvisun/newsjack --skill prompt-set-qa
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: prompt-set-qa
Source: https://github.com/elvisun/newsjack/tree/main/skills/prompt-set-qa
Command: npx skills add https://github.com/elvisun/newsjack --skill prompt-set-qa

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Prompt sets built for AI visibility measurement can be contaminated by target brand terms, unsupported claims, semantic duplicates, or answer leakage, which invalidates downstream panel results. This Skill gates a generated prompt universe before human panel selection, assigning each candidate a pass, revise, quarantine, or reject decision with evidence.

Core Features & Use Cases

  • Deterministic checks first: schema and provenance completeness, unique IDs, contamination register matching (brands, products, domains, slogans, campaign terms), Unicode normalization, exact-hash and similarity-pair duplicate detection, and architecture coverage validation.
  • Semantic review: judges evidence-to-prompt entailment, naturalness, one-concept clarity, aided/unaided status consistency, and commercial leading, with special quarantine rules for health, legal, financial, and safety domains.
  • Structured output: produces a Markdown QA report plus a prompt_qa.json file with per-candidate decisions, rule results, duplicate actions, reconciled counts, and a gate status for human review.
  • Use Case: After generating a prompt universe for an AI visibility study, run this Skill to catch target-term contamination in unaided prompts, merge true semantic duplicates while protecting legitimate locale or persona differences, and hand a blinded, approved candidate list to the panel design stage.

Quick Start

Ask the agent to run prompt-set-qa on prompt_universe.json and prompt_architecture.json with the contamination register and evidence excerpts, then produce the QA report and prompt_qa.json.

Frequently Asked Questions about prompt-set-qa

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I QA a generated prompt set before human review?

Run deterministic checks first for schema, provenance, contamination terms, hashes, and similarity pairs, then review each candidate semantically for entailment and naturalness. Assign each prompt a pass, revise, quarantine, or reject decision and emit a prompt_qa.json ledger.

What is prompt contamination in AI visibility measurement?

Contamination is the presence of target brand, product, domain, slogan, campaign, or flattering-claim terms inside prompts that are supposed to be unaided. Deterministic matches in unaided core prompts are hard failures unless a declared allowed exception applies.

How are duplicate prompts detected and merged?

Duplicates are found through normalized exact hashes, lexical similarity pairs, and optional embedding pairs from a fixed model. Merges happen only when job, journey, constraints, and answer kind are materially the same; locale, persona, and aided-status differences are protected.

When should a prompt be quarantined instead of rejected?

Quarantine prompts that are potentially useful but grade D, answer-derived, semantically suspicious, locale-unreviewed, or awaiting evidence or a human decision. Reject is reserved for contaminated, unsupported, materially leading, or irreparable cases.

Can the QA step fix or rewrite bad prompts itself?

No. The QA step must not quietly repair upstream work, invent sources, or change the architecture to rescue a prompt. Wording fixes are routed back to realistic-prompt-generation as revise decisions.

How are health, legal, or financial prompts handled?

High-stakes prompts must stay inside the declared navigation or information boundary. Prompts asking the model to diagnose, prescribe, or make professional judgments are quarantined unless that judgment is explicitly in scope with qualified review.