Repo tooling
Use when adopting, auditing, or fixing TypeScript/JavaScript project tooling with @rtorcato/repo-tooling, or scaffolding a new project with it. Triggers on "audit my tooling", "fix tooling drift", "is my tsconfig/biome/vitest config right", "set up CI/semantic-release/dependabot", "scaffold a TS library/web-app/node-api", "run doctor", "run fix", or "/repo-tooling". Drives the CLI non-interactively (--json --yes). NOT for hand-editing configs the CLI owns — let the CLI scaffold them so they stay in sync with the presets.From its SKILL.md
npx -y skills add rtorcato/repo-tooling --skill repo-toolingAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
One thing to look at
- 2 stars2 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
SKILL.md
3.6 KB, as published. Nobody here has run it
repo-tooling
@rtorcato/repo-tooling is a single-package TS/JS tooling distribution: every preset
(TypeScript, Biome, ESLint, Prettier, Vitest/Jest, Commitlint, semantic-release,
tsup/esbuild/Vite/Playwright) plus a CLI to scaffold and audit. Adopt the presets
through the CLI, not by hand — a manual edit drifts from the preset and doctor
will flag it.
Every command takes --json and a non-interactive mode; pair with --yes for
autonomous use. --json implies --yes (a prompt would corrupt the JSON). Run via
npx @rtorcato/repo-tooling <cmd>; -d <dir> targets a directory other than cwd.
Audit → fix → confirm (existing repo)
npx @rtorcato/repo-tooling doctor --json # findings
npx @rtorcato/repo-tooling fix --yes --json # apply every fixable finding
npx @rtorcato/repo-tooling doctor --json # confirm clean
doctor returns { directory, results: [{ check, status, detail, hint? }] }. Status:
ok— configured correctly, nothing to do.drift— file exists but doesn't extend our preset.fixdefaults the overwrite prompt to No;--yesis required to overwrite. Showfix <target> --difffirst.missing— required and absent → fix it.optional-missing— opt-in tool not configured. Only fix if the user wants that tool.
fix returns FixActionRecord[] with status: applied | dry-run | skipped | already-ok | unsupported.
Targeted fix (one concern)
npx @rtorcato/repo-tooling list --json # enumerate targets (source of truth)
npx @rtorcato/repo-tooling fix <target> --yes --json # e.g. biome, vitest, dependabot, attw
npx @rtorcato/repo-tooling fix <target> --dry-run --json # preview writes
npx @rtorcato/repo-tooling fix <target> --diff # unified diff before confirming
list --json is the source of truth for valid targets — read it, don't guess.
Scaffolding a new project
# Quick: from a named preset (minimal | library | web-app | node-api | nextjs-app | react-app | swift-library)
# --yes skips the interactive file-list review; without it, a terminal lets you deselect.
npx @rtorcato/repo-tooling setup --preset library -d ./my-lib --skip-install --yes
# Full control: validate a config against the schema, preview, then write
npx @rtorcato/repo-tooling setup --config-schema > project-config.schema.json
npx @rtorcato/repo-tooling setup --config project.json --dry-run # preview file list
npx @rtorcato/repo-tooling setup --config project.json -d ./my-lib --skip-install
Rules
- Let the CLI own its configs. If
doctorsaysdrift, fix via the CLI, don't hand-patch. - Use
--jsonwhenever you'll parse the result; use--dry-run/--diffbefore any destructive overwrite. optional-missing≠ broken. Don't install opt-in tools (typedoc, size-limit, treeshake-check, attw, codeql) unless the user asked for that capability.- After a
fix, re-rundoctorto confirm the finding cleared. - Releasing? See the npm-publish skill — never hand-cut a version or tag.
Full docs: https://rtorcato.github.io/repo-tooling/guides/cli/