From ccube-fds-web-app-builder
GCC deployment via Rabbit Deploy — initialize a local project with git, configure the Rabbit Deploy GitLab remote with a Project Access Token, and push to trigger automatic deployment. Use when a user wants to deploy their project to GCC using Rabbit Deploy, set up version control for the first time, or push code changes to trigger the CI/CD pipeline.
How this skill is triggered — by the user, by Claude, or both
Slash command
/ccube-fds-web-app-builder:cc-rabbit-deploy Provide your Rabbit Deploy GitLab repo URL and Project Access Token, or ask for help obtaining them from the portal.Provide your Rabbit Deploy GitLab repo URL and Project Access Token, or ask for help obtaining them from the portal.The summary Claude sees in its skill listing — used to decide when to auto-load this skill
This skill walks you through initialising version control and pushing your
This skill walks you through initialising version control and pushing your project to Rabbit Deploy to trigger automatic deployment to GCC (Government Commercial Cloud).
Before running this skill you MUST confirm the user has:
#ask-rabbit on Slack with their WOG AD email.git --version on a SEED laptop. Git is
pre-installed on SEED laptops; contact CIO Office support if missing.Ask the user to confirm one value before proceeding:
| Value | Where to find it |
|---|---|
GITLAB_REPO_URL | From the Rabbit Deploy Portal — your project's full GitLab repo URL |
e.g. https://sgts.gitlab-dedicated.com/wog/gvt/<agency>/<product>.git |
Security: You MUST NOT ask the user to share their Project Access Token with Copilot. The token is a secret credential. All commands below include a
<PROJECT_ACCESS_TOKEN>placeholder — the user MUST substitute their token directly in the terminal before running each command.
Run the following from the root of the project directory in the terminal:
# Confirm git is available
git --version
# Initialise a new git repository (safe to run even if .git already exists)
git init
# Check the current state
git status
If git status reports fatal: not a git repository, git init was
needed. If the .git folder already exists, git init is still safe and
can be skipped.
Add the Rabbit Deploy GitLab repository as the origin remote, embedding
the Project Access Token directly in the URL for authentication.
Security: Replace
<PROJECT_ACCESS_TOKEN>yourself in the terminal. Do not paste the token into this chat.
git remote add origin \
https://oauth2:<PROJECT_ACCESS_TOKEN>@<GITLAB_HOST_AND_PATH>
Example (replace with your actual values):
# Original URL from the portal:
# https://sgts.gitlab-dedicated.com/wog/gvt/ciooffice/cio-office-infra/cioo-automation/gdp-products/cc-work-planner.git
git remote add origin \
https://[email protected]/wog/gvt/ciooffice/cio-office-infra/cioo-automation/gdp-products/cc-work-planner.git
Verify the remote was set correctly:
git remote -v
Stage all project files and create the initial commit:
git add .
git commit -m "Initial commit"
If the commit step outputs nothing to commit, working tree clean, the
directory is already committed — proceed directly to Step 5.
Push your code to the main branch on the Rabbit Deploy remote:
git push -u origin main
If the default branch is not main, replace it with master or the
correct branch name shown in the portal.
After a successful push:
https://<project-name>.cio.rabbitdeploy.sandbox.gov.sgThe sandbox URL works on GSIB laptops and COMET environments and is automatically configured with SSL.
For every subsequent code change:
git status # Review changed files
git add . # Stage all changes
git commit -m "Your commit message" # Commit with a descriptive message
git push # Push to trigger redeployment
| Symptom | Resolution |
|---|---|
remote: 401 Unauthorized | Token expired. Portal → your project → Actions → Get Token. Update the remote: git remote set-url origin <new-auth-url> |
error: remote origin already exists | Run git remote set-url origin <url> instead of git remote add origin |
src refspec main does not match any | No commits yet. Run git add . && git commit -m "Initial commit" and retry |
error: failed to push some refs | Remote has commits your local does not. Run git pull --rebase origin main then push again |
| Build not triggering after push | Confirm the push succeeded (git log --oneline -1) and check the pipeline status in the Rabbit Deploy Portal |
| Account not assigned to a Product Space | Ping #ask-rabbit on Slack with your WOG AD email and request assignment to your Division / Agency Product Space |
#ask-rabbithttps://<project-name>.cio.rabbitdeploy.sandbox.gov.sgnpx claudepluginhub lifesg/ccube-agent-plugin-marketplace --plugin ccube-fds-web-app-builderCreates, edits, and optimizes skills for Claude Code, including drafting, evaluating with test prompts, iterating on performance, and improving skill descriptions for better triggering accuracy.