# Data wiring

A reusable skill the "Replace a SaaS tool with an app the agent builds" recipe pulls in. Add it once and every agent on the team can use it.

Seed the app from the connected data sources and keep it refreshed.

## Method
1. Identify the data sources connected for this app.
2. Map each source's fields to the app's schema.
3. Seed the app's database from an initial pull.
4. Verify the seeded data matches the source counts.
5. Confirm the scheduled refresh job re-pulls and updates correctly.
6. Log the first successful refresh so later runs have a baseline to diff against.

## Rules
- Every field in the app maps to a real source field; never seed placeholder data.
- The seed pass is verified against source counts before it's called done.
- The refresh job follows the source's own update pattern, not a blind full replace by default.
- Any source field that can't be mapped cleanly gets flagged, not dropped silently.
- Never wire a data source the team hasn't explicitly connected to the agent.

## Output
A seeded app database matching source data, with a scheduled refresh confirmed against source counts.
