site-mapping
Design a hierarchical site map for a web or app product. Produces page inventory with stable IDs, parent-child hierarchy, page types (hub / detail / utility / legal / entry / funnel), URL pattern per page, primary navigation placement, and access level. Surfaces orphan pages, redundant pages, and depth violations.
What this skill does
# Site Mapping
You design a hierarchical site map for a web or app product. Output is a structured page inventory that a team can implement — each page has an ID, type, URL pattern, nav placement, and access level.
## Core rules
- **Stable IDs** (`P-001`, …) that persist across revisions
- **Every page has a type** — no untyped pages
- **Depth ceiling** (default 4) — flag violations
- **Orphans and redundancy surfaced** — not hidden
- **URL patterns consistent** — naming convention declared
- **Access levels explicit** — public / authenticated / role-based
- **No fabricated pages** — work from supplied scope or elicited content
## Input handling
| Dimension | Required | Default |
|---|---|---|
| **Product** | Yes | — |
| **Mode** | No | `autonomous` (propose structure) / `inventory` (from supplied list) / `audit` (existing site) |
| **Depth ceiling** | No | 4 |
| **URL convention** | No | kebab-case, plural for collections |
| **Access levels in scope** | No | public + authenticated |
## Phase 1 — Setup
```
**Product**: [name]
**Mode**: [autonomous / inventory / audit]
**Depth ceiling**: [N]
**URL convention**: [convention]
**Access levels**: [list]
```
Ask render mode per `diagram-rendering` mixin and output path (default: `/documentation/[case]/site-mapping/`).
## Phase 2 — Page types
| Type | Purpose | Examples |
|---|---|---|
| **Entry** | First landing / marketing | Homepage, campaign landing |
| **Hub** | Category or navigation overview | Product category, dashboard home |
| **Detail** | Single item | Product page, article, user profile |
| **List / index** | Collection | Search results, category listing |
| **Funnel** | Multi-step flow | Signup, checkout, onboarding |
| **Utility** | Tools / settings | Account, preferences, notifications |
| **Legal / policy** | Required pages | Privacy, terms, cookie, accessibility statement |
| **Error / status** | 4xx / 5xx / empty | 404, maintenance, access denied |
## Phase 3 — Page inventory
Per page:
| Field | Description |
|---|---|
| **ID** | `P-001`, … stable |
| **Name** | Human-readable |
| **Type** | From Phase 2 |
| **Parent ID** | For hierarchy (root = null) |
| **URL pattern** | `/products/{slug}` — parameters explicit |
| **Access level** | public / authenticated / role: [roles] |
| **Primary nav placement** | main / footer / utility / hidden |
| **Entry points** | How users arrive (SEO / direct / nav / link) |
| **Key actions** | Primary CTAs |
| **Related pages** | Cross-link IDs |
## Phase 4 — Hierarchy rules
- Single-root (homepage)
- Max depth = ceiling (default 4) — flag deeper
- Every page has a parent (or is root)
- Hub pages may have many children; detail pages usually leaves
- Funnel steps form sequential chain, not a tree
## Phase 5 — Orphan and redundancy detection
- **Orphans**: pages not reachable from primary nav or from any hub — list explicitly
- **Redundancy**: pages with near-identical purpose — flag for consolidation
- **Dead ends**: pages with no outgoing links (leaves) — acceptable for terminal pages, flag for others
- **Depth violations**: pages beyond ceiling — surface with path
## Phase 6 — Navigation placement
Per page, declare where it appears in nav:
| Nav area | Typical contents |
|---|---|
| **Main nav** | 5–7 top-level items (hubs) |
| **Secondary / sub-nav** | Children of current hub |
| **Footer** | Legal, support, company info |
| **Utility** | Account, cart, language |
| **Contextual** | Only visible from specific parents |
| **Hidden** | Reachable via link only (post-signup flows, rare utilities) |
## Phase 7 — URL patterns
Declare convention and enforce:
- Case: kebab-case default
- Plural vs singular: plural for collections (`/products`), singular with ID for detail (`/products/{id}`)
- Parameters: `{param}` notation
- Nested vs flat: declare preference
- Trailing slash: declare and stick
Flag deviations with recommendations.
## Phase 8 — Diagrams
### 1. Site map (tree)
```mermaid
flowchart TD
P001["Home<br/>/ (entry)"]
P002["Products<br/>/products (hub)"]
P003["Category A<br/>/products/cat-a (hub)"]
P004["Product detail<br/>/products/{slug} (detail)"]
P005["About<br/>/about (utility)"]
P006["Contact<br/>/contact (utility)"]
P001 --> P002
P001 --> P005
P001 --> P006
P002 --> P003
P003 --> P004
```
### 2. Navigation placement matrix
Markdown table: pages × nav areas.
### 3. Depth heat (optional)
```mermaid
xychart-beta
title "Pages per depth level"
x-axis ["L0", "L1", "L2", "L3", "L4", "L5+"]
y-axis "Count" 0 --> 50
bar [1, 7, 20, 35, 12, 3]
```
## Phase 9 — Diagram rendering
Per `diagram-rendering` mixin. File names:
- `site-map.mmd` / `.png`
- `depth-distribution.mmd` / `.png` (optional)
## Phase 10 — Report assembly and approval
```markdown
# Site Map: [Product]
**Date**: [date]
**Mode**: [autonomous / inventory / audit]
**Depth ceiling**: [N]
**Total pages**: [N]
## Scope
[Product, mode, depth ceiling, URL convention, access levels]
## Page Inventory
[Full table]
## Hierarchy
[Tree diagram]
## Navigation Placement
[Matrix]
## URL Patterns
[Convention + per-page patterns]
## Orphans
[Explicit list]
## Redundancy
[Near-duplicate pages + consolidation recommendations]
## Depth Violations
[Pages beyond ceiling with path]
## Dead Ends
[Leaves with no outgoing links]
## Diagrams
[Site map + optional depth distribution]
## Assumptions & Limitations
[`[Assumed]` pages, elicitation gaps]
```
Present for user approval. Save only after confirmation.
## Extraction + planning rules
- Stable IDs across revisions
- Every page typed
- Consistent URL convention
- Orphans / redundancy / depth violations surfaced
- No fabricated pages
## Failure behavior
| Situation | Behavior |
|---|---|
| No product | Interview mode (§7) |
| Unclear page count | Produce autonomous proposal, mark all `[Proposed]` |
| Depth violation expected (e.g., legacy CMS) | Flag and recommend redesign or accept with note |
| Flat inventory without hierarchy | Propose grouping, confirm with user |
| mmdc failure | See `diagram-rendering` mixin |
| Out-of-scope (e.g., "write the CMS") | "This skill produces structure; implementation is engineering." |
## Self-check
```
[] Stable IDs
[] Every page typed
[] Parent-child hierarchy correct (single root)
[] Depth ≤ ceiling (violations surfaced)
[] URL convention declared and applied
[] Access levels per page
[] Nav placement per page
[] Orphans listed
[] Redundancy listed
[] Dead ends listed
[] Diagrams valid
[] No fabricated pages
[] Report follows output contract
```
Related in Ads & Marketing
ads
IncludedMulti-platform paid advertising audit and optimization skill. Analyzes Google, Meta, YouTube, LinkedIn, TikTok, Microsoft, and Apple Ads. 250+ checks with scoring, parallel agents, industry templates, and AI creative generation.
banana
IncludedAI image generation Creative Director powered by Google Gemini Nano Banana models. Use this skill for ANY request involving image creation, editing, visual asset production, or creative direction. Triggers on: generate an image, create a photo, edit this picture, design a logo, make a banner, visual for my anything, and all /banana commands. Handles text-to-image, image editing, multi-turn creative sessions, batch workflows, and brand presets.
rpg-migration-analyzer
IncludedAnalyzes legacy RPG (Report Program Generator) programs from AS/400 and IBM i systems for migration to modern Java applications. Extracts business logic from RPG III/IV/ILE source code, identifies data structures (D-specs), file operations (F-specs), program dependencies (CALLB/CALLP), and converts RPG constructs to Java equivalents. Generates migration reports, complexity estimates, and Java implementation strategies with POJO classes, JPA entities, and service methods. Use when modernizing AS/400 or IBM i legacy systems, analyzing RPG source files (.rpg, .rpgle, .RPGLE), converting RPG to Java, mapping data specifications to Java classes, planning legacy system migration, or when user mentions RPG analysis, Report Program Generator, RPG III/IV/ILE, AS/400 modernization, IBM i migration, packed decimal conversion, or mainframe application rewrite.
brand-library-architect
IncludedBuild a complete brand library for a product — visual asset render pipeline, brand documentation set (BRAND, COPY, MANIFESTO, BIOS, FAQ, GLOSSARY, TONE, PRICING), open-source convention files (README, CONTRIBUTING, SECURITY, CODE_OF_CONDUCT), and a self-contained press kit. This skill should be used when the user asks to "build a brand library / brand kit / press kit / brand assets" for a product, "set up a brand library workflow," "create a positioning manifesto plus visual identity," or any combination of brand documentation + visual asset pipeline. Apply phase-by-phase or run end-to-end. Templates are product-agnostic and use {{TOKEN}} placeholders the skill prompts the user to fill.
writing-tech-post
IncludedAuthors engineering blog posts end-to-end: launch deep-dives, incident postmortems, architecture migrations, performance case studies, tutorials, AI/agent system writeups, security disclosures, and research-to-product translations. Picks the correct archetype, plans the abstraction ladder, enforces an evidence cadence (diagrams, benchmarks, profiles, traces, code, ablations), tunes voice against publisher house styles (Datadog, Vercel, GitHub, AWS, Meta, Cloudflare, Jane Street), and runs a pre-publish gate for narrative momentum and disclosure ethics. Use when drafting a new engineering post, restructuring a draft that feels flat, deciding which evidence form belongs where, validating that depth and product context are balanced, or preparing a postmortem, migration, or performance narrative for external publication. Do not use for API reference documentation, README authoring, marketing copy, release notes, generic SEO content, ghost-written executive thought leadership, or non-engineering long-form essays.
blog-google
IncludedGoogle API integration for blog performance: PageSpeed Insights, CrUX Core Web Vitals with 25-week history, Search Console performance, URL Inspection, Indexing API, GA4 organic traffic, NLP entity analysis for E-E-A-T, YouTube video search for embedding, and Google Ads Keyword Planner. Progressive feature availability based on credential tier (API key, OAuth/service account, GA4, Ads). Shares config with claude-seo at ~/.config/claude-seo/google-api.json. Use when user says "google data", "page speed", "core web vitals", "search console", "indexation", "GA4", "keyword research", "nlp entities", "blog performance", "youtube search", "google api setup".