Run agent and skill invocation tests to verify they trigger correctly
Runs comprehensive tests to verify agents and skills trigger correctly when prompts match their criteria.
/plugin marketplace add LounisBou/claude-code/plugin install lounisbou-claude-code-library@LounisBou/claude-codeYou are running tests to verify that agents and skills are invoked correctly when prompts match their "when to use" criteria.
Run ALL tests with a single command:
python .claude/tests/run_all_tests.py
The comprehensive test runner includes:
# Run ALL tests
python .claude/tests/run_all_tests.py
# Run specific test suites
python .claude/tests/run_all_tests.py --unit # Unit tests only
python .claude/tests/run_all_tests.py --init # Init-project tests only
python .claude/tests/run_all_tests.py --visibility # Visibility tests only
python .claude/tests/run_all_tests.py --claude-md # CLAUDE.md tests only
python .claude/tests/run_all_tests.py --triggers # Agent + skill trigger tests
python .claude/tests/run_all_tests.py --agents # Agent trigger tests only
python .claude/tests/run_all_tests.py --skills # Skill trigger tests only
# Verbose output
python .claude/tests/run_all_tests.py --verbose
Test definitions are stored in JSON files:
.claude/tests/agents/test_definitions.json - 16 agent test definitions (ALL agents).claude/tests/skills/test_definitions.json - 54 skill test definitions (ALL skills)Important: ALL agents/skills have test definitions, but only ACTIVE ones (symlinked) are tested when running.
For each active agent/skill:
claude -p "prompt" --dangerously-skip-permissions).claude/logs/agent-invocations.log or .claude/logs/skills.log======================================================================
COMPREHENSIVE TEST SUITE FOR /init-project
======================================================================
Project root: /path/to/project
Logs dir: /path/to/project/.claude/logs
Active agents: 9
Active skills: 21
Active commands: 12
======================================================================
UNIT TESTS
======================================================================
Passed: 34
Failed: 0
Skipped: 8
======================================================================
INIT-PROJECT TESTS
======================================================================
[✓ PASS] project.json exists - project.json already exists
[✓ PASS] Symlinks created - Symlinks exist in agents/, skills/, commands/
[✓ PASS] Symlinks match categories - Symlinks match categories: dev, claude, docs
...
======================================================================
FINAL TEST SUMMARY
======================================================================
✓ Unit Tests: 34 passed, 0 failed, 8 skipped
✓ Init-Project Tests: 3 passed, 0 failed
✓ Visibility Tests: 3 passed, 0 failed
✓ CLAUDE.md Tests: 2 passed, 0 failed
✓ Agent Trigger Tests: 9 passed, 0 failed, 7 skipped
✓ Skill Trigger Tests: 21 passed, 0 failed, 33 skipped
TOTAL: 72 passed, 0 failed, 48 skipped
✓ ALL TESTS PASSED!
python .claude/tests/run_all_tests.py to execute all tests.claude/settings.json