← 返回 Skills 市场
protoss70

Apify Competitor Intelligence

作者 protoss70 · GitHub ↗ · v1.0.1
cross-platform ✓ 安全检测通过
1229
总下载
4
收藏
5
当前安装
2
版本数
在 OpenClaw 中安装
/install apify-competitor-intelligence
功能描述
Analyze competitor strategies, content, pricing, ads, and market positioning across Google Maps, Booking.com, Facebook, Instagram, YouTube, and TikTok.
使用说明 (SKILL.md)

Competitor Intelligence

Analyze competitors using Apify Actors to extract data from multiple platforms.

Prerequisites

  • APIFY_TOKEN configured in OpenClaw settings
  • Node.js 20.6+
  • mcpc CLI (auto-installed via skill metadata)

Input Sanitization Rules

Before substituting any value into a bash command:

  • ACTOR_ID: Must be either a technical name (owner/actor-name — alphanumeric, hyphens, dots, one slash) or a raw ID (exactly 17 alphanumeric characters, e.g., oeiQgfg5fsmIJB7Cn). Reject values containing shell metacharacters (; | & $ ` ( ) { } \x3C > ! \).
  • SEARCH_KEYWORDS: Plain text words only. Reject shell metacharacters.
  • JSON_INPUT: Must be valid JSON. Must not contain single quotes (use escaped double quotes). Validate structure before use.
  • Output filenames: Must match YYYY-MM-DD_descriptive-name.{csv,json}. No path separators (/, ..), no spaces, no metacharacters.

Workflow

Copy this checklist and track progress:

Task Progress:
- [ ] Step 1: Identify competitor analysis type (select Actor)
- [ ] Step 2: Fetch Actor schema via mcpc
- [ ] Step 3: Ask user preferences (format, filename)
- [ ] Step 4: Run the analysis script
- [ ] Step 5: Summarize findings

Step 1: Identify Competitor Analysis Type

Select the appropriate Actor based on analysis needs:

User Need Actor ID Best For
Competitor business data compass/crawler-google-places Location analysis
Competitor contact discovery poidata/google-maps-email-extractor Email extraction
Feature benchmarking compass/google-maps-extractor Detailed business data
Competitor review analysis compass/Google-Maps-Reviews-Scraper Review comparison
Hotel competitor data voyager/booking-scraper Hotel benchmarking
Hotel review comparison voyager/booking-reviews-scraper Review analysis
Competitor ad strategies apify/facebook-ads-scraper Ad creative analysis
Competitor page metrics apify/facebook-pages-scraper Page performance
Competitor content analysis apify/facebook-posts-scraper Post strategies
Competitor reels performance apify/facebook-reels-scraper Reels analysis
Competitor audience analysis apify/facebook-comments-scraper Comment sentiment
Competitor event monitoring apify/facebook-events-scraper Event tracking
Competitor audience overlap apify/facebook-followers-following-scraper Follower analysis
Competitor review benchmarking apify/facebook-reviews-scraper Review comparison
Competitor ad monitoring apify/facebook-search-scraper Ad discovery
Competitor profile metrics apify/instagram-profile-scraper Profile analysis
Competitor content monitoring apify/instagram-post-scraper Post tracking
Competitor engagement analysis apify/instagram-comment-scraper Comment analysis
Competitor reel performance apify/instagram-reel-scraper Reel metrics
Competitor growth tracking apify/instagram-followers-count-scraper Follower tracking
Comprehensive competitor data apify/instagram-scraper Full analysis
API-based competitor analysis apify/instagram-api-scraper API access
Competitor video analysis streamers/youtube-scraper Video metrics
Competitor sentiment analysis streamers/youtube-comments-scraper Comment sentiment
Competitor channel metrics streamers/youtube-channel-scraper Channel analysis
TikTok competitor analysis clockworks/tiktok-scraper TikTok data
Competitor video strategies clockworks/tiktok-video-scraper Video analysis
Competitor TikTok profiles clockworks/tiktok-profile-scraper Profile data

Step 2: Fetch Actor Schema

Fetch the Actor's input schema and details dynamically using mcpc:

mcpc --json mcp.apify.com --header "Authorization: Bearer $APIFY_TOKEN" tools-call fetch-actor-details actor:="ACTOR_ID" | jq -r ".content"

Replace ACTOR_ID with the selected Actor (e.g., compass/crawler-google-places).

This returns:

  • Actor description and README
  • Required and optional input parameters
  • Output fields (if available)

Step 3: Ask User Preferences

Before running, ask:

  1. Output format:
    • Quick answer - Display top few results in chat (no file saved)
    • CSV - Full export with all fields
    • JSON - Full export in JSON format
  2. Number of results: Based on character of use case

Step 4: Run the Script

Quick answer (display in chat, no file):

node {baseDir}/reference/scripts/run_actor.js \
  --actor 'ACTOR_ID' \
  --input 'JSON_INPUT'

CSV:

node {baseDir}/reference/scripts/run_actor.js \
  --actor 'ACTOR_ID' \
  --input 'JSON_INPUT' \
  --output 'YYYY-MM-DD_OUTPUT_FILE.csv' \
  --format csv

JSON:

node {baseDir}/reference/scripts/run_actor.js \
  --actor 'ACTOR_ID' \
  --input 'JSON_INPUT' \
  --output 'YYYY-MM-DD_OUTPUT_FILE.json' \
  --format json

Step 5: Summarize Findings

After completion, report:

  • Number of competitors analyzed
  • File location and name
  • Key competitive insights
  • Suggested next steps (deeper analysis, benchmarking)

Security & Data Privacy

This skill instructs the agent to select an Apify Actor, fetch its schema (via mcpc), and run scrapers. The included script communicates only with api.apify.com and writes outputs to files under the current working directory; it does not access unrelated system files or other environment variables.

Apify Actors only scrape publicly available data and do not collect private or personally identifiable information beyond what is openly accessible on the target platforms. For additional security assurance, you can check an Actor's permission level by querying https://api.apify.com/v2/acts/:actorId — an Actor with LIMITED_PERMISSIONS operates in a restricted sandbox, while FULL_PERMISSIONS indicates broader system access. For full details, see Apify's General Terms and Conditions.

Error Handling

APIFY_TOKEN not found - Ask user to configure APIFY_TOKEN in OpenClaw settings mcpc not found - Run npm install -g @apify/mcpc Actor not found - Check Actor ID spelling Run FAILED - Ask user to check Apify console link in error output Timeout - Reduce input size or increase --timeout

安全使用建议
This skill appears to do what it claims: it uses your APIFY_TOKEN to start Apify actors and download their datasets from api.apify.com. Before installing: (1) ensure you trust the npm package @apify/mcpc or review it beforehand; (2) provide an APIFY_TOKEN scoped appropriately — the token can trigger runs and incur billing, so use a least-privilege token or monitoring; (3) be aware that running third-party Apify actors causes those actors to scrape external sites (review target sites' terms of service and privacy rules, and ensure you are allowed to scrape them); (4) the SKILL.md examples use jq but jq is not declared as a required binary — you may need jq in your environment or adapt the command; (5) outputs may include PII depending on what an actor scrapes, so handle files accordingly. Overall the skill is coherent with its described purpose.
功能分析
Type: OpenClaw Skill Name: apify-competitor-intelligence Version: 1.0.1 The OpenClaw AgentSkills bundle is benign. The `SKILL.md` file explicitly defines robust input sanitization rules for `ACTOR_ID`, `JSON_INPUT`, and output filenames, instructing the AI agent to reject shell metacharacters and path separators, which is a strong defense against prompt and shell injection. The `run_actor.js` script further implements comprehensive input validation, including a critical `validateOutputPath` function that prevents path traversal by ensuring all file writes occur within the current working directory. All network communication is strictly limited to `api.apify.com`, and there is no evidence of data exfiltration, unauthorized execution, persistence mechanisms, or other malicious intent.
能力评估
Purpose & Capability
The name/description (running Apify actors to gather competitor data) aligns with the requested artifacts: APIFY_TOKEN, Node, and the mcpc CLI. The included run_actor.js implements actor start, polling, and dataset download via api.apify.com — these are expected for this purpose.
Instruction Scope
SKILL.md instructs the agent to fetch actor schemas with mcpc and to run the provided run_actor.js; the JS enforces input validation (actor ID format, JSON input, output path) and limits network access to api.apify.com. Two minor issues: (1) SKILL.md examples pipe mcpc output to jq but jq is not declared in required binaries (could cause runtime failure), and (2) running arbitrary Apify actors runs third-party scraping code — the agent will execute remote actor logic (via Apify) which may scrape external sites and could have legal/TO S implications. The instructions include explicit sanitization rules, which improves safety if enforced.
Install Mechanism
Install is a Node package (@apify/mcpc) that provides the mcpc binary. Installing an npm package is expected for a CLI dependency; this is moderate-risk relative to instruction-only skills but proportionate to the function. The install uses the npm registry (no opaque download URLs or archive extraction), and the package produces the expected mcpc binary.
Credentials
Only APIFY_TOKEN is required and declared as the primary credential. That is proportional: the skill must authenticate to apify.com to start actor runs and download datasets. Note: an APIFY_TOKEN grants ability to run actors and access datasets (and may incur billing), so users should supply a token with appropriate scope and monitor account usage.
Persistence & Privilege
The skill is not always-enabled and does not request system-wide persistence or elevated privileges. It does not modify other skills or global agent configuration. It will install an npm-provided mcpc binary (per install spec) which is normal for this functionality.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install apify-competitor-intelligence
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /apify-competitor-intelligence 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.1
- Switched from mcporter CLI to mcpc CLI for actor schema and metadata fetching. - Updated required system binaries and node package to "@apify/mcpc". - Revised prerequisite steps and command examples to use mcpc instead of mcporter. - Updated troubleshooting steps to reference mcpc installation and errors.
v1.0.0
Initial release of apify-competitor-intelligence. - Analyze competitor strategies, pricing, ads, and positioning across major platforms (Google Maps, Booking.com, Facebook, Instagram, YouTube, TikTok) using Apify Actors. - Simple workflow: identify analysis type, fetch Actor input schema dynamically, collect user preferences, run analysis, and summarize results. - Robust input sanitation rules prevent shell injection and enforce safe filenames. - Output choices include chat summary, CSV export, or JSON export, with customizable file naming. - Enhanced security and privacy: utilizes Apify’s API, scoped tokens, and sandboxes; does not access unrelated files or collect private data. - Clear error handling steps for missing configuration, tooling, or API errors.
元数据
Slug apify-competitor-intelligence
版本 1.0.1
许可证
累计安装 5
当前安装数 5
历史版本数 2
常见问题

Apify Competitor Intelligence 是什么?

Analyze competitor strategies, content, pricing, ads, and market positioning across Google Maps, Booking.com, Facebook, Instagram, YouTube, and TikTok. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 1229 次。

如何安装 Apify Competitor Intelligence?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install apify-competitor-intelligence」即可一键安装,无需额外配置。

Apify Competitor Intelligence 是免费的吗?

是的,Apify Competitor Intelligence 完全免费(开源免费),可自由下载、安装和使用。

Apify Competitor Intelligence 支持哪些平台?

Apify Competitor Intelligence 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Apify Competitor Intelligence?

由 protoss70(@protoss70)开发并维护,当前版本 v1.0.1。

💬 留言讨论