skill-tester – skill Lập trình cho agent AI
Xác thực, kiểm thử và chấm điểm chất lượng các skill trong hệ sinh thái claude-skills. Meta-skill toàn diện: kiểm tra cấu trúc, kiểm thử script Python (cú pháp + import + runtime + định dạng đầu ra), chấm điểm chất lượng đa chiều với điểm chữ và phân hạng (BASIC/STANDARD/POWERFUL). Dùng khi authori
Cài skill skill-tester bằng một lệnh
Chọn công cụ bạn đang dùng, copy lệnh và dán vào terminal. Skill sẽ nằm trong thư mục skills của công cụ đó và sẵn sàng dùng ở phiên làm việc tiếp theo.
Claude Code
mkdir -p ~/.claude/skills && curl -fsSL https://skill.dn1nguoi.com/z/skill-tester-0147f.tgz | tar xz -C ~/.claude/skills
Gọi trong Claude Code: /skill-tester – rồi mô tả công việc bạn muốn làm.
Codex
mkdir -p ~/.codex/skills && curl -fsSL https://skill.dn1nguoi.com/z/skill-tester-0147f.tgz | tar xz -C ~/.codex/skills
Gọi trong Codex: $skill-tester – rồi mô tả công việc bạn muốn làm.
Hermes Agent
mkdir -p ~/.hermes/skills && curl -fsSL https://skill.dn1nguoi.com/z/skill-tester-0147f.tgz | tar xz -C ~/.hermes/skills
Gọi trong Hermes Agent: /skill-tester – rồi mô tả công việc bạn muốn làm.
DeepSeek
mkdir -p ~/.deepcode/skills && curl -fsSL https://skill.dn1nguoi.com/z/skill-tester-0147f.tgz | tar xz -C ~/.deepcode/skills
Gọi trong DeepSeek: /skill-tester – rồi mô tả công việc bạn muốn làm.
Nội dung SKILL.md
Nội dung SKILL.md gốc bằng tiếng Anh.
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)
# 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 75Consume 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) --helpfunctionality 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
# 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
donePre-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
--timeoutor 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.
Skill liên quan
- hono – Xây dựng web API và ứng dụng full-stack siêu nhanh với Hono — chạy trên Cloudflare…
- html-injection-testing – Phát hiện và khai thác lỗ hổng HTML injection cho phép kẻ tấn công chèn nội dung HTML…
- http-status-code-tester – Trình kiểm tra mã trạng thái HTTP. Dùng khi làm việc với một hoặc nhiều URL HTTP(S).
- hubspot-integration – Mẫu chuyên sâu để tích hợp HubSpot CRM, gồm xác thực OAuth, đối tượng CRM, association…
- hugging-face-cli – CLI (`hf`) của Hugging Face Hub để tải xuống, tải lên và quản lý model, dataset, space…
- hugging-face-community-evals – Chạy đánh giá cho model trên Hugging Face Hub bằng inspect-ai và lighteval trên phần…
- hugging-face-gradio – Xây dựng giao diện web và demo Gradio bằng Python. Dùng khi tạo hoặc chỉnh sửa ứng dụng…
- hugging-face-papers – Tra cứu và đọc trang paper của Hugging Face dưới dạng markdown, và dùng papers API để…