deep-cite
Purpose
Runs a transparent source-first research workflow: fetch URLs, extract candidate claims, and build citation-ready markdown outputs.
Runbook
- Prepare a
sources.txtfile listing one URL per line. - Set
SOURCE_DIRandOUTPUT_DIRenvironment variables; create them if absent. - Run
scripts/fetch-sources.sh sources.txtto download each source intoSOURCE_DIR/. - Run
scripts/extract-claims.shto parse each downloaded file and emitclaims.json. - Review
claims.jsonand remove any false positives before proceeding. - Run
scripts/cite.sh claims.jsonto produce:OUTPUT_DIR/citations.mdwith a numbered bibliographyOUTPUT_DIR/claims-annotated.mdwith inline[N]reference markers
- Print a summary: N sources processed, M claims extracted, P citations generated.
Stop conditions
- Abort if
SOURCE_DIRorOUTPUT_DIRis unset. - Abort if every URL fetch fails; individual 4xx/5xx responses should be logged and skipped.
- Never overwrite
OUTPUT_DIRcitation files withoutFORCE=1. - Abort if
claims.jsoncannot be written.
Output format
{
"sources_fetched": 5,
"claims_extracted": 23,
"citations_generated": 5,
"output_dir": "/path/to/output"
}
Example invocations
SOURCE_DIR=./sources OUTPUT_DIR=./output skills/deep-cite/scripts/run.sh sources.txtMOCK_MODE=1 skills/deep-cite/scripts/fetch-sources.sh sources.txt- "Run deep-cite on these 3 URLs and produce a citations.md file."