Token导航 LogoToken导航TokenDH.com
开发只读github未标认证来源可访问许可证需确认审计通过

skill-tester技能测试员

Agent Skill

用于辅助测试设计、自动化测试、用例整理和回归验证。它适合让 Agent 编写单元测试、端到端测试、测试计划或根据失败日志定位问题。使用时需要确认项目测试框架、运行命令和夹具数据,避免为了通过测试而改坏真实逻辑;涉及浏览器或外部服务时,应区分本地模拟、测试环境和生产环境。

总安装

2,448

周安装

76

GitHub Stars

103

下载量

784
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:skill-tester(技能测试员)
来源仓库:https://github.com/borghei/claude-skills
仓库路径:skills/skill-tester
安装命令:
npx skills add https://github.com/borghei/claude-skills --skill skill-tester
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/borghei/claude-skills --skill skill-tester

简介

用于辅助测试设计、自动化测试编写和回归验证,提升技能包质量合规性。

  • 支持结构校验、Python 脚本语法检查及四维度质量评分(文档、代码、完整性、可用性)。
  • 提供 BASIC/STANDARD/POWERFUL 三级分类建议,可按需运行验证或测试脚本。
  • 需确认项目测试框架与运行环境,避免为通过测试而破坏真实业务逻辑。
  • skill-tester 属于开发类 Skill,可作为该场景下的辅助能力补充。

SKILL.md

Skill Tester

The agent validates skill packages for structure compliance, tests Python scripts for syntax and stdlib-only imports, and scores quality across four dimensions (documentation, code quality, completeness, usability) with letter grades and improvement recommendations. It supports BASIC, STANDARD, and POWERFUL tier classification.

Quick Start

# Validate skill structure and documentation
python skill_validator.py engineering/my-skill --tier POWERFUL --json

# Test all Python scripts in a skill
python script_tester.py engineering/my-skill --timeout 30

# Score quality with improvement roadmap
python quality_scorer.py engineering/my-skill --detailed --minimum-score 75

Core Workflows

Workflow 1: Validate a New Skill

  1. Run skill_validator.py with target tier to check structure, frontmatter, required sections, and scripts
  2. Review errors (blocking) and warnings (non-blocking) in the report
  3. Fix all errors -- missing SKILL.md, invalid frontmatter, external imports
  4. Validation checkpoint: Score >= 60; zero errors; all scripts pass ast.parse()
python skill_validator.py engineering/my-skill --tier STANDARD --json

Workflow 2: Test Skill Scripts

  1. Run script_tester.py to execute syntax validation, import analysis, and runtime tests
  2. Review per-script results: argparse detection, --help output, sample data execution
  3. Fix failures: add if __name__ == "__main__" guards, replace external imports with stdlib
  4. Validation checkpoint: All scripts pass syntax; zero external imports; --help exits cleanly
python script_tester.py engineering/my-skill --timeout 60 --json

Workflow 3: Score and Improve Quality

  1. Run quality_scorer.py with --detailed for component-level breakdowns
  2. Review the prioritized improvement roadmap (up to 5 items)
  3. Address HIGH-priority items first (documentation gaps, missing error handling)
  4. Re-run to verify score improvement
  5. Validation checkpoint: Overall score >= 75; no dimension below 50%
python quality_scorer.py engineering/my-skill --detailed --minimum-score 75 --json

Tier Requirements

RequirementBASICSTANDARDPOWERFUL
SKILL.md lines100+200+300+
Python scripts1 (100-300 LOC)1-2 (300-500 LOC)2-3 (500-800 LOC)
ArgparseBasicSubcommandsMultiple modes
Output formatsSingleJSON + textJSON + text + validation
Error handlingEssentialComprehensiveAdvanced recovery

Quality Scoring Dimensions

DimensionWeightMeasures
Documentation25%SKILL.md depth, README clarity, reference quality
Code Quality25%Complexity, error handling, output consistency
Completeness25%Required files, sample data, expected outputs
Usability25%Argparse help text, example clarity, ease of setup

Grades: A+ (97+) through F (<40). Exit code 0 for A+ through C-, exit code 2 for D, exit code 1 for F.


CI/CD Integration

# GitHub Actions example
- name: Validate Changed Skills
  run: |
    for skill in $(git diff --name-only | grep -E '^engineering/[^/]+/' | cut -d'/' -f1-2 | sort -u); do
      python engineering/skill-tester/scripts/skill_validator.py $skill --json
      python engineering/skill-tester/scripts/script_tester.py $skill
      python engineering/skill-tester/scripts/quality_scorer.py $skill --minimum-score 75
    done

