@kinloom/cli 0.1.0 → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (102) hide show
  1. package/dist/assets/cached-ocr.py +556 -0
  2. package/dist/assets/ocr.md +52 -0
  3. package/dist/assets/prep-scan.md +59 -0
  4. package/dist/assets/prep-scan.py +891 -0
  5. package/dist/bundled-skills/acpl-persi/SKILL.md +94 -0
  6. package/dist/bundled-skills/acpl-persi/scripts/persi +268 -0
  7. package/dist/bundled-skills/archive-org/SKILL.md +129 -0
  8. package/dist/bundled-skills/archive-org/scripts/archive-org +879 -0
  9. package/dist/bundled-skills/blm-glo/SKILL.md +54 -0
  10. package/dist/bundled-skills/california-archives/SKILL.md +120 -0
  11. package/dist/bundled-skills/california-archives/scripts/ca-archives +373 -0
  12. package/dist/bundled-skills/chronicling-america/SKILL.md +100 -0
  13. package/dist/bundled-skills/chronicling-america/scripts/chronam +250 -0
  14. package/dist/bundled-skills/cyndis-list/SKILL.md +53 -0
  15. package/dist/bundled-skills/findagrave/SKILL.md +116 -0
  16. package/dist/bundled-skills/findagrave/scripts/findagrave +520 -0
  17. package/dist/bundled-skills/hathitrust/SKILL.md +110 -0
  18. package/dist/bundled-skills/hathitrust/scripts/hathi +194 -0
  19. package/dist/bundled-skills/kentucky-archives/SKILL.md +123 -0
  20. package/dist/bundled-skills/kentucky-archives/scripts/ky-archives +358 -0
  21. package/dist/bundled-skills/library-of-michigan/SKILL.md +111 -0
  22. package/dist/bundled-skills/library-of-michigan/scripts/michiganology +346 -0
  23. package/dist/bundled-skills/missouri-archives/SKILL.md +100 -0
  24. package/dist/bundled-skills/missouri-archives/scripts/mo-archives +528 -0
  25. package/dist/bundled-skills/nara-catalog-search/SKILL.md +118 -0
  26. package/dist/bundled-skills/nara-catalog-search/scripts/nara +934 -0
  27. package/dist/bundled-skills/narrative-audio/SKILL.md +103 -0
  28. package/dist/bundled-skills/narrative-audio/references/script-rules.md +109 -0
  29. package/dist/bundled-skills/narrative-audio/scripts/narrative-audio +290 -0
  30. package/dist/bundled-skills/new-jersey-archives/SKILL.md +118 -0
  31. package/dist/bundled-skills/new-jersey-archives/scripts/nj-archives +585 -0
  32. package/dist/bundled-skills/openarchieven/SKILL.md +90 -0
  33. package/dist/bundled-skills/openarchieven/scripts/openarchieven +432 -0
  34. package/dist/bundled-skills/texas-archives/SKILL.md +93 -0
  35. package/dist/bundled-skills/texas-archives/scripts/texas-archives +441 -0
  36. package/dist/bundled-skills/uk-archives/SKILL.md +101 -0
  37. package/dist/bundled-skills/uk-archives/scripts/uk-archives +391 -0
  38. package/dist/bundled-skills/usgs-gnis/SKILL.md +89 -0
  39. package/dist/bundled-skills/usgs-gnis/scripts/gnis +254 -0
  40. package/dist/bundled-skills/virginia-archives/SKILL.md +104 -0
  41. package/dist/bundled-skills/virginia-archives/scripts/va-archives +466 -0
  42. package/dist/bundled-skills/wikitree/SKILL.md +148 -0
  43. package/dist/bundled-skills/wikitree/scripts/wikitree +219 -0
  44. package/dist/cli.d.ts +1 -1
  45. package/dist/cli.d.ts.map +1 -1
  46. package/dist/cli.js +383 -26
  47. package/dist/cli.js.map +1 -1
  48. package/dist/client.js +1 -1
  49. package/dist/commands/init.js +3 -3
  50. package/dist/commands/ops/audit.d.ts +138 -0
  51. package/dist/commands/ops/audit.d.ts.map +1 -0
  52. package/dist/commands/ops/audit.js +867 -0
  53. package/dist/commands/ops/audit.js.map +1 -0
  54. package/dist/commands/ops/context.d.ts +100 -0
  55. package/dist/commands/ops/context.d.ts.map +1 -0
  56. package/dist/commands/ops/context.js +917 -0
  57. package/dist/commands/ops/context.js.map +1 -0
  58. package/dist/commands/ops/help.d.ts +6 -0
  59. package/dist/commands/ops/help.d.ts.map +1 -0
  60. package/dist/commands/ops/help.js +74 -0
  61. package/dist/commands/ops/help.js.map +1 -0
  62. package/dist/commands/ops/index.d.ts +6 -0
  63. package/dist/commands/ops/index.d.ts.map +1 -0
  64. package/dist/commands/ops/index.js +6 -0
  65. package/dist/commands/ops/index.js.map +1 -0
  66. package/dist/commands/ops/integrate.d.ts +56 -0
  67. package/dist/commands/ops/integrate.d.ts.map +1 -0
  68. package/dist/commands/ops/integrate.js +872 -0
  69. package/dist/commands/ops/integrate.js.map +1 -0
  70. package/dist/commands/ops/sync.d.ts +177 -0
  71. package/dist/commands/ops/sync.d.ts.map +1 -0
  72. package/dist/commands/ops/sync.js +1078 -0
  73. package/dist/commands/ops/sync.js.map +1 -0
  74. package/dist/commands/ops/telemetry.d.ts +79 -0
  75. package/dist/commands/ops/telemetry.d.ts.map +1 -0
  76. package/dist/commands/ops/telemetry.js +249 -0
  77. package/dist/commands/ops/telemetry.js.map +1 -0
  78. package/dist/commands/records/help.d.ts +18 -0
  79. package/dist/commands/records/help.d.ts.map +1 -0
  80. package/dist/commands/records/help.js +174 -0
  81. package/dist/commands/records/help.js.map +1 -0
  82. package/dist/commands/records/index.d.ts +5 -0
  83. package/dist/commands/records/index.d.ts.map +1 -0
  84. package/dist/commands/records/index.js +5 -0
  85. package/dist/commands/records/index.js.map +1 -0
  86. package/dist/commands/records/registry.d.ts +32 -0
  87. package/dist/commands/records/registry.d.ts.map +1 -0
  88. package/dist/commands/records/registry.js +227 -0
  89. package/dist/commands/records/registry.js.map +1 -0
  90. package/dist/commands/records/resolve.d.ts +14 -0
  91. package/dist/commands/records/resolve.d.ts.map +1 -0
  92. package/dist/commands/records/resolve.js +61 -0
  93. package/dist/commands/records/resolve.js.map +1 -0
  94. package/dist/commands/records/runner.d.ts +25 -0
  95. package/dist/commands/records/runner.d.ts.map +1 -0
  96. package/dist/commands/records/runner.js +224 -0
  97. package/dist/commands/records/runner.js.map +1 -0
  98. package/dist/index.d.ts +2 -0
  99. package/dist/index.d.ts.map +1 -1
  100. package/dist/index.js +2 -0
  101. package/dist/index.js.map +1 -1
  102. package/package.json +3 -3
