validation-testing
Selects and runs Scientific Agent Skills repository validation and tests: skills-ref validate, repo-specific metadata checks, tests/_meta, per-skill pytest suites, one-skill-per-process rules, tests/run_all.py, --isolated environments, and tests/skill-requirements.toml entries.
- License 许可
- MIT
- 最近更新
- 2026-10-08
- Stars
- ★ 11
- Forks
- 3
01 前言 Front Matter
- name
- validation-testing
- license
- MIT
- metadata
- { "disco-role": "operating" }
- description
- Selects and runs Scientific Agent Skills repository validation and tests: skills-ref validate, repo-specific metadata checks, tests/_meta, per-skill pytest suites, one-skill-per-process rules, tests/run_all.py, --isolated environments, and tests/skill-requirements.toml entries.
- disable-model-invocation
- true
02 资源文件 3
- 参考文档references/test-runner.md1.9 KB
- 参考文档references/troubleshooting.md1.8 KB
- 参考文档references/validation-and-ci.md1.8 KB
03 SKILL.md 正文
Validation and Testing
Use this route when a task asks how to validate, test, or diagnose CI for skill changes in this repository.
First checks
-
Install repository tooling with Python 3.13:
uv sync --python 3.13 -
Validate the changed skill's Agent Skills spec:
uv run skills-ref validate skills/<name> -
Run the repo-wide structural guard after local issues are fixed:
uv run --with pytest python -m pytest tests/_meta -q
Read references/validation-and-ci.md for CI-equivalent checks and references/test-runner.md for per-skill and isolated suite behavior. Use scripts/plan_skill_checks.py to inspect one skill and print an ordered command plan without executing tests.
Test-suite rules
-
Tests never live under
skills/<name>/. -
A skill that ships files under
scripts/needstests/<name>/with at least onetest_*.pyand a[skills.<name>]entry intests/skill-requirements.toml. -
Run one skill's suite in one Python process:
uv run --with pytest python -m pytest tests/<name> -q -
For isolated dependency environments, use:
python tests/run_all.py --isolated <name> -
Do not collect multiple skill suites with one
pytestprocess; script module names intentionally collide across skills.
Escalation guidance
| Change type | Minimum validation |
|---|---|
SKILL.md prose only |
skills-ref validate skills/<name> and consider tests/_meta for links/line count. |
| Skill references/assets changed | skills-ref validate, tests/_meta, and any touched examples/manual checks. |
| Skill scripts changed or added | skills-ref validate, tests/<name>, tests/run_all.py --isolated <name>, and tests/_meta. |
| Shared test contract or runner changed | tests/_meta and python tests/run_all.py; use isolated selection for affected script-bearing skills. |
| CI workflow changed | Mirror the workflow commands locally and inspect path filters/permissions/timeouts. |
Troubleshooting
Read references/troubleshooting.md when tests/_meta reports missing suites, skill-requirements.toml entries, broken local links, local paths, or unsafe script patterns.
04 同仓库更多 Skills
obsidian-clipper-template-creator
Guide for creating templates for the Obsidian Web Clipper. Use when you want to create a new clipping template, understand available variables, or format clipped content.
obsidian-clipper-template-creator
Guide for creating templates for the Obsidian Web Clipper. Use when you want to create a new clipping template, understand available variables, or format clipped content.
python-api
Programmatic Object-Detection-Metrics API guidance for BoundingBox, BoundingBoxes, Evaluator, enums, coordinate conversion, AP/mAP semantics, and source-style import diagnostics.
file-evaluation
Folder-based PASCAL VOC AP/mAP evaluation from ground-truth and detection text files.
object-detection-metrics
Guides legacy Object-Detection-Metrics PASCAL VOC AP/mAP evaluation from detection text folders and direct Python API classes.
nx-workspace-patterns
Configure and optimize Nx monorepo workspaces. Use when setting up Nx, configuring project boundaries, optimizing build caching, or implementing affected commands.