Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

fde-nba-scores

БесплатноЗапускает вложенные скриптыНе проверен

Sets up NBA (Next Best Action) engagement scores on Treasure Data: a workflow that unions customer activity and writes per-profile next best time, channel and…

treasure-dataот treasure-data★ 23 звезды на GitHub

Об этом скилле

NBA Engagement Scores

Unions a customer's touchpoint data (web, email, CRM, orders, …), scores every profile on when (time of day), where (channel) and what (campaign type) to engage, and writes one table that is added to a Parent Segment for Audience Studio segmentation.

How to Start

Read ../shared/playbook.md — it defines the entry point (new vs. resume), the phase sequence, the name gates and when to read each shared pattern. Follow that flow. Read each referenced file once per conversation: when this skill is invoked again later in the same conversation, the playbook and any reference files already read are still in context — don't read them again; in a new session, read project_state.md to pick up. This file provides the NBA-specific context for each phase.

Setup skill vs. project agent: this skill sets up, changes and rebuilds the solution; it is the same for every project. Once the project's own agent is installed in .claude/skills/ (<project_slug>-agent), questions about its results are answered by that agent. If this skill is invoked with such a question, read the installed agent's SKILL.md and answer by its rules (or tell the user to ask the agent in a new chat); if no agent is installed yet, say so and offer the setup.

Treasure AI Studio questions: when the user asks how Treasure AI Studio works — Work Folders, permissions and access, sharing skills or agents, plugins and marketplaces, or where to find Studio documentation — answer from what you know, then share the official documentation: https://docs.treasure.ai/products/ai-studio/overview

Phase Summary

Phase Stage What happens
Phase 1 DEV Data exploration — list and classify tables, confirm the touchpoint and conversion sources, run discovery queries; draft business-context.md and review it with the user
Phase 2 DEV requirements.md, ending with the open business-context questions — then continue without waiting
Phase 3 DEV Copy the workflow template, configure from Phase 1, push, run, validate; ask which hands-on kit to build
Phase 4 DEV Hands-on kit (customer agent, dashboard, interim workflow guide + setup walkthrough); apply the customer's requirements, re-push, re-run, re-validate, refresh the kit
Phase 5 PROD — only when you say the model is ready Parent Segment attributes + example audiences, documentation set, finalize the customer agent, offer the final guides

NBA-Specific Context by Phase

Phase 1: Data Exploration

Use tdx-skills:tdx-basic. Do not search by table-name patterns.

  1. List every table in the customer's source database: tdx tables "<database>.*".

  2. Classify each table from one column query for the whole database — not a tdx describe per table: SELECT table_name, column_name, data_type FROM information_schema.columns WHERE table_schema = '<database>' ORDER BY table_name, ordinal_position

    Bucket Criteria
    Activity Profile ID + timestamp; one row per event or interaction. NBA source candidate
    Profile / dimension One row per customer (master, attributes, tiers). Not a source
    System / output Workflow outputs, logs, ML results, aggregates. Not a source
  3. Keep only customer-initiated activity, and mark each kept table as a touchpoint or a conversion source:

    Include Exclude
    Pageviews, clicks, searches, add-to-cart Bot or internal system events
    Email opens, clicks, unsubscribes Email sends, deliveries, bounces
    Orders, purchases, reservations (conversions) Refunds, cancellations
    Support tickets, chats, store visits, app sessions, surveys ETL audit rows, pre-aggregated tables
  4. Confirm the list with AskUserQuestion — show every activity table with include/exclude, touchpoint/conversion and a one-line reason ("Confirm as listed" / "Change the list"). Do not skip this.

  5. Run the discovery queries in references/workflow-setup.md §1 yourself, all in one shell command (no subagents): one profile query across all confirmed tables (IDs, event-time decision, date range), UTM coverage and values, conversion and add-to-cart patterns, one event-type/status breakdown. Do not investigate caveats further — record them (step 6).

  6. Record in project_state.md: table, profile ID column, event-time column with its evidence (references/workflow-setup.md §1 event-time rule), URL/referrer/path columns, UTM coverage, conversion signal, add-to-cart signal, filters needed, first/last event date.

  7. Business context — playbook Phase 1 "Business context draft and review": copy project_templates/agent_template/references/business-context.template.md, answer what steps 1–6 showed (e.g. channels from UTM values and sources, what counts as a conversion and an add-to-cart, test or internal records seen in the filters, time zone of the event timestamps), review it with the user, co

