reconcile-extraction
Skill2 starsChanged 24 days agoMITView on GitHub
Check that a scan, scrape or aggregator pull is complete and in the right unit by reconciling what the parser produced against a number the source states about itself, instead of trusting the parser's own row count.
In this repository57 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- llms.txtllms.txt
- advisorSkill
- agent-dispatchSkill
- arenaSkill
- audit-pypi-model-packageSkill
- branching-workflowSkill
- code-reviewSkill
- criticSkill
- cron-child-oauth-auditSkill
- daily-forestSkill
- deep-researchSkill
- diagnose-cron-timeoutSkill
- dreamingSkill
- eod-summarySkill
- filingSkill
- forest-synthesisSkill
- goalsSkill
- graph-hygieneSkill
- ideaSkill
- inline-tagsSkill
- intel-analyzerSkill
- longformSkill
- loop-experimentSkill
- loop-librarySkill
- meta-memory-reviewSkill
- office-hoursSkill
- open-loopsSkill
- plan-ceo-reviewSkill
- plan-design-reviewSkill
- prdSkill
- progressive-disclosureSkill
- reality-feedback-createSkill
- reality-review-weeklySkill
- recallSkill
- redactSkill
- repo-auditSkill
- research-digestSkill
- review-gateSkill
- run-long-job-detachedSkill
- saveSkill
- scopeSkill
- self-auditSkill
- shadow-test-local-classifierSkill
- signal-scorerSkill
- skill-auditSkill
- skill-chainingSkill
- spawn-agent-in-tenantSkill
- spawn-tenantSkill
- split-log-rows-by-session-kindSkill
- subagent-delegationSkill
- telegram-dump-routerSkill
- telegram-reply-toolSkill
- verify-stackSkill
- wave-planSkill
- weekly-retroSkill
The file
We split this skill into the rules it gives an agent
3 rules. About 0 are common, 3 are distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈3
Distinctive · estimate
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 23
Fix the parser or the conversion and re-run: Every group has to reconcile to the control: exactly for counts.
- Distinctive: line 29
Check the control's date. A cached count can lag the data by a day.
- Distinctive: line 30
Never close on "close enough" without naming the residual and its cause.
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Reconcile an extraction against a control total
Use when a parser, scraper or API pull has produced a number or a table and someone is about to build on it. The parser's own row count only says how many rows matched its pattern. A control total from outside the parser says how many rows exist.
Two cases with the same shape (numbers are illustrative):
- A careers-page scan matched only UUID-style posting ids and read 576 of the 847 roles the site listed. Every posting from one job-board platform used numeric ids, so all of them were dropped, including every role at several companies.
- An aggregator endpoint named a field
peggedEURbut returned its USD value. One coin read 21.5M EUR when the issuer's own figure was 3.4B EUR, and most of the "sources disagree by 10 to 15 percent" gaps turned out to be that unit error.
In both, the output looked fine until something independent was compared with it.
Steps
- Name the extraction and its control. A control is a number the source states about itself that the parser did not produce: a per-company or per-board count on the page, a total banner, an API
totalfield, an issuer's published supply, a filer's stated total. If the source states none, say so and downgrade the claim from "scan" to "sample". - Count what the parser produced, grouped the way the control is grouped (per company, board, chain, currency), not only overall. A matching grand total can hide offsetting gaps, and a per-group table points at the missing group first.
- Diff per group, parsed against stated. A group with 0 parsed and a nonzero stated count is a format miss (id shape, pagination, a platform-specific selector). A group off by a steady ratio is a unit or basis miss (value against native units, circulating against total supply).
- Diagnose the cheapest cause first. For a count gap, list the raw ids or links of one missing group and compare their shape with the parser's pattern. For a value gap, take one item and compare it with the primary figure for that item, naming the unit and the basis on both sides.
- Fix the parser or the conversion and re-run. Every group has to reconcile to the control: exactly for counts; for values, within a named tolerance with a stated reason for any residual (timing, rounding).
- Put the coverage in the output. Print "parsed N of stated M, groups reconciled k of g" at the top of the result and keep the per-group table in the run folder, so the next reader sees how complete it is.
Caveats
- A control from the same system that feeds the parser (same API, same cache) is not independent. Prefer the page's rendered count or the primary document.
- Check the control's date. A cached count can lag the data by a day.
- Never close on "close enough" without naming the residual and its cause.
- A field name that suggests a unit (
peggedEUR,supply,value) is unverified until one item has been checked against its primary source. - Basis words (circulating, total, active) belong in a glossary entry once they have been misread once:
knowledge/glossary.example.md.
Tools and output
Tools: HTTP fetch of the page or API, a short Python or jq grouping step, one spot check against the primary document. Output: a three-line coverage header, a per-group diff table, and a one-line note on the fix.
Related but different: skills-shared/test-before-bulk/SKILL.md tests a write on a few rows before a bulk run; this skill tests an extraction's completeness and units.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

