# Skill: Convert This Website Builder For A New Website
Human prompt to complete this skill:
Use this skill to convert a copied static website builder repo into a clean new website repo for a different domain, brand, content set, and deployment target.
# Overview
This skill resets a copied website-builder repo so it can become a new static public website without carrying over stale content, generated artifacts, old domain URLs, old analytics IDs, old semantic JSON, old navigation, old logos, or old deployment assumptions.
The goal is not only to clean visible pages.
The goal is to clean:
- source content;
- Hugo builder config and templates;
- semantic discovery and JSON-LD generation;
- AI/discovery scripts;
- generated public artifacts;
- deployment notes;
- contact form notes;
- future process instructions.
This is important because a copied builder can look clean in `/public/` while scripts and templates still regenerate the old website identity on the next build.
# Required Inputs
Before executing, identify:
- new repo root path;
- new public domain;
- new site title and brand name;
- new publisher/organization name;
- new Google Analytics measurement ID, if any;
- new favicon/logo/social preview image paths;
- source content directory to preserve, usually `/content/`;
- image asset directory to preserve, usually `/public/assets/images/`;
- root verification files to preserve, such as `BingSiteAuth.xml`;
- whether contact form/API work is in scope now or explicitly deferred;
- deployment model, for example static-only VM, Caddy edge proxy, Docker, object storage, or CDN.
# Preserve Rules
Preserve these unless the human explicitly says otherwise:
-`/content/` authored source content;
-`/public/assets/images/` approved image assets;
- root verification files such as `/public/BingSiteAuth.xml`;
-`/skills-scripts/` scripts and skill docs, after rebranding/updating;
-`/hugo-html-builder/layouts/` templates, after rebranding/updating;
-`/api/` source code, if contact/API work exists;
- README, changelog, task/workflow docs, after rebranding/updating.
Do not preserve generated artifacts just because they are currently in git. A copied repo often has generated output from the old site.
# Cleanup Targets
Remove old generated and copied-site artifacts, after confirming paths resolve inside the repo:
- any task/workflow notes that future agents will follow.
Replace old:
- domains;
- paths;
- usageInfo URLs;
- sitemap examples;
- section-index examples;
- deployment server names;
- Docker/Caddy assumptions;
- analytics IDs;
- brand names.
Keep parent-platform references only when they are intentionally part of the new site’s legal or explanatory content.
## 8. Structure Source Content
For every active authored markdown page in `/content/`, add or repair:
- YAML front matter;
-`document_id`;
-`title`;
-`date`;
-`slug`;
-`summary`;
-`tags`;
-`author`;
-`document_type`;
-`status`;
- semantic chunk markers.
Use chunk markers:
```html
<!-- CHUNK START
chunk_id="chk-UUID"
knowledge_id="kid-UUID"
chunk_label="human-readable-label"
knowledge_label="human-readable-knowledge-label"
-->
[content]
<!-- CHUNK END -->
```
Preserve author meaning and voice.
Do not publish layout notes such as "Page header", "Horizontal line", "Page footer", or logo filenames as visible page content if the template owns those elements.
Normalize headings:
- one page `<h1>`;
- major sections as `##`;
- subsections as `###`.
## 9. Privacy, SEO, Security, And Agent Readiness
Fold in these baseline website-readiness items:
- canonical URLs;
- Open Graph metadata;
- Twitter/X metadata;
- privacy policy;
- analytics/cookie disclosure or consent plan;
-`/.well-known/security.txt`;
- optional agent card/agent skills files;
- deploy-level security header docs;
- cache-control and compression docs;
- no-cache health check route;
- sitemap with `lastmod`, `changefreq`, and `priority`;
- visible mojibake cleanup.
Security headers are usually deployed at the hosting/proxy layer: