Skip to content
Back to skills

Setup

ASecurity

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.

  • 4 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added December 2, 2026
ai-agentsgoshellawsgitapisecurity

Works with

  • api

Security analysis

A100/100

Scanned December 2, 2026

npx -y skills add Pierry/harness --skill setup --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Setup?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Setup
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/pierry-setup/badge)](https://www.skillsdirectory.com/skills/pierry-setup)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
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.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.