Set up the harness in the current repository - Renovate preset for automatic dependency and skill updates, a security CI workflow, project settings that pin third-party security plugins by commit, and deny rules. Use when the user says "set up harness", "install harness here", or asks to add dependency automation or security CI to a repo.
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 Setup?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/pierry-setup)
---
name: setup
description: Set up the harness in the current repository - Renovate preset for automatic dependency and skill updates, a security CI workflow, project settings that pin third-party security plugins by commit, and deny rules. Use when the user says "set up harness", "install harness here", or asks to add dependency automation or security CI to a repo.
---
# Set up the harness in this repo
Every step is idempotent and shows a diff before it writes. Never overwrite a file the
user already has; merge into it and show the result.
Templates live in `${CLAUDE_PLUGIN_ROOT}/templates/`.
## 1. Look before writing
- `git rev-parse --show-toplevel` and `git remote get-url origin`. Stop if this is not a git repo.
- List what exists: `renovate.json`, `.github/renovate.json5`, `.github/dependabot.yml`,
`.github/workflows/`, `.claude/settings.json`, `SECURITY.md`.
- Detect the ecosystems from lockfiles (`package-lock.json`, `pnpm-lock.yaml`, `uv.lock`,
`poetry.lock`, `go.sum`, `Cargo.lock`, `gradle.lockfile`, `pom.xml`, `Gemfile.lock`).
A manifest without a lockfile is worth telling the user: unpinned transitive
dependencies are how most supply-chain attacks land.
## 2. Renovate
If there is no Renovate config, write `renovate.json`:
```json
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"extends": ["github>Pierry/harness//renovate/default"]
}
```
If Dependabot version updates are configured, ask before replacing them; running both opens
duplicate PRs. Dependabot security alerts can stay on.
Tell the user, in one line each, what the preset does: patch and minor updates merge on
green CI after a 3-day cooldown, majors wait for review, GitHub Actions are pinned to
commit SHAs, lockfiles refresh weekly, pinned Claude plugins get a PR to review, and
vulnerability fixes skip the cooldown. Then tell them to install the Renovate GitHub App
(https://github.com/apps/renovate) on the repo, because nothing runs until they do.
Automerge only works if the default branch requires the CI checks to pass. Check with
`gh api repos/{owner}/{repo}/branches/{branch}/protection` and say so if it is missing.
## 3. Security workflow
Copy `templates/security.yml` to `.github/workflows/security.yml` if no file with that
name exists. It runs secret scanning (TruffleHog), dependency vulnerabilities on PRs
(OSV-Scanner, fails only on new findings), SAST (Semgrep, no account needed), and a
workflow audit (zizmor). Every action is pinned to a commit SHA.
## 4. Project settings
Merge `templates/settings.json` into `.claude/settings.json`:
- `extraKnownMarketplaces` and `enabledPlugins`: the harness marketplace and Trail of
Bits' skills, pinned to a commit. Renovate keeps these pins current through reviewed PRs.
- `permissions.deny`: reading `.env*`, `~/.ssh`, `~/.aws`; force push; piping a download into a shell.
Merge arrays without duplicates. Keep the user's existing keys.
## 5. Ignore the graph cache
Add `.harness/` to `.gitignore` if it is not there.
## 6. Report
One line per file: created, merged, or left alone and why. Then the two things only the user
can do: install the Renovate app, and require the CI checks on the default branch.