Agent skill
testing
Run linting and tests for Weaver SDK. Works in any worktree.
Install this agent skill to your Project
npx add-skill https://github.com/nex-agi/weaver/tree/main/.claude/skills/testing
SKILL.md
Weaver SDK Testing Skill (Worktree-Aware)
How to Use
- Read agent instructions at
.claude/agents/testing/AGENT.md - Invoke Task tool with
subagent_type="testing"(specialized agent) - Agent will lint and run all tests
Prerequisites
Verify you're in the correct worktree:
git rev-parse --show-toplevel
git branch --show-current
Testing Workflow
# 1. Check formatting
make check-format
# 2. Run linters
make lint
# 3. Run tests
make test
# 4. Full CI (lint + test)
make ci
Test Commands
# All tests
pytest tests/ -v
# Specific test file
pytest tests/test_config.py -v
# Specific test
pytest tests/test_config.py::test_config_defaults -v
# With coverage
make test-cov
Lint Commands
# Format check (no changes)
black --check weaver/ tests/
isort --check-only weaver/ tests/
# Format (apply changes)
make format
# Pylint
pylint weaver/
# Mypy
mypy weaver/
# License headers
python tests/lint/check_license_header.py
Output Format
## Testing Summary
**Status:** PASS / WARNINGS / FAIL
### Lint Results
[black/isort/pylint/mypy output]
### Test Results
- Total: X | Passed: X | Failed: X | Skipped: X
### Failures
[Failed test details if any]
### Recommendations
[Actions to fix issues]
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
address-pr-comments
Address GitHub PR review comments. Navigate to the correct worktree, make fixes, push updates.
git-commit
Complete git commit workflow in a worktree. Includes review, staging, and message generation.
fix-issue
Fix a GitHub issue using git worktree for isolation. Fetches issue, creates worktree, plans and implements fix, then creates PR.
weaver-regression-test
Run the full Weaver provisioner regression test suite against the production service. Covers full_ft, LoRA, debug modes, and edge cases.
github-pr
Create a GitHub PR from a worktree branch. Use after committing changes.
code-review
Review code changes against Weaver SDK project standards before committing. Works in any worktree.
Didn't find tool you were looking for?