Skip to content
Back to skills

Repo Harness Setup

ASecurity

Canonical rule owner for installing, migrating, upgrading, repairing, scaffolding, and capability-configuring the repo-harness workflow in a repository.

  • 436 stars
  • 0 votes
  • 0 copies
  • 3 views
  • Added August 31, 2026
developmentshell

Security analysis

A100/100

Pro scans all 7 files and shows the line behind each finding

Scanned November 23, 2026

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

Installs into .claude/skills of the current project.

Are you the author of Repo Harness Setup?

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

Security grade badge for Repo Harness Setup
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/ancienttwo-repo-harness-setup/badge)](https://www.skillsdirectory.com/skills/ancienttwo-repo-harness-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: repo-harness-setup
description: Canonical rule owner for installing, migrating, upgrading, repairing, scaffolding, and capability-configuring the repo-harness workflow in a repository.
when_to_use: "repo-harness-setup, initialize existing repo, migrate legacy repo, upgrade harness, repair harness, scaffold new project, add capability boundary, impact-scoped CI"
---

# repo-harness-setup

Worker entrypoint. Use the Bot-assigned mode and target repo.
If either is missing, return the decision to the Bot.

Load only the reference for the assigned mode.

## Shared Preflight

1. Confirm the target repo path (`pwd`, or an explicit `--repo` argument).
2. Inspect the proposed changes with `rh init --repo <repo> --dry-run` (not `ci-scope`).

## Mode Selection

- No harness yet, or refreshing an existing install -> `references/init.md`.
- Inspector reports legacy docs or stale harness artifacts -> `references/migrate.md`.
- Harness present, needs latest contract/helpers/templates -> `references/upgrade.md`.
- A specific workflow surface is broken -> `references/repair.md`.
- New project/app/module skeleton, no existing repo workflow -> `references/scaffold.md`.
- Add or sync one capability boundary only -> `references/capability.md`.
- Impact-scoped PR CI with a release-only full matrix -> `references/ci-scope.md`.

## Boundaries

- Never write user-level (`HOME`) state from a repo-scoped mode; user-level setup is the separate `rh update` command.
- Preserve user-authored repo files unless the workflow contract owns the generated surface; remove only `ownership=known_generated` files.
- Does not create an application stack from any mode except `scaffold`.
- Does not expose internal helper scripts (`create-project-dirs`, direct shell init adapters, `hooks-init`, `docs-init`) as public commands.
- Does not infer capability prefixes from broad directory globs; always use explicit prefixes.
- Return a request spanning multiple modes to the Bot for scope and order.

Files in this skill

  • SKILL.md2 KB
  • references/capability.md1.3 KB
  • references/init.md892 B
  • references/migrate.md1.4 KB
  • references/repair.md748 B
  • references/scaffold.md1.4 KB
  • references/upgrade.md1.1 KB

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 development →

Comments

Loading comments…

Newsletter

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