Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add treasure-data/td-skills --skill nbpgit clone --depth 1 https://github.com/treasure-data/td-skillsWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/treasure-data/td-skills/nbp)<a href="https://agentmods.dev/skills/treasure-data/td-skills/nbp"><img src="https://agentmods.dev/badge/skills/treasure-data/td-skills/nbp/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/treasure-data/td-skills/nbp"><img src="https://agentmods.dev/badge/skills/treasure-data/td-skills/nbp.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00192 | $0.03244 |
| Opus 5.5 | $0.00077 | $0.01298 |
| Sonnet 5.5 | $0.00038 | $0.00649 |
| Haiku 4.5 | $0.00019 | $0.00324 |
Grade A, and why
fde-nbp scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 26d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 130 lines — stays where its author put it; the contents beside it link to each section on GitHub.
NBP (Next Best Product)
Reads a customer's user–item interactions (order lines, purchases, item views), trains the AI Signals NBP model, and writes one row per user with the top recommended products and their categories, which is added to a Parent Segment for Audience Studio segmentation and activation.
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 NBP-specific context for each phase.
AI Signals model questions: when the user asks how the NBP model works or recommends, or wants to try another algorithm or API parameter values, or change the model's input or output table, read references/ai-signals-guide.md first, and end the answer with the public documentation link at its top. It is not needed for the standard setup steps (Phases 1–3) — references/workflow-setup.md covers those.
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
What ships with it
45 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
- project_templates/agent_template/references/business-context.template.md 5.0 KB
- project_templates/agent_template/references/dashboard_template.html 39 KB
- project_templates/agent_template/references/dashboard_template.md 13 KB
- project_templates/agent_template/references/data-dictionary.md 23 KB
- project_templates/agent_template/references/generate-data.js 40 KB runs code
- project_templates/agent_template/references/model-setup-walkthrough.template.md 7.8 KB
- project_templates/agent_template/references/visualization-instructions.md 6.9 KB
- project_templates/agent_template/references/workflow-guide.template.md 7.6 KB
- project_templates/agent_template/SKILL.template.md 24 KB
- project_templates/workflow_template/body.txt 366 B
- project_templates/workflow_template/config/input_params.yml 4.6 KB
- project_templates/workflow_template/nbp_agg_model_stats.dig 2.0 KB
- project_templates/workflow_template/nbp_ai_signals.dig 4.5 KB
- project_templates/workflow_template/nbp_launch.dig 1.3 KB
- project_templates/workflow_template/nbp_preprocessing.dig 1.1 KB
- project_templates/workflow_template/queries/add_recs_to_user_master_attribute.sql 1.0 KB
- project_templates/workflow_template/queries/create_als_sampled_input.sql 415 B
- project_templates/workflow_template/queries/create_transaction_table_filters.sql 160 B
- project_templates/workflow_template/queries/create_transaction_table.sql 747 B
- project_templates/workflow_template/queries/dash/get_distinct_items_final_rec_table.sql 308 B
- project_templates/workflow_template/queries/dash/get_final_rec_table_stats.sql 431 B
- project_templates/workflow_template/queries/dash/global_session_filter.sql 269 B
- project_templates/workflow_template/queries/dash/item_category_mapping_agg.sql 187 B
- project_templates/workflow_template/queries/dash/model_params_agg.sql 2.4 KB
- project_templates/workflow_template/queries/dash/most_ordered_items.sql 285 B
- project_templates/workflow_template/queries/dash/similarity_metrics.sql 647 B
- project_templates/workflow_template/queries/dash/test_comparison_dash.sql 613 B
- project_templates/workflow_template/queries/dash/test_comparison_numbers.sql 689 B
- project_templates/workflow_template/queries/dash/test_comparison.sql 2.4 KB
- project_templates/workflow_template/queries/distinct_item_id_name_table.sql 325 B
- project_templates/workflow_template/queries/extract_params.sql 761 B
- project_templates/workflow_template/queries/filter_products_recs_query.sql 368 B
- project_templates/workflow_template/queries/filter_products_recs.sql 395 B
- project_templates/workflow_template/queries/filter_products_training_column.sql 179 B
- project_templates/workflow_template/queries/filter_products_training_query.sql 159 B
- project_templates/workflow_template/queries/nbp_parsing_syntax.sql 388 B
- project_templates/workflow_template/queries/user_item.sql 177 B
- project_templates/workflow_template/README.md 10 KB
- project_templates/workflow_template/tdx.json 36 B
- references/agent-setup.md 7.0 KB
- references/ai-signals-guide.md 19 KB
- references/docs-setup.md 3.9 KB
- references/parent_segment.md 4.4 KB
- references/requirements_doc.md 4.9 KB
- references/workflow-setup.md 13 KB
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 26d ago Changed · +5 tokens per session aec5a904fce7
- 1mo ago First seen · 130 lines · 187 tokens per session scan A 64ba0dbc004e
fde-nbp is a skill published in the GitHub repository treasure-data/td-skills (23 stars, last pushed today), licensed Apache-2.0. It adds 192 tokens to every session and 3,244 once invoked, about $0.0008 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-10-21.
fde-nbp compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| fde-nbptreasure-data/td-skills | Skill | 23 | today | Apache-2.0 | A | 192 | Claude Code |
| amazon-reviews-api-skillbrowser-act/skills | Skill | 6.5k | 27d ago | MIT | A | 124 | Claude Code, Codex |
| amazon-competitor-analyzerbrowser-act/skills | Skill | 6.5k | 27d ago | MIT | A | 48 | Claude Code, Codex |
| cloudbase-wechat-integrationTencentCloudBase/CloudBase-AI-Toolkit | Skill | 1.2k | yesterday | MIT | A | 94 | Claude Code |
| asc-subscription-localizationrorkai/app-store-connect-cli-skills | Skill | 1.2k | yesterday | MIT | A | 60 | Claude Code |
| woo-guardamElnagdy/guard-skills | Skill | 1.3k | 7d ago | MIT | A | 216 | Codex |
| product-description-generatornexscope-ai/eCommerce-Skills | Skill | 1.6k | 20d ago | MIT | A | 126 | Claude Code, Codex |