@@ -0,0 +1,254 @@
1
+ #!/usr/bin/env -S uv run --script
2
+ # /// script
3
+ # requires-python = ">=3.11"
4
+ # dependencies = [
5
+ # "click>=8.1",
6
+ # "httpx>=0.27",
7
+ # ]
8
+ # ///
9
+ """Search USGS GNIS geographic names from the official staged-products downloads.
10
+
11
+ There is no documented public GNIS search API: the GNIS Domestic Names
12
+ Search web app is a JavaScript app backed by authenticated services.
13
+ This CLI downloads the USGS per-state pipe-delimited text files
14
+ (prd-tnm.s3.amazonaws.com) once, caches them, and searches locally.
15
+ """
16
+
17
+ from __future__ import annotations
18
+
19
+ import json
20
+ import os
21
+ import sys
22
+ import zipfile
23
+ from io import BytesIO
24
+ from pathlib import Path
25
+
26
+ import click
27
+ import httpx
28
+
29
+ S3_BASE = "https://prd-tnm.s3.amazonaws.com/StagedProducts/GeographicNames"
30
+ SEARCH_APP = "https://edits.nationalmap.gov/apps/gaz-domestic/public/search/names"
31
+ HEADERS = {"User-Agent": "kinloom/1.0 (genealogy research)"}
32
+ TIMEOUT = 120.0
33
+
34
+ STATE_CODES = {
35
+ "AK", "AL", "AR", "AS", "AZ", "CA", "CO", "CT", "DC", "DE", "FL", "GA",
36
+ "GU", "HI", "IA", "ID", "IL", "IN", "KS", "KY", "LA", "MA", "MD", "ME",
37
+ "MI", "MN", "MO", "MP", "MS", "MT", "NC", "ND", "NE", "NH", "NJ", "NM",
38
+ "NV", "NY", "OH", "OK", "OR", "PA", "PR", "RI", "SC", "SD", "TN", "TX",
39
+ "UT", "VA", "VI", "VT", "WA", "WI", "WV", "WY",
40
+ }
41
+
42
+
43
+ def cache_dir() -> Path:
44
+ override = os.environ.get("GNIS_CACHE_DIR")
45
+ if override:
46
+ return Path(override).expanduser()
47
+ return Path.home() / ".cache" / "kinloom-gnis"
48
+
49
+
50
+ def _state_zip_url(state: str) -> str:
51
+ return f"{S3_BASE}/DomesticNames/DomesticNames_{state}_Text.zip"
52
+
53
+
54
+ def _historical_zip_url() -> str:
55
+ return f"{S3_BASE}/Topical/HistoricalFeatures_National_Text.zip"
56
+
57
+
58
+ def _download_zip(url: str) -> bytes:
59
+ with httpx.Client(headers=HEADERS, timeout=TIMEOUT, follow_redirects=True) as client:
60
+ resp = client.get(url)
61
+ resp.raise_for_status()
62
+ return resp.content
63
+
64
+
65
+ def _extract_txt(zip_bytes: bytes) -> tuple[str, str]:
66
+ zf = zipfile.ZipFile(BytesIO(zip_bytes))
67
+ txt_names = [n for n in zf.namelist() if n.lower().endswith(".txt")]
68
+ if not txt_names:
69
+ raise click.ClickException(f"No .txt member in downloaded zip (members: {zf.namelist()})")
70
+ name = txt_names[0]
71
+ return name, zf.read(name).decode("utf-8-sig")
72
+
73
+
74
+ def _load_rows(path: Path) -> list[dict]:
75
+ lines = path.read_text(encoding="utf-8-sig").splitlines()
76
+ if not lines:
77
+ return []
78
+ header = [h.strip() for h in lines[0].split("|")]
79
+ rows = []
80
+ for line in lines[1:]:
81
+ if not line.strip():
82
+ continue
83
+ fields = line.split("|")
84
+ fields += [""] * (len(header) - len(fields))
85
+ rows.append(dict(zip(header, fields)))
86
+ return rows
87
+
88
+
89
+ def _ensure_state_file(state: str) -> Path:
90
+ state = state.upper()
91
+ if state not in STATE_CODES:
92
+ raise click.ClickException(f"Unknown state/territory code: {state}")
93
+ cdir = cache_dir()
94
+ cdir.mkdir(parents=True, exist_ok=True)
95
+ path = cdir / f"{state}.txt"
96
+ if path.exists():
97
+ return path
98
+ click.echo(f"Downloading GNIS data for {state} ...", err=True)
99
+ _, text = _extract_txt(_download_zip(_state_zip_url(state)))
100
+ path.write_text(text, encoding="utf-8")
101
+ click.echo(f"Cached {path} ({len(text.splitlines()) - 1} features)", err=True)
102
+ return path
103
+
104
+
105
+ def _ensure_historical_file() -> Path:
106
+ cdir = cache_dir()
107
+ cdir.mkdir(parents=True, exist_ok=True)
108
+ path = cdir / "HistoricalFeatures.txt"
109
+ if path.exists():
110
+ return path
111
+ click.echo("Downloading national Historical Features file (large) ...", err=True)
112
+ _, text = _extract_txt(_download_zip(_historical_zip_url()))
113
+ path.write_text(text, encoding="utf-8")
114
+ click.echo(f"Cached {path} ({len(text.splitlines()) - 1} features)", err=True)
115
+ return path
116
+
117
+
118
+ def _compact(row: dict) -> dict:
119
+ return {
120
+ "feature_id": row.get("feature_id"),
121
+ "feature_name": row.get("feature_name"),
122
+ "feature_class": row.get("feature_class"),
123
+ "state": row.get("state_name"),
124
+ "county": row.get("county_name"),
125
+ "map_name": row.get("map_name"),
126
+ "latitude": row.get("prim_lat_dec"),
127
+ "longitude": row.get("prim_long_dec"),
128
+ "date_created": row.get("date_created"),
129
+ "date_edited": row.get("date_edited"),
130
+ }
131
+
132
+
133
+ def _match(rows: list[dict], name: str, exact: bool, feature_class: str | None,
134
+ county: str | None) -> list[dict]:
135
+ needle = name.lower()
136
+ out = []
137
+ for row in rows:
138
+ fname = (row.get("feature_name") or "").lower()
139
+ if exact:
140
+ if fname != needle:
141
+ continue
142
+ elif needle not in fname:
143
+ continue
144
+ if feature_class and (row.get("feature_class") or "").lower() != feature_class.lower():
145
+ continue
146
+ if county and county.lower() not in (row.get("county_name") or "").lower():
147
+ continue
148
+ out.append(row)
149
+ return out
150
+
151
+
152
+ @click.group()
153
+ def cli() -> None:
154
+ """Search USGS GNIS geographic names (cached state downloads)."""
155
+
156
+
157
+ @cli.command()
158
+ @click.argument("state")
159
+ @click.option("--force", is_flag=True, help="Re-download even if cached.")
160
+ def download(state, force):
161
+ """Download and cache the GNIS text file for a state (e.g. MI, CA, MO)."""
162
+ state = state.upper()
163
+ if state not in STATE_CODES:
164
+ raise click.ClickException(f"Unknown state/territory code: {state}")
165
+ path = cache_dir() / f"{state}.txt"
166
+ if path.exists() and not force:
167
+ rows = _load_rows(path)
168
+ click.echo(f"Already cached: {path} ({len(rows)} features). Use --force to re-download.")
169
+ return
170
+ path = _ensure_state_file(state) if not force else None
171
+ if force:
172
+ cdir = cache_dir()
173
+ cdir.mkdir(parents=True, exist_ok=True)
174
+ _, text = _extract_txt(_download_zip(_state_zip_url(state)))
175
+ path = cdir / f"{state}.txt"
176
+ path.write_text(text, encoding="utf-8")
177
+ click.echo(f"Cached {path} ({len(text.splitlines()) - 1} features)")
178
+ return
179
+ rows = _load_rows(path)
180
+ click.echo(f"Cached {path} ({len(rows)} features)")
181
+
182
+
183
+ @cli.command()
184
+ @click.argument("name")
185
+ @click.option("--state", "-s", default=None,
186
+ help="State code to search (downloads and caches the state file if needed).")
187
+ @click.option("--exact", is_flag=True, help="Match the full feature name, not a substring.")
188
+ @click.option("--class", "feature_class", default=None, help="Filter by feature class, e.g. 'Populated Place'.")
189
+ @click.option("--county", default=None, help="Filter by county name (substring).")
190
+ @click.option("--historical", is_flag=True,
191
+ help="Search the national Historical Features file instead of a state file (defunct places, post offices).")
192
+ @click.option("--limit", "-n", default=20, show_default=True)
193
+ @click.option("--json", "as_json", is_flag=True, help="Emit JSON instead of compact text.")
194
+ def search(name, state, exact, feature_class, county, historical, limit, as_json):
195
+ """Search feature names (substring unless --exact)."""
196
+ if historical:
197
+ rows = _load_rows(_ensure_historical_file())
198
+ source = "HistoricalFeatures (national)"
199
+ else:
200
+ if not state:
201
+ raise click.UsageError("Give --state (e.g. --state CA) or --historical.")
202
+ rows = _load_rows(_ensure_state_file(state))
203
+ source = f"DomesticNames_{state.upper()}"
204
+ matches = _match(rows, name, exact, feature_class, county)[:limit]
205
+ if as_json:
206
+ click.echo(json.dumps(
207
+ {"source": source, "matches": len(matches),
208
+ "results": [_compact(r) for r in matches]}, indent=2, ensure_ascii=False))
209
+ return
210
+ click.echo(f"source: {source} | matches shown: {len(matches)}")
211
+ for row in matches:
212
+ c = _compact(row)
213
+ click.echo(f"- {c['feature_id']} | {c['feature_name']} ({c['feature_class']}) | "
214
+ f"{c['county']} County, {c['state']} | {c['latitude']}, {c['longitude']} | map: {c['map_name']}")
215
+
216
+
217
+ @cli.command()
218
+ @click.argument("feature_id")
219
+ @click.option("--state", "-s", default=None, help="State code (downloads and caches if needed).")
220
+ @click.option("--historical", is_flag=True, help="Look in the national Historical Features file.")
221
+ @click.option("--json", "as_json", is_flag=True)
222
+ def get(feature_id, state, historical, as_json):
223
+ """Show one feature by its GNIS feature_id."""
224
+ if historical:
225
+ rows = _load_rows(_ensure_historical_file())
226
+ else:
227
+ if not state:
228
+ raise click.UsageError("Give --state or --historical.")
229
+ rows = _load_rows(_ensure_state_file(state))
230
+ for row in rows:
231
+ if (row.get("feature_id") or "") == str(feature_id):
232
+ if as_json:
233
+ click.echo(json.dumps(row, indent=2, ensure_ascii=False))
234
+ else:
235
+ for key, value in row.items():
236
+ if value != "":
237
+ click.echo(f"{key}: {value}")
238
+ return
239
+ click.echo(f"Feature {feature_id} not found in the searched file.", err=True)
240
+ sys.exit(1)
241
+
242
+
243
+ @cli.command()
244
+ @click.argument("name", required=False)
245
+ def url(name):
246
+ """Print the GNIS Domestic Names Search web app URL (open in a browser)."""
247
+ click.echo(SEARCH_APP)
248
+ if name:
249
+ click.echo(f"(Enter {name!r} in the Feature Name field; the app has no stable "
250
+ "query-string search URL.)")
251
+
252
+
253
+ if __name__ == "__main__":
254
+ cli()
@@ -0,0 +1,104 @@
1
+ ---
2
+ name: virginia-archives
3
+ description: Research historical and genealogical records at the Library of Virginia via the bundled `va-archives` CLI: Chancery Records Index search, case detail, and scanned-page download, plus the public Primo catalog API. Also covers Virginia Chronicle newspapers, Land Office patents and grants, Virginia Untold, and ARVAS finding aids, with an honest note on which of those are browser-only. Use when tracing ancestors through Virginia, finding chancery causes, land patents, newspaper notices, or catalog records held by the Library of Virginia, or deciding whether a Virginia record is online, orderable, or visit-only.
4
+ ---
5
+
6
+ # Virginia Archives: Library of Virginia
7
+
8
+ Portal: https://www.lva.virginia.gov/collections
9
+ Digital collections: https://www.lva.virginia.gov/collections/digital-collections
10
+ Address: 800 East Broad Street, Richmond, Virginia 23219. Phone 804-692-3500.
11
+
12
+ The Library of Virginia is both the state library and the state archives. It holds more than 130 million items.
13
+
14
+ ## Bundled CLI (`scripts/va-archives`)
15
+
16
+ Path: `skills/virginia-archives/scripts/va-archives`
17
+
18
+ A standalone executable Python CLI with a PEP 723 `#!/usr/bin/env -S uv run --script` shebang and inline dependencies (`click`, `httpx`). No virtualenv setup, no API key, no account. Run it from the repo root, e.g. `skills/virginia-archives/scripts/va-archives chancery search Lincoln`.
19
+
20
+ The Library of Virginia exposes real machine interfaces, verified live on 2026-11-24 (see Verification log). The CLI uses plain HTTP for everything it does; no browser automation is bundled.
21
+
22
+ ### Chancery Records Index
23
+
24
+ ```bash
25
+ # Surname search (match defaults to Starts; 20 records per page)
26
+ skills/virginia-archives/scripts/va-archives chancery search Lincoln
27
+ skills/virginia-archives/scripts/va-archives chancery search Lincoln --locality "ROCKINGHAM CO" --year-from 1800 --year-to 1850
28
+ skills/virginia-archives/scripts/va-archives chancery search Lincoln --match Includes --pages 1-3 --json
29
+
30
+ # One cause by CFN, with its scanned-page list
31
+ skills/virginia-archives/scripts/va-archives chancery case <cfn> --images
32
+
33
+ # Download scanned pages (real PDFs) plus metadata.json; --zip for the whole-case ZIP
34
+ skills/virginia-archives/scripts/va-archives chancery download <cfn> --pages 1-5 --out ./downloads/va-chancery
35
+ skills/virginia-archives/scripts/va-archives chancery download <cfn> --zip
36
+
37
+ # Per-locality coverage: region, time frame, viewing status
38
+ skills/virginia-archives/scripts/va-archives chancery localities
39
+ skills/virginia-archives/scripts/va-archives chancery localities --status Scanned --json
40
+ ```
41
+
42
+ Search options mirror the index form exactly: `--surname2`, `--plaintiff-last` / `--plaintiff-first`, `--defendant-last` / `--defendant-first`, `--index-number`, `--local-case-number`, `--enslaved`, `--free`, `--plats`, `--match Exact|Starts|Includes`. Multiple surnames on one command are ORed (one search each; totals add).
43
+
44
+ A chancery cause (equity suit: estate divisions, disputed wills, guardianships, divorces, debt suits) can name three generations at once through depositions and exhibits, making it one of the highest-value Virginia genealogical sources. The index covers over 100 of the Commonwealth's 133 localities, with a focus on pre-1913 causes. Check `chancery localities` first: it shows per locality whether indexed data exists, whether images are digitized, and whether the locality is closed for processing.
45
+
46
+ ### Library catalog (Primo PNXS API)
47
+
48
+ ```bash
49
+ skills/virginia-archives/scripts/va-archives catalog Lincoln
50
+ skills/virginia-archives/scripts/va-archives catalog Lincoln --field title --limit 5 --offset 5 --json
51
+ ```
52
+
53
+ The catalog runs on Primo (`lva.primo.exlibrisgroup.com`). The CLI queries its public, key-free PNXS JSON API (`/primaws/rest/pub/pnxs?q=<field>,contains,<query>&vid=01LVA_INST:01LVA&scope=MyInstitution`). Verified fields are `any`, `title`, and `creator`. Each hit prints title, creator, date, type, and a fulldisplay record URL built from the PNXS recordid in the standard Primo pattern. Use it for books, government publications, archives and manuscript collections, Bible and church records, and select maps. Land Office patents and grants are also discoverable here by surname; see below for the dedicated index.
54
+
55
+ ### URL builders (no search run)
56
+
57
+ ```bash
58
+ skills/virginia-archives/scripts/va-archives url --chancery-case <cfn>
59
+ skills/virginia-archives/scripts/va-archives url --catalog Lincoln
60
+ skills/virginia-archives/scripts/va-archives url --chronicle --land --arvas
61
+ ```
62
+
63
+ ## What is searchable online
64
+
65
+ - **Chancery Records Index:** https://www.lva.virginia.gov/collections/chancery (search itself lives at https://old.lva.virginia.gov/chancery/). See CLI above. Individual case pages use the verified pattern `case_detail.asp?CFN=<locality-code>-<year>-<number>`.
66
+ - **Virginia Chronicle:** https://www.virginiachronicle.com. Free full-text searchable archive of Virginia newspapers, over 5 million pages (the Library's own 2026 update puts the count near 7 million pages and growing). Search by keyword, title, date, or place. No account required. Use it for obituaries, marriage notices, estate sale notices, and local news. **Browser-only:** Cloudflare returns "Just a moment..." to curl and to headless Chromium (verified 2026-11-24), and the site blocks all crawlers in robots.txt. No stable GET search URL was verified; use the Search box on the site. `url --chronicle` prints the home page only.
67
+ - **Land Office patents and grants.** The collection covers Virginia land patents 1623-1774 and land grants 1779-February 2000, including Northern Neck Proprietary grants 1690-1874, with survey plats and accompanying papers. Routes: the catalog CLI above (`catalog <surname>`), the libguide https://lva-virginia.libguides.com/land-grants, and the browse-by-volume index https://image.lva.virginia.gov/LONN/LO.html (Virginia Land Office Patents and Grants Index; search is a legacy Aleph form whose host, `lva1.hosted.exlibrisgroup.com`, was unreachable on 2026-11-24, so use the browser for the name search). Early Virginia land ownership is proved here rather than in county deed books alone.
68
+ - **Virginia Untold: the African American Narrative.** Digital access to records documenting enslaved and free Black and multiracial people. Reach it through the digital-collections page; no separate machine interface was verified.
69
+ - **Bible records, church records, cemetery records, maps, and photographs** are in the digital collections, searchable through the catalog CLI. Family Bible records are a named source for birth, death, and marriage dates.
70
+ - **ARVAS finding aids:** https://arvasarchive.org (linked from the Collections page). A consolidated database of manuscripts and archival material in historical societies, libraries, museums, and colleges across Virginia and West Virginia. Use it when the record you need is not at the Library itself. **Browser-only:** plain HTTP returns an empty 202 (verified 2026-11-24); no search API was verified.
71
+
72
+ ## What is in-person or subscription-only
73
+
74
+ - Original deed books, will books, and order books stay with the clerk of the circuit court in each county or independent city. The Library holds microfilm of many older volumes and the original volumes, loose papers, and microfilm for most localities. County records lost to courthouse fires and the April 1865 Richmond evacuation fire are a known gap; the Library keeps a Lost Records Localities list, so check it before concluding a record never existed.
75
+ - Birth and death registers 1853-1896 and marriage records before 1936 survive on microfilm. The Library partners with Ancestry.com for select digital collections (births, deaths, marriages, personal property tax records), freely accessible to Virginians in their homes. A non-Virginian uses the same collections through a personal Ancestry subscription or in the Richmond reading rooms.
76
+ - Subscription databases are available in the reading rooms; Virginia residents can reach many remotely after registering for a Library of Virginia account.
77
+
78
+ ## Research workflow
79
+
80
+ Worked order for tracing a family through Virginia (for example before a westward move into Kentucky or the Midwest):
81
+
82
+ 1. Search the Chancery Records Index by surname and locality (`va-archives chancery search <surname>`).
83
+ 2. Search Land Office patents and grants by surname (`va-archives catalog <surname>` plus the LONN index).
84
+ 3. Search Virginia Chronicle in a browser by surname and county for notices and obituaries.
85
+ 4. Search the catalog for Bible records, church registers, and manuscript collections.
86
+ 5. If the chancery index shows a cause without digitized images, record the index number and locality in `data/` and check `chancery localities` before requesting copies or visiting, since active processing can temporarily close a locality.
87
+
88
+ ## Verification log (verified live 2026-11-24)
89
+
90
+ - LVA Collections page, Digital Collections page, Chancery landing page, and Chancery information page: all 200 via plain curl.
91
+ - Chancery search POST to `old.lva.virginia.gov/chancery/default.asp`: 200 with 20 records per page and `intPage=N` pagination.
92
+ - Case detail GET `case_detail.asp?CFN=<cfn>`: 200, structured locality/index/plaintiff/defendant/surname/plat/format tables.
93
+ - Case images GET `case_images.asp?CFN=<cfn>`: 200, lists page PDFs under `/ChanceryImg/...` plus a whole-case ZIP link; both individual PDFs and ZIP archives download over plain HTTP.
94
+ - Primo PNXS GET (`q=any,contains,<term>` and `q=title,contains,<term>` with `limit` and `offset`): 200 JSON, no key or auth.
95
+ - Chancery availability GET `available.asp`: 200, locality table (locality, region, time frame, viewing status, notes).
96
+ - Virginia Chronicle: curl 403 with Cloudflare "Just a moment..."; headless Chromium also returns the challenge page. Browser-only.
97
+ - ARVAS: plain HTTP returns 202 with an empty body. Browser-only.
98
+ - LONN volume index `image.lva.virginia.gov/LONN/LO.html`: 200, browse-by-volume table; its Aleph name-search host was unreachable (connection failed).
99
+ - No account or API key is needed for anything the CLI does. Fees apply only to ordering copies, noted per collection above.
100
+
101
+ ## What this skill does not cover
102
+
103
+ - Other state archive repositories (see sibling skills such as `kentucky-archives`, `missouri-archives`, `new-jersey-archives`, `california-archives`, and `texas-archives`).
104
+ - Do not invent an API endpoint, a query-string search URL, or an auth requirement for Virginia Chronicle, ARVAS, Virginia Untold, or the Aleph Land Office search. Where no machine interface was verified, the skill says so and gives the click path instead.