Skip to content

About

Claude plugin and chat Skill for source-traceable metes-and-bounds deed review, backed by deterministic parsing, closure checks, plots and verified exports. AI assists only where needed.

Topics

Resources

Contributing

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

MetesParser

A Claude plugin for reviewing metes-and-bounds descriptions, backed by deterministic parsing, geometry, verification and export tools.

Use it to locate a boundary description in a deed, inspect its calls, check closure, create a plot, compare versions and prepare review deliverables. The same Python engine is available through a CLI and independently installable packages.

Get the plugin · Chat Skill installation · Skill catalog · Usage guide · Changelog

Proof of concept (POC). MetesParser explores source-traceable boundary review with Claude and deterministic tools. Review source readings and results before relying on them.

Deterministic code first

Use deterministic code wherever possible, and AI only where needed. Claude assists with reading documents, identifying the requested description and coordinating the requested workflow. Shared Python code parses calls, computes geometry, checks evidence and validates exports.

AI-prepared text and selections retain their source pages, exact spans and unresolved readings. Deterministic checks then validate structure, identities, geometry and artifact consistency. They can expose inconsistencies; they cannot prove that an AI reading faithfully captured the document. Source review remains a separate step.

Document → AI reading/selection when needed → retained text and source evidence
                                                    ↓
Prepared text or calls ────────────────────→ deterministic parsing and checks
                                                    ↓
                                          review, plots and exports

Missing bearings stay unknown. Original deed wording is preserved. Hypothetical edits remain separate from recorded calls, and no workflow changes a value simply to make a boundary close.

What you can ask Claude to do

Request Result
“Review the boundary description in this deed.” Selected description, source coverage, structured calls, deterministic checks and an audit report
“Plot these calls.” An offline plot with source references and unresolved geometry identified
“Compare these two descriptions.” Explicit line/arc comparisons and tentative structural differences
“Show a dashboard for these tracts.” An explicitly assembled offline review dashboard with independent tract outcomes
“Save this alternative and export the selected revision.” An immutable revision and requested SVG, PDF, DXF or GeoJSON deliverables
“Register this scan using these controls.” Retained image/control evidence and separate fit/checkpoint residuals
“Construct this corridor” or “derive this supplied PLSS reference.” Advisory geometry from explicit construction inputs or an identified reference dataset

The plugin has ten capabilities, two workflows and the review-deed compatibility alias. Skills reuse valid artifacts and stop at the requested deliverable. A plot request does not automatically create a dashboard, verify a traverse or place it on a map. See the catalog for exact scope and examples.

Skills, Cowork and Claude Code

Skills can contain instructions, references and executable code. Our plugin packages those skills with one shared deterministic engine. Cowork adds convenient project-file access and task coordination; the calculations do not depend on Cowork. Claude Code is another host for the same plugin.

Claude chat supports skill scripts in its code-execution environment. The standalone chat Skill ZIP reuses the same engine and returns downloadable results, without requiring Cowork. Native chat testing is pending. Individual plugin skill folders are not standalone installations. See the chat functionality gaps and two-distribution design. For a side-by-side view of the Cowork plugin, Claude Code plugin, chat Skill and CLI, with limitations, see Cowork, Claude Code, chat Skill and CLI compared.

Install the standalone Claude chat Skill

Download metesparser-chat-skill.zip and metesparser-chat-skill.zip.sha256 from GitHub Releases (v0.7.0 and later), or run make chat-skill-build in a source checkout to create them under dist/. Verify the checksum, then upload the ZIP through Customize → Skills and enable code execution. The archive contains one discoverable metesparser-review skill with thirteen embedded procedures and one shared engine.

The skill's explicit setup command checks the chat runtime and can install a pinned, hash-checked uv in its writable cache before provisioning locked dependencies. It requires Python 3.11+ and first-use network access unless tools and dependencies are already cached. It does not rely on laptop installations. See the chat installation guide and build profiles.

Install the Claude plugin

The launcher requires Python 3.11+ and uv in the environment where Claude runs commands. First use provisions pinned dependencies in the local cache and requires network access unless they are already cached.

  1. Download metesparser-plugin.zip and metesparser-plugin.zip.sha256 from GitHub Releases.

  2. Verify the archive from the directory containing both files:

    shasum -a 256 -c metesparser-plugin.zip.sha256
  3. Load it in your client:

    • Claude Code: extract the archive, then run claude --plugin-dir /absolute/path/to/extracted-plugin.
    • Claude Cowork: upload the ZIP through Customize → Plugins. End-to-end host testing is pending.
  4. Supply a document or prepared calls and ask for the specific result you need.

