/project-orchestration-skills:validate-quality-configfrom project-orchestration-skills
Validates consistency across quality configuration files (editorconfig, linters, pre-commit hooks, CI) against a single source of truth. Helps debug "works locally, fails in CI" issues.
Ships in project-orchestration-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
Validate consistency across quality configuration files.
setup-git-hooks skillThe 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 Makefile 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.
setup-git-hooks first)docs/reference/quality-configuration.md as the single source of truth for canonical values.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)# 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
Parse the quality-configuration.md for key settings:
# Example: Extract indent size for Python
grep -A1 "indent_size.*4" docs/reference/quality-configuration.md
Expected values to extract:
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"
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"
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
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
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
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.
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:
*-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.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.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 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:
:5), a minor (:5.1), latest, or absent;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.
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, [email protected] 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:
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.
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).
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}"
# The manifest version should appear in each of these; a *different* x.y.z is drift:
for f in README.md CHANGELOG.md SECURITY.md; do
[ -f "$f" ] || continue
if grep -q "$ver" "$f"; then echo "✓ $f mentions $ver"
else echo "✗ $f does not mention $ver"; fi
grep -oE '[0-9]+\.[0-9]+\.[0-9]+' "$f" | grep -v "^$ver$" | sort -u | sed "s/^/ ⚠ $f also states /"
done
Confirm the declared version agrees across the package manifest (mix.exs @version, pyproject.toml version, package.json version, Cargo.toml, build.gradle.kts), the README.md status line/badge, the latest released CHANGELOG.md section, and the SECURITY.md supported-versions table. Report any divergence as an error. If the project follows a during-development versioning rule (for example, staying on patch-level 0.1.x releases until the first stable minor), honour it.
echo ""
echo "=== Quality Configuration Validation Report ==="
echo ""
echo "Reference: docs/reference/quality-configuration.md"
echo ""
echo "Files checked:"
echo " - .editorconfig"
echo " - [linter configs]"
echo " - .pre-commit-config.yaml"
echo " - [CI config]"
echo ""
echo "Issues found: [count]"
echo ""
echo "Recommendations:"
echo " - [any mismatches to fix]"
The all-in-one check:
The script is scripts/validate-quality-config.sh, in this skill's directory. Copy it into the project as scripts/validate-quality-config.sh rather than retyping it, and run it from the repository root.
This skill produces:
scripts/check-tool-pins.sh)scripts/validate-quality-config.sh for automationAdd to project Makefile:
.PHONY: validate-quality-config
validate-quality-config:
@echo "Validating quality configuration consistency..."
@./scripts/validate-quality-config.sh
Add validation to pre-commit for config files:
- repo: local
hooks:
- id: validate-quality-config
name: validate quality config
entry: ./scripts/validate-quality-config.sh
language: script
files: '(\.editorconfig|\.pre-commit-config\.yaml|ruff\.toml|\.credo\.exs|quality-configuration\.md)$'
pass_filenames: false
The skill has done its job when:
docs/reference/quality-configuration.md is found (or its absence is reported as an error and the run stops)scripts/check-tool-pins.sh exits 0; exit 2 is a failure, not a pass)README.md, CHANGELOG.md, and SECURITY.mdsetup-git-hooks - Creates the configs this validates; also owns pinned-tool.sh, the runner that keeps a local binary from running at a version other than the pinsetup-adrs - Documents quality practices in an ADRPattern Reference: See CONSISTENT-QUALITY-GATES
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
13 skills in this plugin
/analyze-projectConduct SPARK methodology analysis for new project inception. Use at the beginning of a new project, when evaluating significant features, before bootstrap-project to validate viability, or when pivoting an existing project./bootstrap-projectBootstrap a new project at a chosen graduation tier (t0 minimum, t1 decision-tracked, t2 full pattern language) following AI-Assisted Project Orchestration best practices. Use when starting a new software project, promoting an existing project to a higher tier, or converting an existing project for AI-assisted development./graduate-backlogGraduate a project's in-repo backlog (roadmap phases, sprint deliverables, ADRs) onto a forge issue tracker at a thin-hybrid default, once the backlog outgrows a single contributor. Use when a team needs to see and claim work that currently lives only in docs/roadmap and docs/sprints, when a repo has a mature in-repo roadmap but an empty tracker, when open-sourcing a project, or when deciding what work should stay in-repo versus live on a GitHub, GitLab, Codeberg/Forgejo, or self-hosted internal tracker.project-orchestration-skills@jrjsmrtn-skills is listed by jrjsmrtn/jrjsmrtn-skills — review the source before installing
npx claudepluginhub jrjsmrtn/jrjsmrtn-skills --plugin project-orchestration-skillsOther plugins' skills for the same job