Полный SKILL.md на GitHub

Установить fde-nba-scores в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

project_templates/agent_template/SKILL.template.mdproject_templates/agent_template/references/business-context.template.mdproject_templates/agent_template/references/dashboard_template.htmlproject_templates/agent_template/references/dashboard_template.mdproject_templates/agent_template/references/data-dictionary.mdproject_templates/agent_template/references/generate-data.jsproject_templates/agent_template/references/model-setup-walkthrough.template.mdproject_templates/agent_template/references/visualization-instructions.mdproject_templates/agent_template/references/workflow-guide.template.mdproject_templates/workflow_template/README.mdproject_templates/workflow_template/body.txtproject_templates/workflow_template/config/input_params.ymlproject_templates/workflow_template/nba_cleanup_runner.digproject_templates/workflow_template/nba_dash_stats.digproject_templates/workflow_template/nba_eng_launch.digproject_templates/workflow_template/nba_metrics_table.digproject_templates/workflow_template/nba_next_best_campaign_metrics.digproject_templates/workflow_template/nba_next_best_channel_metrics.digproject_templates/workflow_template/nba_next_best_time_metrics.digproject_templates/workflow_template/nba_union_all_activity.digproject_templates/workflow_template/queries/dash/agg_stats_calculate.sqlproject_templates/workflow_template/queries/dash/get_distinct_col_names.sqlproject_templates/workflow_template/queries/dash/global_session_filter.sqlproject_templates/workflow_template/queries/dash/insert_model_metrics.sqlproject_templates/workflow_template/queries/dash/source_table_stats.sqlproject_templates/workflow_template/queries/next_best_campaign/custom_engagement_flags.sqlproject_templates/workflow_template/queries/next_best_campaign/final_table_custom.sqlproject_templates/workflow_template/queries/next_best_channel/create_activity_labels_minmax_distinct.sqlproject_templates/workflow_template/queries/next_best_channel/create_activity_labels_percentile_distinct.sqlproject_templates/workflow_template/queries/next_best_channel/data_generate_query_distinct.sqlproject_templates/workflow_template/queries/next_best_channel/data_write_schema_distinct.sqlproject_templates/workflow_template/queries/next_best_channel/load_distinct_channels.sqlproject_templates/workflow_template/queries/next_best_time/create_activity_labels_minmax.sqlproject_templates/workflow_template/queries/next_best_time/create_activity_labels_percentile.sqlproject_templates/workflow_template/queries/next_best_time/create_activity_labels_quartile.sqlproject_templates/workflow_template/queries/next_best_time/data_generate_query.sqlproject_templates/workflow_template/queries/next_best_time/data_write_schema.sqlproject_templates/workflow_template/sql/final/base_table.sqlproject_templates/workflow_template/sql/final/join_temp_tables.sqlproject_templates/workflow_template/sql/final/select_temp_tables.sql

FAQ

Что делает скилл fde-nba-scores?

Sets up NBA (Next Best Action) engagement scores on Treasure Data: a workflow that unions customer activity and writes per-profile next best time, channel and campaign scores plus engagement flags for Parent Segment attributes, then builds the project's NBA agent and dashboard. Use it to start, set up, configure, change, re-run or resume an NBA project and to build or rebuild its agent. Trigger on: set up NBA, start an NBA project, new NBA setup, best time and channel to contact each customer, personalize send time and channel, next best action setup, engagement scores setup, NBA workflow, configure NBA, rebuild the NBA agent, resume NBA setup, NBA runbook. Once the project's NBA agent is installed, questions about the scores and flags go to it.

Как установить скилл fde-nba-scores?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл fde-nba-scores запускает скрипты?

Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.

Похожие скиллы

Сравнить fde-nba-scores с