Anti-Patterns

  • Padding SKILL.md with filler -- line count thresholds measure substantive content; blank lines and boilerplate do not count
  • External imports disguised as stdlib -- the import allowlist is manually maintained; if a legit stdlib module is flagged, add it to stdlib_modules
  • Missing argparse help strings -- usability scoring requires help= parameters on every argument; empty help strings score zero
  • No __main__ guard -- scripts without if __name__ == "__main__" fail runtime tests when imported
  • Relying on SKILL.md for usability -- usability is scored from scripts and README independently; a detailed SKILL.md does not compensate for missing --help output

Troubleshooting

ProblemCauseSolution
SKILL.md too short error despite sufficient contentValidator counts only non-blank lines; blank lines inflate raw line count but are excluded from the tallyRemove excessive blank lines or add more substantive content sections to meet the tier threshold
YAML frontmatter parse failureFrontmatter contains invalid YAML syntax (unquoted colons, tabs instead of spaces, missing closing ---)Validate frontmatter through yaml.safe_load() locally; ensure the closing --- marker is present on its own line
External import false positiveThe stdlib module allowlist in skill_validator.py and script_tester.py is manually maintained and may not include every standard library moduleAdd the missing module name to the stdlib_modules set in the relevant script, or restructure the import
Script execution timeout during testingScript requires interactive input, enters an infinite loop, or performs long-running computationIncrease --timeout value, add early-exit logic for missing arguments, or ensure scripts exit cleanly when no input is provided
Tier compliance check fails despite passing individual checks_validate_tier_compliance only examines skill_md_exists, min_scripts_count, and skill_md_length; other failures (e.g., missing directories) are reported separatelyFix the specific critical checks listed in the error message; review the TIER_REQUIREMENTS dictionary for the target tier
Quality scorer reports low usability despite good documentationUsability dimension scores help text inside scripts, README.md usage sections, and practical example files independently of SKILL.md contentAdd argparse help strings with help= parameters, include a Usage section in README.md, and place sample/example files in the assets/ directory
--json flag produces no outputScript raised an unhandled exception before reaching the output formatter; errors are written to stderrRun with --verbose to see the full traceback on stderr, then address the underlying exception

Success Criteria

  • Structure pass rate above 95%: Validated skills pass all required-file and directory-structure checks on first run in at least 95% of cases.
  • Script syntax zero-defect: Every Python script in a validated skill compiles without SyntaxError via ast.parse().
  • Standard library compliance 100%: No external (non-stdlib) imports detected across all validated scripts.
  • Quality score consistency within 5 points: Re-running quality_scorer.py on an unchanged skill produces scores that vary by no more than 5 points across runs.
  • Execution time under 10 seconds per skill: Full validation, testing, and scoring pipeline completes in under 10 seconds for a single skill with up to 3 scripts.
  • Actionable recommendation density: Every skill scoring below 75/100 receives at least 3 prioritized improvement suggestions in the roadmap.
  • CI/CD gate reliability: When integrated as a GitHub Actions step, the tool exits with non-zero status for every skill that fails critical checks, blocking the merge.

Scope & Limitations

Covers:

  • Structural validation of skill directories against tier-specific requirements (BASIC, STANDARD, POWERFUL)
  • Static analysis of Python scripts including syntax checking, import validation, argparse detection, and main guard verification
  • Multi-dimensional quality scoring across documentation, code quality, completeness, and usability
  • Dual output formatting (JSON for CI/CD pipelines, human-readable for developer consumption)

Does NOT cover:

  • Functional correctness of script logic or algorithm accuracy — the tester verifies structure and conventions, not business logic
  • Performance benchmarking or memory profiling of scripts — see engineering/performance-profiler for runtime analysis
  • Security vulnerability scanning of script code — see engineering/skill-security-auditor for dependency and code security audits
  • Cross-skill dependency resolution or integration testing — skills are validated in isolation without verifying inter-skill compatibility

Integration Points

SkillIntegrationData Flow
engineering/skill-security-auditorRun security audit after validation passesskill_validator.py confirms structure compliance, then skill-security-auditor scans for vulnerabilities in the same skill path
engineering/ci-cd-pipeline-builderEmbed skill-tester as a quality gate stagePipeline builder generates workflow YAML that invokes skill_validator.py, script_tester.py, and quality_scorer.py sequentially
engineering/changelog-generatorFeed quality score deltas into changelog entriesCompare quality_scorer.py JSON output between releases to surface quality improvements or regressions
engineering/pr-review-expertAttach validation report to pull request reviewsskill_validator.py --json output is posted as a PR comment for reviewer context
engineering/performance-profilerComplement structural testing with runtime profilingAfter script_tester.py confirms execution succeeds, performance-profiler measures execution time and resource usage
engineering/tech-debt-trackerTrack quality score trends over timePeriodic quality_scorer.py --json output is ingested to detect score degradation and flag technical debt

