DEV Community

Fernando Paladini for TechLeads.club

Posted on

Catch Skill Problems Before the PR with skill-validator

When a skill fails review, the expensive part is often discovering the problem after a pull request is already open. The Tech Leads Club skill-validator skill gives an AI coding agent a repeatable pre-PR review: run deterministic checks, estimate a TrustScore, identify blocking findings, and explain the quality gaps that still need human judgment.

This tutorial shows how to install it, invoke it in an agent chat, and turn its report into a short repair loop.

AI disclosure: This tutorial was drafted with AI assistance and checked against the current Tech Leads Club catalog, the linked skill documentation, the current agent installation pages, and a local CLI smoke test.

What skill-validator actually does

The installed skill name is skill-validator. Its purpose is to estimate a skill package's TrustScore from security and quality checks before a pull request. It is designed for a folder containing a SKILL.md, optional scripts/, references/, and related resources.

It is useful when you want to:

  • validate a new or edited SKILL.md before opening a PR;
  • understand why a package is blocked by a hard rule or a high-severity security finding;
  • compare a score before and after a repair;
  • produce an auditable quality report instead of relying on a vague "looks good" review.

It is not a substitute for application-code review, a guarantee that a skill is safe, or an explanation of a CI result that already exists. The deterministic pass is heuristic, and the quality group still needs an AI judge with short, evidence-based justifications.

The official skill page describes a two-pass workflow. The first pass calculates deterministic groups and leaves quality unscored. After judging eight quality dimensions, the second pass closes the TrustScore with --ai-quality-score.

Install the skill

The Agent Skills registry provides the CLI and keeps the same skill package portable across supported agents. From your project directory, install skill-validator for the agent you use.

The current project-install commands are:

Agent or IDE Verified command
Aider npx @tech-leads-club/agent-skills install --skill skill-validator --agent aider
Amazon Q npx @tech-leads-club/agent-skills install --skill skill-validator --agent amazon-q
Antigravity npx @tech-leads-club/agent-skills install --skill skill-validator --agent antigravity
Augment npx @tech-leads-club/agent-skills install --skill skill-validator --agent augment
Claude Code npx @tech-leads-club/agent-skills install --skill skill-validator --agent claude-code
Cline npx @tech-leads-club/agent-skills install --skill skill-validator --agent cline
Cursor npx @tech-leads-club/agent-skills install --skill skill-validator --agent cursor
Droid (Factory.ai) npx @tech-leads-club/agent-skills install --skill skill-validator --agent droid
Gemini CLI npx @tech-leads-club/agent-skills install --skill skill-validator --agent gemini
GitHub Copilot npx @tech-leads-club/agent-skills install --skill skill-validator --agent github-copilot
Kilo Code npx @tech-leads-club/agent-skills install --skill skill-validator --agent kilocode
Kiro npx @tech-leads-club/agent-skills install --skill skill-validator --agent kiro
OpenAI Codex npx @tech-leads-club/agent-skills install --skill skill-validator --agent codex
OpenCode npx @tech-leads-club/agent-skills install --skill skill-validator --agent opencode
Roo Code npx @tech-leads-club/agent-skills install --skill skill-validator --agent roo
Sourcegraph Cody npx @tech-leads-club/agent-skills install --skill skill-validator --agent sourcegraph
Tabnine npx @tech-leads-club/agent-skills install --skill skill-validator --agent tabnine
TRAE npx @tech-leads-club/agent-skills install --skill skill-validator --agent trae
Windsurf npx @tech-leads-club/agent-skills install --skill skill-validator --agent windsurf

These commands install into the current project. Append --global to the command when you want the skill available to every project for that agent. The exact agent IDs above come from the current supported-agent catalog, and the selected package is listed in the Tech Leads Club skills catalog.

The CLI currently reports version 1.6.3. Its main commands include install, list, remove, update, cache, credits, and audit. A safe first check is:

npx @tech-leads-club/agent-skills --version
npx @tech-leads-club/agent-skills --help
Enter fullscreen mode Exit fullscreen mode

Invoke it in agent chat

Installation and invocation are separate. The command above copies the package; the following prompt tells the agent to attach the exact skill and apply it to a real package.

