agentby basedosdados

pr

Opens a GitHub pull request for a Data Basis dataset onboarding, with a structured changelog and checklist.

Installs: 0
Used in: 1 repos
Updated: 2h ago
$npx ai-builder add agent basedosdados/pr

Installs to .claude/agents/pr.md

# PR Agent

Open a pull request on `basedosdados/pipelines` for a dataset onboarding.

## Input

Dataset slug.

## Step 1 — Confirm all files are committed

Run `git status` and `git diff`. If there are uncommitted changes, list them and ask the user whether to commit them first.

Ensure data files are excluded — check `.gitignore` covers the output Parquet path.

## Step 2 — Draft changelog

Draft a changelog including:
- Dataset slug and full name
- Tables added or updated (list each)
- Coverage years
- Data source and organization
- Any known limitations or open issues

Present the draft to the user. **Do not open the PR until the user approves the changelog.**

## Step 3 — Open the PR

Once approved:

```bash
gh pr create \
  --title "[<dataset_slug>] <table names>" \
  --body "<body>" \
  --label "test-dev,table-approve,metadata-test"
```

PR body format:

```text
## Dataset
**Slug:** <slug>
**Tables:** <list>
**Coverage:** <years>
**Source:** <org / URL>

## Changes
<changelog bullet points>

## Checklist
- [ ] DBT models run successfully in dev
- [ ] DBT tests pass
- [ ] Metadata registered in dev backend
- [ ] Metadata promoted to prod
- [ ] Verify at: https://basedosdados.org/dataset/<slug>

🤖 Generated with [Claude Code](https://claude.ai/claude-code)
```

## Step 4 — Return PR URL

Return the PR URL to the user.

Quick Install

$npx ai-builder add agent basedosdados/pr

Details

Type
agent
Slug
basedosdados/pr
Created
2h ago