Skip to main content
ClaudeWave
Skill333 repo starsupdated today

domain-strategy

The domain-strategy skill provides a framework for planning and executing DNS architecture, registrar selection, and domain portfolio structure across single or multiple websites. Use it when establishing DNS for new sites, deciding between apex and www canonicalization, choosing subdomain versus subfolder versus separate domain architecture, planning redirects across multiple domains, consolidating or splitting domain portfolios, or selecting registrars and DNS providers before launch.

Install in Claude Code
Copy
git clone --depth 1 https://github.com/rampstackco/claude-skills /tmp/domain-strategy && cp -r /tmp/domain-strategy/dist/pi/.agents/skills/domain-strategy ~/.claude/skills/domain-strategy
Then start a new Claude Code session; the skill loads automatically.

SKILL.md

# Domain Strategy

Decide how domains, subdomains, and DNS work across a portfolio. Stack-agnostic. Works for one site or one hundred.

---

## When to use

- Setting up DNS for a new site (apex vs www, primary vs aliases)
- Choosing or switching registrars
- Planning redirects across multiple domains (parked, retired, consolidated)
- Deciding subdomain vs subfolder vs separate domain for a new product line
- Consolidating multiple sites into one
- Splitting one site into multiple
- Setting up DNS for email, security records, third-party services

## When NOT to use

- Migrating content between platforms with URL changes (use `content-migration`)
- Email authentication setup specifically (use `email-deliverability`)
- Security headers or HTTPS config (use `security-baseline`)
- Internationalization domain choices (use `internationalization`)

---

## Required inputs

- Current domain inventory (every domain you own or operate)
- Status of each (live, parked, redirected, retired)
- Strategic role of each (primary brand, sub-brand, defensive registration, campaign)
- Current DNS provider and registrar for each
- Email and third-party service dependencies

---

## The framework: 5 decisions

Every domain decision falls into one of these buckets. Address them in order.

### Decision 1: Apex vs www as canonical

Pick one. Redirect the other to it. Pick before launch. Changing later is painful.

- **Apex (example.com):** cleaner, more memorable, the modern default.
- **www (www.example.com):** historically standard, easier to add CDN-level CNAME records (apex CNAME is technically forbidden but most providers offer ALIAS or ANAME).

Whichever you pick, the other must 301 to it. Both serving content is duplicate content and a soft signal of poor setup.

### Decision 2: Subdomain vs subfolder vs separate domain

For a new product, blog, or content section:

| Pattern | Use when |
|---|---|
| Subfolder (`example.com/blog`) | Same brand, want SEO equity to flow, default choice |
| Subdomain (`blog.example.com`) | Different stack or platform, organizationally separate but related |
| Separate domain (`exampleblog.com`) | Different brand, different audience, intentional separation |

Default to subfolder. The case for subdomain or separate domain has to be made.

### Decision 3: Registrar strategy

The registrar is where the domain is registered. The DNS provider is where DNS records live. They can be the same or different.

Decisions:
- **Single registrar vs multiple:** single is simpler. Multiple makes sense for redundancy at scale.
- **Lock and 2FA:** non-negotiable. Domain hijacking is real and costly.
- **Auto-renew:** on for everything you care about. Off only for intentional drops.
- **WHOIS privacy:** on by default. Free at most modern registrars.
- **Transfer lock:** on except during planned transfers.

### Decision 4: DNS provider

The DNS provider controls how domains resolve. Critical for performance, reliability, and security.

Pick a provider that gives you:
- Fast global resolution (anycast network)
- DNSSEC support
- API access for automation
- Reasonable record limits
- Good audit logs

Default DNS records every domain needs:
- A or AAAA records (or CNAME) for the apex and www
- MX records (even just nullified if no email)
- TXT for domain verification, SPF
- CAA records (locks down which certificate authorities can issue certs for the domain)

### Decision 5: Parked domain strategy

Domains you own but aren't actively using. Three valid strategies:

1. **Redirect to a primary site.** Best for defensively registered domains close to your main brand. 301 every path to the primary's homepage or matching path.
2. **Hold blank.** A simple page or DNS NXDOMAIN. Acceptable for domains you may use later.
3. **Park with a landing page.** Generic "coming soon" page. Lowest value. Avoid registrar default parking pages (often serve ads against your brand).

Anti-pattern: letting parked domains serve duplicate or near-duplicate content from your main site. This is an SEO liability.

---

## Workflow

### Step 1: Inventory

Pull every domain you own from every registrar. Build a single sheet:

| Domain | Registrar | DNS provider | Status | Role | Renewal date | Notes |
|---|---|---|---|---|---|---|

If you can't account for every domain, the strategy can't be accurate.

### Step 2: Classify by role

Each domain gets one role:
- **Primary** (the main site for a brand)
- **Alias** (redirects to a primary)
- **Defensive** (registered to prevent others from getting it; usually parked)
- **Campaign** (short-term, specific use)
- **Retired** (no longer active; either drop at expiry or redirect permanently)

The classification drives the configuration.

### Step 3: Audit current configuration

For each domain check:
- Is the canonical (apex vs www) consistent with the strategy?
- Are redirects 301 (permanent) where intended?
- Is HTTPS enforced on every variant?
- Are DNS records minimal and intentional?
- Is the registrar locked?
- Is auto-renew on?
- Is 2FA on the registrar account?

Document gaps. Each gap is a ticket.

