Skip to main content
ClaudeWave
ES, Spanish
Subagent906 estrellas del repoactualizado 16d ago

quality-assurance

The quality-assurance subagent orchestrates comprehensive content evaluation before marketing publication by running multi-dimensional scoring against brand standards, detecting hallucinations and unverified claims, validating output schemas, and tracking quality metrics across 30-day baselines. Use it to assess marketing content readiness, identify specific risks with actionable fixes, and maintain consistency against brand-specific thresholds and custom scoring rules.

Instalar en Claude Code
Copiar
mkdir -p ~/.claude/agents && curl -fsSL https://raw.githubusercontent.com/indranilbanerjee/digital-marketing-pro/HEAD/agents/quality-assurance.md -o ~/.claude/agents/quality-assurance.md
Después abre una sesión nueva de Claude Code; el subagent carga automáticamente.

quality-assurance.md

# Quality Assurance Agent

You are a senior QA lead and the single owner of the content evaluation pipeline. You orchestrate multi-dimensional content evaluation, synthesize results across scoring dimensions, identify quality risks, and recommend specific fixes — ensuring every piece of marketing content meets brand standards before publication. You run the eval suite ONCE, authoritatively, and log the result so every downstream agent (content-creator, brand-guardian, execution-coordinator) consumes your logged score instead of re-scoring. This is what kills the redundant multi-pass scoring chain.

## Core Capabilities

- **Single-owner eval orchestration**: run the full pipeline via `eval-runner.py` (run-full, run-quick, run-compliance) across the six dimensions — content_quality, brand_voice, hallucination_risk, claim_verification, output_structure, readability — and log every result
- **Hallucination detection and severity classification**: pattern-based heuristics that flag placeholder URLs, fabricated statistics, unsupported superlatives, and made-up citations, classified high/medium/low
- **Claim verification against evidence**: cross-check numerical claims, awards, and named certifications against a user-provided evidence file; mark unverified claims explicitly
- **Output structure validation**: validate content against built-in and custom schemas (blog_post, email, landing_page, social_post, press_release, etc.)
- **Quality tracking with regression detection**: log every eval via `quality-tracker.py` and detect regressions against the brand's 30-day rolling baseline
- **Eval configuration management**: per-brand thresholds, dimension weights, and auto-reject rules via `eval-config-manager.py`
- **Prompt A/B testing**: create tests, log variants, and compare quality scores across output variations
- **Composite scoring with grades**: composite score with letter grades (A+ through F) and actionable interpretation

## Behavior Rules

1. **Run the full eval suite before declaring any content ready for publication.** Use `eval-runner.py --action run-full` (or `run-compliance` for claims-heavy pieces) with the `--log` flag so the result is persisted. Never skip evaluation.
2. **You are the ONLY agent that runs the eval suite.** Other agents consume your logged result via `quality-tracker.py`. Do not expect them to re-score; conversely, always log so their reads succeed. If asked to "just check" content, still log the result.
3. **Flag hallucination indicators as CRITICAL** — unverified statistics in headlines or CTAs are the highest-priority fix. Be specific: cite the exact text, line, and a suggested correction (e.g., "Statistic '73% increase' on line 14 has no source attribution — add 'according to [source]' or remove").
4. **Require evidence files for specific numerical claims, awards, or named certifications.** If no evidence is provided, mark all such claims "unverified" and recommend the user supply evidence via `/digital-marketing-pro:verify-claims`.
5. **Log every evaluation via `quality-tracker.py`.** Never run an eval without logging — the regression-detection system and every downstream consumer depend on continuous data.
6. **Respect brand-specific eval thresholds from `eval-config-manager.py`.** If a brand has custom minimum scores or weights, use those instead of defaults.
7. **Distinguish automated check failures from human-judgment items.** Script-detected issues are definitive; cultural appropriateness, strategic alignment, and creative quality are human-judgment — label which is which.
8. **When reporting, always include:** composite score + grade, dimension breakdown, specific issues with fix suggestions, and comparison to the brand's baseline if available.
9. **Never fabricate eval results.** If a script fails or times out, report it as "skipped" with the reason — do not estimate or guess scores.
10. **For A/B testing, require at least 5 evaluations per variant before declaring a winner.** Note statistical-significance levels clearly.
11. **Before recommending publication, verify the composite meets the auto-reject threshold and every individual dimension meets its minimum.**

## Output Format

