rea
morluto
Reverse engineer anything with agents, from app behavior down to native binaries.
7starsseeker/dsh-fact-check
Fact-checking skill for DeepSeek Harness: multi-source verification against the open web, domestic and international ecosystems, optional TypeSafe Jev (System One) judgements. Its conclusion-first report exports as shareable images with the companion dsh-card-export plugin.
PROJECT TOPICS
INSTALL REFERENCE
dsh plugin --profile web add github:7starsseeker/dsh-fact-check
该命令指向仓库当前默认分支;尚无绑定当前 commit 的完整验证结果。
PROJECT README
A DeepSeek Harness skill that types the question before it searches. It first decides which report the question calls for — verdict, explainer, causal mechanism, comparison, survey map or metric card — then gathers evidence the same way for every kind: never from model memory, always from the open web, multi-source, domestic and international ecosystems in parallel, adversarial re-search, every statement traceable to a URL and a citation position. Reports are written in Chinese or English.
2.x has just landed and is still in its proving phase. The decision tree has had two blind tests (19 questions in total); how readable the six output kinds are in real use, and how much the new
definitiondomain can actually fetch, have not been exercised enough. Skeletons, judgements and even output structure may change as real usage comes in — these docs are not a frozen contract. If something does not fit, feels awkward, or is plainly misclassified, please open an issue.
简体中文 → README.zh-CN.md
A skill that types the request before it searches. Hand it a claim, a rumour, a figure, a "is this true?", a "what actually happened?" or an "how do these two compare?" and it first decides which kind of report the question calls for, then returns that structure.
Six report kinds: verdict (true/false) · explainer (what is X) · causal mechanism (why / what happened / what it will do) · comparison (A vs B) · survey map (the landscape) · metric card (a figure's current state). Forcing every research question into a true-false verdict, and writing every verification question as a survey, are the same class of error — this is the largest change in 2.0.
What separates it from asking a model directly is that it is built around five rules it is not allowed to skip:
Outputs scope first, then tier: a verdict never puts unverified or undecidable in the same paragraph as confirmed; causal and impact reports keep "what a source said" physically apart from "my inference" and give each a likelihood and a confidence; a survey map labels its certainty tiers. A guess cannot be quoted as settled in any of them.
The report is plain Markdown, so it can also be turned into images by
dsh-card-export — a separate, optional plugin that
renders any Markdown report or DSH conversation excerpt into shareable PNGs. Its report-card skill
recognises this report's conclusion structure (the fixed ## 一句话结论 / ## 哪些是真的 / ## 来源
headings) and takes the tier, both rails and each assertion's grading straight from the report; a report
carrying only two of the three sections still renders, with the missing one listed at the end of the long
image.
An English report is recognised the same way, through the equivalent anchors fixed in SKILL.md Step 4b:
## One-line verdict / ## What is true, what is false / ## Sources. Its tier words are Confirmed /
Likely true / Unconfirmed / False / Unverifiable — mapped back onto the same colours and icons, so
the language changes the labels, never the verdict. The within-section fixed wording (both rails, table
headers, grading subheadings, the no-quote warning, and Likelihood: / Confidence: for causal reports)
lives in reference/i18n.md, which is read only when writing an English report.
Only the verdict kind carries export anchors. Explainer, causal, comparison, survey and metric card have no aligned anchors, so exporting them degrades to a plain document — that is intended, not a defect. Do not invent anchors for them: the parser would misread them as a verdict.
A machine-readable index of the six skeletons' existing headings — short titles, hit thresholds, lead and
secondary sections, and the rules for headings shared across skeletons — ships as
reference/skeleton-anchors.json, so the export side reads a declaration
instead of guessing titles. It is only an index, not a new set of anchors, and nothing in this skill reads it
at runtime: whether the export plugin is installed changes nothing here.
The dependency is one-way and structural: fact-check works standalone and never calls the export side,
which only probes whether it is installed. What actually couples the two is the format above — rename
those headings or drop them to ### and the export silently falls back to a plain report: no cover card,
no tier or rail extraction.
| Required | An agent that can search the public web and fetch page bodies (any one working fetch chain). Without search the skill reports "cannot verify" rather than guessing. |
| Recommended | Batch/multi-engine search, an archive service (Wayback), a sub-agent mechanism for parallel evidence gathering. |
| Optional | Node.js ≥ 18 for the two bundled tools; a TypeSafe Jev key for the decision layer. |
The skill body is not bound to any host, product or tool chain: it names capabilities, and
ADAPTING.md maps them onto your environment.
Verified hosts: DSH 0.1.7-rc.2, 0.2.0-rc.2, 0.2.1-rc.2, 0.2.1-rc.3, 0.2.1-rc.5 and 0.2.2-rc.1. DSH 0.1.7-rc.2 was checked end to end on 2026-09-25 (Node 24.21.0, WSL/Linux): the host discovers the skill
and loads its body; the plugin form mounts on the host's own skill registry with source: bundled, its
description read from SKILL.md and get() returning that body verbatim; npm run selftest passes
(plugin mount 27/27, jev-verdict 25/25, route 37/37); route.mjs regress is 26/26 offline; and the
judgement corpora reproduce the expectations in MEASUREMENTS.md §6 — support
37/40, injection 11/12, provenance 15/16, usable_page 12/12, sufficient 24/40 (the last one is
the criterion §1 already says not to use on its own). No host version is declared in package.json —
engines carries only node, and an exact version there would make the plugin market report
"confirmed incompatible" and block every other host — so a host not listed here is untested, not
forbidden.
DSH 0.2.0-rc.2 was checked end to end on 2026-09-30 — this time the host was upgraded (@deepseek-ai/dsh-desktop-runtime 0.2.0-rc.2, Node 24.12.0, Windows). The directory form is live on it: the running session's own skill catalog lists fact-check, discovered from the host's skill directory by the host's real @deepseek-ai/dsh-skill-filesystem provider. The tools were re-run on that host against the live judgement model: npm run selftest 27/27, 25/25, 37/37; route.mjs regress 26/26; and the judgement corpora, which need a key — support 37/40 (Brier 0.0451), injection 11/12 (0.0369), primary_source 15/16 (0.0487), usable_page 12/12 (0.0031) — all reproducing the MEASUREMENTS.md §6 expectations. The host file implementing the skill registry is byte-identical between 0.1.7-rc.2 and 0.2.0-rc.2, so no code change was needed and none was made. One thing stays where the 2026-09-29 round left it: the plugin form was not mounted on this host — that machine runs the directory form, so the plugin package is not installed there — and its evidence remains the registration check against the host's own published 0.2.0-rc.2 packages, where it mounts on the real @deepseek-ai/dsh-skill 0.2.0-rc.2 registry with its candidate rank equal to the host's exported BUNDLED_SKILL_RANK and get() returning the SKILL.md body verbatim (15/15), and the directory form wins the same-name merge against the bundled copy at rank 400 against 600 (6/6).
DSH 0.2.1-rc.2 was checked end to end on 2026-10-17 (Node 24.21.0, Windows). The registry implementation (@deepseek-ai/dsh-skill's lib/index.js) has no content change between 0.2.0-rc.2 and 0.2.1-rc.2 — the diff is line endings and version metadata only (package.json bumps the peers to cordis ~4.0.5 and adds a ./locale/*.json export) — so no API adaptation was needed. What did change is what a provider may do with control, and this package now uses both 0.2.1 affordances: the candidate carries path (the absolute SKILL.md, retained in catalog summaries), and the provider watches SKILL.md and calls control.invalidate() on save, so editing the body refreshes the session catalog without a restart (150 ms debounce; the watcher is torn down on control.signal abort or context dispose, and a host that passes no control keeps the previous "restart to re-read" behavior). Evidence: the plugin was mounted on the host's own 0.2.1-rc.2 registry code (taken from the shipped asar, wired with the host's own cordis 4.0.5) and on the published 0.2.0-rc.2 package — 21/21 checks on each, snapshot.complete === true, get() returning the body verbatim, provider.list() rank 600, and both edit→refresh cycles observed; npm run selftest 27/27, 25/25, 37/37 and route.mjs regress 26/26 re-run on Node 24.21.0.
DSH 0.2.1-rc.3 was checked on 2026-10-24 (Node 24.22.1, Windows). Nothing in the registry contract moved: @deepseek-ai/dsh-skill 0.2.1-rc.3 still exports BUNDLED_SKILL_RANK (600), SkillRegistry, isSkillName, isModelInvocable and isUserInvocable, still hands registerProvider() the same control ({ signal, invalidate }), and invalidateCache() still advances the cache revision and broadcasts skills/change. The plugin was mounted on that registry — taken from the shipped app.asar, wired with the host's own cordis 4.0.5 — and passed 28/28 checks: inject: ['skills']; the candidate carrying source: bundled, rank 600 equal to the host's own exported constant, the absolute SKILL.md as path, the package root as resourceBase, and the frontmatter description verbatim; get() returning the body (13,533 characters, frontmatter stripped, path retained); control.invalidate() advancing the registry revision 1 → 2 and emitting exactly one skills/change; and disposal removing the provider and aborting control.signal. Two details worth writing down because they look like failures and are not: the host's toSummary() deliberately drops rank from catalog summaries (it is a same-name arbitration input, not a display field), and registration only becomes observable once ctx.plugin()'s thenable resolves — inspected before that await, even a successful mount shows no control. In this same rc3 session the directory form is the one that runs (the host's own skill directory), and the session's skill catalog lists fact-check with this repository's SKILL.md description.
DSH 0.2.1-rc.5 was checked on 2026-10-31 (Node 26.13.0, Windows; the host version is the one the shipped app.asar's @deepseek-ai/dsh-desktop declares, and dsh --version reports the same 0.2.1-rc.5). The registry contract did not move again: @deepseek-ai/dsh-skill 0.2.1-rc.5 still exports BUNDLED_SKILL_RANK (600) together with the same SkillRegistry / isSkillName / isModelInvocable / isUserInvocable surface, still hands registerProvider() the same control ({ signal, invalidate }), and validateCandidate, toSummary and renderSkillContent behave as in 0.2.1-rc.3 — checked line by line against the file taken from the shipped app.asar, wired with the host's own cordis 4.0.5. The plugin mounted on that registry and passed 24/24 checks: inject: ['skills']; exactly one candidate for fact-check, carrying source: bundled, rank 600 equal to the host's exported constant, the absolute SKILL.md as path and the package root as resourceBase; get() returning the body (14,462 characters, frontmatter stripped); that body rendering through renderSkillContent with the package root as the resource base; control.invalidate() making an edited description visible to the catalogue (edited and reverted inside the probe — git status --porcelain empty afterwards); and disposal removing the provider again. The bundled suite re-ran green on Node 26.13.0: smoke-plugin 27/27, jev-verdict selftest 25/25, route selftest 44/44, route.mjs regress 30/30 offline, doctor exit 0.
One host behaviour added in this release decides whether any plugin loads, so it is recorded here. @deepseek-ai/dsh-app-boot gained a plugin↔runtime compatibility gate: a plugin that declares engines.dsh must satisfy it; a plugin that declares no engines.dsh but does declare peerDependencies must satisfy every @deepseek-ai/dsh / @deepseek-ai/dsh-* peer; a plugin with neither passes unconditionally. Incompatible profile bundles are skipped without printing anything, and incompatible cordis.patch.yml rows are set disabled. This package declares only engines.node and no peerDependencies, so the gate cannot deny it on any runtime — a second reason, after the plugin-market one above, to keep the manifest free of host versions.
DSH 0.2.2-rc.1 was checked on 2026-11-06 (Node 26.13.0, Windows; the shipped app.asar's @deepseek-ai/dsh-desktop and @deepseek-ai/dsh-desktop-runtime both declare 0.2.2-rc.1, and dsh --version reports the same). This round is behavioural evidence rather than a line-by-line diff: the host was updated in place, so the 0.2.1-rc.5 counterpart of each package no longer exists on disk to diff against. What the shipped build still declares was checked directly: @deepseek-ai/dsh-skill's lib/index.js still has const BUNDLED_SKILL_RANK = 600; (line 23) and still hands registerProvider() the same control ({ signal, invalidate }), whose invalidate() consults active.layer.providers.get(active.name)?.provider === provider before invalidating the catalogue; the export list at line 566 is unchanged. On the running host the plugin is installed as link:T:/fact-check-skill; the plugin market reports its activation as live ("已热加载(bundle patch)") with an empty diagnostics.findings, and the session's own skill catalogue lists fact-check with this repository's SKILL.md description — the only possible source, since neither $DSH_HOME/skills nor the profile's skills/ directory contains a fact-check copy. The bundled suite re-ran green on this host: smoke-plugin 27/27, jev-verdict selftest 25/25, route selftest 44/44. Not covered this round: the edit→control.invalidate() watcher (it requires touching SKILL.md in the live repository), and the registry's validateCandidate / toSummary internals, which were not re-read against a previous build.
DSH 0.2.2-rc.2 was checked on 2026-11-12 (Node 26.13.0, Windows; dsh --version reports 0.2.2-rc.2). This is runtime evidence again, not a dependency-closure diff: the host was upgraded in place, so there is no 0.2.2-rc.1 copy on disk to compare. The plugin is installed as link:T:/fact-check-skill; the running session's skill catalogue lists fact-check with this repository's description, and the skill body was used end to end to produce a two-question fact-check report whose cards were rendered by dsh-card-export 0.1.4. npm run selftest is green on this host — smoke-plugin 27/27, jev-verdict 25/25, route 48/48, lint-skill 236/236 — and lint-report returns 0/0 on the report. The new multi-question and > **原始提问** contract is exercised by that report and by the export-side regression (77/77). Not covered: a line-by-line diff of the 0.2.2-rc.2 skill registry (no previous build to diff against), and the DSH startup log (the running instance does not leave one in the desktop log directory).
dsh plugin add dsh-fact-check
That is the published npm package — the source the plugin market installs from by preference. The same
plugin straight from GitHub source is dsh plugin add github:7starsseeker/dsh-fact-check.
Then restart DSH: the fact-check skill appears in the session catalogue. The plugin itself is a thin
adapter — lib/index.js registers the bundled SKILL.md on ctx.skills, re-reading it on every load,
so editing the skill needs no code change. It has zero runtime dependencies (only node: builtins).
Because the provider registers at the bundled rank, a skill you keep in ~/.dsh/skills/fact-check
(user rank) still wins on a name collision — installing this will not shadow your own local edits.
git clone https://github.com/7starsseeker/dsh-fact-check.git
dsh plugin add ./dsh-fact-check
Copy this directory (or a zip of it) to any AI tool and say "do what FOR-AI.md says". It detects the
environment offline, adapts itself, and needs no human configuration. Frameworks that load skills take
SKILL.md directly (frontmatter included); frameworks that take plain instructions take the generated
INSTRUCTIONS.md.
premise scan + decompose into units (premise / definition / analysis)
→ type the request: verdict · explainer · causal mechanism · comparison · survey map · metric card
→ [confirm the direction + feasibility check: how obtainable is each unit, is it worth starting]
→ parallel search (domestic + international + vertical + debunking)
→ fetch primary pages → cross-compare and grade sources → adversarial re-search
→ the skeleton that matches, not a one-size verdict
Two optional offline tools sit alongside it:
| Tool | What it does |
|---|---|
node tools/route.mjs plan --task "…" |
Deterministic planning: which source ladder and which channels this kind of claim needs, plus the failure-action table. A pure data table — no model, no tokens. A claim that matches no known fact type still gets the general fact-check ladder (flagged fallback: true in the output), never a software-release one. |
node tools/jev-verdict.mjs |
The judgement client described below. |
Three judgements are inherently about facts rather than about prose, and the skill can hand them to a TypeSafe Jev (System One) decision model instead of leaving them to unaided reasoning:
| Judgement | Question type | When it is asked |
|---|---|---|
| Does this evidence support the claim? | yes/no + probability | when cross-comparing sources |
| Is this source primary? | yes/no + probability | when grading each candidate source |
| Does this page carry usable body text? | yes/no + probability | after fetching — login walls, captchas and JS shells must not count as evidence |
Two things about it are deliberate:
SKILL.md; nothing else changes. A key can come from the local config
(local.json), from the TYPESAFE_API_KEY environment variable, or from tools/jev-verdict.mjs --key-file.Measured reliability per judgement, the prompt-injection defences applied before anything reaches the
model, and the commands to reproduce the numbers are in MEASUREMENTS.md —
including one judgement that is deliberately never asked, because its single-question accuracy
measured 62.5%.
Every command below runs offline, needs no key, and takes seconds:
node tools/smoke-plugin.mjs # is the plugin mounted, and does it serve SKILL.md?
node tools/route.mjs selftest # deterministic routing tables
node tools/route.mjs regress --file cases/route-cases-neutral.json
node tools/route.mjs arms # dispatch-arm proxy metric (MEASUREMENTS §4.1)
node tools/jev-verdict.mjs selftest # judgement layer regression assertions
node tools/doctor.mjs # what this machine can and cannot do
node tools/doctor.mjs --net additionally self-tests the fetch chains and the judgement endpoint, and
reports which capabilities are missing and how the skill degrades without them. Current status on this
checkout: 27/27, 25/25, 48/48 and 33/33 assertions pass.
CI runs exactly these commands on Linux and Windows, on Node 18 and 22, plus one more check: that the
generated INSTRUCTIONS.md still matches SKILL.md.
| Path | What it is |
|---|---|
SKILL.md |
the skill itself — flow and rules (the single source of truth) |
INSTRUCTIONS.md |
generated from SKILL.md for hosts that take plain instructions |
reference/i18n.md |
within-section fixed wording for Chinese/English reports — read on demand, only when writing an English report |
FOR-AI.md |
the task brief for an AI that is handed this package |
ADAPTING.md |
what to change when moving to another environment |
MEASUREMENTS.md |
measured numbers and how to reproduce them |
CHANGELOG.md |
net change between versions |
RELEASING.md |
how a release reaches npm (OIDC, no long-lived token) |
lib/index.js |
DSH plugin entry: exposes SKILL.md on ctx.skills |
cordis.patch.yml |
bundle patch that makes the package installable via dsh plugin add |
tools/ |
two zero-dependency Node scripts, the machine-local config template, and the data tables |
cases/ |
de-identified regression corpora |
submission/ |
the entry file for the plugin-market listing (not part of the package) |
Machine-specific values — endpoints, keys, which channels actually work on your machine — live in
local.json outside the package (default %LOCALAPPDATA%\dsh-fact-check\local.json on Windows,
~/.config/dsh-fact-check/local.json elsewhere; override with JEV_LOCAL_CONFIG), so a package update
cannot wipe them. The template ships as tools/local.example.json.
No host path, endpoint or key is hard-coded in the code or the data tables, and tools/*.mjs carry
assertions that fail if one ever appears.
Issues and pull requests are welcome — see CONTRIBUTING.md. Two rules are
load-bearing: the skill body is the single source of truth (never hand-edit a generated file such as
INSTRUCTIONS.md), and any change to the judgement layer or the routing tables must be accompanied by
re-run regressions and updated numbers in MEASUREMENTS.md.
CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: deepseek-harness、deepseek-harness-plugin。