In Codex, mention the skill with $skill-validator or choose it from the /skills picker. Keep the explicit skill mention and the task in the chat message:

Use the $skill-validator skill from Tech Leads Club Agent Skills.
Review ./skills/payment-review before I open a pull request.
Run the deterministic pass, report blocking findings first, and identify
the evidence needed for each quality score.
Enter fullscreen mode Exit fullscreen mode

In Cursor Agent, type /, search for skill-validator, and select it so the skill is attached to that message. Cursor documents this selection flow in its Agent Skills documentation. Then send a task such as:

Review ./skills/payment-review as a skill package.
Use the Skill Validator workflow from Tech Leads Club Agent Skills.
Do not rewrite files yet. Report blockers, the deterministic score, and the
eight quality dimensions that still need an AI-judge score.
Enter fullscreen mode Exit fullscreen mode

Selecting the skill is important: writing its name as ordinary prose does not guarantee that an IDE has attached the package. Other agents have their own chat and selection interfaces, so keep the installation command separate from the platform-specific invocation mechanism.

Run the two-pass review

The skill's scripts live inside the installed skill-validator folder. Resolve that folder's absolute path instead of assuming the current working directory. On macOS or Linux, the documented interpreter is python3; on Windows, use python or py -3.

First run the deterministic pass against the skill package under review:

python3 "/absolute/path/to/skill-validator/scripts/score_skill.py" \
  "./skills/payment-review"
Enter fullscreen mode Exit fullscreen mode

On Windows PowerShell, the same operation is:

py -3 "C:\path\to\skill-validator\scripts\score_skill.py" `
  ".\skills\payment-review"
Enter fullscreen mode Exit fullscreen mode

Read the report before assigning a quality score. The skill asks the AI judge to score clarity, completeness, accuracy, structure, examples, best practices, conciseness, and evals coverage, with one justification per check. If evals/ does not exist, evals coverage is removed from the average rather than treated as a zero.

Then run the second pass with the resulting quality score:

python3 "/absolute/path/to/skill-validator/scripts/score_skill.py" \
  "./skills/payment-review" --ai-quality-score 84
Enter fullscreen mode Exit fullscreen mode

The number above is only an example. Use the integer score that your eight written justifications support.

An illustrative result might look like this:

Merge: eligible
TrustScore: 86/100 - HIGH_TRUST
Security: 100/100
Quality: 84/100
Blocking findings: none
Enter fullscreen mode Exit fullscreen mode

That output is illustrative, not a promise of a particular score. A real report may be blocked even when the aggregate score looks good. For example, a high-severity security finding or a hard rule failure takes priority over the number.

Turn the report into a repair loop

Suppose the first pass says the package is blocked because the frontmatter has no useful trigger or negative scope. Ask the agent for a focused repair plan rather than a full rewrite:

Use the $skill-validator skill from Tech Leads Club Agent Skills.
The previous report says the package is blocked by its trigger and negative
scope. Explain the smallest edits that make those rules explicit, then wait
for approval before changing ./skills/payment-review.
Enter fullscreen mode Exit fullscreen mode

After the edit, ask for a fresh deterministic pass. If it is eligible, provide the quality judgment and rerun the second pass:

Re-run the Skill Validator workflow on ./skills/payment-review.
Use these quality scores and justify each one in one line:
clarity 88, completeness 82, accuracy 90, structure 86,
examples 80, best practices 84, conciseness 87, evals coverage 78.
Report the final classification and any remaining non-blocking fixes.
Enter fullscreen mode Exit fullscreen mode

This workflow keeps three things distinct: deterministic findings from the scripts, the AI judge's semantic assessment, and the human decision to merge. That separation is the skill's main advantage over a generic prompt asking an agent to "review this skill".

Boundaries worth remembering

skill-validator reviews a skill package, not the correctness of the product code that the skill may later influence. Its TrustScore is an estimate, and the security pass is heuristic. Treat a clean result as evidence for a better review, not as a security certification.

Use skill-architect when the job is to create a skill from scratch, and use an application-code review workflow when you need to inspect runtime code. Use skill-validator when a SKILL.md already exists and you want to make its structure, instructions, examples, and safety boundaries easier to audit before the PR.

What is the first skill package in your repository that would benefit from a repeatable pre-PR score?

Top comments (0)