competitor-intelligence

A workflow for researching and comparing competitor X/Twitter accounts. It combines profile, post, follower, audience, engagement, and network information.

In plain words
What is it for?
Use it to compare accounts, measure engagement, find viral posts, study audience overlap and demographics, identify mentions and replies, and track competitors' topics.
Why use it?
Competitor research is scattered across profiles, posts, searches, and follower lists. Bringing these observations together makes differences in content and audience easier to review.

Skill for Claude CodeCodex

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.

agentmods
npx agentmods add skills/nirholas/xactions/competitor-intelligence
Any agent
npx skills add nirholas/XActions --skill competitor-intelligence
Clone the repo
git clone --depth 1 https://github.com/nirholas/XActions

Made for: Claude Code, Codex.

Per session 51 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 634 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00051 $0.00634
Opus 5 $0.00026 $0.00317
Sonnet 5 $0.00010 $0.00127
Haiku 4.5 $0.00005 $0.00063

Measured 2d ago against content hash c532a9f105a3, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

competitor-intelligence 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 2d 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.

skills/competitor-intelligence/SKILL.md · 74 lines

How it starts

The opening of the file, as written. The whole thing — 74 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Competitor Intelligence

MCP-powered workflow plus browser scripts for analyzing competitor X/Twitter accounts.

MCP Tools

Tool Purpose
x_get_profile Bio, follower/following counts, verified status
x_get_tweets Recent posts with engagement metrics
x_get_followers Follower list with bios
x_get_following Following list for network analysis
x_search_tweets Find mentions and replies
x_competitor_analysis Automated comparison

Browser Scripts

Goal Script
Side-by-side competitor comparison src/competitorAnalysis.js
Compare audience overlap src/audienceOverlap.js
Analyze their audience demographics src/audienceDemographics.js
Find their viral tweets src/viralTweetDetector.js
Benchmark your engagement src/tweetPerformance.js
Track their trending topics src/trendingTopicMonitor.js

Analysis Workflow

  1. Collect profile -- x_get_profile for target username
  2. Pull tweets -- x_get_tweets with limit: 50, note frequency and themes
  3. Calculate engagement -- Per-tweet rate: (likes + RTs + replies) / followers
  4. Categorize content -- Original vs reply vs retweet vs thread
  5. Audit audience -- x_get_followers with limit: 100, scan bios
  6. Map network -- x_get_following for mutual connections and influencer relationships
  7. Find overlap -- src/audienceOverlap.js to compare your followers with theirs

Output Template

## Competitor Report: @{username}

### Profile
- Followers: {n} | Following: {n} | Ratio: {r}
- Verified: {yes/no} | Joined: {date}

### Content Strategy
- Posts/week: {n} | Top topics: {t1}, {t2}, {t3}
- Peak posting: {day} at {hour}
- Avg engagement rate: {rate}%

### Audience
- Common industries: {list}
- Follower size distribution: {breakdown}

### Network
- Notable follows: {list}
- Audience overlap with you: {percentage}%

Tips

  • Run competitor analysis quarterly for trends
  • Use src/audienceOverlap.js to find collaboration opportunities
  • Track competitors' viral content for content inspiration
  • Mirror successful content formats, not exact content

Read the full file on GitHub · 74 lines

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. 2d ago First seen · 74 lines · 51 tokens per session scan A c532a9f105a3

Subscribe to this mod's changes

competitor-intelligence is a skill published in the GitHub repository nirholas/XActions (496 stars, last pushed 5d ago), licensed Apache-2.0. It adds 51 tokens to every session and 634 once invoked, about $0.0003 per session on Opus 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-08-30.

Related

Other skills, from other repositories

self-media-composer

Use when the user wants to create, extend, or edit self-media posts or card/article projects for Rednote/Xiaohongshu, Instagram, WeChat Official Accounts, or similar platforms. Trigger on [@selfmediaproject:...], create/add post, make cards, generate social cards, write WeChat article, multilingual self-media…

dtyq/magic · 138 tokens

self-media-pre-publish-analyzer

Pre-publish diagnosis skill for self-media works. Use when the user asks for 发布前诊断, 发布前分析, content scoring, pre-publish review, or optimization diagnosis for Xiaohongshu/Rednote image-card posts or WeChat Official Account articles. Reads the mentioned post folder, searches comparable content online, scores the work…

dtyq/magic · 83 tokens

benchmark-methodology

Use after competitive-platform-analysis has produced a tiered competitor set. Scores each competitor across nine weighted dimensions (positioning, voice, visual craft, offer packaging, evidence, enterprise-readiness, thought leadership, pricing, client's strategic tension) with explicit 1–5 rubrics and a tension-plot.…

affaan-m/ECC · 72 tokens

write-like-meng-on-x

Write, rewrite, review, or continuously refine X/Twitter posts in Meng To's current voice using his deduplicated authored-post corpus, personal and product context, shared resources, and Content repo evidence. Use when asked to improve a tweet in Meng's tone, draft an original post, reply, thread, resource share, or…

MengTo/Skills · 111 tokens

youtube-thumbnail

Generate a branded YouTube thumbnail from a video title. Uses a reference photo of the creator, high-CTR thumbnail principles, and brand colours to produce a ready-to-generate image prompt for Gemini. Use this skill whenever the user says "thumbnail", "youtube thumbnail", "build me a thumbnail", or wants a video cover…

charlie947/social-media-skills · 99 tokens

referral-program

When the user wants to design, launch, or optimize an in-app referral / invite / share-to-earn program — including reward structure, mechanics, fraud prevention, deep link setup, and viral coefficient measurement. Use when the user mentions "referral program", "invite a friend", "refer and earn", "share to earn"…

Eronred/aso-skills · 159 tokens