Skip to content
Back to skills

Repo Fitting

ASecurity

Use when a tracker step finds no repo config, or a repo lacks a guard it keeps needing: commit gate, import rules, git safety. Installing or editing config needs OK.

  • 2 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added November 21, 2026
toolsgogit

Security analysis

A100/100

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

Scanned November 21, 2026

npx -y skills add dev-dami/dami-stack --skill repo-fitting --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Repo Fitting?

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

Security grade badge for Repo Fitting
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/dev-dami-repo-fitting/badge)](https://www.skillsdirectory.com/skills/dev-dami-repo-fitting)

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-fitting
description: "Use when a tracker step finds no repo config, or a repo lacks a guard it keeps needing: commit gate, import rules, git safety. Installing or editing config needs OK."
user-invocable: false
---
# Repo fitting
Gate: get the user's OK before installing packages, editing scripts, hooks, CI, repo config or instruction files, creating labels, or committing setup files (G2, G3). See gates.md in the skill house-rules.
Job: Fit a repo with one thing it needs, and prove it works.
Takes: a repo and a fitting.   Gives: recorded config or an installed guard, proven pass, fail, pass.

Other blocks call this block when they find something missing. They don't tell the user to set it up. A worker that needs a fitting stops and reports it under `Needs OK`.

## Steps

1. Name the one fitting and open its recipe in this skill's `recipes/` folder.

   | The repo needs | Recipe |
   |---|---|
   | Tracker, label and docs config | `recipes/tracker.md` |
   | Mechanical block on destructive git commands | `recipes/git-safety.md` |
   | Formatting, type and test checks at commit | `recipes/commit-gate.md` |
   | Package boundaries a machine enforces | `recipes/import-rules.md` |
   | Type casts gone from tests | `recipes/test-casts.md` |

2. Inspect before proposing anything: the toolchain, lockfiles, existing config for this fitting, hooks, CI, instruction files. Report what is already there. A guard that exists but doesn't run is a repair, not a new install.
3. Decide the smallest change that does the job. Ask only what inspection can't answer, one topic at a time, each with a recommendation.
4. Show the exact change: files, packages, config sections. Get the OK in the gate's form.
5. Apply it. Merge with what exists rather than overwrite. Keep every other section of a shared file intact. Edit the instruction file the repo already has, and never add a second one.
6. Prove it by observing all three states:
   - pass: the guard runs clean on the repo as it stands
   - fail: a real sample trips the guard, and the failure names the rule
   - pass: the sample is reverted and the guard runs clean again

   A fitting with nothing to trip, such as tracker config, proves itself with a real read through the mapping instead.
7. Commit only with an OK, and only the setup files.
8. Report what was added, where it lives, which state each proof reached, and what it doesn't cover.

## Done when

- The recipe's own finish condition is met.
- Pass, fail and pass were each observed on the real repo and appear in the report as `[observed]` with their commands.
- Nothing outside the fitting changed, and every surrounding section of a shared file is intact.
- Any sample used to trip the guard is reverted.
- Anything left uncovered is named: another host, a missing script, a CI step the user must add.

Files in this skill

  • SKILL.md2.8 KB
  • recipes/commit-gate.md1.9 KB
  • recipes/git-safety.md3.3 KB
  • recipes/import-rules.md1.8 KB
  • recipes/test-casts.md1.6 KB
  • recipes/tracker.md3.7 KB
  • scripts/git-safety.js5.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 tools →

Comments

Loading comments…

Newsletter

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