Skip to content
Back to skills

Bigquery Daily Settlement Processor

ASecurity

When the user needs to perform end-of-day data settlement processing for gaming or analytics platforms using Google BigQuery, this skill handles the complete workflow. It processes daily score data from streaming tables to 1) Generate ranked leaderboards by aggregating player scores and creating date-stamped tables with player rankings, and 2) Update historical player statistics by inserting daily aggregated metrics into master tracking tables. Key triggers include 'end-of-day settlement', 'd...

  • 8 stars
  • 0 votes
  • 0 copies
  • 3 views
  • Added May 29, 2026
datago

Security analysis

A100/100

Pro scans all 3 files and shows the line behind each finding

Scanned May 29, 2026

npx -y skills add zjunlp/Skills --skill bigquery-daily-settlement-processor --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Bigquery Daily Settlement Processor?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Bigquery Daily Settlement Processor
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/zjunlp-bigquery-daily-settlement-processor/badge)](https://www.skillsdirectory.com/skills/zjunlp-bigquery-daily-settlement-processor)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: bigquery-daily-settlement-processor
description: When the user needs to perform end-of-day data settlement processing for gaming or analytics platforms using Google BigQuery, this skill handles the complete workflow. It processes daily score data from streaming tables to 1) Generate ranked leaderboards by aggregating player scores and creating date-stamped tables with player rankings, and 2) Update historical player statistics by inserting daily aggregated metrics into master tracking tables. Key triggers include 'end-of-day settlement', 'daily leaderboard generation', 'player statistics update', 'BigQuery data processing', 'daily score aggregation', and 'historical stats maintenance'.
---
# Instructions

## Goal
Process end-of-day settlement for a gaming platform by:
1.  **Generating a Daily Leaderboard:** Create a new table named `leaderboard_YYYYMMDD` containing the top 100 players ranked by their total daily score.
2.  **Updating Historical Statistics:** Insert aggregated daily metrics for all players into the master `player_historical_stats` table.

## Prerequisites
- **Access:** Ensure the AI agent has the necessary permissions to run queries and create/update tables in the target Google BigQuery project and dataset.
- **Context:** The user request must specify the target date for processing (e.g., "today", "2025-11-26"). If not specified, you must determine the current date.

## Execution Steps

### 1. Initialization & Context Gathering
- **Identify Dataset:** First, list available datasets to confirm the target dataset (e.g., `game_analytics`) exists.
- **Inspect Source Table:** Run a sample query on the source streaming table (e.g., `daily_scores_stream`) to understand its schema. **Crucially, always qualify the table name with the dataset (e.g., `dataset.table`)**.
- **Determine Target Date:** Query the source table to find the latest data date or use the provided date. Confirm this is the date you intend to process.

### 2. Schema Verification
- **Check Historical Stats Table:** Inspect the `player_historical_stats` table to understand its full column structure. This ensures your INSERT query matches the expected schema.

### 3. Core Processing (Execute Both Queries)
Run the following two BigQuery operations. Use the confirmed dataset name and target date (formatted as `YYYY-MM-DD`).

**Task 1: Create Daily Leaderboard**

Files in this skill

  • SKILL.md2.3 KB
  • references/execution_checklist.md1.6 KB
  • references/table_schemas.md2.2 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…