Command Palette

Search for a command to run...

Назад к скиллам
скилл № 09063

vx-repo-contract

Apply the shared repository layout contract to vx-managed repos. Use when reviewing root files, vx.toml, justfile, agent instructions, or repository cleanup.

БесплатноЗапускает вложенные скрипты
loonghaoот loonghao493 установки в других каталогах

Установить vx-repo-contract в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Об этом скилле

VX Repository Contract

Use the shared checker for local and CI decisions. This skill explains the rules; it does not implement a second contract.

Where the rules are defined

Rule definitions, profiles, allowlists, and artifact patterns live in contract/repo_contract.json in dcc-mcp/.github. Read the JSON from the tooling checkout before changing a repository. The checker consumes that JSON; the summaries below are guidance. If they disagree, follow the JSON and update this skill.

The examples and summaries below use tooling revision d98ad6e8b9f2444699b0b109b2dbfb1c3000c56e. When updating it, keep the local checkout, workflow reference, and workflow ref input on the same revision. Read the complete contract for rules beyond these daily editing concerns.

This skill Contract id Severity Profiles
Rule 1 — root allowlist R006 (root-allowlist) warning; denied entries error strict
Rule 2 — lowercase justfile R002 (justfile-lowercase) error baseline, strict
Rule 3 — no duplicate scripts R007 (no-scripts-with-justfile) warning strict
Rule 4 — agent instructions R003 (agents-md-exists) / R008 (agents-derived-symlink) error / warning baseline + strict / strict
Rule 5 — root artifacts R001 (no-root-artifacts) error baseline, strict

baseline omits R006, R007, and R008. strict includes them. R007 and R008 findings are warnings by default; R006 also emits errors for root_deny_globs. --fail-on error allows warnings. Use --fail-on warning to block on warnings, or add and promote selected rules with --rule and --error-rule.

Set up the shared checker locally

A caller workflow does not install the checker in the repository being checked. From that repository, clone the tooling once into an unused sibling directory:

vx git clone --no-checkout https://github.com/dcc-mcp/.github.git ../contract-tooling
vx git -C ../contract-tooling checkout --detach d98ad6e8b9f2444699b0b109b2dbfb1c3000c56e

Keep the complete checkout: the checker imports other modules from scripts/. The sibling location keeps tooling files out of the target repository's root. If tooling already exists, verify its revision instead of cloning over it.

Run the default gate from the target repository:

vx [email protected] ../contract-tooling/scripts/check_repo_contract.py \
  --root . --contract ../contract-tooling/contract/repo_contract.json \
  --profile baseline --fail-on error --format text

To check every rule and fail on warnings too:

vx [email protected] ../contract-tooling/scripts/check_repo_contract.py \
  --root . --contract ../contract-tooling/contract/repo_contract.json \
  --profile strict --fail-on warning --format text

--root selects the repository under review; --contract selects the definition from the tooling checkout. Exit 0 means no finding reaches the chosen threshold, exit 1 means a finding reaches it, and exit 2 means the check could not run.

Rule 1 — Root directory allowlist (R006)

Before adding a top-level entry, consult root_allowlist, root_deprecated, and root_deny_globs in the JSON. R006 covers root files and directories. Entries such as .dockerignore, Makefile, uv.lock, and rust-toolchain are allowed by the shared contract; a smaller hand-written file list would reject them.

Keep temporary handoff notes, review transcripts, and reports outside the source root. Check the result with the strict invocation above instead of maintaining another allowlist regex.

Rule 2 — Lowercase justfile (R002)

Use the contract's lowercase justfile convention. R002 reports capitalized variants such as Justfile; the convention prefers justfile even where the Runtime supports other filenames.

Put shared tasks in justfile; R007 below determines whether a [scripts] entry duplicates one of those tasks.

Rule 3 — Avoid duplicate task entry points (R007)

R007 checks each [scripts] entry when a justfile exists. It warns when the entry forwards to just <recipe> or vx just <recipe>, or when its key matches a recipe name with hyphens and underscores treated as equivalent. Independent entry points are allowed; the existence of the table alone is not a violation.

For example, with a test recipe, test = "vx just test" duplicates that task. An entry such as serve = "vx node scripts/dev.mjs" is allowed when serve is not a recipe in the justfile.

R007 is a strict-profile warning, so the default baseline gate does not enforce it. To enforce only this additional rule alongside baseline errors:

vx [email protected] ../contract-tooling/scripts/check_repo_contract.py \
  --root . --contract ../contract-tooling/contract/repo_contract.json \
  --profile baseline --rule R007 --error-rule R007 --fail-on error --format text

For Rust version ownership and the rustup-managed declara

Полный SKILL.md на ClawHub

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

FAQ

Что делает скилл vx-repo-contract?

Apply the shared repository layout contract to vx-managed repos. Use when reviewing root files, vx.toml, justfile, agent instructions, or repository cleanup.

Как установить скилл vx-repo-contract?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл vx-repo-contract запускает скрипты?

Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.

Похожие скиллы

Сравнить vx-repo-contract с