Release status: the latest release is v0.7.1 (plugin 2.0.1); see CHANGELOG.md. Behaviour listed under [Unreleased] is only in a source checkout until the next release.

Use the built distribution: plugins/metesparser/ in a source checkout does not contain its bundled runtime. The standard ZIP includes geographic preparation and delivery dependencies. Online raster reprojection uses the optional web-map profile. See installation and build profiles and project settings.

For example:

Plot the requested tract in this deed. Preserve missing or uncertain readings and show any unresolved geometry.

Native document reading must be available in the current Claude session. The plugin reports unavailable or unreadable sources rather than silently substituting a provider.

Outputs and verification

Depending on the requested task, outputs include:

  • Source acquisition and selection records with page coverage, byte identities and uncertainty.
  • Structured calls, check outcomes and an escaped HTML review report.
  • Standalone plots, dashboards and their retained inputs and manifests.
  • Exact draft inputs, published revisions and explicit current/last-valid geometry.
  • Review packages with selected layers, transforms, units, provenance and format omissions.

The deterministic metes-review commands report these top-level statuses:

Status Exit code Meaning
checks_passed 0 Applicable implemented canonical checks passed; source accuracy is a separate assessment
needs_review 1 Review is needed, or an advisory operation completed; successful plots and comparisons also use this status
error 2 Invalid input, configuration or processing failure

Verified CSV export:

  • Schema: 22 ordered fields; curve_type is the last column. Legacy 21-field CSVs still import.
  • Gate: the exporter freshly checks the selected calls: closure below 0.01 ft, eligible canonical outcomes and no warnings. Closure alone is insufficient.
  • Advisory outputs: plots, comparisons, scenarios, corridors, PLSS references and map views cannot grant verified-export eligibility.
  • Tract roles (main (parcel), addition, exception, easement): a deed with more than one description is eligible only when every role comes from an explicit heading. Easement and exception tracts are never eligible, and text review asks for one parcel per review. See description roles and verified export.

The 22-field CSV and the role policy arrived in v0.7.0; the v0.6.0 release ZIP predates them (see the changelog).

Read the artifact handoff contract for file shapes, reuse and invalidation, and the review limits for supported checks.

Maps and derived geometry

Map evidence requires explicit units, coordinate systems and placement evidence. Raster registration does not locate a deed, and a good fit residual does not establish independent accuracy. PLSS geometry requires an identified supplied reference; a recital alone cannot supply missing section corners.

Optional Mapbox viewing supports a local viewer and a requested vector MCP preview. The local viewer accepts a token only in its runtime Connect field; tokens do not belong in configuration or generated artifacts. See the online-map guide for dependencies, geographic prerequisites and separate provider acceptance checks.

Use the Python engine or CLI

The CLI is useful for automation, prepared inputs and testing without a Claude session. Deterministic review commands need no LLM API key. The separate PDF extraction pipeline can call OpenAI, Gemini, or OpenRouter.

Set up a source checkout

Install Python 3.11+, uv, Git and Make, then:

git clone https://github.com/domfahey/metesParser.git
cd metesParser
make dev-setup
make review-corpus

make dev-setup installs dependencies and creates .env from the sample when absent. make review-corpus runs the reviewed deterministic fixtures without OCR or provider calls. It prints one JSON document; check that its top-level "status" is "passed" (with "failed": 0).

Review prepared input

Use an already selected UTF-8 description or identified JSON/CSV calls. These are independent examples; supply the named inputs and use a new output directory each time:

uv run metes-review review description.txt --output-dir output/review-new
uv run metes-review verify calls.json --output-dir output/verification-new
uv run metes-review plot calls.json --output-dir output/plot-new

Each command prints JSON; check its status (checks_passed, needs_review or error, as in the table above) and the listed artifacts. Advisory success uses exit 1, so do not chain these commands with &&. Whole-document text needs description selection before parsing. The usage guide covers revision, delivery, comparison and resume commands.

Extract and process PDFs with the metesparser CLI

Set METESPARSER_LLM_PROVIDER and the corresponding OPENAI_API_KEY, GEMINI_API_KEY, or OPENROUTER_API_KEY in your local .env, then:

