Site mapping

From AtlasOmnia/hermes-custom-pack · View interactive version

Site mapping is an AI agent skill from the GitHub repository AtlasOmnia/hermes-custom-pack. site-mapping — Map out a website's full structure — sitemaps, navigation, URL taxonomy, content inventory.

How to use this skill

Skill file

Site Mapping

Map the complete structure of a website: extract all URLs from sitemaps, analyze navigation hierarchy, classify content by section, and produce a structured overview.

When to Use

Workflow

1. Discover sitemaps

Check these in order:

2. Extract URLs programmatically

Use browser_console with JS to fetch and parse XML sitemaps — DO NOT rely on reading rendered HTML tables (they truncate):

(async()=>{
 const urls=[];
 for(const sm of ['page-sitemap.xml','post-sitemap.xml']){
 const r=await fetch('https://site.com/'+sm);
 const t=await r.text();
 const parser=new DOMParser();
 const doc=parser.parseFromString(t,'text/xml');
 doc.querySelectorAll('loc').forEach(l=>urls.push(l.textContent));
 }
 return urls;
})()

3. Classify by path segments

Group URLs by first/second path segment to identify sections:

const paths={};
urls.forEach(u=>{
 const path=u.replace('https://site.com/','');
 const parts=path.split('/').filter(Boolean);
 // Group by [product][section] pattern
});

4. Extract navigation structure

From the homepage, pull:

5. Produce structured output

Deliver as a table or hierarchy showing:

Pitfalls

Output Format

User expects a concise structured overview — table or hierarchy with section names, URL prefixes, page counts, and brief notes. No narrative preamble beyond the total scale.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.