Set up or review a project's delivery plumbing - a CI that runs senior-mode check, CODEOWNERS, a release tool, and a ruleset that makes every change go through a pull request. Use on "mets en place la CI", "protège main", "set up releases", "ruleset", or when a project has none of these.
Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Is that skill safe to install?
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
Are you the author of Devops?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/sycatle-devops)
---
name: devops
description: Set up or review a project's delivery plumbing - a CI that runs senior-mode check, CODEOWNERS, a release tool, and a ruleset that makes every change go through a pull request. Use on "mets en place la CI", "protège main", "set up releases", "ruleset", or when a project has none of these.
---
# DevOps
The guards on a laptop hold until someone works from another machine, or an agent finds a way around a
hook. The same rules then have to hold on the server: every change through a pull request, the checks
run where nobody can skip them, a release cut from the history rather than from memory. This skill sets
that up once, fitted to the project, and leaves it boring.
## Steps
1. **See what is there.** `senior-mode devops plan` lists what it would create, keep or update: the CI
workflow, CODEOWNERS, the release tool, the ruleset. Read the existing CI, branch protection and release
setup too: a project that already has them gets reviewed, not replaced. Done when you can say, for
each piece, keep, add or change, and why.
2. **Decide with the user** what is not obvious, with a recommendation:
- **No GitHub Actions** (a locked account, another forge, a preference): `--local`. The guard stays
`senior-mode check` before each merge, and the ruleset requires no status nobody publishes. A required
check that never runs blocks every pull request.
- **GitHub Free and a private repository:** no ruleset or branch protection exists there (the API answers
403), so the git hooks are the only guard against a direct push, and `devops` installs them. Say it
plainly; a public repository or GitHub Pro moves the guard to the server. Actions on a private
repository spends the account's minutes (2,000 a month on Free): `--local` when they matter.
- **Review:** the ruleset requires a pull request, not an approval, so a solo project is never stuck. A
team that wants approvals adds them in the ruleset afterwards, knowingly.
- **Release:** release-please, which the Conventional Commits the hooks enforce already feed. A project
with another tool (changesets, semantic-release, goreleaser) keeps it.
3. **Apply:** `senior-mode devops apply [--local]`. It installs the git hooks, writes the files,
uncommitted, and creates or updates the `senior-mode` ruleset where GitHub offers one (admin rights
needed).
4. **Fit the CI to the stack.** The workflow runs `senior-mode check` on a bare runner: add the steps the
project's checks need before it (setup-node and the install, a Rust toolchain, services for integration
tests), with dependency caching. Done when the workflow would pass on a clean machine; open the pull
request and watch the first run when Actions is available.
5. **Commit** the files (`commit`, type `ci` or `build`) in a pull request, which the new ruleset now
requires anyway.
## Reviewing an existing setup
What to look for: checks that run only on the default branch (too late), a required status that no longer
exists (every pull request blocked), secrets exposed to pull requests from forks, workflows with write
permissions they do not need, actions pinned to a moving branch, a release done by hand. Say what you
found, with the file and line, and fix what the user approves.