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 rfmgit 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/rfm)<a href="https://agentmods.dev/skills/treasure-data/td-skills/rfm"><img src="https://agentmods.dev/badge/skills/treasure-data/td-skills/rfm/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/rfm"><img src="https://agentmods.dev/badge/skills/treasure-data/td-skills/rfm.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.00186 | $0.03241 |
| Opus 5.5 | $0.00074 | $0.01296 |
| Sonnet 5.5 | $0.00037 | $0.00648 |
| Haiku 4.5 | $0.00019 | $0.00324 |
Grade A, and why
fde-rfm 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 — 137 lines — stays where its author put it; the contents beside it link to each section on GitHub.
RFM Customer Segmentation
Unions a customer's activity data (web, email, CRM, orders, …), scores every profile on how recently, how often and how much they engage and buy, and writes one table with R/F/M scores and a segment per profile, which 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 RFM-specific context for each phase.
AI Signals model questions: when the user asks how the RFM model works or scores, or wants to try other 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
33 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 4.3 KB
- project_templates/agent_template/references/dashboard_template.html 31 KB
- project_templates/agent_template/references/dashboard_template.md 7.8 KB
- project_templates/agent_template/references/data-dictionary.md 13 KB
- project_templates/agent_template/references/generate-data.js 32 KB runs code
- project_templates/agent_template/references/model-setup-walkthrough.template.md 6.8 KB
- project_templates/agent_template/references/visualization-instructions.md 3.5 KB
- project_templates/agent_template/references/workflow-guide.template.md 5.6 KB
- project_templates/agent_template/SKILL.template.md 13 KB
- project_templates/workflow_template/body.txt 366 B
- project_templates/workflow_template/config/input_params.yml 3.0 KB
- project_templates/workflow_template/queries/create_agg_input_table.sql 266 B
- project_templates/workflow_template/queries/create_src_table_summary.sql 954 B
- project_templates/workflow_template/queries/parse_table_params.sql 1.9 KB
- project_templates/workflow_template/queries/rfm_stats_histogram.sql 1.3 KB
- project_templates/workflow_template/queries/rfm_stats_summary.sql 3.2 KB
- project_templates/workflow_template/queries/stats_global_session_filter.sql 215 B
- project_templates/workflow_template/queries/stats_historic_agg.sql 1.4 KB
- project_templates/workflow_template/queries/stats_model_params.sql 643 B
- project_templates/workflow_template/queries/union_src_tables/insert_src_table.sql 1.4 KB
- project_templates/workflow_template/README.md 11 KB
- project_templates/workflow_template/rfm_agg_stats.dig 812 B
- project_templates/workflow_template/rfm_ai_signals.dig 802 B
- project_templates/workflow_template/rfm_launch.dig 1.3 KB
- project_templates/workflow_template/rfm_union_all_activity.dig 1.3 KB
- project_templates/workflow_template/sql/union_src_tables/README.md 311 B
- project_templates/workflow_template/tdx.json 36 B
- references/agent-setup.md 6.6 KB
- references/ai-signals-guide.md 13 KB
- references/docs-setup.md 4.0 KB
- references/parent_segment.md 3.0 KB
- references/requirements_doc.md 4.8 KB
- references/workflow-setup.md 14 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 e1ddf4e2cc6c
- 1mo ago First seen · 137 lines · 181 tokens per session scan A a2af0d17e625
fde-rfm is a skill published in the GitHub repository treasure-data/td-skills (23 stars, last pushed today), licensed Apache-2.0. It adds 186 tokens to every session and 3,241 once invoked, about $0.0007 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-rfm compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| fde-rfmtreasure-data/td-skills | Skill | 23 | today | Apache-2.0 | A | 186 | 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 |