/content-agent-kit:competitor-analysisfrom content-agent-kit
Analyzes competitors' YouTube channels and blog/news feeds to identify breakout content, title patterns, posting schedules, and topic gaps. Produces actionable recommendations.
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.
The user names competitors. You come back with three things they can act on this week — not a data dump. The numbers are computed in code so they are the same every time; your job is the part code cannot do: watch the breakouts and say why they worked.
Antigravity / Gemini: same steps, run the commands directly.
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. Nhận đối thủ | Nhận @kênh, link YouTube, website hoặc chuyên mục báo; từ 3 đối thủ thì lưu vào brain/competitors.json | Gửi danh sách đối thủ |
| 2. Quét | Chạy node scripts/research/competitor-scan.mjs --file brain/competitors.json --history brain/history.json → in REPORT=<đường dẫn> | — |
| 3. Xem video bứt phá | Mở 2–3 video vượt trội nhất, ghi lại câu mở đầu của từng video | — |
| 4. Rút kinh nghiệm | Đọc cách đặt tiêu đề, giờ đăng, chủ đề họ có mà mình chưa có | — |
| 5. Trao ba việc làm ngay | "Làm / Thử / Đổi", mỗi việc kèm bằng chứng; báo cáo ở brain/competitors/<ngày>.md | Chọn việc muốn làm, có thể chuyển sang create-video |
Hay vướng:
APIFY_TOKEN (có phí nhỏ mỗi lần chạy); Facebook chưa hỗ trợ.Accept any of: @handle, a YouTube channel URL, a UC… id, a website, or — with
APIFY_TOKEN set — tiktok:@handle / instagram:@handle / a TikTok or Instagram profile URL. Vietnamese news
sections work as-is (https://vnexpress.net/so-hoa, https://tuoitre.vn/cong-nghe.htm) — the
script finds their /rss/<section>.rss feed itself.
If the user has more than three, save them once so the next run is one command:
// brain/competitors.json
["@kenh-doi-thu-1", "@kenh-doi-thu-2", "https://blog-doi-thu.vn"]
node scripts/research/competitor-scan.mjs --file brain/competitors.json --history brain/history.json
# or ad hoc:
node scripts/research/competitor-scan.mjs --channel @Fireship --channel https://vnexpress.net/so-hoa --dry-run
It prints REPORT=<path>. --history is what turns on the topic-gap table (phrases the
competitors use that never appear in the user's own published titles) — always pass it when
the project has one.
| flag | when |
|---|---|
--breakout 1.5 | a small or very consistent channel where nothing reaches 2× |
--tz 7 | default — posting times are shown in Vietnam time |
--lang en | the user wants the report in English |
--json | you want to post-process the numbers yourself |
The report has five sections. What to take from each:
outlier (≥2× the channel's own median) is the signal. rising is a
young video gaining fast — note it, do not build a strategy on it yet.
Open the top 2–3 outliers and watch the first 5 seconds. Write down the hook in one
line each. That line is worth more than the whole table.YouTube's public feed carries the 15 most recent uploads only. Say so when you report — this is "what is working lately", not a channel history. RSS sites have no view counts: for them the report compares cadence and topics, never performance, and it says so itself.
1. Làm: <topic from the gap table> — vì <breakout evidence>
2. Thử: <title device from breakouts> trên video tới — ví dụ: "<a title for OUR topic>"
3. Đổi: <schedule or format change> — vì <what the numbers showed>
Then offer the next step: topic-radar on the chosen topic, or create-video directly.
APIFY_TOKEN (optional, paid): tiktok:@kenh, instagram:@kenh.
Tell the user it costs a little per run before you add them to a daily list. Facebook is not
supported — use their own exports or the ad-library MCP servers (docs/18-ads-and-marketing.md).
Never a scraper that needs the user's password.Method and caveats: docs/24-competitor-analysis.md.
To see HOW a breakout video works, not just that it broke out: install the watch-video
skill once (node scripts/install-skills.mjs watch-video, MIT) and give it the video's URL. It
returns timestamped frames and a transcript, so the report can name the hook in the first three
seconds, the cut rhythm and what is on screen. Take the device; never reuse the footage.
From gaps to insight. A topic gap says what competitors do not cover; it does not say what customers struggle with. Feed their low-star reviews and repeated questions into brand-lessons → grab ("Khách muốn ___, nhưng ___, vì ___") — docs/32-bai-hoc-thuong-hieu.md.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub xuho-it/content-agent-kit --plugin content-agent-kit32 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./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.Other plugins' skills for the same job