uv run metesparser extract deed.pdf
# Select provider, write .audit.json/.audit.html sidecars, or disable cache:
uv run metesparser extract deed.pdf --llm-provider gemini --audit
uv run metesparser extract deed.pdf --llm-provider openrouter --no-cache
# Blind high-DPI OCR escalation and primary-OCR flags (Stage 3 skip is default; --no-skip-llm-normalize opts in):
uv run metesparser extract deed.pdf --escalate-policy closure_failed --escalate-provider openrouter --escalate-dpi 300
uv run metesparser extract deed.pdf --triage-primary-pages
uv run metesparser extract deed.pdf --no-skip-llm-normalize

# Deterministic verification, export, batching, and run comparison:
uv run metesparser verify deed.csv --area 7500
uv run metesparser export deed.csv --format geojson -o deed.geojson
uv run metesparser export deed.csv --format review-handoff -o deed.review-handoff.json
uv run metesparser batch deeds/ -o output/batch/ --audit
uv run metesparser compare-runs --pdf deed

Provider extraction remains subject to source review and deterministic checks. Never commit credentials. The architecture guide and API reference document the Python Pipeline API and its compatibility layer.

Architecture

The plugin (plugins/metesparser/) and standalone chat Skill (plugins/metesparser-chat/) supply instructions and workflow routing. Seven mp-* packages under packages/ (models, bearing, parse, verify, export, review and ocr) own the schemas, computations and artifact contracts, and src/metesparser/ provides the orchestrator, CLI and compatibility facades (models.py retains the monolith Pydantic definitions bridged via package_bridge.py). mp-ocr is the only mp-* package that calls LLMs; the rest are deterministic.

See architecture and data flow for package dependencies and module ownership.

Develop and contribute

Use uv for dependencies and Ruff for linting/formatting. Keep schema, math and rendering logic in their owning packages; keep monolith models.py synchronized with mp-models via package_bridge.py.

make quality          # Non-mutating lint and format checks across workspace, scripts, and plugins
make type             # mypy across src/metesparser, packages/*/src, scripts, and plugins/*/scripts
make test             # Root tests with 95% coverage floor on src/metesparser
make test-packages-cov # Package tests with 95% aggregate and per-package floor (requires Node.js)
make test-plugin      # Claude plugin test suite
make ci               # Full CI lane: lockfile, quality, type, coverage, plugin, review-corpus
make check            # Root lint, mutating format, type, and root tests
make pre-commit       # MUTATING (lint-fix, format, tests); run only on a clean tree, else use make quality && make test
make plugin-build     # Build dist/metesparser-plugin.zip and its SHA-256 sidecar
make chat-skill-build # Build dist/metesparser-chat-skill.zip and its SHA-256 sidecar

Package/plugin tests, browser checks and native/provider acceptance are separate lanes. Use the testing guide for commands and prerequisites, and the contribution guide for changes and pull requests. Repository-specific agent instructions live in AGENTS.md; CLAUDE.md is its symlink.

Keep only publicly available source data in the repository. Do not commit credentials, non-public sensitive information or newly generated unverified CSVs. Preserve source wording and uncertainty rather than inventing missing data.

Documentation

Known limitations

  • Proof of concept: review source readings and results before relying on them.
  • Native Claude/Cowork host acceptance and live Mapbox acceptance have not been run; local runtime checks do not establish them.
  • The description-role policy blocks verified export for a deed with more than one description when any role is inferred. See description roles and verified export.
  • The detailed list is in docs/bugs.md.

License

Copyright (C) 2025–2026 Dominic Fahey.

MetesParser is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License, version 3 only (AGPL-3.0-only). It is distributed without any warranty. If you modify MetesParser and let others use it over a network, the AGPL requires you to offer them the complete source of your version.

Commercial licenses. Organizations that cannot meet the AGPL's terms, for example to include MetesParser in closed-source software or services, can obtain a commercial license from the copyright holder. Contact Dominic Fahey.

Name. As an additional term under section 7(e) of the AGPL, the license grants no rights to use the MetesParser name to identify a modified version or to suggest endorsement.

Contributions are accepted under the terms in CONTRIBUTING.md.

About

Claude plugin and chat Skill for source-traceable metes-and-bounds deed review, backed by deterministic parsing, closure checks, plots and verified exports. AI assists only where needed.

Topics

Resources

Contributing

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages