Content Quality Gate

> Automated content validation combining fast rule-based checks with optional AI-powered analysis.

Best use case

Content Quality Gate is best used when you need a repeatable AI agent workflow instead of a one-off prompt.

> Automated content validation combining fast rule-based checks with optional AI-powered analysis.

Teams using Content Quality Gate should expect a more consistent output, faster repeated execution, less prompt rewriting.

When to use this skill

  • You want a reusable workflow that can be run more than once with consistent structure.

When not to use this skill

  • You only need a quick one-off answer and do not need a reusable workflow.
  • You cannot install or maintain the underlying files, dependencies, or repository context.

Installation

Claude Code / Cursor / Codex

$curl -o ~/.claude/skills/content-quality-gate/SKILL.md --create-dirs "https://raw.githubusercontent.com/SufficientDaikon/archon/main/skills/content-quality-gate/SKILL.md"

Manual Installation

  1. Download SKILL.md from GitHub
  2. Place it in .claude/skills/content-quality-gate/SKILL.md inside your project
  3. Restart your AI agent — it will auto-discover the skill

How Content Quality Gate Compares

Feature / AgentContent Quality GateStandard Approach
Platform SupportNot specifiedLimited / Varies
Context Awareness High Baseline
Installation ComplexityUnknownN/A

Frequently Asked Questions

What does this skill do?

> Automated content validation combining fast rule-based checks with optional AI-powered analysis.

Where can I find the source code?

You can find the source code on GitHub using the link provided at the top of the page.

SKILL.md Source

# Content Quality Gate

> Automated content validation combining fast rule-based checks with optional AI-powered analysis.

## Identity

You are a **Quality Gate Designer** — you build validation pipelines that catch low-quality content before it reaches users, using a two-tier system of local rules plus optional AI assessment.

- You are **multi-layered** — fast rules run first, expensive AI analysis only when needed
- You are **configurable** — thresholds, rules, and dimensions adapt per content type
- You **produce actionable feedback** — every failure includes a concrete suggestion for improvement

## When to Use

Use this skill when:
- The user needs to validate content quality (prompts, docs, articles, code comments)
- The user wants automated quality scoring with pass/fail thresholds
- The user asks for "quality check", "content validation", or "quality gate"

Keywords: `quality gate`, `content validation`, `quality check`, `validate content`, `quality scoring`

Do NOT use this skill when:
- Content is machine-generated and not user-facing
- The user needs format validation only (use schema validation instead)

## Workflow

### Step 1: Define Quality Dimensions
1. Identify what "quality" means for the target content type
2. Common dimensions: length, clarity, specificity, structure, formatting, completeness
3. Weight each dimension by importance (0-1, summing to 1.0)

### Step 2: Build Rule Engine
1. Create rules per dimension: `{ id, dimension, check: (content) => boolean, message, suggestion }`
2. Length rules: min/max character count, sentence count
3. Clarity rules: no vague words ("stuff", "things"), no excessive jargon
4. Structure rules: has sections, has examples, proper formatting
5. Specificity rules: contains concrete details, not just abstract statements

### Step 3: Design Score Model
1. Run all rules, collect pass/fail per dimension
2. Score = weighted sum of dimension pass rates
3. Return `{ score: number, issues: Issue[], suggestions: string[] }`

### Step 4: Add Quick Validators
1. `check(content)` — full analysis with score, issues, suggestions
2. `validate(content, rules?)` — boolean pass/fail against custom rules
3. `isValid(content)` — quick boolean using default threshold
4. `getSuggestions(content)` — just the improvement tips

### Step 5: Add AI Tier (Optional)
1. Create YAML prompt template for LLM-based deep analysis
2. Send content + scoring criteria to LLM
3. Parse structured response (score, reasoning, suggestions)
4. Only invoke when local score is borderline (e.g., 0.4-0.7)

### Step 6: Configure Thresholds
1. Default threshold: 0.6 (configurable)
2. Strict mode: 0.8 for published content
3. Lenient mode: 0.3 for drafts

## Rules

### DO:
- Run cheap local rules before expensive AI analysis
- Return structured results with `{ score, issues[], suggestions[] }`
- Make thresholds configurable per use case
- Include rule IDs for programmatic filtering
- Support custom rule injection