Tool Reference

skill_validator.py

Purpose: Validates a skill directory's structure, documentation, and Python scripts against the claude-skills ecosystem standards. Checks required files, YAML frontmatter, required SKILL.md sections, directory layout, script syntax, import compliance, and tier-specific requirements.

Usage:

python skill_validator.py <skill_path> [--tier TIER] [--json] [--verbose]

Parameters:

ParameterTypeRequiredDefaultDescription
skill_pathpositionalYesPath to the skill directory to validate
--tieroptionNoNoneTarget tier for validation: BASIC, STANDARD, or POWERFUL
--jsonflagNoOffOutput results in JSON format instead of human-readable text
--verboseflagNoOffEnable verbose logging to stderr

Example:

python skill_validator.py engineering/my-skill --tier POWERFUL --json

Output Formats:

  • Human-readable (default): Grouped report with STRUCTURE VALIDATION, SCRIPT VALIDATION, ERRORS, WARNINGS, and SUGGESTIONS sections. Displays overall score out of 100 with compliance level (EXCELLENT, GOOD, ACCEPTABLE, NEEDS_IMPROVEMENT, POOR).
  • JSON (--json): Object with keys skill_path, timestamp, overall_score, compliance_level, checks (dict of check name to pass/message/score), warnings, errors, suggestions.

Exit codes: 0 on success (score >= 60 and no errors), 1 on failure.


script_tester.py

Purpose: Tests all Python scripts within a skill's scripts/ directory. Performs syntax validation via AST parsing, import analysis for stdlib compliance, argparse implementation verification, main guard detection, runtime execution with timeout protection, --help functionality testing, sample data processing against files in assets/, and output format compliance checks.

Usage:

python script_tester.py <skill_path> [--timeout SECONDS] [--json] [--verbose]

Parameters:

ParameterTypeRequiredDefaultDescription
skill_pathpositionalYesPath to the skill directory containing scripts to test
--timeoutoptionNo30Timeout in seconds for each script execution test
--jsonflagNoOffOutput results in JSON format instead of human-readable text
--verboseflagNoOffEnable verbose logging to stderr

Example:

python script_tester.py engineering/my-skill --timeout 60 --json

Output Formats:

  • Human-readable (default): Report with SUMMARY (total/passed/partial/failed counts), GLOBAL ERRORS, and per-script sections showing status, execution time, individual test results, errors, and warnings.
  • JSON (--json): Object with keys skill_path, timestamp, summary (counts and overall status), global_errors, script_results (dict per script with overall_status, execution_time, tests, errors, warnings).

Exit codes: 0 on full success, 1 on failure or global errors, 2 on partial success.


quality_scorer.py

Purpose: Provides a comprehensive multi-dimensional quality assessment for a skill. Evaluates four equally weighted dimensions — Documentation (25%), Code Quality (25%), Completeness (25%), and Usability (25%) — and produces an overall score, letter grade (A+ through F), tier recommendation, and a prioritized improvement roadmap.

Usage:

python quality_scorer.py <skill_path> [--detailed] [--minimum-score SCORE] [--json] [--verbose]

Parameters:

ParameterTypeRequiredDefaultDescription
skill_pathpositionalYesPath to the skill directory to assess
--detailedflagNoOffShow detailed component scores within each dimension
--minimum-scoreoptionNo0Minimum acceptable overall score; exits with error code 1 if the score falls below this threshold
--jsonflagNoOffOutput results in JSON format instead of human-readable text
--verboseflagNoOffEnable verbose logging to stderr

Example:

python quality_scorer.py engineering/my-skill --detailed --minimum-score 75 --json

Output Formats:

  • Human-readable (default): Report with overall score and letter grade, per-dimension scores with weights, summary statistics (highest/lowest dimension, dimensions above 70%, dimensions below 50%), and a prioritized improvement roadmap (up to 5 items with HIGH/MEDIUM/LOW priority). When --detailed is used, component-level breakdowns appear under each dimension.
  • JSON (--json): Object with keys skill_path, timestamp, overall_score, letter_grade, tier_recommendation, summary_stats, dimensions (per-dimension name/weight/score/details/suggestions), improvement_roadmap (list of priority/dimension/suggestion/current_score objects).

Exit codes: 0 for grades A+ through C-, 1 for grade F or when score is below --minimum-score, 2 for grade D.

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

40.9%
按下载量换算321

Claude

27.99%
按下载量换算219

Cursor

17.88%
按下载量换算140

Gemini CLI

9.09%
按下载量换算71

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

只读

该 Skill 主要提供规则、说明或参考内容,本身偏只读;真正读写文件、联网或执行命令仍取决于宿主 Agent 的任务。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills