skill-tester — скилл для Claude Code: проверка навыков
Проверяет структуру, скрипты и качество скиллов в репозитории. Пригодится для аудита существующего скилла и проверки перед CI.
/plugin marketplace add alirezarezvani/claude-skills
/plugin install engineering-advanced-skills@claude-code-skillsЧто делает skill-tester
skill-tester проверяет скиллы в репозитории: разбирает структуру и документацию, запускает Python-скрипты, проверяет синтаксис, импорты, выполнение и формат вывода. Затем он оценивает качество по нескольким измерениям, присваивает буквенную оценку и рекомендует уровень скилла.
Внутри четыре утилиты: skill_validator.py, script_tester.py, quality_scorer.py и security_scorer.py. Их запускают из корня репозитория полными путями. Для работы нужен только Python со стандартной библиотекой; отдельные зависимости не требуются. Результаты можно получать в JSON и использовать в CI или pre-commit hook.
Ставьте скилл, если вы создаёте или проверяете скиллы и хотите повторяемый QA-процесс. Для разовой ручной проверки без Python он лишний.
Какие задачи решает
- проверить структуру и документацию скилла
- найти внешние импорты в Python-скриптах
- прогнать скрипты на синтаксис и выполнение
- оценить качество скилла перед CI
- поставить проверку скиллов в pre-commit hook
Примеры запросов агенту
- Проверь `engineering/skills/self-eval` и верни результат в JSON.
- Протестируй Python-скрипты этого скилла и проверь формат вывода.
- Оцени качество скилла и покажи пункты, которые нужно исправить в первую очередь.
Как установить skill-tester
1Через маркетплейс плагинов
/plugin marketplace add alirezarezvani/claude-skills/plugin install engineering-advanced-skills@claude-code-skillsКоманда ставит плагин engineering-advanced-skills целиком, со всеми его скиллами
2Через Skills CLI (Vercel)
npx skills add alirezarezvani/claude-skills --skill skill-tester -a claude-code3Вручную: положить файлы
~/.claude/skills/skill-tester/SKILL.mdПапка скилла целиком; для одного проекта — .claude/skills/skill-tester/
Вручную: положить файлы
.agents/skills/skill-tester/SKILL.mdДля всех проектов — ~/.agents/skills/
Вручную: положить файлы
.cursor/skills/skill-tester/SKILL.mdCursor читает и .agents/skills/, и .claude/skills/
1GitHub CLI
gh skill install alirezarezvani/claude-skills skill-tester2Вручную: положить файлы
.github/skills/skill-tester/SKILL.mdКомандой платформы
gemini skills install https://github.com/alirezarezvani/claude-skills --path engineering/skills/skill-testerВручную: положить файлы
.devin/skills/skill-tester/SKILL.mdСтарый путь .windsurf/skills/ тоже читается
Claude.ai
Упакуйте папку в zip и загрузите в Settings → Capabilities → Skills
Из того же набора349
Весь набор →Похожие
Вопросы о skill-tester
Как установить skill-tester в Claude Code?
Используйте команду /plugin marketplace add alirezarezvani/claude-skills, затем установите плагин командой /plugin install engineering-advanced-skills@claude-code-skills.
Что делает skill-tester?
Скилл проверяет структуру, документацию и Python-скрипты, а затем выставляет оценку качества и рекомендацию по уровню.
Нужны ли внешние Python-зависимости?
Нет. Вход описывает работу на стандартной библиотеке Python.
Исходный текст
SKILL.md · MIT
---
name: "skill-tester"
description: "Validate, test, and score the quality of skills within the claude-skills ecosystem. Comprehensive meta-skill: structure validation, Python script testing (syntax + imports + runtime + output format), multi-dimensional quality scoring with letter grades and tier classification (BASIC/STANDARD/POWERFUL). Use when authoring a new skill, auditing existing skills for tier promotion, setting up pre-commit hooks for skill quality, or integrating skill QA into CI."
---
# Skill Tester
**Tier**: POWERFUL · **Category**: Engineering Quality Assurance · **Dependencies**: None (Python stdlib only)
Meta-skill that validates, tests, and scores skills in this repository. Four tools, run from the **repo root** with full paths:
1. **`scripts/skill_validator.py`** — structure + documentation compliance
2. **`scripts/script_tester.py`** — Python script syntax/imports/runtime/output testing
3. **`scripts/quality_scorer.py`** — multi-dimensional scoring with letter grade
4. **`scripts/security_scorer.py`** — security posture scoring (also available via `quality_scorer.py --include-security`)
> **Scope note:** this skill's tier line-count minimums measure *legacy* skills. For authoring *new* skills, `engineering/write-a-skill` (SKILL.md under ~100 lines, Matt Pocock doctrine) is the binding standard — do not pad a new skill to satisfy a tier minimum here.
## Quick Start (exact, runnable from repo root)
```bash
# 1. Validate structure (exit non-zero on failure — usable as a gate)
python3 engineering/skills/skill-tester/scripts/skill_validator.py engineering/skills/self-eval --json
# 2. Test the skill's Python scripts (30s default timeout per script)
python3 engineering/skills/skill-tester/scripts/script_tester.py engineering/skills/self-eval --json
# 3. Score quality (fail CI below threshold with --minimum-score)
python3 engineering/skills/skill-tester/scripts/quality_scorer.py engineering/skills/self-eval --json --detailed --minimum-score 75
```
Consume the JSON: validator emits `overall_score`, `compliance_level`, per-check `checks{}`; scorer emits `overall_score`, `letter_grade`, `tier_recommendation`, `dimensions`, and an `improvement_roadmap` — work the roadmap top-down, then re-run until the target score is met.
For repo-wide auditing prefer `scripts/audit_skills.py` at the repo root (wraps the write-a-skill checklist runner across all skills).
## What Each Tool Checks
### skill_validator.py
- SKILL.md frontmatter parsing, required sections, minimum line counts per tier (`--tier BASIC|STANDARD|POWERFUL`)
- Required structure: SKILL.md, README.md, scripts/, references/, assets/, expected_outputs/
- Python scripts: argparse present, stdlib-only imports
### script_tester.py
- AST-based syntax validation; import analysis (flags external dependencies)
- Controlled execution with timeout protection (`--timeout`, default 30s)
- `--help` functionality verification; sample-data runs compared against expected_outputs/
### quality_scorer.py
Four dimensions, 25% each: **Documentation** (depth, examples, references), **Code Quality** (complexity, error handling, output consistency), **Completeness** (required dirs, sample data, expected outputs), **Usability** (help text, example clarity). Outputs 0-100 + A-F grade + tier recommendation.
## Tier Classification
| Tier | SKILL.md | Scripts | CLI surface |
|---|---|---|---|
| BASIC | ≥ 100 lines | 1 (100-300 LOC) | basic argparse |
| STANDARD | ≥ 200 lines | 1-2 (300-500 LOC) | subcommands, JSON + text output |
| POWERFUL | ≥ 300 lines | 2-3 (500-800 LOC) | multiple modes, CI integration |
(Advisory for legacy skills; new skills follow write-a-skill — see scope note above.)
## CI Integration
```yaml
# GitHub Actions: gate changed skills
- name: "validate-changed-skills"
run: |
for skill in $changed_skills; do
python3 engineering/skills/skill-tester/scripts/skill_validator.py "$skill" --json
python3 engineering/skills/skill-tester/scripts/script_tester.py "$skill"
python3 engineering/skills/skill-tester/scripts/quality_scorer.py "$skill" --minimum-score 75
done
```
Pre-commit hook: run the validator on the staged skill directory and block the commit on non-zero exit.
## Verification Loop
A skill "passes" when, in one run from repo root:
1. `skill_validator.py <skill> --json` exits 0,
2. `script_tester.py <skill>` reports all scripts passing, and
3. `quality_scorer.py <skill> --minimum-score <target>` exits 0.
If any step fails, apply the top `improvement_roadmap` item and re-run all three — never report a partial pass.
## Troubleshooting
- **Timeout errors** → raise `--timeout` or optimize the script under test
- **Import failures** → external deps detected; stdlib-only is the repo policy
- **Tier misclassification** → check line counts/LOC against the tier table; remember the write-a-skill exception for new skills
References: `references/` holds the structure specification, tier requirements matrix, and scoring rubric the tools implement.
© Alireza Rezvani · MIT · alirezarezvani/claude-skills