Sync Recent PRs To Airtable
Overview
Use this as the orchestration skill for the workflow.
Keep the building blocks separate:
$github-recent-user-prsgathers PR activity.$reconcile-prs-to-airtable-tasksdecides what to create, update, skip, or review.$airtable-create-croft-taskcreates missing task records.$sync-airtable-task-status-from-prsupdates matched Airtable records.
Default Behavior
Sync these PR buckets by default:
- open draft PRs
- open non-draft PRs
- recently merged PRs
Include recently closed-unmerged PRs in the report, but do not automatically create or rewrite Airtable tasks from those unless the user explicitly asks.
Workflow
- Gather recent PRs with
$github-recent-user-prs. - Reconcile PRs against Airtable tasks with
$reconcile-prs-to-airtable-tasks. - Create missing Airtable tasks for high-confidence
createitems with$airtable-create-croft-task. - Update matched Airtable tasks for
updateitems with$sync-airtable-task-status-from-prs. - Return a concise sync summary with creates, updates, skips, and manual-review items.
Create Rules
When creating a missing Airtable task from a PR, default the task name to the PR title unless the reconciliation step identified a better normalized title.
Use these creation defaults:
open_draft-> create withStatus: In Progressopen_ready-> create withStatus: Needs Code Reviewmerged-> create withStatus: In ProdandPipeline: Completed
Do not create a task for closed_unmerged by default.
Safety Rules
- Do not create a record when the reconciliation result is ambiguous.
- Do not create a record until you have performed the broader duplicate check described in
$reconcile-prs-to-airtable-tasks. - Do not downgrade an existing Airtable status.
- Do not mark tasks
Will not Completesolely from a closed-unmerged PR. - If the caller says
dry run, stop after reconciliation and report the planned actions without writing.
Output Expectations
Keep the final response action-oriented:
- how many tasks were created
- how many existing tasks were updated
- which PRs were skipped intentionally
- which items still need human review
When writes occur, include enough detail for the user to see which PR titles were affected, but do not dump raw Airtable payloads unless asked.
Example Prompts
Use $sync-recent-prs-to-airtable to sync my recent GitHub PRs into Croft Airtable.Use $sync-recent-prs-to-airtable as a dry run so I can review which tasks would be created or updated.