# Arc Verify

> Fact-check and red-team AI-drafted technical specs, RFCs, architecture comparisons, research reports, or long-form articles before publishing. Use whenever the

- Skill: `mbabby/arc-verify` (Agent Skill, multi-file: 2 files)
- Install (CLI): `npx get-skill add mbabby/arc-verify`
- Raw SKILL.md: https://api.skillmd.com/api/skills/mbabby/arc-verify/raw
- Safety review: pending
- Works with: any agent that reads SKILL.md (Claude Code, Claude.ai, Cursor, Codex, Windsurf, 60+ more)
- Category: Coding & Dev Tools
- Author: mbabby (https://skillmd.com/u/mbabby)
- Updated: 2026-12-02
- Page: https://skillmd.com/skills/mbabby/arc-verify

---

---
name: arc-verify
description: Fact-check and red-team AI-drafted technical specs, RFCs, architecture comparisons, research reports, or long-form articles before publishing. Use whenever the user asks to fact-check, verify citations, catch hallucinations or outdated claims, audit a draft, or run an independent review (核查草稿、事实核查、发稿前检查、红队挑刺). Zero-dependency Python 3.9+ stdlib script bundled inside the skill.
license: MIT
compatibility: Requires Python 3.9+ (standard library only; no third-party packages or GitHub login required).
metadata:
  author: mbabby
  version: "0.2.0"
  repository: https://github.com/mbabby/arc-verify
---

# ARC Verify — Zero-Dependency Local Fact-Check & Red-Team Gate

Runs self-contained inside **any repository** using the bundled `scripts/verify.py` (Python 3.9+ standard library only). Separates drafting from an isolated red-team audit so hallucinated citations, dead links, stale spec claims, and unsupported leaps get caught before shipping.

## 3-Step Workflow

### Step 1 — Auto-extract claims & primary sources from a draft
Run `extract` on any Markdown draft (or `init` for a blank skeleton) from this skill's directory, or pass the full path to `scripts/verify.py`:

```sh
python3 scripts/verify.py extract draft.md -o verify-report.json
```

- Tighten the extracted `claims` to the **3–5 highest-risk assertions**.
- Label each claim strictly as `fact` (observable, falsifiable) or `inference` (analytical judgment).
- Every `fact` **must** cite ≥ 1 primary source (`url`, `accessed_at`, exact section/quote in `note`).
- Do **not** hand-maintain `sources[].supports`—run `check --fix` to sync bidirectional bindings automatically:

```sh
python3 scripts/verify.py check verify-report.json --fix --check-links --json
```

### Step 2 — Dispatch an isolated read-only red-team reviewer
Launch a **fresh, isolated subagent or separate session** that does **not** see the drafting chain of thought. Pass it **only** `verify-report.json` with this exact brief:

> Audit every claim in `verify-report.json` against its primary sources. Find at least one plausible counterexample, version-staleness risk, RFC 2119 precision error, or unstated boundary condition. Return `verdict` (`"pass"` or `"changes_requested"`), concrete `notes`, and structured `catches` (`[{draft, caught, fix}]`) for every real defect found.

Never let the drafting session self-approve `review.verdict = "pass"`. If the reviewer returns `changes_requested`, fix the claims/sources and re-verify with the same isolated reviewer.

### Step 3 — Enforce `--strict` gate & render shareable output
Once the independent reviewer returns `pass`, run the hard gate and render:

```sh
python3 scripts/verify.py check verify-report.json --fix --strict --check-links --max-age 90d --json
python3 scripts/verify.py annotate draft.md verify-report.json -o revision-checklist.md
python3 scripts/verify.py render verify-report.json --format html --output verify-report.html --strict
# Also supports: --format md | pr-comment | badge (use --no-footer to omit attribution)
```

## Guardrails
- If a primary source returns 404 or cannot be verified, **downgrade the claim to `unknowns` or narrow its scope**—never fabricate citations.
- Record real red-team catches in `review.catches` so readers immediately see the `Before (AI Draft) → After (Verified)` proof at the top of the rendered output.

