Provider integration case file
Connect Layer
Integration diligence as structured, queryable specs
A Cursor plugin that runs OAuth diligence (cited ToS and pricing research, registration checklist, verification plan) before any integration code is written.
Project brief
PrototypeProblem
Agent tools become hard to trust when connectors expose inconsistent contracts and permissions.
Outcome
A Cursor plugin that runs the diligence phase of a third-party OAuth integration (cited Terms-of-Service and pricing research, a registration checklist, a verification plan) before any code is written. A Python ingest step folds the results into a schema-validated, queryable provider registry.
Evidence
- The project separates a declarative authoring layer (a Cursor slash command, five phase skills, and a sandboxed background research agent) from a data layer of three Python scripts, about 628 lines total, that ingest the resulting Markdown into a JSON-Schema-validated provider registry.
- The ingest function is the graph's clear hub, with a battery of regex parsers lifting prose tables into 19 required schema fields before validation.
- Confidence is tied to whether the required web-search tool actually ran, not to how findings read, a self-review caught a case where that rule was violated and logged a fix.
Key decisions
- Authoring layer: A slash command and five phase skills orchestrate intake, diligence, registration, and verification behind human checkpoints.
- Background research agent: Runs sandboxed with a tools allowlist; treats fetched web content as untrusted and never reads secrets or fabricates citations.
- Target project artifacts: Diligence findings are written as Markdown into the project being integrated, not into the plugin's own repo.
- Data layer: Three Python scripts parse, validate against a JSON Schema, and write a queryable per-provider spec registry.
Case file opened
Agent tools become hard to trust when connectors expose inconsistent contracts and permissions.
Diligence finishes before any OAuth integration code is written.
The record
How the registry gets built
The plugin separates a Cursor-side authoring pipeline that produces diligence artifacts from a Python data layer that parses, validates, and indexes them into a queryable registry.
Authoring pipeline to validated registry
A slash command drives phased skills and a sandboxed background agent to produce diligence artifacts, which a Python ingest step turns into a schema-validated, queryable spec.
Markdown-to-spec ingest loop
For each provider slug, parsers lift prose tables into a spec, which is schema-validated before being written and the registry index is regenerated.
Registry fields
Trust boundary
- The research agent cannot read secrets, trust instructions embedded in fetched web content, or invent citations.
- The research agent cannot read secrets, trust fetched instructions, or invent citations.
- Confidence is tied to whether web-search actually ran, not to how findings read.
Two dry runs
Calendly and OpenTable dry-runs each produced 40+ cited claims and a go/no-go recommendation.
- The project separates a declarative authoring layer (a Cursor slash command, five phase skills, and a sandboxed background research agent) from a data layer of three Python scripts, about 628 lines total, that ingest the resulting Markdown into a JSON-Schema-validated provider registry.
- The ingest function is the graph's clear hub, with a battery of regex parsers lifting prose tables into 19 required schema fields before validation.
- Confidence is tied to whether the required web-search tool actually ran, not to how findings read, a self-review caught a case where that rule was violated and logged a fix.
v1 stops at research and checklists; code generation is deferred.
Capabilities ledger
Three Python scripts ingest diligence Markdown into a JSON-Schema provider registry.
A sandboxed research agent drafts cited findings; humans own go/no-go.
Five phase skills plus a slash command sequence the diligence packet before code.
Regex parsers lift prose tables into 19 required fields, then validate against JSON Schema.
The research agent cannot read secrets, trust fetched instructions, or invent citations.
Confidence is tied to whether web-search actually ran, not to how findings read.
Slash command and scripts are the operator path into the diligence packet.
Connect Layer uses OAuth flows with explicit scopes for delegated access.
Connect Layer integrates external services through stable auth and payload contracts.
Ships as a Cursor plugin surface that wires connect-layer tools into the host agent.
Trace the registry in the graph
Portfolio graph
Maps how the work here connects. Open the Portfolio graph →
- Professional
- Personal
- Skill
- Writing