quality-gate

quality-gate is a skill for Claude Code from Felpix-Studios/social-science-research. It costs 36 tokens per session (1,304 once invoked), scanned A, original, MIT.

A report-only check that compares every number in a research paper with the files produced by its analysis. It also checks that important analysis outputs were not left out.

In plain words
What is it for?
Verifying sample sizes, percentages, coefficients, averages, tables, figures, and other quantitative claims against analysis results.
Why use it?
It helps prevent unsupported figures or omissions from reaching a paper submission.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: names the AskUserQuestion tool.

Runs only inside its plugin — its command needs a path that Claude Code sets for a plugin’s own hooks and for nothing else. Install the plugin, not this.

Part of the social-science-research plugin — 13 skills, 9 agents, 3 hooks shipped together

Good fit Verifying sample sizes, percentages, coefficients, averages, tables, figures, and other quantitative claims against analysis results.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

This one installs as part of its plugin. Adding the marketplace and installing the plugin brings it with everything else the plugin ships.

Claude Code
/plugin marketplace add Felpix-Studios/social-science-research
Claude Code
/plugin install social-science-research

Made for: Claude Code.

Or install social-science-research, the plugin that ships this one along with the rest of its 13 skills, 9 agents, 3 hooks.

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/felpix-studios/social-science-research/quality-gate/github.svg)](https://agentmods.dev/skills/felpix-studios/social-science-research/quality-gate)
Your own site
<a href="https://agentmods.dev/skills/felpix-studios/social-science-research/quality-gate"><img src="https://agentmods.dev/badge/skills/felpix-studios/social-science-research/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/felpix-studios/social-science-research/quality-gate"><img src="https://agentmods.dev/badge/skills/felpix-studios/social-science-research/quality-gate.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 36 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,304 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.
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.00036 $0.01304
Opus 5 $0.00018 $0.00652
Sonnet 5 $0.00007 $0.00261
Haiku 4.5 $0.00004 $0.00130

Measured 11d ago against content hash db17bade7df1, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, 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.

skills/quality-gate/SKILL.md · 146 lines

How it starts

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

Quality Gate: Paper ↔ Analysis Consistency

Cross-check every numerical claim in the paper against analysis output files. Reports only — never edits.

Input: $ARGUMENTS — path to the paper draft, or leave blank to auto-detect.

Read ${CLAUDE_PLUGIN_ROOT}/rules/quality-gates.md before assigning the final verdict and severity.

Step 1: Locate the Paper Draft

If $ARGUMENTS is provided, use that path. Otherwise glob for:

  • manuscripts/**/*.tex
  • manuscripts/**/*.qmd
  • manuscripts/**/*.md

If multiple drafts found, use AskUserQuestion to let the user pick:

  • header: "Paper"
  • question: "Multiple drafts found. Which manuscript should I check?"
  • options: list up to 4 found files (label: filename, description: path and file size). If more than 4, group by directory.

Step 2: Extract Numerical Claims

Read the full manuscript and extract every quantitative claim:

  • Coefficients and standard errors — e.g., "The effect is 0.23 (SE = 0.04)"
  • Sample sizes — e.g., "N = 4,521 observations"
  • Percentages and proportions — e.g., "42% of firms..."
  • Means, medians, ranges — e.g., "average income of $45,000"
  • Table and figure references — e.g., "Table 2 shows...", "as seen in Figure 1"
  • p-values and significance statements — e.g., "statistically significant at the 1% level"

Record location (section, paragraph, line number if available) for each claim.

Step 3: Inventory Output Files

Glob for all output files:

  • output/tables/**/*.tex — regression and summary tables
  • output/tables/**/*.html — HTML versions
  • output/figures/**/*.pdf, output/figures/**/*.png — figures
  • output/**/*.rds, output/**/*.pkl, output/**/*.parquet, output/**/*.csv — saved objects

Build an inventory with file paths and sizes.

Step 4: Dispatch Verifier Agent

Dispatch the verifier agent via Task to perform the heavy verification work. Pass it:

  • The full list of numerical claims extracted in Step 2 (with locations)
  • The output file inventory from Step 3
  • The paper draft path
  • The bibliography file path

Read the full file on GitHub · 146 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 · 146 lines · 36 tokens per session scan A db17bade7df1

Subscribe to this mod's changes

quality-gate is a skill published in the GitHub repository Felpix-Studios/social-science-research (8 stars, last pushed 2mo ago), licensed MIT. It adds 36 tokens to every session and 1,304 once invoked, about $0.0002 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-31.