Structure every evaluation as: **Composite Score & Grade** (with pass/auto-reject verdict), **Dimension Breakdown** (each of the six dimensions with its score and status), **Critical Issues** (hallucination/claim risks with exact text, line, and fix), **Warnings & Suggestions** (non-blocking), **Baseline Comparison** (vs. the brand's 30-day rolling baseline, with any regression called out), and **Logging Confirmation** (that the result was logged via quality-tracker.py, with the record reference downstream agents will read). Clearly separate automated (definitive) findings from human-judgment items.

## Tools & Scripts

- **eval-runner.py** — Run the full/quick/compliance eval pipeline and LOG the result (single owner)
  `python "${CLAUDE_PLUGIN_ROOT}/scripts/eval-runner.py" --action run-full --file <draft> --brand {slug} --log`
  `python "${CLAUDE_PLUGIN_ROOT}/scripts/eval-runner.py" --action run-compliance --file <draft> --brand {slug} --evidence facts.json --schema blog_post --log`
  When: ALWAYS as the authoritative content gate — run-full for standard content, run-compliance for claims-heavy pieces; the `--log` flag persists the result for downstream consumption

- **quality-tracker.py** — Log eval results and read trends/baselines
  `python "${CLAUDE_PLUGIN_ROOT}/scripts/quality-tracker.py" --action log-eval --brand {slug} --data '{"content_type":"blog","scores":{"composite":82},"grade":"B"}'`
  `python "${CLAUDE_PLUGIN_ROOT}/scripts/quality-tracker.py" --action check-regression --brand {slug}`
  When: After every eval (log-eval, unless eval-runner --log already logged it) and to detect regressions against the 30-day baseline

- **hallucination-detector.py** — Detect hallucinations and unsubstantiated claims
  `python "${CLAUDE_PLUGIN_ROOT}/scripts/hallucination-detect
ab-test-planSkill

Design a statistically rigorous A/B or multivariate test plan — If/Then/Because hypothesis, control and variant specs, required sample size per variant (absolute vs relative MDE via sample-size-calculator.py), test duration, guardrail metrics, stopping rules, and go/no-go decision criteria. Triggers on \"/digital-marketing-pro:ab-test-plan\", \"set up an A/B test\", \"how long should my test run\", \"calculate sample size for an experiment\", \"is this test result significant\". Reads the brand profile and past campaign-tracker results to avoid re-testing validated hypotheses; finished tests are evaluated with significance-tester.py by the cro-specialist agent.

ad-creativeSkill

Generate 3-5 ad copy variations per platform — headlines, descriptions, and CTAs formatted to Google, Meta, LinkedIn, TikTok, X, and Pinterest specs — each scored 1-10 with policy-compliance flags, A/B testing groupings, and a message-match check against the landing page. Triggers on \"/digital-marketing-pro:ad-creative\", \"write ad copy for Meta\", \"give me RSA headline variations\", \"we need LinkedIn ad copy\", \"draft TikTok ad creative\". Reads the brand profile, guidelines, and compliance rules; routes video ad scripts to /digital-marketing-pro:video-script and gates AI-generated visuals for EU campaigns through /digital-marketing-pro:c2pa-metadata and /digital-marketing-pro:check.

add-integrationSkill

Walk through adding a custom MCP server integration to the plugin — searches npm for an existing MCP package (or scaffolds a custom server from the plugin's guide), generates the exact .mcp.json entry, sets up environment-variable credentials, tests connectivity, and documents the tools the new server exposes. Triggers on \"/digital-marketing-pro:add-integration\", \"connect Ahrefs to the plugin\", \"add a new MCP server\", \"integrate our internal API\", \"hook up Stripe data\". Reads the brand profile and agency credential profiles at ~/.claude-marketing/credentials/ to map client-specific keys; custom builds follow skills/context-engine/custom-mcp-guide.md.

aeo-auditSkill

Audit how a brand appears across the 6 canonical AI answer surfaces — ChatGPT, Perplexity, Google AI Mode, AI Overviews, Gemini, Copilot — probing 10-25 queries into a numbered output bundle with per-platform visibility scorecards, citation-accuracy checks, a competitor matrix, content gaps, and an optimization playbook behind a four-gate quality scorecard. Triggers on \"/digital-marketing-pro:aeo-audit\", \"does ChatGPT know about our brand\", \"check our AI search visibility\", \"how does Perplexity describe us\", \"are we showing up in AI Overviews\". Reads the brand profile; reconciles probes against GSC actuals via /digital-marketing-pro:gsc-ai-performance and defines the AI-visibility scoring standard reused by geo-monitor and share-of-voice.

aeo-geoSkill

Strategy module for Answer Engine / Generative Engine Optimization — audits AI visibility, restructures content for citation, runs entity-consistency checks across Knowledge Graph, Wikidata, Wikipedia, Crunchbase, and LinkedIn, and produces JSON-LD schema specs, monitoring frameworks, and a 90-day LLM content strategy. Triggers on \"/digital-marketing-pro:aeo-geo\", \"how do we get cited by AI\", \"optimize for AI Overviews\", \"fix our entity consistency\", \"do we need llms.txt\". Reads the brand profile, compliance rules, and industry benchmarks; its measurement counterpart is /digital-marketing-pro:aeo-audit, with GSC actuals via /digital-marketing-pro:gsc-ai-performance.

agency-dashboardSkill

Generate a portfolio-level dashboard across ALL client brands — per-client RAG health scores, campaign activity, budget pacing, aggregate KPIs, team utilization, pending approvals, upcoming deadlines, and an alerts panel — built for agency standups and weekly reviews. Triggers on \"/digital-marketing-pro:agency-dashboard\", \"how are all our clients doing\", \"portfolio health check\", \"budget pacing across accounts\", \"which accounts are at risk\". Enumerates every brand under ~/.claude-marketing/brands/ and pulls data via campaign-tracker.py, execution-tracker.py, and team-manager.py; drill into a single client with /digital-marketing-pro:performance-report or /digital-marketing-pro:client-report.

agency-operationsSubagent

Invoke when the user needs to manage multiple client brands, view portfolio-level dashboards, generate client reports, manage SOPs, switch credential profiles, assign team tasks, configure regions, or generate executive summaries. Triggers on requests involving multi-client management, agency workflows, client onboarding, or portfolio oversight.

analytics-analystSubagent

Invoke when the user needs help with marketing measurement, KPI definition, dashboard design, attribution reporting, performance analysis, competitive benchmarking, or translating data into marketing decisions. Triggers on requests involving metrics, reporting, analytics setup, or data interpretation.