Initializes Semaphore CI/CD for a repository: bootstraps the project, writes a working .semaphore/semaphore.yml (translating from GitHub Actions if present), wires secrets, validates, and watches the first workflow.
Ships in sem-ai. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
/sem-ai:init — initialize Semaphore CI/CD for this repoThe deterministic entry point for "make CI/CD work on Semaphore for this repository". Routes to the right path based on repo state and applies the defaults documented in the linked skills — so the agent doesn't fall back to training-data defaults that miss the per-skill guidance.
This skill is an orchestrator. It does not duplicate depth from other skills; it loads them on demand. If you're skimming this and the answer to a question feels missing, the relevant detail is in one of the cross-linked skills below.
| Situation | Use |
|---|---|
| "Set up CI on Semaphore for this repo" (any state) | /sem-ai:init — this skill |
| "Translate my GitHub Actions to Semaphore" (explicit) | gha-to-semaphore (or /sem-ai:gha-to-semaphore) |
| "Explain how blocks / dependencies / parallelism work" | semaphore-blocks |
"What's the right way to use cache / artifact / sem-version" | semaphore-toolbox |
| "Why don't my test reports show up" | semaphore-test-results |
| "Is X preinstalled on the agent" | probe-agent-environment |
/sem-ai:init is the user-facing slash command; the others are the depth it routes through.
ls .github/workflows/ 2>/dev/null
ls .semaphore/ 2>/dev/null
Branch by what exists:
| State | Path |
|---|---|
.github/workflows/* present, no .semaphore/ | Translate path — follow gha-to-semaphore end-to-end |
| Neither | Greenfield path — see step 2 |
.semaphore/* already present | Refine path — ask the user before overwriting; default is to surface what's there and refine in-place rather than rewrite |
If the repo has no existing CI, ask the user the minimal set of questions needed to draft something concrete:
package.json, go.mod, Gemfile, pyproject.toml, etc., propose; ask only if unclear.)package.json scripts, Makefile, mix.exs, etc.)sem-service supported list; see semaphore-toolbox.)semaphore-promotions.)Don't ask everything blindly — propose detected defaults and let the user correct.
These come from the linked skills. Apply automatically; mention briefly in the PR body so the user knows what was chosen and why:
type: f1-standard-2, os_image: ubuntu2404 (from semaphore-blocks runner table; per the official migration guide)checkout in global_job_config.prologue.commands: (from semaphore-toolbox)sem-version <lang> <ver> for language switching, NOT apt-get install / nvm use (from semaphore-toolbox)cache keyed on $(checksum <lockfile>) with fallback for dependency caching (from semaphore-toolbox — cardinality: ONE path per cache store)sem-service start <name> for postgres/mysql/redis/etc., NOT services: blocks (from semaphore-toolbox)test-results publish in epilogue.always.commands: for JUnit reports — never inline (from semaphore-test-results — inline = silent on failure)semaphore-test-results "Anti-pattern — junit-only reporter") — junit-only reporters hide failure detail in the log; agents end up patching pipeline to debug. Use framework defaults + junit, not junit alone.CYPRESS_CACHE_FOLDER, PLAYWRIGHT_BROWSERS_PATH, PUPPETEER_CACHE_DIR) in global_job_config.env_vars: to a subdir of an already-cached path (from semaphore-toolbox postinstall footgun) — avoids the silent cache-hit-skips-postinstall failure.dependencies: on every block (from semaphore-blocks — all-or-none rule)auto_cancel at pipeline root — cancel in-flight runs on non-default branches:
auto_cancel:
running:
when: "branch != 'main' AND branch != 'master'"
Always apply on greenfield. For translate path, apply unless the user's GHA had explicit concurrency: rules that contradict (rare). (from semaphore-blocks auto_cancel section)semaphore-blocks "Is it actually a wall-clock win" first — parallelism is a win only when tests dominate setup AND setup is cached/fast. If the check passes and there are obvious shard candidates (Cypress > 20 specs, Jest > 50 files, RSpec > 50, pytest > 100 tests), flag in PR body as a suggestion with the expected wall-clock delta. Don't apply on first draft.If unsure whether a tool is preinstalled (uncommon flag, language version, custom CLI), spawn a short-lived testbox via probe-agent-environment — never write apt-get install / curl | bash for something Semaphore likely already ships.
sem-ai project create --skip-yaml
--skip-yaml because we'll write the yaml ourselves in step 5. If the project already exists, sem-ai project create returns {status: "exists", ...} and exits 0 — safe to run.
Default file: .semaphore/semaphore.yml. For multi-pipeline cases (e.g. release on a separate promotion), additional files go under .semaphore/<name>.yml.
Apply the defaults from step 3. For translate path, follow the gha-to-semaphore mapping table; for greenfield, write directly using the language's standard test invocation plus the defaults.
sem-ai yaml validate --file .semaphore/semaphore.yml
Iterate until clean. (Note: sem-ai yaml validate is currently authoritative for syntax; do not push if it fails for reasons other than transient infra errors.)
If step 2 (or the translate path) surfaced secret names, for each:
sem-ai secret create <NAME> --env <NAME>=<value>
Never invent values. Always ask the user. List every required secret in the PR body so the user can audit before merge.
ci/semaphore (or whatever fits the repo's convention)Hand off to the watch-after-push skill: find the run for the pushed HEAD commit, then watch it to completion. --project auto-detects from the origin remote — pass it only to override or when the repo maps to multiple projects.
# Locate the run by the pushed HEAD commit, then watch it to green:
sem-ai workflow list --limit 1 # confirm the run for the new commit; pass --project only to override
sem-ai watch <wf>
On failure: sem-ai job log <job-id>. Iterate fixes; surface any patterns worth feeding back as skill improvements.
cache semantics or test-results rules here; route through the depth-skills. Keeping this skill thin = easier to maintain..semaphore/ without explicit user confirmation.f1-standard-2" wasn't arbitrary — it's the documented default. Same for test-results in epilogue, etc.gha-to-semaphore — translation procedure + bucket classification + PR body templatesemaphore-blocks — block/task/job model, dependencies, parallelism, sharding shard-flag table, agent selectionsemaphore-toolbox — cache, artifact, sem-version, sem-service, retry, checkout CLIs + footgunssemaphore-test-results — JUnit publish + epilogue rule + per-framework configs + pipeline-level aggregationsemaphore-promotions — deploy gates, parameters, promotion chains (when the user asks for a deploy step)probe-agent-environment — verify what's preinstalled before adding install stepsmanage-infra — secret create, deploy targets, agent typesWhat SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
/sem-ai:initfrom sem-ai
npx claudepluginhub semaphoreio/sem-ai --plugin sem-ai18 skills in this plugin
/debug-pipelineDiagnose and fix CI pipeline failures. Step-by-step debugging with sem-ai./deployDeploy via Semaphore promotions. Manage deployment targets, promote pipelines, deploy-and-wait./fix-flakyTriage and FIX flaky tests on a Semaphore project end-to-end — find the worst offenders, pull history, locate the test in the code, diagnose the root cause, write a fix or justified quarantine, and verify by re-running. Use whenever the user wants to fix/investigate flaky tests, de-flake CI, reduce intermittent failures, asks "why is CI randomly red", wants to quarantine a flake, or after `sem-ai flaky list` surfaces offenders. Goes BEYOND detection (test-intelligence) to root-cause + code change + verification./gha-to-semaphoreTranslate a repo's GitHub Actions workflows into an equivalent Semaphore pipeline. ONLY covers the GHA→Semaphore mapping and conversion procedure; for Semaphore-side depth (cache CLI, test-results, blocks structure, sharding, promotions) defer to the linked skills. Use when the user asks to convert/port/migrate GitHub Actions to Semaphore, says "translate this workflow" or "convert ci.yml", or the repo has `.github/workflows/` and the user wants Semaphore instead. Can be invoked directly as `/sem-ai:gha-to-semaphore` (or via the broader `/sem-ai:init` orchestrator)./manage-infraManage Semaphore infrastructure — secrets, notifications, agent types, scheduled tasks, artifacts./probe-agent-environmentSpin up a short-lived Semaphore testbox to check what's actually installed on an agent — tools, versions, toolbox functions, runtimes — when the official image docs don't answer the question. Use when an agent needs to confirm whether a tool/runtime/version is preinstalled on a Semaphore agent ("does the runner have X", "what version of Y ships on ubuntu2204/ubuntu2404", "is jq/yq/gh/aws on PATH", "what toolbox functions exist"), or before adding a CI step that installs a tool — verify it isn't already preinstalled.Other plugins' skills for the same job