infrasity-labs/dev-gtm-claude-skills/blog-post-counter
Claude Code and agent skill by infrasity-labs/dev-gtm-claude-skills
- community
Checking that the SKILL.md file is still in the repository.
Counts and compares blog posts across a target and competitors, audits content freshness via sitemap lastmod dates, and maps competitor organic keywords (US, non-branded, informational) against the target to surface ranking gaps. Use when asked to compare blog counts, content volume, publishing cadence, content freshness, keyword mapping, keyword gap analysis, or competitor keyword reports — e.g. "how many blog posts does X have vs Y", "how fresh is content on X", "where does [target] rank for [competitor] keywords", "keyword gap between X and Y". Works from company names alone. Always use for blog comparison, freshness audits, and keyword mapping tasks.
Install
npx vskill@latest install infrasity-labs/dev-gtm-claude-skills/blog-post-counterSKILL.md
Blog Post Counter + Keyword Mapping Skill
Two workflows in one skill:
- Blog Post Counter — counts and compares blog post output across a target and competitors, with optional content freshness audit
- Keyword Mapping — pulls competitor's organic keywords (US, non-branded, informational) and cross-references against target's keyword footprint to surface gaps and opportunities
WORKFLOW A — Blog Post Counter
Step 1 — Resolve each company to a URL
For each company name provided:
- If a URL was given directly, use it.
- 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 websiteto 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:
Step 3 — Count blog posts
Fetch the sitemap and count URLs that are blog posts. Use this bash pattern:
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 sub-sitemap URLs and fetch the blog-specific one:
JS-rendered sites: Some blog pages render via JavaScript and may not expose counts through sitemaps. In that case, fall back to site:example.com/blog search operator to estimate.
Edge cases:
- Some sites use
/resources/,/insights/,/learn/, or/hub/instead of/blog/— check the sitemap structure if a/blog/grep returns 0. - If the sitemap is very large (>1MB), grep for multiple blog path patterns.
Step 4 — Build the output
Once all counts are collected, produce a ranked table with the target company highlighted:
Then add a brief summary:
- Where the target ranks (e.g. "3rd out of 4")
- Gap to the leader (e.g. "42 posts behind the top competitor")
- Gap to the one above (if not already #1)
- Any notable observations (e.g. very new site, or tied for first)
Content Freshness Audit (blog posts only)
Run this audit whenever the user asks about content freshness, recency, publishing cadence, or when it adds useful context to the blog count comparison.
Step 5 — Extract blog post lastmod dates
For each domain, extract only blog post URLs and their lastmod dates from the sitemap:
Step 6 — Detect build-time stamp inflation
Before treating lastmod dates as real signals, check whether they are genuine per-post edit dates or build-time bulk stamps:
Build-time stamps = all (or nearly all) blog posts share the same date, usually within a narrow time window (seconds to minutes). This is common with Next.js/Vercel and similar SSG frameworks that regenerate the sitemap on every deploy. These dates do NOT reflect when content was actually written or updated.
Real dates = each post has a distinct lastmod that varies across weeks or months. These are trustworthy freshness signals.
Always flag build-time stamps clearly in the output so the user understands the dates are not meaningful for SEO or content analysis.
Step 7 — Compute freshness buckets
Using today's date, bucket each blog post's lastmod into:
| Bucket | Age | |
|---|---|---|
| Last 30 days | < 30 days old | |
| 30–90 days | 30–89 days old | |
| 91–180 days | 90–179 days old | |
| 181–365 days | 180–364 days old | |
| Over 365 days | 365+ days old |
Also compute:
- Newest post date and days since
- Oldest post date
- Monthly publishing cadence — group posts by
YYYY-MMto show volume over time - Days since last publish — the key staleness metric
Step 8 — Freshness output
Produce a per-domain freshness summary alongside (or below) the blog count table. Use the visualiser to render a side-by-side comparison widget when comparing multiple domains. The widget must show:
- Stamp type badge — "Build-time stamps ⚠️" or "Real dates ✓"
- Key stats — total posts, newest post date, days since newest, unique date count
- Freshness bar chart — one bar per bucket showing count and percentage
- Monthly publishing activity — small bar chart by month (blog posts only, last 12 months)
- Alert banners:
- Build-time stamps → warning banner explaining the dates are not real edit dates
- No posts in 90+ days → warning banner flagging the content gap
- Real dates with recent posts → info banner confirming trustworthy signal
SEO freshness interpretation to include in the summary:
- Build-time stamps: note that Google ignores inflated lastmod dates and they provide no freshness signal
- Real dates, posts < 30 days: strong freshness signal, good for SEO
- Real dates, no posts 90+ days: content gap, likely losing freshness ranking signals to competitors who publish regularly
- Real dates, bulk publish spike followed by drop: flag the pattern (migration or sprint, not sustained cadence)
Notes (Workflow A)
- Always count from the sitemap — it's the most accurate and complete source.
- Robots.txt is always the first place to look for the sitemap URL.
- The
/blogindex page should never be counted as a post. - If a company has no blog section at all, report 0 and note it.
- Sitemap data can lag real-time by days; note this if relevant.
- Run all company lookups in sequence (one bash block per company) to avoid hitting rate limits.
- For freshness: always filter to blog post URLs only — exclude static pages, service pages, glossary, etc.
- Never treat build-time stamps as real freshness data. Always detect and flag them.
WORKFLOW B — Keyword Mapping
Maps a competitor's organic keyword footprint against a target domain to surface content gaps and ranking opportunities.
Step 1 — Pull domain metrics
Pull org_keywords and org_traffic for both competitor and target via Ahrefs site-explorer-metrics:
Do this for both domains. The org_keywords count tells you how many batches you'll need to capture the full keyword set.
Step 2 — Pull competitor keywords
Pull the competitor's full keyword set using Ahrefs site-explorer-organic-keywords with these fixed filters:
Pull multiple batches using different order_by values to maximize coverage:
- Batch 1:
order_by: sum_traffic:desc - Batch 2:
order_by: volume:desc - Batch 3:
order_by: best_position:asc
After each batch, deduplicate by keyword across all batches collected so far. Keep the entry with the lowest (best) best_position per keyword.
Continue batching until no new keywords appear across two consecutive batches, or until batch count exceeds the expected keyword universe from Step 1.
Step 3 — Pull target keywords
Exact same pull for the target domain — same filters, same multiple sort orderings, same deduplication logic.
Store the result as a lookup map: { keyword → { best_position, sum_traffic, best_position_url } }
Step 4 — Cross-reference
For each competitor keyword from Step 2, look it up in the target map from Step 3. Assign a status:
Both rank:
WINNING— target position < competitor position (target is ahead)IMPROVE— competitor position < target position (competitor is ahead)
Target does not rank:
CRITICAL— volume ≥ 1,000HIGH— volume 500–999MEDIUM— volume 200–499LOW— volume 100–199NEW— volume < 100
Each row in the output represents one competitor keyword. Fields per row:
keywordvolumecompetitor_rank(best_position)competitor_traffic(sum_traffic)target_rank(best_position, or null)target_traffic(sum_traffic, or null)target_url(best_position_url, or null)status
Notes (Workflow B)
- Rows = competitor keywords only. The report answers: "where is the competitor getting organic traction that the target has no presence?"
- The
is_branded=falseandis_informational=truefilters are applied at pull time — not as post-processing. This keeps the dataset clean from the start. - Both competitor and target keyword pulls use identical filter parameters so the comparison is symmetric.
- If a target keyword exists in the map but the competitor keyword lookup returns null, that competitor keyword was not captured — it may be outside the top 100 positions Ahrefs tracks.
- Stat card counts must reflect the filtered (non-branded, informational) dataset only.
COMBINED HTML REPORT
Both workflows feed into a single HTML report file. Run Workflow A and Workflow B fully first, collect all data, then generate the report in one pass.
Report structure (top to bottom)
This is the start of the file. Read the full SKILL.md on GitHub.
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/blog-post-counter/SKILL.md
Popularity
- Repository stars
- 129
- Repository forks
- 12
- 7-day trend score
- 24
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/infrasity-labs/dev-gtm-claude-skills/blog-post-counter)