---
name: generate-xml-sitemaps-and-robots-txt-from-route-inv-3c7a440bb204
slug: "generate-xml-sitemaps-and-robots-txt-from-route-inventories-before-seo-launch"
description: "Use sitemap when an agent already knows the site routes or content URLs and needs valid sitemap XML, sitemap indexes, or robots.txt references before launch. This is a publishing-artifact skill, not a crawler or SEO platform."
github_stars: 1708
verification: "security_reviewed"
source: "https://github.com/ekalinin/sitemap.js"
author: "Eugene Kalinin"
category: "Content Writing & SEO"
framework: "Multi-Framework"
tool_ecosystem:
  github_repo: "ekalinin/sitemap.js"
  github_stars: 1708
  npm_package: "sitemap"
  npm_weekly_downloads: 12536444
---

# Generate XML sitemaps and robots.txt from route inventories before SEO launch

Use sitemap when an agent already knows the site routes or content URLs and needs valid sitemap XML, sitemap indexes, or robots.txt references before launch. This is a publishing-artifact skill, not a crawler or SEO platform.

## Prerequisites

Node.js, npm

## Installation

Use the upstream install or setup path that matches your environment:
- npm install --save sitemap
- npx sitemap < listofurls.txt # npx sitemap -h for more examples and a list of options.

Requirements and caveats from upstream:
- # sitemap ![MIT License](https://img.shields.io/npm/l/sitemap)[![Build Status](https://github.com/ekalinin/sitemap.js/workflows/Node%20CI/badge.svg)](https://github.com/ekalinin/sitemap.js/actions)![Monthly Downloads]...
- const { SitemapStream, streamToPromise } = require('sitemap')
- const { Readable } = require('stream')

Basic usage or getting-started notes:
- [Example of using sitemap.js with](#serve-a-sitemap-from-a-server-and-periodically-update-it) [express](https://expressjs.com/)
- sh
- ## Generate a one time sitemap from a list of urls

- Source: https://github.com/ekalinin/sitemap.js
- Extracted from upstream docs: https://raw.githubusercontent.com/ekalinin/sitemap.js/HEAD/README.md

## Documentation

- https://github.com/ekalinin/sitemap.js#readme

## Source

- [Agent Skill Exchange](https://agentskillexchange.com/skills/generate-xml-sitemaps-and-robots-txt-from-route-inventories-before-seo-launch/)


---
Source attribution: agentskillexchange
Original project: https://github.com/agentskillexchange/skills/blob/7964af467fccaf7d68a4b705bb2e26081fbdd3e8/skills/generate-xml-sitemaps-and-robots-txt-from-route-inventories-before-seo-launch/SKILL.md
License: MIT
License information: https://opensource.org/license/mit
Original upstream instructions; downloaded from Mega AI Hub.

## Upstream license notice

MIT License

Copyright (c) 2026 Agent Skill Exchange

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.



# Mega AI Hub resource metadata

Creator / publisher: agentskillexchange
Original project: https://github.com/agentskillexchange/skills/blob/7964af467fccaf7d68a4b705bb2e26081fbdd3e8/skills/generate-xml-sitemaps-and-robots-txt-from-route-inventories-before-seo-launch/SKILL.md
Attribution basis: Source repository record

Fields of work: Marketing
Roles: Content Marketer, SEO Specialist
Specialties: API, Cross Platform
Tools: Npm
Country applicability: Country not specified
Classification basis: Source catalog labels
Instruction SHA-256: 0a3a639d5a4d69f762f8bb64f010c29fb8319049cff8fed4963b62cc7d2e836e
