Communitygithub.com

quality-loop

Optimize an artifact (ad, email or outreach sequence, landing page, website or paywall HTML, campaign concept, UX flow, playbook, agent flow, Claude Code skill) for the people who will consume, use or benefit from it. First understands the company's knowledge base and the asset, derives buying committees from it, defines quality in an interview with samples, then runs a generate, evaluate, optimize loop with blind judges and receiver committees until a pre-defined quality gate holds. Use whenever someone wants a piece of marketing, sales, product or process output made measurably better, tested against buyer personas, run through a quality loop, evaluated by a panel, or benchmarked before it ships, e.g. "run the quality loop on this landing page", "optimize this email sequence for CTOs", "is this paywall good enough to ship", "let buyer personas judge this concept", "evaluate my planner agent against test cases". Deliberate, expensive ritual: invoke it by name.

quality-loop 是什麼?

quality-loop is a Claude Code agent skill that optimize an artifact (ad, email or outreach sequence, landing page, website or paywall HTML, campaign concept, UX flow, playbook, agent flow, Claude Code skill) for the people who will consume, use or benefit from it. First understands the company's knowledge base and the asset, derives buying committees from it, defines quality in an interview with samples, then runs a generate, evaluate, optimize loop with blind judges and receiver committees until a pre-defined quality gate holds. Use whenever someone wants a piece of marketing, sales, product or process output made measurably better, tested against buyer personas, run through a quality loop, evaluated by a panel, or benchmarked before it ships, e.g. "run the quality loop on this landing page", "optimize this email sequence for CTOs", "is this paywall good enough to ship", "let buyer personas judge this concept", "evaluate my planner agent against test cases". Deliberate, expensive ritual: invoke it by name.

相容平台✓Claude Code~Codex CLI~Cursor
npx skills add https://github.com/Felixxxxs/quality-loop/tree/HEAD/skills/quality-loop

在你喜歡的 AI 中提問

開啟一個已預先載入此 Agent Skill 的新對話。

說明文件


name: quality-loop description: Optimize an artifact (ad, email or outreach sequence, landing page, website or paywall HTML, campaign concept, UX flow, playbook, agent flow, Claude Code skill) for the people who will consume, use or benefit from it. First understands the company's knowledge base and the asset, derives buying committees from it, defines quality in an interview with samples, then runs a generate, evaluate, optimize loop with blind judges and receiver committees until a pre-defined quality gate holds. Use whenever someone wants a piece of marketing, sales, product or process output made measurably better, tested against buyer personas, run through a quality loop, evaluated by a panel, or benchmarked before it ships, e.g. "run the quality loop on this landing page", "optimize this email sequence for CTOs", "is this paywall good enough to ship", "let buyer personas judge this concept", "evaluate my planner agent against test cases". Deliberate, expensive ritual: invoke it by name. argument-hint: "[define | run | define+run | resume | status | check | calibrate] [--asset ] [--type ] [--depth deep|standard|quick] [--operation interactive|autonomous] [--profile default|lite|multi-industry|agent-flow]" disable-model-invocation: true

Quality loop

Input: $ARGUMENTS. The first word is the mode, default define+run when an --asset is given and nothing else, otherwise status. Installed as a plugin the command is /quality-loop:quality-loop <mode> …; copied into .claude/skills/ it is /quality-loop <mode> ….

ModeWhat it doesStops at
definePhase 0 (understand: knowledge base, asset, use-case card) and Phase 1 (interview, spec)H0: you confirm the card; then H1: the spec is frozen
runPhases 2 to 4 on a frozen spec: candidates, calibration, depth rounds, confirmation, closeH3: sign-off
define+runall of it, in one run folderH3
resume [run-id]continue the latest (or named) run from its state.jsonwherever the run stopped
status [run-id]print scoreboard, last gate check with values, open human backlog, the open checkpoint, next action; change nothingimmediately
checkcheap audit, no loop: Phase 0 asset analysis plus the adapter's seed hard checks on --assetafter the report
calibrate [run-id]hold real outcomes against the committees' predictions; update trust weights in the libraryafter calibration.md

