npx skills add https://github.com/getcolors/once --skill package-once-redSKILL.md
ONCE with Red
Use this skill in the user's current directory. Read references/configuration.md before creating or changing desired state and before a real create or delete, and references/github-deploy.md before writing or changing a GitHub Actions workflow.
Safety
- Never request or print a secret, private key, token, password, or application value.
- Secrets use
COLORS_PAR_*, the one namespace every colour shares, and never belong incolors.yml, generated files, commands, or logs. - Read only a user-approved SSH
.pubfile. Never inspect a private key. - Do not overwrite
redorcolors.ymlwithout explicit approval. - Default to
buildandcreate --dry-run. A real create/delete needs explicit confirmation for that operation. - Build and dry-run are credential-free; never claim they validate credentials.
- Delete remains blocked until
COLORS_PAR_COMPUTE_PREVENT_DESTROY=falseorCOLORS_PAR_COMPUTE_PREVENT_DESTROY=falseis present. - Never edit
.colors/; it is generated and is shared safely with the Green and Blue implementations. Never run two implementations concurrently against that state.
Initialize
Gather profile, applications, provider choices, and the selected providers'
non-secret settings. Deploy keys are not among them: ONCE generates one per
repository named under github on every create and publishes it to a GitHub
environment named after the profile, so ask only for COLORS_PAR_GITHUB_TOKEN.
Do not gather secret values. When an application names a repository, also ask
whether the user wants continuous deployment — see below.
After confirmation:
- Copy this skill's bundled
redto./redand make it executable. ItsPINSmust pin bothpackage-once-redandredto immutable Git commits; the launcher resolves them itself on first run. - Write
colors.ymlfollowing the reference, withworkdir: .colors. - Add
.colors/and any private environment file to.gitignorewithout replacing unrelated entries. - Run
./red buildand./red create --dry-run. - Report required variable names only. Do not run a real create automatically.
Continuous deployment
create publishes SSH_PRIVATE_KEY, SERVER_IP, SERVER_USER, and
SSH_KNOWN_HOSTS into an Actions environment named after the profile; nothing
reads them until a workflow does. So whenever an application names github,
ask whether to also add the workflow that builds the image and pings the server
on every push to main. Do not ask when no application names a repository —
without it nothing is published.
On yes, adapt references/github-deploy.md:
substitute the profile for PROFILE and the application host for the
environment URL. The workflow belongs in the application's repository, often
not the directory holding colors.yml. Compare the origin remote to
owner/repo: on a match write .github/workflows/deploy.yml, asking before
overwriting an existing one; otherwise show the YAML and name its path rather
than writing into the wrong repository. State that the repository needs its own
Dockerfile, that the published image must equal the application's image, and
that the first run works only after a real create.
On no, nothing further is needed: ssh -T deploy@SERVER_IP </dev/null is the
whole deploy interface, and auto_update: true updates without a ping.
Operate
./red build
./red create --dry-run
./red create
./red describe
./red delete --dry-run
./red delete
Use -f|--file for another desired-state file. Before a real lifecycle event,
check required variables by presence only and let the launcher perform final
validation.