← ClaudeAtlas

blog-post-counterlisted

Counts blog posts for a target company and its competitors, then ranks them to show where the target stands. Use this skill whenever a user wants to compare blog post counts, content volume, or publishing output between companies — e.g. "how many blog posts does X have vs Y and Z", "compare blog content between these companies", "where does [company] rank for blog posts against competitors", "blog post count for [company]", or any request involving counting or comparing published blog content across multiple sites. Works from company names alone — no URLs needed. Always use this skill for multi-company blog comparison tasks.
Infrasity-Labs/dev-gtm-claude-skills · ★ 23 · AI & Automation · score 81
Install: claude install-skill Infrasity-Labs/dev-gtm-claude-skills
# Blog Post Counter Skill Counts and compares blog post output across a target company and its competitors, ranking them so the user can see where their target stands. ## Workflow ### Step 1 — Resolve each company to a URL For each company name provided: 1. If a URL was given directly, use it. 2. If only a name was given, run `curl -sL "https://<likely-domain>/robots.txt"` to confirm the site exists and find the sitemap. If that 404s, do a quick web search for `"<company name>" official website` to get the correct domain. ### Step 2 — Find the sitemap From the robots.txt, extract the `Sitemap:` line(s). Common patterns: - Single sitemap: `Sitemap: https://example.com/sitemap.xml` - Sitemap index: multiple `Sitemap:` lines, or a sitemap-index.xml that references sub-sitemaps If no sitemap is in robots.txt, try these fallbacks in order: ``` /sitemap.xml /sitemap_index.xml /sitemap-index.xml /blog/sitemap.xml ``` ### Step 3 — Count blog posts Fetch the sitemap and count URLs that are blog posts. Use this bash pattern: ```bash curl -sL -A "Mozilla/5.0" "https://example.com/sitemap.xml" \ | grep -o '<loc>[^<]*</loc>' \ | grep -iE '/blog/|/posts?/|/articles?/|/news/' \ | grep -v -E '^<loc>https://[^/]+/blog/?</loc>$' \ | wc -l ``` **Important:** Exclude the blog index page itself (e.g. `/blog` or `/blog/`) — count only individual post URLs. **Sitemap index handling:** If the sitemap is an index (contains `<sitemap>` tags rather than `<url>` tags), extract the su