github-deploy-win
Skill1 starsChanged 17 days agoMITView on GitHub
Automates end-to-end deployment and teardown of web repositories onto a remote Windows 11 host using GitHub Actions self-hosted runners, Docker Desktop, and Cloudflare Tunnel. This skill should be used when asked to deploy a repo to a Windows remote given a domain, SSH host, credentials, and Cloudflare tunnel token, or to uninstall a previously deployed repo from that host.
- Reads credentials
- Commits and pushes
In this repository6 other files it gives its agents.
- AGENTS.mdAGENTS.md
- askSkill
- easy-profiler-guideSkill
- githubSkill
- init-project-docsSkill
- qt-coding-guideSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
34 rules. About 0 are common, 7 are distinctive, and 27 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈7
Distinctive · estimate
This author's own choices. Worth a look.
27
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 37
Follow these gating rules before making any changes:
- Very specific: line 39
Off-server handoff: If the user asks how to set up the domain/Cloudflare side, or does not have cf_token, copy …
- Very specific: line 40
Missing inputs: If any required parameter (domain, ssh, user, pass, or cf_token for install) is missing, prompt the user for the exact …
- Very specific: line 41
Secret hygiene: Never write pass, cf_token, or private keys into ./deploy/, .github/workflows/deploy.yml, or any markdown file.
- Distinctive: line 52
Verify local tooling in the current workspace:
- Very specific: line 56
Verify local cloudflared when connecting through a Cloudflare Tunnel hostname (ssh is not a raw IP):
- Very specific: line 57
Check cloudflared --version.
- Very specific: line 58
Ensure ~/.ssh/config contains a Host <ssh> entry with a properly quoted ProxyCommand "<path-to-cloudflared>" access ssh --hostname %h.
- Very specific: line 61
If direct_ip was supplied, connect to <user>@<direct_ip> (trying key auth, then pass).
- Very specific: line 63
If ssh is unreachable (timeout, 1033/530, or connection refused) and direct_ip was not given, ask the user for direct_ip.
- Very specific: line 68
Run these steps directly over the verified SSH session as user (ignoring benign PowerShell CLIXML stderr wrapper noise when exit code is 0):
- Very specific: line 77
If missing or outdated, install/upgrade via winget install --id Cloudflare.cloudflared -e --accept-package-agreements …
- Very specific: line 78
Do not stop or uninstall an active cloudflared Windows service during this step if your current SSH connection rides over it.
- Very specific: line 81
Check whether C:\deploy\runners\<project-name>\.runner exists and whether gh api repos/<owner>/<repo>/actions/runners reports a matching …
- Distinctive: line 82
If missing, outdated, or stale/deleted on GitHub:
- Very specific: line 83
If .runner exists, obtain a removal token (gh api -X POST repos/<owner>/<repo>/actions/runners/remove-token --jq .token) and run …
- Very specific: line 100
Follow references/stack-detection.md completely when inspecting the repository:
- Very specific: line 109
Ensure deploy/Dockerfile runs mkdir -p <container-abs-path> && chown -R <uid>:<gid> <container-abs-path> before USER so the non-root …
- Very specific: line 110
If the app is stateless, omit volumes: and log that no output folder was detected.
- Very specific: line 112
Remove any pre-existing root-level compose.deploy.yml or docker-compose.deploy.yml.
- Very specific: line 113
Create ./deploy/ in the workspace root and copy/render:
- Very specific: line 125
Run gh secret set CLOUDFLARED_TUNNEL_TOKEN --body "<cf_token>" and gh secret set SSH_PUBLIC_KEY --body "<pub-key-line>".
- Very specific: line 130
Verify that the pushed .github/workflows/deploy.yml executes these steps cleanly on the remote runner, emitting [YYYY-MM-DD HH:MM:SS] …
- Very specific: line 134
If C:\Program Files\Docker\Docker\resources\bin\docker.exe is missing, install Docker Desktop silently via winget install --id …
- Very specific: line 137
Create C:\deploy\docker-config\config.json with {"auths":{},"currentContext":"desktop-linux"} and copy $env:USERPROFILE\.docker\contexts …
- Very specific: line 139
Run docker pull <base-image> explicitly under $env:DOCKER_CONFIG for every FROM base image so Compose build metadata does not fail.
- Very specific: line 145
Ensure OpenSSH.Server~~~~0.0.1.0 is installed, sshd is Automatic and Running, and the inbound TCP 22 firewall rule exists.
- Distinctive: line 153
Do not stop when git push finishes.
- Distinctive: line 164
Run this workflow only when the user asks to uninstall, remove, or tear down a repository's deployment from the remote Windows 11 server.
- Very specific: line 180
If the registration is already gone from GitHub, read the service name from .service, run Stop-Service and sc.exe delete "<service-name>", …
- Distinctive: line 190
Before step 2, capture any value you will need later:
- Distinctive: line 194
After completing steps 1 through 4, explicitly ask the user before deleting any of these:
- Very specific: line 197
Repository deployment files: Ask whether to keep or remove .github/workflows/deploy.yml, ./deploy/, and .dockerignore from the repository …
- Very specific: line 198
GitHub secrets: Ask whether to remove CLOUDFLARED_TUNNEL_TOKEN and SSH_PUBLIC_KEY from the repository secrets (gh secret delete).
≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
GitHub Deploy for Windows 11 (github-deploy-win)
Deploy any web repository to a remote Windows 11 server over Cloudflare Tunnel using a per-repo GitHub Actions self-hosted runner, Docker Compose with persistent named volumes, and automated remote host configuration. Includes a separate uninstall workflow that removes per-repo artifacts without breaking shared server infrastructure.
Bundled resources
Load these files on demand rather than keeping full tables in memory:
references/off-server-setup.md: Standalone registrar, Cloudflare DNS, Tunnel, Access, and GitHub setup guide. Copy to./off-server-setup.mdin the workspace root when the user asks how to set up off-server pieces or lackscf_token.references/stack-detection.md: Rules for inspecting existing Dockerfiles, selecting base images, detecting ports and healthchecks, and mapping persistent output volumes.references/troubleshooting.md: Log locations and verified fixes for SSH, Windows runner, Docker Desktop, and Cloudflare errors.scripts/ssh_preflight.py: Pre-CI SSH probe and command runner (supports direct IP,cloudflaredProxyCommand, andcloudflared access tcp+ Paramiko fallback).scripts/render_oneliner.py: Renders the one-command elevated PowerShell bootstrap fallback for blank Windows 11 hosts.assets/workflow/deploy.yml.tmpl: Workflow template copied to.github/workflows/deploy.yml.assets/deploy/: Compose, Dockerfile,.dockerignore, and PowerShell runtime scripts copied into./deploy/in the target repository.assets/deploy/scripts/uninstall.ps1performs the host-side teardown for the Uninstall workflow.
Inputs and pre-flight rules
Parse these parameters from the user's request (example: "Load github-deploy-win skill and make this repo deploy to my remote server at www.domain.com, ssh: ssh.domain.com, user: Admin, pass: 123, cf token: <token>"):
| Parameter | Required | Purpose |
domain | Yes | Public web hostname (www.domain.com or domain.com) |
ssh | Yes | SSH tunnel hostname (ssh.domain.com) or direct IP |
user | Yes | Windows Administrator username on the remote (Admin) |
pass | Yes | Password for user (initial SSH fallback and runner service logon) |
cf_token | Yes (Install) | Cloudflare Tunnel connector token (eyJ...) |
direct_ip | Conditional | LAN or direct IP used if ssh is unreachable on a blank host |
Follow these gating rules before making any changes:
- Off-server handoff: If the user asks how to set up the domain/Cloudflare side, or does not have
cf_token, copyreferences/off-server-setup.mdto./off-server-setup.mdin the current workspace root, tell the user to follow it, and stop until they return withcf_token. - Missing inputs: If any required parameter (
domain,ssh,user,pass, orcf_tokenfor install) is missing, prompt the user for the exact missing values before proceeding. - Secret hygiene: Never write
pass,cf_token, or private keys into./deploy/,.github/workflows/deploy.yml, or any markdown file. UploadCLOUDFLARED_TUNNEL_TOKENandSSH_PUBLIC_KEYstrictly viagh secret set. - Public repository warning: Inspect the repo with
gh repo view --json nameWithOwner,defaultBranchRef,isPrivate. IfisPrivateisfalse, warn the user before proceeding that running an Administrator-privileged self-hosted runner on a public repo introduces remote code execution risk from external workflows or fork PRs, and recommend making the repo private.
Install workflow
Execute Phases 1 through 5 in order. Log each major check and remote exit code clearly so failures can be traced immediately against references/troubleshooting.md.
Phase 1: Client preflight and remote reachability
- Verify local tooling in the current workspace:
- Confirm
git rev-parse --is-inside-work-treesucceeds andgh auth statusis authenticated. - Record
<owner>/<repo>,<default-branch>, and derive<project-name>(lowercase alphanumeric/hyphen slug of the repo name, used forC:\deploy\runners\<project-name>, Composename:, andcontainer_name:). - Confirm an Ed25519 SSH key exists locally (default
~/.ssh/id_ed25519and~/.ssh/id_ed25519.pub); if absent, generate one withssh-keygen -t ed25519 -N "" -f "$HOME/.ssh/id_ed25519".
- Confirm
- Verify local
cloudflaredwhen connecting through a Cloudflare Tunnel hostname (sshis not a raw IP):- Check
cloudflared --version. If missing on Windows, install viawinget install --id Cloudflare.cloudflared -eor downloadcloudflared-windows-amd64.exeinto a durable user folder (such as$HOME\cloudflared\cloudflared.exe). - Ensure
~/.ssh/configcontains aHost <ssh>entry with a properly quotedProxyCommand "<path-to-cloudflared>" access ssh --hostname %h.
- Check
- Establish SSH connectivity to the remote host:
- Try connecting in this order using
uv run scripts/ssh_preflight.py:- If
direct_ipwas supplied, connect to<user>@<direct_ip>(trying key auth, thenpass). - Otherwise try
<user>@<ssh>(trying key auth, thenpass; on Windows Python clients, usecloudflared access tcp+127.0.0.1:<local_port>rather than ParamikoProxyCommandto avoidWinError 10038).
- If
- If
sshis unreachable (timeout,1033/530, or connection refused) anddirect_ipwas not given, ask the user fordirect_ip. - Blank-host fallback: If neither
sshnordirect_ipis reachable becausesshdandcloudflaredare not installed on the Windows 11 host yet, runuv run scripts/render_oneliner.pywithcf_tokenand ask the user to run the generated PowerShell command once in an elevated PowerShell window on the remote server. That one-liner installsOpenSSH.Server~~~~0.0.1.0, startssshd, opens TCP 22, installscloudflaredwithcf_token, and setsExecutionPolicy RemoteSigned. Once the user confirms it succeeded, reconnect over SSH.
- Try connecting in this order using
Phase 2: Pre-CI remote bootstrap (agent over SSH)
Run these steps directly over the verified SSH session as user (ignoring benign PowerShell CLIXML stderr wrapper noise when exit code is 0):
- Set PowerShell execution policy as Administrator:
ConfirmSet-ExecutionPolicy RemoteSigned -Scope LocalMachine -ForceGet-ExecutionPolicy -Scope LocalMachineisRemoteSignedorUnrestrictedso GitHub Actions.ps1steps do not fail withPSSecurityException. - Check and install latest
cloudflaredon the remote host:- Query the installed version (
cloudflared --versionacross PATH andC:\Program Files\cloudflared\cloudflared.exe) and compare with the latest release tag fromhttps://api.github.com/repos/cloudflare/cloudflared/releases/latest. - If missing or outdated, install/upgrade via
winget install --id Cloudflare.cloudflared -e --accept-package-agreements --accept-source-agreements(falling back to downloadingcloudflared-windows-amd64.exe). - Do not stop or uninstall an active
cloudflaredWindows service during this step if your current SSH connection rides over it; CI reconciles service registration in Phase 4.
- Query the installed version (
- Check and install latest per-repo
actions-runneratC:\deploy\runners\<project-name>:- Query
https://api.github.com/repos/actions/runner/releases/latestfor the latest Windows x64 version<ver>. - Check whether
C:\deploy\runners\<project-name>\.runnerexists and whethergh api repos/<owner>/<repo>/actions/runnersreports a matchingonlinerunner for<project-name>. - If missing, outdated, or stale/deleted on GitHub:
- If
.runnerexists, obtain a removal token (gh api -X POST repos/<owner>/<repo>/actions/runners/remove-token --jq .token) and run.\config.cmd remove --token <remove-token>insideC:\deploy\runners\<project-name>(stopping/removing any orphaned service first if the old registration is already gone). - Download
https://github.com/actions/runner/releases/download/v<ver>/actions-runner-win-x64-<ver>.zipand extract intoC:\deploy\runners\<project-name>. - Request a registration token (
gh api -X POST repos/<owner>/<repo>/actions/runners/registration-token --jq .token) and configure unattended with the service install flag:
The Windows package ships only.\config.cmd --url https://github.com/<owner>/<repo> ` --token <reg-token> ` --name "$env:COMPUTERNAME-<project-name>" ` --labels "windows,self-hosted,<project-name>" ` --work _work ` --unattended --replace --runasserviceconfig.cmdandrun.cmd; there is nosvc.cmd.--runasserviceregisters the service and starts it asNT AUTHORITY\NETWORK SERVICE. - Read the installed service name from
Get-Service 'actions.runner.*' | Where-Object { $_.Name -like "*<project-name>*" }(the package also writes it to.service), switch its logon account to.\<user>with<pass>(sc.exe config "<service-name>" obj= ".\<user>" password= "<pass>"), then stop and start the service. Asc.exe configchange while the service is running applies to the stored configuration but not to the live process, and any job it runs still sees the machine accountCOMPUTERNAME$until it restarts.
- If
- Confirm
gh api repos/<owner>/<repo>/actions/runnersshows the new runner with"status": "online".
- Query
Phase 3: Codebase inspection and repository scaffolding
Follow references/stack-detection.md completely when inspecting the repository:
- Inspect stack, Dockerfile, ports, and healthcheck:
- Check for an existing working app
Dockerfile(watch out for docs-only Dockerfiles such as MkDocs multi-stage builds or EOL bases likenode:18). If a valid appDockerfileexists, reference it fromdeploy/compose.deploy.yml; otherwise select the matching template fromassets/deploy/(Dockerfile.node.tmplusingnode:24-bookworm-slim+npm,Dockerfile.python.tmplusingpython:3.12-slim, orDockerfile.static.tmplusingnginxinc/nginx-unprivileged:alpine). - Detect the container listen port
<port>and a reliableGEThealthcheck path<health-path>(/health,/healthz,/items, or/).
- Check for an existing working app
- Detect and map persistent output folders (mandatory):
- Scan the codebase for database files (SQLite paths such as
/etc/todos/todo.db,./data,db.sqlite3), upload handlers (multer,UploadFile,MEDIA_ROOT), file writes (fs.writeFile,open(..., "w")), and storage env vars (DATA_DIR,UPLOAD_DIR,OUTPUT_DIR,DB_PATH). - For every persistent directory found:
- Map a named Docker volume (
<vol-name>:<container-abs-path>) indeploy/compose.deploy.yml(never a WindowsC:\...bind mount). - Ensure
deploy/Dockerfilerunsmkdir -p <container-abs-path> && chown -R <uid>:<gid> <container-abs-path>beforeUSERso the non-root process can write to the initialized volume.
- Map a named Docker volume (
- If the app is stateless, omit
volumes:and log that no output folder was detected.
- Scan the codebase for database files (SQLite paths such as
- Create
./deploy/and.github/workflows/deploy.yml:- Remove any pre-existing root-level
compose.deploy.ymlordocker-compose.deploy.yml. Two Compose files describing the same app produce a second project, a second volume, and a container-name collision.deploy/compose.deploy.ymlis the single source of truth. - Create
./deploy/in the workspace root and copy/render:deploy/compose.deploy.ymlwith pinnedname: <project-name>,image: <project-name>:local,container_name: <project-name>,restart: unless-stopped,ports: ["127.0.0.1:<port>:<port>"],logging:(json-file,max-size: "10m",max-file: "3"), and detectedvolumes:.deploy/Dockerfile(when generated)..dockerignoreat the build context root (ordeploy/Dockerfile.dockerignore) excluding.git,.github,deploy/scripts,*.md,node_modules,.venv, and.env*.deploy/scripts/setup-docker-and-config.ps1,deploy/scripts/setup-tunnel-and-ssh.ps1, anddeploy/scripts/smoke-test.ps1fromassets/deploy/scripts/.
- Render
assets/workflow/deploy.yml.tmplto.github/workflows/deploy.yml:- Trigger on
pushto[ <default-branch> ](paths-ignore: [ '**.md', 'docs/**' ]) andworkflow_dispatch. - Pin
concurrency: { group: deploy-${{ github.ref }}, cancel-in-progress: true }. - Pin
runs-on: [self-hosted, windows, "<project-name>"]. - Pin
shell: powershellon everyrun:step (nevershell: bash). - Pass
<project-name>,<port>,<health-path>, base image(s), and${{ secrets.CLOUDFLARED_TUNNEL_TOKEN }}/${{ secrets.SSH_PUBLIC_KEY }}to the scripts indeploy/scripts/.
- Trigger on
- Remove any pre-existing root-level
- Upload GitHub Secrets, commit, and push:
- Run
gh secret set CLOUDFLARED_TUNNEL_TOKEN --body "<cf_token>"andgh secret set SSH_PUBLIC_KEY --body "<pub-key-line>". - Stage
.github/workflows/deploy.yml,deploy/, and.dockerignore(if created at root), commit (chore(deploy): add Windows self-hosted CI/CD deployment), andgit pushto trigger the workflow immediately.
- Run
Phase 4: In-CI remote setup and container deploy
Verify that the pushed .github/workflows/deploy.yml executes these steps cleanly on the remote runner, emitting [YYYY-MM-DD HH:MM:SS] [STEP] logs and checking $LASTEXITCODE on every command:
- Docker Desktop install, boot task, and credential-free config (
deploy/scripts/setup-docker-and-config.ps1):- Resolve the account with
whoami, not$env:USERNAME. Inside a Windows service session$env:USERNAMEcan resolve to the machine account (COMPUTERNAME$), which has no user profile and cannot own a scheduled task. - If
C:\Program Files\Docker\Docker\resources\bin\docker.exeis missing, install Docker Desktop silently viawinget install --id Docker.DockerDesktop -e --accept-package-agreements --accept-source-agreementsand add the resolved account todocker-users. - Register (idempotently) the
DockerDesktop-HeadlessAtStartupscheduled task (LogonType S4U,RunLevel Highest) executingdocker.exe desktop start --detachso Docker starts on Windows boot without an interactive login. Treat a registration failure as a warning rather than a job failure: Docker still starts on demand, and the job must not die over a boot-time nicety. - Probe
docker version; if unreachable, rundocker desktop start --detachand wait up to 90s. If a brand-new WSL 2 / Docker Desktop install requires a Windows reboot before the daemon can start, emit an explicit diagnostic error (::error::Docker Desktop requires a server reboot to finish WSL 2 setup) and exit1. - Create
C:\deploy\docker-config\config.jsonwith{"auths":{},"currentContext":"desktop-linux"}and copy$env:USERPROFILE\.docker\contextsintoC:\deploy\docker-config\contexts(if not already present), then set$env:DOCKER_CONFIG = 'C:\deploy\docker-config'.
- Resolve the account with
- Pull base image, build, and run Compose:
- Run
docker pull <base-image>explicitly under$env:DOCKER_CONFIGfor everyFROMbase image so Compose build metadata does not fail. - Run
docker compose -f deploy/compose.deploy.yml up -d --build. - Run
docker image prune -f --filter "until=168h". - Log
docker compose -f deploy/compose.deploy.yml psanddocker inspect -f "{{.State.Health.Status}} {{json .Mounts}}" <project-name>.
- Run
- Cloudflare Tunnel and OpenSSH setup (
deploy/scripts/setup-tunnel-and-ssh.ps1):- Install
cloudflaredif missing; ifGet-Service cloudflaredis absent, runcloudflared.exe service install $env:CLOUDFLARED_TUNNEL_TOKEN, setAutomaticstartup, and configuresc.exe failure cloudflared reset= 86400 actions= restart/5000/restart/5000/restart/5000. - Ensure
OpenSSH.Server~~~~0.0.1.0is installed,sshdisAutomaticandRunning, and the inbound TCP 22 firewall rule exists. - Append
$env:SSH_PUBLIC_KEY(trimmed, single unquoted line, deduplicated) toC:\ProgramData\ssh\administrators_authorized_keys, apply stricticacls(Administrators:F,SYSTEM:F,/inheritance:r,/setowner "Administrators"), and restartsshd.
- Install
- Local smoke test (
deploy/scripts/smoke-test.ps1):- Poll
http://127.0.0.1:<port><health-path>for up to 30 seconds expecting HTTP200. - On failure, dump
docker compose -f deploy/compose.deploy.yml logs --tail 100,docker ps -a,docker inspect <project-name>, andGet-Service cloudflared, sshd, then exit1.
- Poll
Phase 5: Live domain verification and completion gate
Do not stop when git push finishes. Complete all three checks before declaring success:
- Monitor the workflow run (
gh run watch <run-id> --repo <owner>/<repo> --exit-status). If it fails, inspectgh run view <run-id> --log-failedandreferences/troubleshooting.md, fix the cause, and re-run. - Probe the public site externally (
Invoke-WebRequest "https://<domain>" -UseBasicParsingorcurl -I) and confirm HTTP200(and expected301redirect ifwww.<domain>redirects to root). If Cloudflare returns502/504or1033/530, diagnose usingreferences/troubleshooting.md. - Confirm passwordless SSH works from the client PC (
ssh -o BatchMode=yes <user>@<ssh> "whoami"). - Summarize the live URL, container health status, mounted volume(s), runner service name (
C:\deploy\runners\<project-name>), and remaining security follow-ups (disablingPasswordAuthenticationinsshd_configafter testing key auth, rotating any temporary password, and confirming repo privacy).
Uninstall workflow
Run this workflow only when the user asks to uninstall, remove, or tear down a repository's deployment from the remote Windows 11 server.
Fixed teardown actions
- Identify
<owner>/<repo>,<project-name>, and the runner directoryC:\deploy\runners\<project-name>(plusdeploy/compose.deploy.ymlif present in the repo). - Connect to the remote over SSH as
userand remove the app container and its local project image without deleting volumes. Run the bundled teardown script, which unregisters the runner from GitHub, deletes its service and directory, and keeps volumes:
When the script is not available, run$env:DOCKER_CONFIG = 'C:\deploy\docker-config' $token = gh api -X POST repos/<owner>/<repo>/actions/runners/remove-token --jq .token powershell -NoProfile -File deploy\scripts\uninstall.ps1 -ProjectName <project-name> ` -ComposeFile <path-to-compose.deploy.yml> -RunnerDir C:\deploy\runners\<project-name> -RemoveToken $tokendocker compose -f <path-to-compose.deploy.yml> -p <project-name> down --rmi localfrom a shell that can read the file. A baredocker compose -p <project-name> downoutside the project directory fails because Compose resolves the file from the current directory. If no Compose file exists on the server, rundocker rm -f <project-name>anddocker rmi <project-name>:local. Never pass-vautomatically. - When the bundled script cannot run (no
config.cmdleft, or the folder is already gone):- Request a removal token:
gh api -X POST repos/<owner>/<repo>/actions/runners/remove-token --jq .token. - On the remote inside
C:\deploy\runners\<project-name>, run.\config.cmd remove --token <remove-token>to unregister from GitHub. It removes.runner,.credentials, and the Windows service. Do not pass--unattended;removerejects it. - If the registration is already gone from GitHub, read the service name from
.service, runStop-Serviceandsc.exe delete "<service-name>", deleteC:\deploy\runners\<project-name>, then delete the orphaned entry withgh api -X DELETE repos/<owner>/<repo>/actions/runners/<runner-id>. Deleting the folder alone leaves the runner listed as offline in repository settings.
- Request a removal token:
- Preserve shared host infrastructure (do not modify or delete):
- Docker Desktop and
DockerDesktop-Headlessscheduled task C:\deploy\docker-configcloudflaredbinary andcloudflaredWindows servicesshdservice andC:\ProgramData\ssh\administrators_authorized_keys- Any other repository runners under
C:\deploy\runners\
- Docker Desktop and
Confirmation prompts before destructive cleanup
Before step 2, capture any value you will need later:
- Tunnel token: an installed
cloudflaredservice holds its connector token in the service definition (HKLM:\SYSTEM\CurrentControlSet\Services\cloudflaredImagePath). If a later install may run on the same host and the token is not stored elsewhere, recover it first and keep it out of logs and files. Removing the service discards the token.
After completing steps 1 through 4, explicitly ask the user before deleting any of these:
- Persistent Docker volumes: Inspect
docker volume ls --filter "name=<project-name>_" -q. List any matching volumes (such as<project-name>_todosor<project-name>_data) and ask whether to keep them (safe default) or delete them (docker volume rm <volume>). - Repository deployment files: Ask whether to keep or remove
.github/workflows/deploy.yml,./deploy/, and.dockerignorefrom the repository (and commit/push the removal if requested). - GitHub secrets: Ask whether to remove
CLOUDFLARED_TUNNEL_TOKENandSSH_PUBLIC_KEYfrom the repository secrets (gh secret delete).
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

