/content-agent-kit:ads-policy-checkfrom content-agent-kit
Lints Facebook/Instagram ad copy against Meta's personal-attributes rule, before/after body claims, unprovable superlatives, invented urgency, discount violations, counterfeit hints, and engagement bait. Provides severity ratings and rewrites.
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.
A rejected ad costs a day; repeated rejections put the ad account at risk, which costs far more. Fashion trips the same few rules over and over, so they can be caught before submission.
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 |
|---|---|---|
| 0. Kiểm cập nhật luật | freshness-check mục vn-ads-law: có nghị định/thông tư mới về quảng cáo, khuyến mại không | Duyệt thay đổi luật trước khi áp dụng |
| 1. Nhận nội dung | Nhận chữ quảng cáo dán vào chat, hoặc file .txt (các mẫu cách nhau bằng ---) | Dán tiêu đề + nội dung chính của từng mẫu |
| 2. Soát | Chạy node scripts/ads/policy-lint.mjs ads.txt — mỗi lỗi có mức BLOCK / REVIEW | — |
| 3. Viết lại | Với mỗi lỗi, đưa câu đã sửa nhưng giữ ý bán hàng | Chọn câu sửa ưng ý |
| 4. Xem hình/video | Script không đọc được hình — agent tự xem hoặc hỏi: có ảnh trước/sau không, giá trong ảnh có khác chữ không | Gửi ảnh/video của mẫu |
| 5. Xin bằng chứng | Câu "số 1", "bán chạy nhất", "giảm 50%" cần giấy tờ/giá gốc thật | Gửi chứng từ, hoặc đồng ý bỏ câu đó |
| 6. Báo kết quả | Ghi rõ "không phải tư vấn pháp lý"; CLEAN chỉ nghĩa là không khớp mẫu lỗi đã biết | Đọc và quyết định có chạy không |
Hay vướng:
node scripts/maintenance/freshness.mjs --stale — if vn-ads-law is stale, run freshness-check for it BEFORE linting: policy-lint.mjs checks against the rules as of LEGAL_CHECKED, and a new decree can make a passing ad illegal.
node scripts/ads/policy-lint.mjs --text "Bạn béo bụng? Mặc gen này giảm 5cm eo ngay!"
node scripts/ads/policy-lint.mjs ads.txt # several ads separated by ---
node scripts/ads/policy-lint.mjs ads.json --json # [{id, headline, primary_text, description}]
Exit code 2 = at least one BLOCK. review-gate should treat that as a fail.
| rule | example | basis |
|---|---|---|
personal-attribute | "Bạn béo bụng?", "Chị bị lùn?" | Meta Advertising Standards — Personal attributes |
before-after | "Trước và sau khi mặc" | Meta — negative self-perception |
body-outcome-claim | "giảm 5cm eo", "đốt mỡ" | Meta — unrealistic outcomes; misleading claims |
superlative | "rẻ nhất", "số 1", "duy nhất" | Luật Quảng cáo 2012, Điều 8 khoản 11 — needs lawful proof |
fake-urgency | "chỉ còn 3 chiếc", "chỉ hôm nay" | misleading if not literally true |
discount-no-reference | "giảm 30%" with no original price | Nghị định 81/2018/NĐ-CP — discount on the real pre-promotion price |
discount-over-cap (warn) | "SALE 70%" | Nghị định 81/2018/NĐ-CP as amended by 128/2024 and 239/2026 — check the discount ceiling in force; sources disagree after 06/2026 |
health-claim | "kháng khuẩn 100%", "chữa đau lưng" | health claims need documentation |
fake-brand | "rep 1:1", "like auth" | IP — account-level risk |
engagement-bait | "Like và share để nhận quà" | Meta demotes engagement bait |
shouting | mostly CAPS | ad-quality signal |
LEGAL_CHECKED in
policy-lint.mjs — check the current consolidated text on vbpl.vn before quoting one to anyone, and say "không phải tư vấn pháp
lý" when you report. If a claim needs proof (sales numbers, test certificates), ask the user
for the document and its date; never write one.Rules live in RULES inside the script — add a pattern there (with a ref) when Meta rejects
something new, and add a test in tests/ads.test.mjs.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
facebook-ads, instagram-ads, ad-policy, ad-compliance, vietnam-ads
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-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./audience-planPlan Facebook/Instagram audiences for a fashion shop from its own customer data — RFM segments from an orders export (VIP, trung thành, mới, tiềm năng, sắp rời, ngủ đông), SHA-256-hashed custom-audience upload files, lookalike seeds, exclusions, and which segment gets which message. Use when the user says "tệp khách hàng", "custom audience", "lookalike", "tệp tương tự", "retarget khách cũ", "chăm sóc khách cũ", "khách lâu không mua", "phân nhóm khách hàng", "RFM". Never uploads anything; hashes personal data before it touches a file./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