.cursor/skills/deploy/SKILL.md
Generic GitHub Pages deployment workflow. Use when the user says /deploy, asks to deploy, push to production, or publish changes.
npx skillsauth add davidcarma/MarkdownViewer-web-pro deployInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Generic deployment workflow for static sites hosted on GitHub Pages.
If the project has a privacy scan script, run it first:
# Check if privacy scan exists and run it
if [ -f scripts/privacy-scan.sh ]; then
bash scripts/privacy-scan.sh
elif [ -f privacy-scan.sh ]; then
bash privacy-scan.sh
fi
For public repos: Every commit is visible to everyone. Scan for:
/Users/..., C:\Users\...)# Search for common absolute path patterns (should return nothing)
grep -rn --include="*.js" --include="*.css" --include="*.html" \
-E '/Users/|/home/|C:\\Users' . | grep -v node_modules | grep -v .git
# Check HTML for absolute URLs (external CDNs are OK, local paths should be relative)
grep -E 'src="|href="' index.html | grep -v 'http' | head -20
# Check for common build scripts and run
if [ -f build.sh ]; then
bash build.sh
elif [ -f scripts/build.sh ]; then
bash scripts/build.sh
fi
if [ -f check-deployment.sh ]; then
bash check-deployment.sh
fi
# 1. Check status
git status
# 2. Stage all changes
git add -A
# 3. Commit with descriptive message
git commit -m "Deploy: <brief summary of changes>"
# 4. Push to main (or master)
git push origin main
GitHub Pages auto-deploys from the configured branch (usually main or gh-pages).
Wait 1–3 minutes for GitHub Pages to rebuild, then:
Cmd+Shift+R / Ctrl+Shift+R)If something goes wrong:
# View recent commits
git log --oneline -10
# Option 1: Revert the last commit (creates new commit)
git revert HEAD
git push origin main
# Option 2: Reset to specific commit (destructive - use with caution)
git reset --hard <commit-hash>
git push origin main --force # DANGER: rewrites history
| Symptom | Fix |
|---------|-----|
| Site not updating | Wait 3 min, hard-refresh. Check Actions tab for build status. |
| 404 on files | git ls-files <path> to verify file is tracked. Check case sensitivity. |
| Mixed content warnings | Ensure no http:// refs for local assets — use relative paths. |
| Custom domain gone | Check that CNAME file exists and is committed. |
| Assets not loading | Verify paths are relative, not absolute. Check browser DevTools Network tab. |
To configure GitHub Pages for a repository:
main or gh-pages)/ for root or /docs)For custom domains:
CNAME file with your domain nametools
Oracle-first development workflow for the Rulecoder MCP server. Use when the AI-prolog-rulecoder MCP is registered, when working with .rulecoder/ fact files, when the user mentions state machines, invariants, sm_ tools, or architectural modeling. Enforces privacy guardrails, tool usage order, and regression detection.
development
Deploy MarkdownViewer-web-pro to production on GitHub Pages (markdownpro.eyesondash.com). Use when the user says /remotedeploy, asks to deploy, push to production, or publish changes.
development
Serve MarkdownViewer-web-pro locally for testing. Use when the user says /localdeploy, asks to test locally, run a local server, or preview before pushing.
tools
Use the GCP MCP server to call any Google Cloud REST API (Resource Manager, Vertex AI, Compute, Storage, IAM, etc.) via convenience tools or the generic gcp_request. Use when the user asks about Google Cloud Console, GCP projects, Vertex AI, or wants to inspect or change GCP resources without opening the browser.