rbx-ci
Skill0 starsChanged 3 months agoMITView on GitHub
A CI pipeline for Roblox projects that catches breakage before Studio does — Selene lint, StyLua format gate, luau-lsp type check, Lune-run tests, and a Rojo-built place artifact, wired through GitHub Actions. Use when the user says "add CI", "lint on push", "run tests automatically", "GitHub Actions", "Lune script", or when broken code keeps reaching the live place because nothing gates merges. Do not use for writing the tests themselves — load rbx-unit-testing — or for the Rojo/Wally project setup CI builds from — load rbx-rojo instead.
- Pipes a download into a shell
In this repository253 other files it gives its agents.
- rbx-abtestSkill
- rbx-accessibilitySkill
- rbx-analytics-eventsSkill
- rbx-analytics-funnelsSkill
- rbx-analytics-readingSkill
- rbx-animationSkill
- rbx-anim-cutscenesSkill
- rbx-anim-npcSkill
- rbx-anim-proceduralSkill
- rbx-anim-rigsSkill
- rbx-anim-tweenSkill
- rbx-architectureSkill
- rbx-assets-audioSkill
- rbx-assets-id-policySkill
- rbx-assets-sanitizeSkill
- rbx-assetsSkill
- rbx-assets-toolboxSkill
- rbx-assets-webSkill
- rbx-audio-feedback-mapSkill
- rbx-audio-mixingSkill
- rbx-audio-musicSkill
- rbx-audio-sfxSkill
- rbx-audioSkill
- rbx-audio-spatialSkill
- rbx-badges-groupsSkill
- rbx-build-compositionSkill
- rbx-build-detailingSkill
- rbx-build-greyboxSkill
- rbx-buildingSkill
- rbx-build-interiorsSkill
- rbx-build-kitbashSkill
- rbx-build-landscapeSkill
- rbx-build-propsSkill
- rbx-build-scaleSkill
- rbx-build-structuresSkill
- rbx-camera-controllersSkill
- rbx-camera-cutsceneSkill
- rbx-camera-shakeSkill
- rbx-chat-moderationSkill
- rbx-combat-abilitiesSkill
- rbx-combat-hitregSkill
- rbx-combat-meleeSkill
- rbx-combat-rangedSkill
- rbx-combatSkill
- rbx-combat-statusSkill
- rbx-complianceSkill
- rbx-comprehendSkill
- rbx-controlsSkill
- rbx-data-crossserverSkill
- rbx-data-profilestoreSkill
- rbx-data-recoverySkill
- rbx-data-schemaSkill
- rbx-data-sessionlockSkill
- rbx-dataSkill
- rbx-design-difficultySkill
- rbx-design-loopSkill
- rbx-design-sheetSkill
- rbx-design-socialSkill
- rbx-economy-currenciesSkill
- rbx-economy-gachaSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
1 rule. About 0 are common, 0 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈0
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 56
Every tool version comes from aftman.toml — CI and laptops run identical binaries, so "passes locally, fails in CI" points at real …
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 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
rbx-ci
When to load
Wiring automation around a filesystem project: lint and format gates, headless test runs,
build artifacts, or scripted publishing. Requires the rbx-rojo layout — CI builds from
disk, so co-load it; there is nothing to CI in a Studio-only place.
The five stages, in order
Cheapest failure first: lint → format check → type check → test → build. A Selene error in 2 seconds beats a 3-minute build that fails the same way.
name: CI
on: [push, pull_request]
jobs:
quality:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install Aftman
run: |
curl -LsSf https://raw.githubusercontent.com/nicbarker/aftman/main/install.sh | sh
echo "$HOME/.aftman/bin" >> $GITHUB_PATH
- run: aftman install
- run: wally install
- run: selene --no-color src/
- run: stylua --check src/
- run: |
rojo sourcemap default.project.json -o sourcemap.json
luau-lsp analyze --settings .luaurc src/
- run: lune run tests/run.luau
- run: rojo build -o build/game.rbxl
- uses: actions/upload-artifact@v4
with: { name: game-build, path: build/game.rbxl }Every tool version comes from aftman.toml — CI and laptops run identical binaries, so
"passes locally, fails in CI" points at real environment differences, not tool drift.
Configs the pipeline depends on
selene.toml — without std = "roblox" Selene flags every Roblox global as undefined and
the team learns to ignore red, which kills the gate:
std = "roblox"
[rules]
unused_variable = "warn"
shadowing = "warn"
incorrect_standard_library_use = "error"stylua.toml — pick once, argue never: column_width = 120, indent_type = "Spaces",
indent_width = 4, quote_style = "AutoPreferDouble". Escape hatches exist
(-- stylua: ignore, -- selene: allow(unused_variable)) — each use is a review flag,
not a habit.
Lune: the headless runner
Lune executes Luau outside Studio with its own globals — require("@lune/fs"),
@lune/net, @lune/process, @lune/serde, and @lune/roblox for reading place files.
There is no live game: to run TestEZ suites headless, rojo build the place, deserialize
it with @lune/roblox, hand that DataModel to the TestEZ bootstrap, and process.exit(1)
when failureCount > 0 so the job actually fails. Engine-behavior tests (physics, play
mode, rendering) cannot run here — those stay in Studio via rbx-qa-playtest.
Publishing from the pipeline
Deploy = the built .rbxl POSTed to the Open Cloud place-publish endpoint with a
CI-secret API key (rbx-opencloud has the endpoint and backoff rules; key creation is a
rbx-handoff-account dashboard step). Publish from a release branch or tag only — never
from every green push, or a half-reviewed merge goes live mid-playsession.
Sharp edges
- CRITICAL — Auto-publishing the live place on every green main build: tests can pass
while the game is unplayable (tests cover logic, not feel). Gate publishing behind a
manual approval or a tagged release, and keep the previous version number noted for
rollback (
rbx-versioning). - HIGH — TestEZ suite written against live-engine APIs errors instantly under Lune
("attempt to index nil with 'GetService'"). The suite must run on mocks and injected
dependencies — that is
rbx-unit-testinglaw, and CI is where violations surface. - HIGH — API key stored in the workflow file instead of repository secrets: it is now in git history forever. Move to Actions secrets, rotate the key immediately.
- MEDIUM — Lint/format steps added as
continue-on-error"temporarily": a gate that cannot fail is decoration. Fix the codebase once (stylua src/writes it all), then make the gate hard.
Load with
rbx-rojo (the project CI builds — don't ask, include it), rbx-unit-testing (what
lune run tests/run.luau executes), rbx-opencloud (pipeline publishing),
rbx-versioning (release/rollback discipline).
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.