### Step 4: Set the canonical pattern

For new domains and any that need fixing:

- Pick apex or www as canonical
- Configure 301 redirect for the non-canonical
- Force HTTPS for both
- Verify with curl: `curl -I http://example.com`, `curl -I http://www.example.com`, `curl -I https://www.example.com`. All should chain to a single 200 on the canonical.

### Step 5: Document the redirect map

Across the portfolio, document every redirect:

| Source | Destination | Type | Reason | Date set |
|---|---|---|---|---|

This is invaluable when something breaks or when planning consolidations.

### Step 6: Set up monitoring

Monitor:
- DNS resolution (alert on NXDOMAIN or wrong IP)
- HTTPS certificate expiration (alert at 30, 14, 7 days out)
- Redirect chains (alert if a 301 starts returning 200 or 404)
- Renewal dates (alert at 90, 30, 7 days out)

This is the bridge between domain strategy a
accessibility-auditSkill

Run a comprehensive WCAG accessibility audit covering perceivable, operable, understandable, and robust principles. Use this skill whenever the user wants to audit accessibility, review WCAG compliance, fix accessibility issues, prepare for accessibility certification, address an accessibility lawsuit risk, or systematically improve a site's accessibility. Triggers on accessibility audit, WCAG audit, a11y audit, accessibility compliance, ADA compliance, screen reader test, keyboard navigation, accessibility report, fix accessibility, axe scan. Also triggers when accessibility issues have been reported and need systematic remediation.

ads-creative-developmentSkill

How to produce ad creative that converts at performance scale. Hook patterns, format selection, video pacing, variation systems, sequential testing methodology, fatigue detection, brand-voice alignment without conversion dilution, and platform-specific creative norms. Triggers on ad creative, ad design, hook patterns, ad video pacing, creative testing, ad variations, creative refresh, creative fatigue, refresh ad creative, video ads for Meta, TikTok creative, LinkedIn ad creative, ad asset library. Also triggers when a team is producing creative at scale, planning a creative test cycle, or auditing why creative is not converting.

ads-performance-analyticsSkill

How to read paid media dashboards without fooling yourself. Attribution models, platform reporting quirks, multi-platform reconciliation, ROAS vs LTV horizon traps, statistical noise in performance metrics, incrementality testing, and the failure modes that produce expensive lessons. Triggers on read paid media dashboard, attribution analysis, ROAS vs LTV, multi-platform reconciliation, ad incrementality, geo holdout, conversion lift study, ghost bidding, paid media reporting, board-deck paid media metrics, blended CAC, MMM, MTA, last-click attribution. Also triggers when a marketer is about to scale, kill, or rebudget a campaign based on platform metrics, or when reconciling platform reports against warehouse revenue.

after-action-reportSkill

Run a structured after-action review (postmortem, retrospective) on a launch, incident, or completed project to capture timeline, root cause analysis, contributing factors, and actionable lessons. Use this skill whenever the user wants to run a postmortem, retrospective, AAR, or after-action review on any past event. Triggers on after-action report, AAR, postmortem, retrospective, retro, post-incident review, what went well what didn't, lessons learned, blameless postmortem, root cause analysis, RCA, five whys. Also triggers when the user has just shipped something or just resolved an incident and wants to capture learnings.

ai-content-collaborationSkill

How humans and AI compose in content workflows. Where AI legitimately participates, where humans must own, hybrid workflow patterns, voice ownership preservation, the AI slop problem, disclosure and transparency, team calibration, and the ethics of intellectually honest AI-assisted content production. Triggers on AI content workflow, AI-assisted writing, hybrid content production, AI in editorial, AI slop, AI disclosure, AI usage policy, AI content ethics, voice preservation with AI, team AI calibration. Also triggers when content feels generic despite quality tools, when team AI usage has drifted into inconsistency, or when a regulated or trust-sensitive context requires explicit AI policy.

analytics-strategySkill

Design measurement frameworks including event taxonomy, KPI hierarchy, dashboard architecture, attribution models, and analytics implementation strategy. Use this skill whenever the user wants to plan analytics, design dashboards, build event taxonomies, define KPIs, set up tracking, or audit existing measurement. Triggers on analytics strategy, measurement plan, event taxonomy, tracking plan, KPI framework, dashboard design, north star metric, attribution model, conversion tracking, GA4 setup, Mixpanel setup, analytics audit. Also triggers when the user has data but no clear way to use it, or wants to make decisions but doesn't know what to track.

art-directionSkill

Direct visual and creative work for campaigns, photography, illustration, video, and branded experiences. Use this skill whenever the user wants to brief a photographer, direct illustrators, plan a creative campaign, develop visual concepts, write a creative direction document, or evaluate creative work for fit. Triggers on art direction, photo brief, photography brief, illustration brief, campaign concept, creative concept, visual direction, mood board, look and feel, visual treatment, video direction. Also triggers when the user has approved brand identity but needs to extend it into specific creative deliverables.

backup-and-disaster-recoverySkill

Plan and run backups, set recovery objectives, and run disaster recovery drills. Use this skill when defining RPO/RTO targets, designing backup architecture, deciding what to back up and how often, planning for full-region or platform outages, or running a restoration drill. Triggers on backup, restore, RPO, RTO, disaster recovery, DR, business continuity, what if the database is gone, what if our hosting goes down, recovery drill, ransomware planning. Also triggers when an incident reveals a gap in restoration capability.