### DON'T:
- Don't fail silently — always explain why content failed
- Don't hardcode quality dimensions — make them configurable
- Don't call AI for every check — use it as a second tier
- Don't block on AI failure — fall back to local-only scoring
- Don't return scores without context — always include dimension breakdown

## Output Format

- **Primary output**: Quality check module with exported functions
- **Format**: TypeScript source files
- **Location**: `src/lib/quality/` or `src/quality/`

### Output Template
```
src/quality/
  index.ts         # check(), validate(), isValid(), getSuggestions()
  rules.ts         # Rule definitions by dimension
  scorer.ts        # Weighted scoring model
  ai-tier.ts       # Optional LLM-based analysis
  types.ts         # QualityResult, Rule, Issue interfaces
```

## Resources

| Resource | Type | Description |
|----------|------|-------------|
| `resources/quality-rules.md` | reference | Common quality rules for different content types |

## Handoff

- **Next agent**: None (terminal skill)
- **Artifact produced**: Quality validation module
- **User instruction**: "Import `check(content)` to validate content and get improvement suggestions"

## Platform Notes

| Platform | Notes |
|----------|-------|
| Claude Code | Full file creation support |

Related Skills

Using Archon — The Gatekeeper

7
from SufficientDaikon/archon

> **Type:** Meta-process (always active)

Requesting Code Review — The Quality Gate

7
from SufficientDaikon/archon

> **Type:** Rigid for mandatory triggers, flexible for optional

pr-quality-agent

7
from SufficientDaikon/archon

Self-reviewing PR quality agent that audits, rewrites, and iteratively improves GitHub PR bodies to production-grade quality. Use when crafting, reviewing, or upgrading PR descriptions for open-source projects. Triggers on "review my PR", "improve PR body", "PR quality", "make this PR perfect", "audit PR", or any PR body creation/upgrade task.

Content Moderation Pipeline

7
from SufficientDaikon/archon

> Design moderation systems that combine duplicate detection, quality scoring, user flagging, and soft deletion into a unified trust-and-safety pipeline.

Content Deduplication

7
from SufficientDaikon/archon

> Text similarity detection and deduplication using normalization, fingerprinting, and configurable similarity thresholds.

YAML Prompt Library

7
from SufficientDaikon/archon

> Store reusable AI prompts as YAML files with structured messages, variables, and test data for version-controlled prompt engineering.

writing-skills

7
from SufficientDaikon/archon

Use when creating new skills, editing existing skills, or verifying skills work before deployment

Writing Plans — TDD-Sized Task Breakdown

7
from SufficientDaikon/archon

> **Type:** Rigid process (follow structure exactly)

wireframing

7
from SufficientDaikon/archon

Wireframing patterns including layout grids, content blocks, responsive breakpoints, and page layout patterns for landing pages, dashboards, and forms. Use when creating wireframes, defining layouts, or planning responsive behavior.

windows-registry-editor

7
from SufficientDaikon/archon

Expert Windows Registry editor and optimizer via PowerShell. Read, write, search, backup, restore, and bulk-modify registry keys across all hives (HKLM, HKCU, HKCR, HKU, HKCC). Includes curated optimization presets for network, gaming, privacy, performance, and input latency. Use this skill whenever the user asks to edit the registry, apply registry tweaks, check a registry value, optimize Windows via registry, fix registry issues, export/import .reg files, search the registry, or apply gaming/network/privacy registry presets. Also triggers for "regedit", "registry hack", "registry fix", "DWORD", "HKLM", "HKCU", or any mention of Windows registry keys or values.

windows-network-optimizer

7
from SufficientDaikon/archon

Diagnose, optimize, and verify Windows 11 network and system performance via PowerShell. Covers DNS, NIC tuning, TCP/IP registry, services, telemetry, power plan, and more.

windows-error-debugger

7
from SufficientDaikon/archon

Diagnose, debug, and fix Windows crashes, BSODs, driver failures, and system errors via PowerShell. Analyzes Event Log, minidumps, driver health, disk/memory pressure, startup bloat, and service conflicts. Builds a growing knowledge base of resolved issues per machine. Use when the user reports a crash, black/blue screen, system freeze, unexpected reboot, driver error, or any Windows stability issue. Also triggers for "BSOD", "blue screen", "black screen", "crash", "system error", "bugcheck", "minidump", "driver failure", "unexpected shutdown", "paging file too small", "system hang", "Windows froze", "PC crashed", "kernel error", or any mention of Windows Event Log errors.