jrjsmrtn/project-orchestration-skills/validate-quality-config
Claude Code and agent skill by jrjsmrtn/project-orchestration-skills
- community
- ext:[{"type":"hook","description":"Pre/post lifecycle hooks"}]
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-configSemi-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-hooksskill - 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:
Plus one axis that is not a match but a required difference:
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-hooksfirst) docs/reference/quality-configuration.mdas 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
Step 2: Extract Canonical Values
Parse the quality-configuration.md for key settings:
Expected values to extract:
- Indent style (spaces/tabs)
- Indent size per language
- Line length
- End of line (lf/crlf)
Step 3: Validate .editorconfig
Step 4: Validate Linter Configs
Elixir (.credo.exs, .formatter.exs)
Python (ruff.toml, pyproject.toml)
TypeScript (eslint.config.js, prettier)
Step 5: Validate Pre-commit vs CI Alignment
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.
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-filecall 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.
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).
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
- SKILL.md in the repositoryCheckingskills/validate-quality-config/SKILL.md
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
[](https://verified-skill.com/skills/jrjsmrtn/project-orchestration-skills/validate-quality-config)