jrjsmrtn/project-orchestration-skills/validate-quality-config

Claude Code and agent skill by jrjsmrtn/project-orchestration-skills

Trust tier 2
  • community
  • ext:[{"type":"hook","description":"Pre/post lifecycle hooks"}]
Source check pending

Checking that the SKILL.md file is still in the repository.

Validate consistency across quality configuration files. Use after setup-git-hooks, when debugging "works locally, fails in CI" issues, before major releases, or when onboarding.

Install

npx vskill@latest install jrjsmrtn/project-orchestration-skills/validate-quality-config

Semi-extensibleMentions customization, but needs skill-specific knowledge. Read the extensible skills standard

SKILL.md

The same SKILL.md was published earlier as jrjsmrtn/project-orchestration-skills/validate-quality-config.

Validate Quality Configuration

Validate consistency across quality configuration files.

When to Use

  • After running setup-git-hooks skill
  • When debugging "works locally, fails in CI" issues
  • Before major releases or audits
  • When onboarding to understand quality setup
  • After updating any quality-related configuration

What It Validates

The consistency chain:

docs/reference/quality-configuration.md ← Single source of truth
↓ must match
.editorconfig ← Editor formatting
↓ must match
Linter configs ← Code analysis
↓ must match
.pre-commit-config.yaml ← Local hooks
↓ must match
.github/workflows/*.yml ← CI pipeline
.gitlab-ci.yml

Plus one axis that is not a match but a required difference:

Language manifest → toolchain FLOOR (go.mod, Cargo.toml, pyproject.toml, package.json, mix.exs)
CI config → toolchain BUILD (go-version:, python-version:, node-version:, matrix)
these must NOT be the same value

Also validated: that every lint, format and compliance tool is pinned to one exact version, identical in the hooks, the justfile and CI (Step 6b).

Also validated: that the toolchain floor (language manifest) and build version (CI) are deliberately different, and that only the floor-compatibility job reads the manifest. This is the one assertion in this skill that checks a difference rather than a match.

Required Inputs

  • A project that already has quality configuration in place (run setup-git-hooks first)
  • docs/reference/quality-configuration.md as the single source of truth for canonical values
  • Read access to the config files being cross-checked (.editorconfig, linter configs such as .credo.exs / ruff.toml / .prettierrc, .pre-commit-config.yaml, and the CI workflow files under .github/workflows/ or .gitlab-ci.yml)

Workflow

Step 1: Check Reference Document Exists
bash
# Verify single source of truth exists
if [ -f docs/reference/quality-configuration.md ]; then
echo "✓ quality-configuration.md exists"
else
echo "✗ Missing docs/reference/quality-configuration.md"
echo " Run: quality/setup-git-hooks skill first"
exit 1
fi
Step 2: Extract Canonical Values

Parse the quality-configuration.md for key settings:

bash
# Example: Extract indent size for Python
grep -A1 "indent_size.*4" docs/reference/quality-configuration.md

Expected values to extract:

  • Indent style (spaces/tabs)
  • Indent size per language
  • Line length
  • End of line (lf/crlf)
Step 3: Validate .editorconfig
bash
echo "Checking .editorconfig..."
# Check indent_style
grep -q "indent_style = space" .editorconfig && echo "✓ indent_style" || echo "✗ indent_style mismatch"
# Check Python indent
grep -A1 "\[*.py\]" .editorconfig | grep -q "indent_size = 4" && echo "✓ Python indent" || echo "✗ Python indent mismatch"
# Check line length (if supported by editorconfig)
grep -q "max_line_length" .editorconfig && echo "✓ max_line_length defined" || echo "⚠ max_line_length not in editorconfig"
Step 4: Validate Linter Configs
Elixir (.credo.exs, .formatter.exs)
bash
echo "Checking Elixir configs..."
# Check .formatter.exs line_length
grep -q "line_length: 120" .formatter.exs && echo "✓ formatter line_length" || echo "✗ formatter line_length mismatch"
# Check .credo.exs max_line_length
grep -q "max_line_length" .credo.exs && echo "✓ credo line_length defined" || echo "⚠ credo line_length not found"
Python (ruff.toml, pyproject.toml)
bash
echo "Checking Python configs..."
# Check ruff line-length
if [ -f ruff.toml ]; then
grep -q "line-length = 120" ruff.toml && echo "✓ ruff line-length" || echo "✗ ruff line-length mismatch"
grep -q "indent-width = 4" ruff.toml && echo "✓ ruff indent-width" || echo "✗ ruff indent-width mismatch"
elif [ -f pyproject.toml ]; then
grep -A5 "\[tool.ruff\]" pyproject.toml | grep -q "line-length = 120" && echo "✓ ruff line-length" || echo "✗ ruff line-length mismatch"
fi
TypeScript (eslint.config.js, prettier)
bash
echo "Checking TypeScript configs..."
# Check prettier config
if [ -f .prettierrc ] || [ -f .prettierrc.json ]; then
grep -q '"tabWidth": 2' .prettierrc* && echo "✓ prettier tabWidth" || echo "✗ prettier tabWidth mismatch"
grep -q '"printWidth": 120' .prettierrc* && echo "✓ prettier printWidth" || echo "✗ prettier printWidth mismatch"
fi
Step 5: Validate Pre-commit vs CI Alignment
bash
echo "Checking pre-commit vs CI alignment..."
# Extract checks from pre-commit
pre_commit_hooks=$(grep "id:" .pre-commit-config.yaml | sed 's/.*id: //' | sort)
# Check CI has superset
if [ -f .github/workflows/ci.yml ]; then
echo "GitHub Actions detected"
# Verify key checks are in CI
grep -q "ruff\|credo\|mix format" .github/workflows/ci.yml && echo "✓ Linting in CI" || echo "✗ Linting missing from CI"
grep -q "mypy\|dialyzer\|tsc" .github/workflows/ci.yml && echo "✓ Type checking in CI" || echo "✗ Type checking missing from CI"
grep -q "pytest\|mix test\|npm test" .github/workflows/ci.yml && echo "✓ Tests in CI" || echo "✗ Tests missing from CI"
fi
if [ -f .gitlab-ci.yml ]; then
echo "GitLab CI detected"
# Similar checks for GitLab
grep -q "lint\|format" .gitlab-ci.yml && echo "✓ Linting in CI" || echo "✗ Linting missing from CI"
fi
Step 6: Validate Toolchain Floor vs Build Version

Most of this skill checks that values agree. This one checks that two values differ, which is why it is easy to omit and why omitting it is expensive.

The language manifest declares the floor — the oldest runtime a consumer needs. CI selects the build version — what artifacts are actually produced with. If CI reads the floor from the manifest, every build runs on the least-patched runtime the project claims to support. Released artifacts embed that runtime, and if the project publishes an SBOM they record it, so the vulnerable version is both shipped and documented.

bash
echo "Checking toolchain floor vs build version..."
# The floor, from whichever manifest the stack uses:
floor=$(grep -m1 -oE '^go[[:space:]]+[0-9.]+' go.mod 2>/dev/null | grep -oE '[0-9.]+')
floor=${floor:-$(grep -m1 -oE 'rust-version[[:space:]]*=[[:space:]]*"[0-9.]+"' Cargo.toml 2>/dev/null | grep -oE '[0-9.]+')}
floor=${floor:-$(grep -m1 -oE 'requires-python[[:space:]]*=[[:space:]]*"[^"]+"' pyproject.toml 2>/dev/null | grep -oE '[0-9.]+')}
echo "declared floor: ${floor:-UNKNOWN}"
# Every place CI selects a version, and every place it reads the manifest instead:
echo "-- build versions selected in CI --"
grep -rhoE '(go|python|node|otp|elixir)-version:[[:space:]]*"?[^"[:space:]]+' .github/workflows/ 2>/dev/null \
| tr -d '"' | sort | uniq -c
echo "-- call sites reading the floor from the manifest --"
grep -rn 'version-file' .github/workflows/ 2>/dev/null
# A build version equal to the floor is the defect this step exists to catch:
# The trailing boundary matters: without it a floor of "1.2" matches a build of "1.26".
# Do NOT anchor to end-of-line — inline YAML (`with: { go-version: "1.26" }`) has a trailing `}`.
grep -rqE "version:[[:space:]]*\"?${floor}([^0-9.]|$)" .github/workflows/ 2>/dev/null \
&& echo "✗ CI builds at the declared floor (${floor}) — least-patched runtime" \
|| echo "✓ build version differs from the floor"

Report as findings:

  • Error — CI builds at the declared floor, or no floor is declared at all.
  • Error — more than one distinct build version across CI, unless a test matrix is intended.
  • Warning — a *-version-file call site outside the floor-compatibility job. Reading the

manifest is correct only there; everywhere else it silently pins the build to the floor.

  • Warning — no job builds at the floor. The compatibility claim is then unverified, and a

floor nothing tests is a guess.

  • Warning — the build version tracks a moving alias (stable, latest, *). A new major

release then changes what ships with no commit; pin the line instead, which still takes patch releases and so still carries runtime security fixes.

  • Note — a sub-module with a higher floor forced by a dependency is inherited, not chosen.

Its CI job must read its manifest, not the root one.

The reference document should record all of this per call site. If it does not, the drift has nowhere to be noticed: a partial fix that updates the obvious workflows and misses a scheduled scan looks identical to a complete one.

Step 6b: Validate Lint-Tool Pins — Exact, and the Same Everywhere

Step 5 checks that the same checks run locally and in CI. It does not check that they run the same version of the tool, and that is the quieter failure.

The dangerous direction is the inverse of the skill's headline. "Works locally, fails in CI" is loud and gets fixed. Passes CI, fails locally is not: CI gates the merge, so whichever side is more lenient wins by default. Observed: CI ran fsfe/reuse:5 (a floating major) while a contributor had reuse 6.2.0; CI passed a tree that 6.2.0 rejects, so the licence gate had been the more lenient one all along and a non-compliant tree went green. A floating tag lets the two sides drift apart with no commit to show it.

Assert, for every lint, format and compliance tool the project runs:

  • every pin is an exact version — not a major (:5), a minor (:5.1), latest, or absent;
  • every place that names the tool (hook config, justfile, scripts, CI) names the same version.

The check takes the tool names as arguments:

The script is `scripts/check-tool-pins.sh`, in this skill's directory. Copy it into the project as scripts/check-tool-pins.sh rather than retyping it, and run it from the repository root.

bash
scripts/check-tool-pins.sh reuse hadolint gitleaks # expect "✓ … pinned to X everywhere" for each

It reads tool:1.2.3, tool==1.2.3, tool@1.2.3 and the space form tool 1.2.3 (the form setup-git-hooks' pinned-tool.sh uses), in the hook config, Makefile/justfile, scripts/ and CI files. It deliberately does not read uses: lines (action pins belong to harden-github-actions) or .pre-commit-config.yaml's rev: (pre-commit requires one, but it sits on a different line from the repo name). It reports only the first pin on a line. Where a tool is pinned in a form it cannot read, it exits 2 — not 0, because a checker that finds nothing has checked nothing.

Report as findings:

  • Error — a floating or missing pin, or two different exact versions.
  • Error — exit 2: the tool is not pinned anywhere this check can see.

Proven against a fixture before it was written down: the observed :5 vs 6.2.0 case → exit 1; two exact versions that differ (6.1.0 vs 6.2.0) → exit 1; latest → exit 1; a tool pinned nowhere → exit 2; a consistent pin, including through pinned-tool.sh, with an SHA-pinned uses: line present → exit 0.

Step 7: Validate Version Consistency

The declared version must agree across every file that states it. Drift here is a real, common defect (e.g. a README badge or SECURITY.md left behind while the manifest moved on).

bash
echo "Checking version consistency..."
# Canonical version from the package manifest (pick the one for the stack):
ver=$(grep -m1 -oE '"version":[[:space:]]*"[0-9]+\.[0-9]+\.[0-9]+"' package.json 2>/dev/null | grep -oE '[0-9]+\.[0-9]+\.[0-9]+')
ver=${ver:-$(grep -m1 -oE '@version[[:space:]]+"[0-9]+\.[0-9]+\.[0-9]+"' mix.exs 2>/dev/null | grep -oE '[0-9]+\.[0-9]+\.[0-9]+')}
ver=${ver:-$(grep -m1 -oE '^version[[:space:]]*=[[:space:]]*"[0-9]+\.[0-9]+\.[0-9]+"' pyproject.toml 2>/dev/null | grep -oE '[0-9]+\.[0-9]+\.[0-9]+')}
echo "manifest version: ${ver:-UNKNOWN}"

This is the start of the file. Read the full SKILL.md on GitHub.

Security

  • Security scanPassed, 100 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

Repository stars
15
7-day trend score
14

Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.

Extension points

  • hookPre/post lifecycle hooks

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/jrjsmrtn/project-orchestration-skills/validate-quality-config/badge)](https://verified-skill.com/skills/jrjsmrtn/project-orchestration-skills/validate-quality-config)

Something wrong with this skill or its page? Tell us.