π¦ ClawHub
Git Deployer
by @kryzl19
Push static site content to GitHub Pages repositories. Clone, copy files, commit with timestamp, force-push. Use when updating GitHub Pages sites, deploying...
TERMINAL
clawhub install git-deployer-kryzl19π About This Skill
name: git-deployer description: Push static site content to GitHub Pages repositories. Clone, copy files, commit with timestamp, force-push. Use when updating GitHub Pages sites, deploying static sites, or syncing local content to a git-based host.
git-deployer
Deploy static site content to GitHub Pages or any git-backed host.
When to Use
username.github.io repo or a Pages branch (gh-pages, main)Workflow
Local Site Directory β /tmp/clone β File Copy β Commit β Force Push β Done
1. Clone or init β If the remote repo exists, clone it to /tmp/{reponame}. Otherwise initialize a fresh clone
2. Copy files β Sync your local site directory contents into the clone (clean copy, not append)
3. Commit β Stage all files, commit with auto-generated timestamp message
4. Force push β Push to remote with force flag to overwrite remote state
5. Report β Output success/failure with commit hash and push result
Usage
Via skill invocation (from agent)
Provide the following arguments:
site_path β Absolute path to the local site directory (the content to deploy)remote_url β Full git URL (e.g., https://github.com/user/repo.git or git@github.com:user/repo.git)branch β Branch to deploy to (default: main)Via script directly
./scripts/deploy.sh /path/to/site git@github.com:user/repo.git [branch]
Output
Requirements
git must be installed and configured with credentials for the remoteNotes
--force push β this will overwrite remote state. Use with caution on shared branches/tmp and is not cleaned up automatically (intentional: allows inspection)Deploy: YYYY-MM-DD HH:MM:SS UTCβ‘ When to Use
π‘ Examples
Via skill invocation (from agent)
Provide the following arguments:
site_path β Absolute path to the local site directory (the content to deploy)remote_url β Full git URL (e.g., https://github.com/user/repo.git or git@github.com:user/repo.git)branch β Branch to deploy to (default: main)Via script directly
./scripts/deploy.sh /path/to/site git@github.com:user/repo.git [branch]
π Tips & Best Practices
--force push β this will overwrite remote state. Use with caution on shared branches/tmp and is not cleaned up automatically (intentional: allows inspection)Deploy: YYYY-MM-DD HH:MM:SS UTC