fde-rfm

fde-rfm is a skill for Claude Code from treasure-data/td-skills. It costs 186 tokens per session (3,241 once invoked), scanned A, original, Apache-2.0.

An RFM segmentation workflow groups customers in Treasure Data by recency, frequency, and monetary value: when they acted, how often, and how much they spent.

In plain words
What is it for?
Use it to score customer profiles with an RFM model and assign them to one of ten segments for use in customer data attributes.
Why use it?
It turns activity from sources such as page views, orders, email, and sales into consistent customer groups for analysis.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: reads .claude/ paths; mentions subagents; names the AskUserQuestion tool.

Part of the fde-ai-signals-custom-agent-skills plugin — 9 skills shipped together

Good fit Use it to score customer profiles with an RFM model and assign them to one of ten segments for use in customer data attributes.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/treasure-data/td-skills/rfm
Install

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.

Any agent
npx skills add treasure-data/td-skills --skill rfm
Clone the repo
git clone --depth 1 https://github.com/treasure-data/td-skills

Made for: Claude Code.

Or install fde-ai-signals-custom-agent-skills, the plugin that ships this one along with the rest of its 9 skills.

Wrote 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.

agentmods badge for fde-rfm

README.md
[![agentmods](https://agentmods.dev/badge/skills/treasure-data/td-skills/rfm/github.svg)](https://agentmods.dev/skills/treasure-data/td-skills/rfm)
Your own site
<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.

agentmods 80×15 button for fde-rfm

Your own site · 80×15
<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>
Per session 186 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,241 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce 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

Measured 26d ago against content hash e1ddf4e2cc6c, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

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.

The scan reads SKILL.md. This mod also ships 1 executable file (project_templates/agent_template/references/generate-data.js), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

fde-ai-signals-custom-agent-skills/ai-signals-skills/rfm/SKILL.md · 137 lines

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

Read the full file on GitHub · 137 lines

Files

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.

Changes

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.

  1. 26d ago Changed · +5 tokens per session e1ddf4e2cc6c
  2. 1mo ago First seen · 137 lines · 181 tokens per session scan A a2af0d17e625

Subscribe to this mod's changes

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.

Related

fde-rfm compared with skills from other repositories

fde-rfm next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
fde-rfmtreasure-data/td-skillsSkill23todayApache-2.0A186Claude Code
amazon-reviews-api-skillbrowser-act/skillsSkill6.5k27d agoMITA124Claude Code, Codex
amazon-competitor-analyzerbrowser-act/skillsSkill6.5k27d agoMITA48Claude Code, Codex
cloudbase-wechat-integrationTencentCloudBase/CloudBase-AI-ToolkitSkill1.2kyesterdayMITA94Claude Code
asc-subscription-localizationrorkai/app-store-connect-cli-skillsSkill1.2kyesterdayMITA60Claude Code
woo-guardamElnagdy/guard-skillsSkill1.3k7d agoMITA216Codex
product-description-generatornexscope-ai/eCommerce-SkillsSkill1.6k20d agoMITA126Claude Code, Codex