repo-domain-publish-manager

Automates GitHub and Gitee repository sync, Cloudflare DNS configuration, and skill publishing workflows.

11|2|Updated Mar 2, 2026
One-click install
npx skills add https://github.com/legalskill/legalskill --skill repo-domain-publish-manager-legalskill
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: repo-domain-publish-manager
Source: https://github.com/legalskill/legalskill/tree/main/skill/repo-domain-publish-manager
Command: npx skills add https://github.com/legalskill/legalskill --skill repo-domain-publish-manager-legalskill

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve? Managing code repositories across GitHub and Gitee, configuring Cloudflare DNS records and page rules, and publishing skill packages involves many error-prone manual steps. This Skill provides standardized, battle-tested procedures for the entire operations chain from repository sync to domain configuration to file publishing. ## Core Features & Use Cases - Repository Synchronization: Sync organization and personal repos between GitHub and Gitee, maintain READMEs, and troubleshoot GitHub Pages deployments (404s, Jekyll vs GitHub Actions source issues). - Cloudflare Domain Management: Manage DNS records, page rules, and 301 redirects via the Cloudflare API using a locally stored token, with troubleshooting for 522 errors and proxy status issues. - End-to-End Skill Publishing: Run a complete publish pipeline covering robocopy sync to release directories, single-file distribution generation, versioned zip packaging, pre-push checklists, and dual-platform git push. - Use Case: After editing a skill in your local workspace, ask the assistant to publish it: it syncs files to the release directory, generates distribution assets, packages a versioned zip, commits, and pushes to both GitHub and Gitee. ## Quick Start Publish my updated skill to GitHub and Gitee and verify the Cloudflare domain redirect rules are correct.

Frequently Asked Questions about repo-domain-publish-manager

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I sync a GitHub repository to Gitee as a mirror?

Clone the repository from GitHub, add the Gitee remote, then push with git push gitee main. The two platforms are managed independently, so changes on one do not automatically propagate to the other.

How do I manage Cloudflare DNS records with an API token?

Create a Cloudflare token with DNS edit and page rule edit permissions, store it locally outside git, and call the Cloudflare API with the zone ID to list, add, or modify A and CNAME records and redirect rules.

Why does GitHub Pages return 404 after a successful workflow run?

The Pages source is likely misconfigured. Go to Settings, then Pages, and set Source to GitHub Actions instead of Deploy from branch, otherwise the default Jekyll deployment overrides your custom workflow.

Why is my Cloudflare DNS change not taking effect?

DNS changes are subject to TTL caching and can take up to five minutes to propagate. Also verify the record's proxy status, since proxied versus DNS-only modes route traffic differently.

Can I force push to the main branch when syncing repositories?

Force pushing to main is prohibited by this workflow. Any irreversible operation such as force push, DNS record deletion, or file deletion requires explicit user confirmation before execution.