bq-refresh-table
Refresh an existing BigQuery table doc under docs/bigquery/tables while preserving human notes. Use when schemas, partitioning, clustering, row counts, sizes, or last modified metadata may have changed.
Works with
Agent Skills format with YAML frontmatter. Claude Code reads it as-is.
--- name: "bq-refresh-table" description: "Refresh an existing BigQuery table doc under docs/bigquery/tables while preserving human notes. Use when schemas, partitioning, clustering, row counts, sizes, or last modified metadata may have changed." license: "MIT" --- # bq-refresh-table Refresh machine-generated metadata for a documented BigQuery table. ## Scope Only update files under: ```text docs/bigquery/tables/<project>/<dataset>/<table>.md ``` Do not rewrite project SQL, extraction scripts, notebooks, or unrelated docs. ## Process 1. Parse the target table from the file path, file title, or user input. 2. Read current metadata with: ```bash bq --project_id=<billing-project> show --format=prettyjson <project>:<dataset>.<table> ``` 3. Compare old and new schema. 4. Preserve `Human Notes` and other user-authored project semantics. 5. Update `Machine Metadata`, `Schema`, and refresh timestamp. Use `scripts/render_table_doc.py` from this plugin when it helps render the machine section from `bq show --format=prettyjson`. Write through `--output` so the existing `Human Notes` section is preserved: ```bash python3 <plugin-root>/scripts/render_table_doc.py --output <doc-path> <metadata-json> ``` ## Change Reporting After refreshing, summarize: - Added fields. - Removed fields. - Type or mode changes. - Partitioning or clustering changes. - Size or row-count changes when available. If a field was removed or its type changed, call that out explicitly. Silent schema drift is the bug this skill exists to prevent.
More General & Other skills
find-skills
vercel-labs/skills
Helps users discover and install agent skills when they ask questions like "how do I do X", "find a skill for X", "is there a skill that can...", or express interest in extending capabilities. This skill should be used when the user is looking for functionality that might exist as an installable skill.
grill-me
mattpocock/skills
A relentless interview to sharpen a plan or design.
grill-with-docs
mattpocock/skills
A relentless interview to sharpen a plan or design, which also creates docs (ADR's and glossary) as we go.

