IS

    Incremental Sitemap Engine — Cold/Hot XML & <1ms Zero-Copy Nginx Serving

    1

    High-performance Cold/Hot incremental XML sitemap generator and <1ms TTFB static edge serving by Dương Phúc Khánh (khanhdp.com).

    Free

    Security scanned

    Works with the AI Agents you already use

    Claude CodeClaude CodeCursorCursorCodex CLICodex CLIMuseMuseDotsDots+21 more

    About this skill

    When large content websites (blogs, e-commerce, news platforms with 10k–500k+ URLs) rely on framework-level dynamic SSR routes (e.g. Next.js src/app/api/sitemaps/.../route.ts or Nuxt/Remix route handlers) to generate XML sitemaps on-demand:

    1. Massive CPU & Database Thrashing: When Googlebot, Bingbot, or Ahrefs crawl sitemaps, they request dozens of weekly/monthly archive XML files concurrently. Each request triggers database pagination (fetching thousands of rows), JSON serialization, and heavy XML string concatenation in Node.js/Bun.
    2. Gateway Timeouts (504s) & De-indexing: The Node.js event loop blocks, database connections exhaust, and responses take 5–15 seconds or timeout, causing search engines to abandon indexing.
    3. 95% Waste on Immutable Historical Data: Articles published in past months/years are closed and immutable. Recomputing them dynamically on every crawl is pure waste.

    This skill standardizes the Cold/Hot Incremental Generation + Nginx Zero-Copy Static Serving pattern to achieve sub-second delta builds and < 1ms TTFB under infinite crawler concurrency.

    [!IMPORTANT] Service Placement Rule (CMS/Backend-Driven, Zero-FE Overhead): Always place the sitemap generator engine, database queries, and .sitemap-manifest.json state inside the CMS / Backend service that owns the database and content lifecycles (e.g., index-admin-cms), never inside the Frontend SSR app (index-web):

    1. Event-Driven Auto-Sync: Hook debounced incremental regeneration (scheduleIncrementalSitemapSync) directly into CMS publish/update/delete lifecycles (lifecycles.ts) right before CDN cache purge.
    2. Trigger & Status API: Expose POST /api/articles/sitemap/trigger and GET /api/articles/sitemap/status on the CMS so Frontend or Ops only makes a single lightweight HTTP call if a manual trigger is needed.
    3. Zero Frontend Loops: Remove multi-query lastmod probes and unbounded Promise.all pagination loops from Frontend SSR routes to prevent socket pool exhaustion and Cloudflare 524 timeouts.

    How to use

    1. 1

      Connect your agent to the Agensi MCP

      Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup

    2. 2

      Sign in to Agensi

      Your agent shows a sign-in link. Sign in and click Allow.

    3. 3

      Ask for what you need

      Your agent loads this skill and uses it on your task. It always asks before any payment.

    Reviews

    No reviews yet

    Be one of the first to try it. Every listed skill goes through the trust checks below.

    Security scanned

    Checked by our 8-point scan before listing

    Fresh listing

    Recently published to Agensi

    Free forever

    No account required to browse

    Trust & safety

    Security scan

    Security scan passed 3 days ago

    • Free with an Agensi account

    Permissions

    Terminal / Shell
    Write Files
    Network Access
    Listed3 days ago

    What's inside

    Frequently Asked Questions

    High-performance Cold/Hot incremental XML sitemap generator and <1ms TTFB static edge serving by Dương Phúc Khánh (khanhdp.com).

    This skill uses the open SKILL.md standard. Use it through an MCP-compatible agent connected to Agensi, and check the compatibility information on this page for confirmed agents and required capabilities.

    Connect your AI agent to Agensi through MCP, then ask it to use Incremental Sitemap Engine — Cold/Hot XML & <1ms Zero-Copy Nginx Serving on your task. Your agent loads the latest approved version each time. Paid skills require a purchase or active subscription. Skill files are not available for download; your licence does not allow you to save, copy or export any part of a skill.

    Free