/content-agent-kit:audience-planfrom content-agent-kit
Plans Facebook/Instagram custom audiences for a fashion shop from customer order data: RFM segments (VIP, loyal, new, at-risk, dormant), SHA-256-hashed upload files, lookalike seeds, exclusions, and messaging strategy. Never uploads raw data.
Ships in content-agent-kit. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Broad targeting finds new buyers; the shop's own buyers are who should get the new collection first, who seed lookalikes, and who must be excluded from "khách mới" campaigns so the budget is not spent selling to people who already buy.
Chạy lệnh
node scripts/…ở thư mục gốc của kit — thư mục cóAGENTS.md, hai cấp trên file này (nếu skill được cài bằnginstall-skills.mjs --kit, đường dẫn nằm trong file.kit-rootcạnh file này).
Dẫn người dùng theo đúng các bước dưới, bằng lời đơn giản. Trước khi bắt đầu: một câu nói skill sẽ làm gì, mất khoảng bao lâu, cần người dùng chuẩn bị gì. Đầu mỗi bước báo "Bước n/N — <tên bước>" kèm một câu đang làm gì. Khi cần người dùng làm gì, chỉ hỏi đúng một việc. Kết thúc: kết quả nằm ở đâu và việc nên làm tiếp.
| Bước | Agent làm gì | Người dùng cần làm |
|---|---|---|
| 1. Hỏi sự đồng ý | Hỏi shop có được khách đồng ý dùng SĐT/email cho quảng cáo không (Nghị định 13/2023); không có thì dừng | Xác nhận có hoặc không |
| 2. Nhận file đơn hàng | Cần mỗi dòng một đơn: SĐT và/hoặc email, ngày mua, giá trị đơn | Xuất file đơn từ Haravan/Sapo/KiotViet/Pancake… |
| 3. Chia nhóm | Chạy node scripts/ads/rfm-segments.mjs orders.csv --out audiences/ — VIP, trung thành, mới, sắp rời, ngủ đông… | — |
| 4. Kế hoạch tệp | Bảng: nhóm nào nhận thông điệp gì, nhóm nào làm nguồn tệp tương tự, nhóm nào loại trừ | Đọc và chỉnh |
| 5. Dừng — người dùng tự tải lên | File trong audiences/ chỉ chứa mã băm SHA-256, không có SĐT thật | Tự tải lên Ads Manager, rồi xoá file đơn gốc |
Hay vướng:
0912…, +84…) → script tự chuẩn hoá, không cần sửa tay.node scripts/ads/rfm-segments.mjs orders.csv --today 2026-11-11
node scripts/ads/rfm-segments.mjs orders.csv --out audiences/ # one hashed CSV per segment
Input: one row per order with phone and/or email, order date, order value (export from Haravan,
Sapo, KiotViet, Pancake, Shopify…). Phones in any form (0912 345 678, +84…) are normalised to
84912345678 before hashing, as Meta's matching expects.
Scores are quintiles within this shop, so cut-offs fit the business, not a textbook.
| segment | use it to | message |
|---|---|---|
| VIP | early access, lookalike 1% seed | BST mới trước khi mở bán, quà — no discount needed |
| Trung thành | upsell, lookalike seed | phối đồ / combo |
| Mới | second order within 30 days | món phối cùng món đã mua |
| Tiềm năng | cross-sell | set đồ, review thật |
| Sắp rời | win-back | hàng mới về + lý do quay lại; ưu đãi nhẹ có hạn |
| Ngủ đông | exclude from prospecting | one win-back attempt, then stop |
| all buyers (180 days) | exclude from "khách mới" campaigns | — |
Also propose engagement audiences that need no customer data: video viewers 50%+ (30 days), page/IG engagers (90 days), Messenger contacts, add-to-cart without purchase (14 days).
Segments under ~100 matched people cannot be delivered to — use them as exclusions or merge them.
Output the segment table, the audience list (names in the form CA_VIP_261111), and the
campaign ↔ audience map. Uploading files and creating audiences in Ads Manager is the user's
step; with the meta-ads MCP, show the calls and wait for a yes.
Segments are the start of retention, not the end. For the journey per segment (welcome → second purchase → habit → win-back) and rewards tied to a habit rather than blanket discounts, see brand-lessons → highlands (docs/32-bai-hoc-thuong-hieu.md).
What SKILL.md sets; muted values are Claude Code's defaults
32 skills in this plugin
/ads-comment-triageSort comments on Facebook ads and fanpage posts by what the commenter wants — hỏi size, hỏi giá, hỏi ship, còn hàng, muốn mua/xin inbox, khiếu nại, spam/lừa đảo link, nhắc đối thủ, khen — and draft replies in the brand's voice for review, including unaccented teencode ("sz m con k", "giá bn", "ib e"). Use when the user says "trả lời bình luận", "lọc comment", "comment ads nhiều quá", "ẩn comment spam", "khách hỏi giá dưới quảng cáo", "reply comments", "moderate comments". Drafts only; never posts, hides or deletes./ads-creative-labDesign and read Facebook/Instagram creative tests for a content-agent-kit agent — hook × angle × format matrix, a naming convention results can be pivoted on, test structure and budget (ABO test → CBO/Advantage+ scale), kill/scale rules with sample-size floors, and the next round built from the winners. Use when the user says "test creative", "test mẫu quảng cáo", "nên chạy mẫu nào", "làm thêm mẫu ads", "hết ý tưởng creative", "mẫu nào thắng", "scale mẫu nào", or after ads-report/ads-fatigue-watch names a creative to replace. Works from pasted Ads Manager numbers; better with the meta-ads MCP. Never creates or changes ads on its own./ads-fatigue-watchFind Facebook/Instagram ads that are wearing out — frequency climbing, CTR falling from its own start, CPM and cost per result rising — and write a concrete refresh brief for each, from an Ads Manager CSV export or the meta-ads MCP. Use when the user says "quảng cáo đuối", "ads bị bão hoà", "CPM tăng", "CTR giảm", "mẫu này chạy lâu rồi", "ad fatigue", "creative refresh", "canh ads", or on a schedule twice a week. Reads only; never pauses or edits an ad./ads-policy-checkPre-flight Facebook/Instagram ad copy before it is submitted — Meta's personal-attributes rule ("Bạn béo bụng?"), before/after bodies, body or health promises for shapewear, unprovable superlatives ("rẻ nhất", "số 1"), invented urgency, discounts with no reference price or over the Vietnamese promotion cap, counterfeit hints, engagement bait — with a severity and a rewrite for each. Use when the user says "check chính sách quảng cáo", "ads bị từ chối", "bị reject", "quảng cáo có vi phạm không", "kiểm tra nội dung trước khi chạy", "policy check", or before any ad copy leaves the review gate. A linter, not legal advice./ads-reportRead ad performance from the connected ads MCP servers (Meta, Google, TikTok, Snap, Reddit) and turn it into a decision about what content to make next, for an agent built with content-agent-kit. Also works with no ad spend at all — paste the numbers the platform shows you and it reports the same way. Use weekly, or when the user asks "how did the ads do", "how did last week do", "what should we post next", or "which campaigns are wasting money". Writes a short report and proposes concrete queue items./audit-and-fixAudit ALREADY-published content and fix low-quality items, for an agent built with content-agent-kit. Use when the user says "audit the published content", "review old posts and fix them", or "clean up the backlog". Rule-audit first, then subagent grading, then STOP for confirmation before mutating live content.npx claudepluginhub xuho-it/content-agent-kit --plugin content-agent-kitOther plugins' skills for the same job