Command Palette

Search for a command to run...

UnylyUnyly
Back to skills

vx-repo-contract

FreeRuns bundled scriptsNot checked

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

loonghaoby loonghao476 installs in other catalogs

About this skill

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

Full SKILL.md on ClawHub

Install vx-repo-contract in Claude Code & Claude Desktop

Sign up to install this skill

Create a free account to reveal the install command and save the skill to your library.

  • Reveal the one-line install command
  • Save skills to your synced library
  • Get notified when skills update
Sign up freeI already have an account

Allowed tools

Tools this skill is permitted to call.

No restriction — this skill can use any tool.

FAQ

What does the vx-repo-contract skill do?

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

How do I install the vx-repo-contract skill?

Copy the skill folder into ~/.claude/skills (the Claude Code tab above does this in one command), or install it as a plugin.

Does the vx-repo-contract skill run scripts?

Yes, this skill bundles executable scripts. Review the source before installing.

Related skills

Compare vx-repo-contract with