Skip to content

Universal SEO skill for Claude Code. 26 sub-skills + 19 sub-agents covering technical SEO, E-E-A-T, schema, GEO/AEO, agent readiness (Lighthouse Agentic Browsing, WebMCP, llms.txt), backlinks, local SEO, e-commerce, international SEO, Google APIs, and PDF/Excel reporting. 9 optional extensions for live SEO data.

docs: document public/private dual-remote workflow

Daniel4436a2ff193d
diff --git a/CLAUDE.md b/CLAUDE.md
index d475090..f955906 100644
--- a/CLAUDE.md
+++ b/CLAUDE.md
@@ -199,6 +199,61 @@ Part of the Claude Code skill family:
3. **Parallel Execution**: Full audits spawn up to 15 subagents simultaneously
4. **Extension System**: DataForSEO MCP for live data, Firecrawl MCP for site crawling, Banana MCP for AI image generation
+## Repository Topology (public + private)
+
+This project is mirrored across two GitHub remotes that share git history.
+Both originate from the same local checkout; neither is a GitHub fork of
+the other (different orgs, no parent/child relationship in the GitHub UI).
+
+| Remote | URL | Visibility | Role |
+|---|---|---|---|
+| `origin` | `https://github.com/AgriciDaniel/claude-seo` | **Public** | Published distribution. Users discover, clone, and install from here. `main` only reflects released history. |
+| `aimh` | `https://github.com/AI-Marketing-Hub/claude-seo` | **Private** | Working repo inside the AI Marketing Hub org. Daily development. v2 branch + post-release work lives here before promotion to public. |
+
+### Workflow
+
+Daily development:
+- Work on `v2` (or feature branches off `v2`) locally.
+- `git push aimh <branch>` to publish work-in-progress to the private repo
+ (Dependabot, Actions, and CI run there).
+
+Promoting to public on release:
+1. Merge `v2` into local `main` when ready to release (fast-forward).
+2. Tag the release locally (`git tag -a vX.Y.Z`).
+3. Push the tag and main to **both** remotes in this order:
+ - First: `git push aimh main && git push aimh vX.Y.Z`
+ - Then: `git push origin main && git push origin vX.Y.Z`
+ - The "tag before merge" sequence (see `feedback_push_caution` memory)
+ applies on `origin` to avoid the `curl|bash` outage window where
+ users pull a tag that doesn't yet point at code on `main`.
+4. `gh release create vX.Y.Z --repo AgriciDaniel/claude-seo` (public-only).
+5. `/release-blog` to publish the release post.
+
+### Safety rules
+
+- **Never push to `origin/main` autonomously.** The public is release-only;
+ pushes are user-authorized per-release.
+- **`aimh` accepts day-to-day pushes.** No release-gate ceremony required
+ for the private remote.
+- **Tags push to private first.** v2.0.0 is the current example: tag lives
+ on `aimh` (private) but not yet on `origin` (public) — that's intentional
+ until release.
+- **History stays shared.** Never rewrite history on either remote with
+ force-push unless explicitly authorized for that specific operation.
+
+### Verifying the topology
+
+```bash
+# Both remotes configured
+git remote -v # expects: origin (public) + aimh (private)
+
+# Both share main HEAD
+git ls-remote --heads aimh main
+git ls-remote --heads origin main # SHAs must match for a clean release
+```
+
+Full workflow reference: `docs/WORKFLOW-public-private.md`.
+
## Release Blog Post
After cutting a new release (git tag + `gh release create`), run:
diff --git a/docs/WORKFLOW-public-private.md b/docs/WORKFLOW-public-private.md
new file mode 100644
index 0000000..6bd52dd
--- /dev/null
+++ b/docs/WORKFLOW-public-private.md
@@ -0,0 +1,139 @@
+# Public + private repo workflow
+
+claude-seo is mirrored across two GitHub remotes. This document is the
+canonical reference for how work flows between them.
+
+## Topology
+
+```
+ LOCAL CHECKOUT
+ (single source of truth)
+ │
+ ┌──────────────┼──────────────┐
+ │ │
+ ▼ ▼
+ origin (public) aimh (private)
+ AgriciDaniel/claude-seo AI-Marketing-Hub/claude-seo
+ - Release destination - Daily development
+ - main = released history - main = synced with public
+ - Tags = release history - v2 = active development
+ - Users discover here - Dependabot + CI run here
+```
+
+Both remotes share git history because they were initialized from the
+same local repository. Neither is a GitHub fork of the other.
+
+## Day-to-day development
+
+```bash
+# Work on the active development branch
+git checkout v2
+
+# ...make changes, run tests...
+git add <files>
+git commit -m "feat: ..."
+
+# Push to the PRIVATE remote (default for in-progress work)
+git push aimh v2
+```
+
+The private repo runs Dependabot, GitHub Actions CI, and any pre-release
+test gates. No need to touch the public remote for routine work.
+
+## Promoting a release to public
+
+When `v2` (or whatever branch holds the next release) is ready to go public:
+
+1. **Locally**: merge into main and tag.
+ ```bash
+ git checkout main
+ git merge --ff-only v2 # fast-forward only — no merge commits
+ git tag -a v2.0.1 -m "release: v2.0.1"
+ ```
+
+2. **Push to private first** (private should never lag public).
+ ```bash
+ git push aimh main
+ git push aimh v2.0.1
+ ```
+
+3. **Push to public** in tag-before-merge order (avoids the curl|bash
+ outage window where users pull a tag that doesn't yet point at code
+ on main).
+ ```bash
+ git push origin v2.0.1 # tag first
+ git push origin main # then branch
+ ```
+
+4. **Create the GitHub release** on the public repo only.
+ ```bash
+ gh release create v2.0.1 \
+ --repo AgriciDaniel/claude-seo \
+ --notes-from-tag \
+ --verify-tag
+ ```
+
+5. **Publish the release blog post**.
+ ```
+ /release-blog
+ ```
+
+## Verification commands
+
+```bash
+# Confirm both remotes are wired up
+git remote -v
+
+# Confirm both remotes see the same main HEAD (should match after a release)
+git ls-remote --heads aimh main
+git ls-remote --heads origin main
+
+# List tags on each (private will lead during pre-release work)
+git ls-remote --tags aimh | grep -v '\^{}' | awk '{print $2}'
+git ls-remote --tags origin | grep -v '\^{}' | awk '{print $2}'
+
+# Confirm private has a v2 branch ahead of release
+git fetch aimh
+git log --oneline aimh/main..aimh/v2
+```
+
+## Why two repos?
+
+- The **public** repo is the user-facing artifact. Everything visible
+ there is releasable, documented, and supported.
+- The **private** repo is the workshop. Work-in-progress branches,
+ experimental phases (J, K, future phases), pre-release security audits,
+ and unfinished thoughts live here. Dependabot churn and CI noise stay
+ off the public timeline.
+
+Public is for users. Private is for the work that becomes users' next
+upgrade.
+
+## Common pitfalls
+
+| Pitfall | Avoid by |
+|---|---|
+| Pushing a tag to `origin` before its commit reaches `origin/main` | Always tag-before-merge: push tag first, then branch |
+| `git push --tags` without specifying remote | Be explicit: `git push aimh --tags` or `git push origin v2.0.1` |
+| Force-pushing to either remote | Don't, except with explicit per-operation authorization |
+| Letting `aimh/main` lag behind `origin/main` | Always push to `aimh` first, then `origin` on release |
+| Confusing `aimh/v2` with `origin/v2` | `origin` should never have an unreleased `v2` branch |
+
+## State at the time of writing (2026-05-18)
+
+- `aimh/main` = `7676024` (v1.9.9 final)
+- `origin/main` = `7676024` (v1.9.9 final) ← synced
+- `aimh/v2` = `6778786` (v2.0.0 + Phase J/K/audit cleanup)
+- `origin` has no `v2` branch and no `v2.0.0` tag — both are pre-release
+- `v2.0.0` tag lives on `aimh` only
+
+This is the expected pre-release shape: private leads, public stays at
+the last released version.
+
+## Email-privacy caveat (one-time)
+
+Two very old tags (`v1.2.0`, `v1.4.0`) could not be pushed to the
+private repo because the underlying commits use a private email address
+that GitHub now blocks. These tags remain available on `origin` only.
+Not a regression — those releases shipped on public and are reachable
+there.