Skip to content
Back to skills

Factpack

ASecurity

Fact-check any AI-written text's numbers, names and quotes against its sources, or build FactPack's self-checking daily AI news brief. Use when the user asks to verify a summary, newsletter, report or answer against the articles it cites, or to run the FactPack demo or brief.

  • 23 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added December 4, 2026
ai-agentspythonbashgitapi

Works with

  • cli
  • api

Security analysis

A100/100

Scanned December 4, 2026

npx -y skills add Horace-Maxwell/factpack --skill factpack --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Factpack?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Factpack
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/horace-maxwell-factpack/badge)](https://www.skillsdirectory.com/skills/horace-maxwell-factpack)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: factpack
version: "0.3.0"
description: "Fact-check any AI-written text's numbers, names and quotes against its sources, or build FactPack's self-checking daily AI news brief. Use when the user asks to verify a summary, newsletter, report or answer against the articles it cites, or to run the FactPack demo or brief."
argument-hint: 'factpack check my summary against these links | factpack demo | factpack daily brief'
allowed-tools: Bash, Read, Write
homepage: https://github.com/Horace-Maxwell/factpack
repository: https://github.com/Horace-Maxwell/factpack
author: Horace-Maxwell
license: Apache-2.0
user-invocable: true
---

# FactPack

FactPack's guards are deterministic code. Every number in a text must appear in the cited sources with the same
value, kind and currency (`12 亿`, `1.2 billion` and `$1.2bn` match; `48%` and `48` do not), and where the sentence
ties a number to a metric, a direction or a company, the source must not tie it to a different one. Names in Latin
script and well-known Chinese names must appear in the sources, quoted passages must be found word for word, and
mentions, links and markup are flagged. They do not judge claims without numbers, names or quotes, or a reversed
cause; say so when you report results.

## Run the CLI

Use the first that works:

1. `factpack ...` if it is on PATH.
2. `uv run --project <repo> factpack ...`, where `<repo>` is the directory two levels above this skill's directory
   (it contains `pyproject.toml`).
3. `uvx factpack ...` (from PyPI)

Python 3.12+ and [uv](https://docs.astral.sh/uv/) are needed. `check` and `demo` need no API key.

## Fact-check a text against its sources

When the user asks you to verify a summary, a draft, a report or your own answer:

1. Save the text to a file (for example `draft.md`). Use only sources the user gave you or the text itself cites;
   never invent one.
2. Run `factpack check draft.md -s <url-or-file> -s <url-or-file> --json`.
   Exit code 0: every sentence passed. Exit code 3: at least one sentence was flagged. Exit code 1: bad input
   (for example a source URL that could not be read).
3. For each flagged sentence (`"ok": false`): fix it from the source, or remove the sentence. `reasons` says what
   is wrong (for example `48%: not in the sources` or `34%: the sources give it for revenue, not profit`);
   `unsupported_numbers`, `unsupported_names` and `untraced_quotes` list the items; `markup` lists mentions or links
   that would be stripped before publishing.
4. Run the check again until it exits 0, then tell the user what you changed and that claims without numbers, names
   or quotes were not checked.

Source URLs are fetched politely: robots.txt is respected and only public hosts are allowed. Pass
`--ignore-robots` only if the user explicitly asks.

As a library: `from factpack.check import check_text; report = check_text(text, [source_text, ...])`.

## Show how the guards work

`factpack demo` runs the real pipeline offline on 12 fictional articles with a scripted model that invents a number,
writes a wrong headline, misquotes a CEO and obeys a prompt injection. It prints which guard caught each one and
writes a full brief to `data/demo/`. Add `--lang zh` for the Chinese edition.

## Build the daily brief

Needs an LLM key in the environment (for example `FACTPACK_DEEPSEEK_API_KEY`; any OpenAI-compatible provider works).

- `factpack status` shows what is configured.
- `factpack daily` builds today's brief into `data/out/<date>/` and sends nothing.
- `factpack daily --send` delivers to the configured Discord, Telegram, Feishu, WeCom, DingTalk or WhatsApp targets.
  It posts messages for the user, so ask before running it.
- `factpack send-test` sends one short test message to every configured target (also a message for the user: ask first).
- The brief is written in Simplified Chinese by default; set `output.language: en` in the instance settings (or
  `FACTPACK_LANGUAGE=en`) for the English preview.
- To run it every day on the user's machine: `factpack schedule install` (launchd on macOS, systemd on Linux) calls
  `factpack run` every 5 minutes, which builds and sends when due and catches up after reboots, sleep and network
  outages. It changes the user's scheduled jobs, so ask first. `factpack doctor` explains what could still stop it.
- To run it every day without a server, point the user to `docs/github-actions.md`: a fork plus repo secrets.

## Measure a change

`factpack replay --date <day> --out eval/runs/<name>` re-runs a past day's frozen input through the current
pipeline; `factpack eval metrics|recall|pairwise-prepare` score it. See `eval/README.en.md` in the repository.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.