From llm-wiki
Use when ingesting a BigQuery dataset into an OKF bundle. Covers listing concepts (with shard-family detection), pulling schema/partitioning metadata via okf_bq.py, and routing to the authoring-concepts skill for doc writing.
How this skill is triggered — by the user, by Claude, or both
Slash command
/llm-wiki:ingesting-bigqueryThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
This skill is the first structured source adapter. It translates a BigQuery dataset into OKF concept docs (one per dataset and one per table/shard-family).
This skill is the first structured source adapter. It translates a BigQuery dataset into OKF concept docs (one per dataset and one per table/shard-family).
Requires: google-cloud-bigquery pip package + Application Default Credentials.
gcloud auth application-default login
pip install google-cloud-bigquery
python3 <plugin_root>/scripts/okf_bq.py list <project.dataset> [--billing-project P]
Output: JSON array of concept refs:
[
{"id": "datasets/<name>", "type": "BigQuery Dataset", "resource": "...", "hint": {...}},
{"id": "tables/<name>", "type": "BigQuery Table", "resource": "...", "hint": {"wildcard": false, "table_id": "..."}},
{"id": "tables/<prefix>", "type": "BigQuery Table", "resource": "...", "hint": {"wildcard": true, "family_prefix": "...", "shard_count": N, "first_shard": "...", "last_shard": "..."}}
]
Shard-family detection: Tables matching <prefix>_YYYYMMDD (6–8 digit suffix) are collapsed into one concept with wildcard: true. The representative shard (latest) is used for schema inspection. The concept ID uses the prefix ending with _ (e.g. tables/events_ for events_20240101, events_20240102, …).
Present the concept list to the owner and let them trim or adjust before proceeding.
For each concept to enrich:
python3 <plugin_root>/scripts/okf_bq.py describe <project.dataset> <id> [--billing-project P]
Returns JSON with schema, partitioning, clustering, row counts, labels, etc.
For sparse metadata (no description, few fields), optionally sample rows:
python3 <plugin_root>/scripts/okf_bq.py sample <project.dataset> <id> [-n 3] [--billing-project P]
Note: sampling very large tables (transactions in crypto_bitcoin is hundreds of GB) incurs query costs. Keep -n small while iterating.
Pass the raw metadata to okf-concept-enricher agents (or use authoring-concepts inline for a single concept). The metadata shape guides the body:
For BigQuery Dataset:
type: BigQuery Datasetresource: the BQ REST URI from the concept refFor BigQuery Table (singleton):
type: BigQuery Tableresource: the BQ REST URI# Schema with all fields in backticks, # Common query patterns, # Citations.For BigQuery Table (shard family):
events_YYYYMMDD), shard count, first/last shard, and wildcard syntax for cross-dataset queries.When re-enriching an existing BigQuery Table doc (e.g. after a schema change), okf_doc.py write --web-pass applies the augmentation guard. To intentionally shrink the # Schema section (e.g. the table schema was reduced upstream), use --allow-shrink and document the schema change in # Citations.
After enriching all concepts in a dataset:
[dataset](../datasets/<name>.md) (file-relative from tables/)./llm-wiki:index to regenerate index.md files.npx claudepluginhub mlarkin00/plugins --plugin llm-wikiGuides creation and editing of skills using test-driven development with pressure scenarios and subagents to verify agent compliance.
Creates platform-native content for X, LinkedIn, TikTok, YouTube, and newsletters from source material. Adapts voice and format per platform while avoiding engagement bait and filler.