quality-gate

quality-gate is a skill for Claude Code, Codex from felipelobomotta-blip/book-genesis-v4. It costs 63 tokens per session (6,194 once invoked), scanned A, original, MIT.

An automated loop that evaluates book chapters, turns the feedback into revision tasks, sends those tasks to an editor, and checks the result again. It coordinates the process but does not write or judge the prose itself.

In plain words
What is it for?
Use it to enforce configurable quality thresholds, prioritise chapter problems, dispatch targeted revisions, track improvement, and escalate work that still fails.
Why use it?
It removes the need to manually manage each evaluate-fix-check cycle and helps prevent chapters from moving on before they meet set standards.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to enforce configurable quality thresholds, prioritise chapter problems, dispatch targeted revisions, track improvement, and escalate work that still fails.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/felipelobomotta-blip/book-genesis-v4/quality-gate
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add felipelobomotta-blip/book-genesis-v4 --skill quality-gate
Clone the repo
git clone --depth 1 https://github.com/felipelobomotta-blip/book-genesis-v4

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for quality-gate

README.md
[![agentmods](https://agentmods.dev/badge/skills/felipelobomotta-blip/book-genesis-v4/quality-gate/github.svg)](https://agentmods.dev/skills/felipelobomotta-blip/book-genesis-v4/quality-gate)
Your own site
<a href="https://agentmods.dev/skills/felipelobomotta-blip/book-genesis-v4/quality-gate"><img src="https://agentmods.dev/badge/skills/felipelobomotta-blip/book-genesis-v4/quality-gate/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for quality-gate

Your own site · 80×15
<a href="https://agentmods.dev/skills/felipelobomotta-blip/book-genesis-v4/quality-gate"><img src="https://agentmods.dev/badge/skills/felipelobomotta-blip/book-genesis-v4/quality-gate.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 63 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 6,194 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00063 $0.06194
Opus 5 $0.00032 $0.03097
Sonnet 5 $0.00013 $0.01239
Haiku 4.5 $0.00006 $0.00619

Measured 11d ago against content hash 2af32ea6eb31, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

quality-gate scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 11d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

legacy/skills/deprecated/quality-gate/SKILL.md · 622 lines

How it starts

The opening of the file, as written. The whole thing — 622 lines — stays where its author put it; the contents beside it link to each section on GitHub.

QUALITY GATE — Automated Evaluate-Fix-Reevaluate Loop

You are the quality enforcement engine of the Book Genesis pipeline. You close the loop between evaluation and revision — automatically. Without you, a human must read every evaluation, decide what to fix, dispatch the fix, then re-evaluate. You do all of that. You turn a pipeline that needs babysitting into one that self-corrects.

You NEVER write prose. You NEVER evaluate prose. You ORCHESTRATE the evaluation-revision cycle by dispatching to /beta-reader (evaluation) and /book-editor (revision), synthesizing feedback between them, and deciding when a chapter passes or escalates.


BEFORE RUNNING — MANDATORY

  1. Read STATE.yaml — Current phase, chapter statuses, prior scores, pending handoffs.
  2. Read foundation.md — Theme, characters, voice definition, emotional anchors, engagement type. You need these to classify issues correctly.
  3. Read outline.md — What each chapter was SUPPOSED to accomplish. A chapter that scores 8.0 but ignores its outlined function is still a failure.
  4. Read voice-bank/README.md — Voice targets. You pass these downstream to every revision dispatch.
  5. Read research/bestseller-dna.md if it exists — Empirical benchmarks that inform threshold calibration.
  6. Read any prior quality gate logs in evaluations/quality-gate-*.md — Prevent repeating failed strategies.

THE LOOP

INPUT: chapter file(s) + voice-bank/ + foundation.md + outline.md

    +---> [1] EVALUATE (dispatch to /beta-reader)
    |          |
    |          v
    |     [2] GATE CHECK (thresholds)
    |          |
    |     PASS? ---YES---> [3] ADVANCE (update state, move to next phase)
    |          |
    |          NO
    |          |
    |          v
    |     [4] FEEDBACK SYNTHESIS (you do this)
    |          |
    |          v
    |     [5] DISPATCH REVISION (to /book-editor or /narrative-foundation)
    |          |
    |          v
    |     [6] RE-EVALUATE (dispatch to /beta-reader, fresh context)
    |          |
    |          v
    |     [7] REGRESSION CHECK
    |          |
    |     iteration < max? ---YES---> loop back to [2]
    |          |
    |          NO
    |          v
    |     [8] ESCALATE (to orchestrator)
    +--------------------------------------------

Read the full file on GitHub · 622 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 11d ago First seen · 622 lines · 63 tokens per session scan A 2af32ea6eb31

Subscribe to this mod's changes

quality-gate is a skill published in the GitHub repository felipelobomotta-blip/book-genesis-v4 (114 stars, last pushed 5d ago), licensed MIT. It adds 63 tokens to every session and 6,194 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

humanizer

Detects 55 AI writing patterns and rewrites text in five voice profiles so it reads like a specific human wrote it, with an optional 0-100 AI-tell score. Use when text sounds AI-generated or like a chatbot, when preparing a blog post, README, or LinkedIn post for publication, when auditing prose for AI tells, or when…

Aboudjem/humanizer-skill · 139 tokens

clarity

Draft, rewrite, or review reader-facing prose so it is specific, useful, and recognizably the author's without inventing facts or performing humanness. Use for essays, articles, newsletters, documentation, talks, launch copy, and other important prose that feels generic, hollow, or AI-shaped. Supports co-write…

addyosmani/clarity · 76 tokens

voiceprint

Use when writing an article, newsletter, blog post or long social post that must genuinely be the user's own writing. Triggers on "voiceprint", "write this in my voice", "turn my recording into an article", "cut my transcript down", "make this actually mine", "write from my video". Turns the user's own spoken words…

charlie947/voiceprint · 83 tokens

monograph-writing

A workflow for managing the writing of long books, textbooks, academic monographs, technical books, or dissertations in small, checkable batches.

newdeme/monograph-writing · 489 tokens

red-pen

A strict editorial reviewer that checks writing principles inspired by George Orwell's "Politics and the English Language" rules and Matthew Butterick's Practical Typography. Use this skill whenever the user says "red pen", "check my prose", "edit this for clarity", "typography check", "tighten this up", "review this…

wpgaurav/claude-code-skills · 147 tokens

slop-detector

Score a draft, page, or caption set for AI slop with a four-tier severity model instead of a flat banned-words list. Exact production narration fails outright, rhetorical scaffolds warn only when repeated, lexical tells become review prompts, and document-level patterns are diagnosed. Use when the user asks to score…

wpgaurav/claude-code-skills · 96 tokens