Arguments: --asset <path or folder> (the artifact; if absent, round 1 creates it from the brief), --type <adapter> (copy, sequence, html, concept, ux-flow, process, variant-set, generic; Phase 0 detects it otherwise), --variant <agent-flow|skill|playbook> for process, --depth (interview depth, default standard; quick needs a library hit), --operation (interactive is default: checkpoints H0 to H3; autonomous: H0, H1 and H3 only), --profile (cost profile, default default), --judge-model <opus|sonnet>, --workdir <folder> (default quality/), --slug <run-slug>, --in-place (edit the asset where it lives, under git), --product "<name>" and --audience "<segment>" (pre-answer the H0 questions), --language <code> (run language for reports and checkpoints, default: the language of the user's message, recorded at init), --outcomes <file> (for calibrate).

<skill> below means this skill's directory: ${CLAUDE_SKILL_DIR} (the folder that holds this SKILL.md). Always double-quote paths. <skill>/PROCESS.md is the procedure, this file is the launcher: read its §0 to §2 before anything else, then the sections of your mode and phase (table below); run and resume into Phase 2 or later read it in full once. At the init step of a run, record your own session model (named in your system prompt) in state.json, because the judge model must differ from it.

What you are building, in one paragraph

A run turns the user's intent into a specification a blind judge can apply without asking back (use-case card, brief, criteria as binary evidenced checks, a panel in two tiers, hard checks, a gate), then lets candidates compete, lets receiver committees rank and later pair-compare each new version blind against the previous one, repairs what deterministic checks catch, keeps a version only when the committees prefer it and no constraint is lost, and stops at a pre-defined gate confirmed by fresh agents, at a cap, at a plateau, when blocked on a human, or at the budget. "Better" means better for the receivers named in the use-case card, never a higher judge score.

Hard rules (never traded)

  • Understand before you judge. No loop without a confirmed use-case card (H0). When the knowledge base names more than one product or more than one segment, ask; never guess which one the artifact is for.
  • Receivers are the objective, constraints are not negotiable, rubric checks are heuristics. A committee verdict beats a rubric finding unless the user made the check must-pass at H1; a hard check, a gatekeeper veto, a must-pass check or the coherence dimension beats everything, in both directions. No judge overrules a deterministic check.
  • Judges are blind and never share a model with the generator. They see the use-case card, their own card or dimension (the holistic judge also the brief, the comparator the criteria names), and the artifact under a neutral token: never the round number, the diff, another report, the thresholds or the optimizer's intentions. The judge model is fixed for the run and is never the session model (PROCESS.md §2.3).
  • Not measured is not passed. Every check line says what was measured and what was not; "layout: not rendered, not checked" is a valid line on the scoreboard and an invalid reason to call a gate green.
  • Repair before reject. A hard-check fail with an unambiguous fix (a banned phrase, an invented condition, a placeholder) is repaired by the gatekeeper and logged; only what cannot be repaired unambiguously goes back to the generator.
  • Keep-or-revert, decided by the receivers. A version that loses the committee pair comparison is reverted; a regressed fix is never retried in the same form.
  • Claims come only from the ground-truth pack. No price, number, name, statute or certification outside spec/ground-truth.md; a needed fact that is missing goes to human-backlog.md, never into the artifact.
  • Nothing is faked and nothing ships by itself. No placeholder assets that look real, no invented quotes; nothing is published, pushed, sent or deployed. The gate makes a version a candidate; the human signs it off (H3).
  • Files are the memory. Every agent writes its report to the run folder and replies in one line; the orchestrator never reads a judge's or persona's report, it reads state.json, the two Phase 0 reports, aggregate.md, gate-check.json, numbers.json, the scoreboard, the ledger view, the backlog and the checkpoints. What is not in a file did not happen. Never delete a ledger entry, a scoreboard row, a version or a run.
  • Context stays lean. Phase 0 reads the knowledge base on demand and never bulk-reads a brain; judges get only the components in their scope; the orchestrator never opens screenshots or full reports itself.

Where to go next

You are atRead
Start of any run, or resume, status, check, calibrate<skill>/PROCESS.md §1 (environment, run folder, state) and the section for the mode
Phase 0PROCESS.md §3, then <skill>/context/kb-scan.md, <skill>/context/asset-analysis.md, <skill>/context/templates/use-case.md
Phase 1PROCESS.md §4 and <skill>/interview/guide.md; templates in <skill>/interview/templates/; committee rules in <skill>/catalog/decision-units.md; the adapter in <skill>/catalog/adapters/<type>.md
Phases 2 to 4PROCESS.md §5 to §8; agent prompts in <skill>/prompts/; scripts in <skill>/scripts/
Running artifacts (process, agent-flow, skill)PROCESS.md §9 and <skill>/catalog/adapters/process.md
Library and calibrationPROCESS.md §10 and §11

Closing obligations (every stop of a run, same response)

At every stop of define, run, define+run and resume (H0 to H3, blocked, cap, plateau, budget, gate): write the checkpoint or the final report, update state.json with next_action, append the line to the run README.md with the agent calls used, and report to the user in the language of their message: gate status in one sentence ("not measured yet" before round 1), scoreboard before and after ("none yet" before round 1), the human backlog, what happens next. Inside a business-ai-os brain, also add the run pointer to the owner's weekly briefing as a manual to-do when that file exists (PROCESS.md §1.5). status, check and calibrate only report; they write no run files.

相關技能