content-sdk-multisite-management

content-sdk-multisite-management is a skill for Claude Code, Codex from robearlam/sitecoreai-harness-engineering. It costs 0 tokens per session (604 once invoked), scanned A, original, Apache-2.0.

A guide for configuring a Next.js application that serves multiple sites or hostnames from one codebase. It resolves the site and language for each request and applies the required proxy steps in a fixed order.

In plain words
What is it for?
Use it when working with multiple domains, site configuration, hostname-based routing, locale handling, or `.sitecore/sites.json` in a Content SDK project.
Why use it?
It prevents requests from being sent to the wrong site or language and avoids proxy ordering errors that can break routing.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: installed under .agents/ (shared by several agents); mentions AGENTS.md.

Good fit Use it when working with multiple domains, site configuration, hostname-based routing, locale handling, or .sitecore/sites.json in a Content SDK project.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/robearlam/sitecoreai-harness-engineering/content-sdk-multisite-management
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add robearlam/sitecoreai-harness-engineering --skill content-sdk-multisite-management
Clone the repo
git clone --depth 1 https://github.com/robearlam/sitecoreai-harness-engineering

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for content-sdk-multisite-management

README.md
[![agentmods](https://agentmods.dev/badge/skills/robearlam/sitecoreai-harness-engineering/content-sdk-multisite-management/github.svg)](https://agentmods.dev/skills/robearlam/sitecoreai-harness-engineering/content-sdk-multisite-management)
Your own site
<a href="https://agentmods.dev/skills/robearlam/sitecoreai-harness-engineering/content-sdk-multisite-management"><img src="https://agentmods.dev/badge/skills/robearlam/sitecoreai-harness-engineering/content-sdk-multisite-management/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for content-sdk-multisite-management

Your own site · 80×15
<a href="https://agentmods.dev/skills/robearlam/sitecoreai-harness-engineering/content-sdk-multisite-management"><img src="https://agentmods.dev/badge/skills/robearlam/sitecoreai-harness-engineering/content-sdk-multisite-management.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 0 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 604 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00000 $0.00604
Opus 5.5 $0.00000 $0.00242
Sonnet 5.5 $0.00000 $0.00121
Haiku 4.5 $0.00000 $0.00060

Measured 14d ago against content hash e16d69514f9e, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

content-sdk-multisite-management scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 14d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

src/headapps/rob-harness-engineering/.agents/skills/content-sdk-multisite-management/SKILL.md · 38 lines

How it starts

The opening of the file, as written. The whole thing — 38 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Content SDK Multisite Management (App Router)

Site resolution from request (e.g. hostname or cookie); proxy rewrites to /[site]/[locale]/...path. Locale must run first so next-intl and multisite see the correct locale.

When to Use

  • User asks about multiple sites, hostnames, or site resolution.
  • Task involves .sitecore/sites.json, multisite config, or proxy/middleware for site.
  • User mentions "multisite," "site resolution," "hostname," or "sites.json."

How to perform

  • Site list: .sitecore/sites.json. Proxy logic lives in src/proxy.ts; ensure src/middleware.ts re-exports it if present. Keep chain order: LocaleProxy → AppRouterMultisiteProxy → RedirectsProxy → PersonalizeProxy. Exclude API, _next, static assets in the matcher.

Hard Rules

  • Site list is in .sitecore/sites.json (typically generated by Sitecore CLI or deployment). Avoid hand-editing unless the format is known.
  • Proxy: Implemented in src/proxy.ts. Next.js runs middleware from middleware.ts at root or in src/ — if the app only has proxy.ts, add src/middleware.ts that re-exports it.
  • Chain order is fixed: LocaleProxy → AppRouterMultisiteProxy → RedirectsProxy → PersonalizeProxy. Do not change this order. LocaleProxy runs first so i18n and multisite see the correct locale. AppRouterMultisiteProxy rewrites to /[site]/[locale]/[...path].
  • Matcher: Exclude API routes, _next/, sitemap, robots, healthz, Sitecore paths, and static assets so the proxy stays lightweight.
  • Config: sitecore.config.ts → multisite, redirects, personalize. Single SitecoreClient; pass resolved site and locale from route params into getPage, getDictionary, etc.

Stop Conditions

  • Stop if the user wants to reorder the proxy chain; explain that LocaleProxy must run first for App Router.
  • Stop if sites.json format is unknown and the change could break resolution; suggest checking SDK docs or CLI output.
  • Do not add a second site resolution mechanism; use the existing proxy and config.

Read the full file on GitHub · 38 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 14d ago First seen · 38 lines · 0 tokens per session scan A e16d69514f9e

Subscribe to this mod's changes

content-sdk-multisite-management is a skill published in the GitHub repository robearlam/sitecoreai-harness-engineering (11 stars, last pushed 6d ago), licensed Apache-2.0. It costs nothing until one of its globs matches a file; then it loads 604 tokens. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-11-16.

Related

content-sdk-multisite-management compared with skills from other repositories

content-sdk-multisite-management next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
content-sdk-multisite-managementrobearlam/sitecoreai-harness-engineeringSkill116d agoApache-2.0A0Claude Code, Codex
intl-expansionalirezarezvani/claude-skillsSkill31k3d agoMITA27Claude Code
azure-ai-translation-text-pymicrosoft/skillsSkill3.3k3d agoMITA60Claude Code
chinese-documentationjnMetaCode/superpowers-zhSkill8.6k14d agoMITA62Claude Code
hardenfengshao1227/ccg-workflowSkill6.0k11d agoMITA62Claude Code
edit-sitemicrosoft/power-platform-skillsSkill1.2ktodayMITA104Claude Code
asc-subscription-localizationrorkai/app-store-connect-cli-skillsSkill1.2k7d agoMITA60Claude Code