agent-ops-testing
БесплатноБез исполняемых скриптовНе проверенTest strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
от diegosouzapw★ 68 звёзд на GitHubОб этом скилле
Testing Workflow
Works with or without aoc CLI installed. Issue tracking can be done via direct file editing.
Purpose
Provide structured guidance for test design, execution, and analysis that goes beyond baseline capture. This skill covers test strategy during planning, incremental testing during implementation, and coverage analysis.
Test Commands (from constitution)
# Python (uv/pytest)
uv run pytest # Run all tests
uv run pytest tests/ -v # Verbose output
uv run pytest tests/ -m "not slow" # Skip slow tests
uv run pytest tests/ --tb=short -q # Quick summary
uv run pytest --cov=src --cov-report=html # Coverage report
# TypeScript/Node (vitest/jest)
npm run test # Run all tests
npm run test -- --coverage # With coverage
# .NET (dotnet test)
dotnet test # Run all tests
dotnet test --collect:"XPlat Code Coverage" # With coverage
Issue Tracking (File-Based — Default)
| Operation | How to Do It |
|---|---|
| Create test issue | Append to .agent/issues/medium.md with type TEST |
| Create bug from failure | Append to .agent/issues/high.md with type BUG |
| Log test results | Edit issue's ### Log section in priority file |
Example: Post-Test Issue Creation (File-Based)
- Increment
.agent/issues/.counter - Append issue to appropriate priority file
- Add log entry with test run results
CLI Integration (when aoc is available)
When aoc CLI is detected in .agent/tools.json, these commands provide convenience shortcuts:
| Operation | Command |
|---|---|
| Create test issue | aoc issues create --type TEST --title "Add tests for..." |
| Create bug from failure | aoc issues create --type BUG --priority high --title "Test failure: ..." |
| Log test results | aoc issues update <ID> --log "Tests: 45 pass, 2 fail" |
Test Isolation (MANDATORY)
Tests must NEVER create, modify, or delete files in the project folder.
Unit Tests
- Use mocks/patches for ALL file system operations
- Use in-memory data structures where possible
- NEVER call real file I/O against project paths
- Use
unittest.mock.patchforPath,open(), file operations
Integration Tests
- ALWAYS use
pytesttmp_pathfixture (auto-cleaned) - Use Docker containers for service dependencies (API, DB, etc.)
- Fixtures MUST handle cleanup on both success AND failure
- Test data lives ONLY in temp directories
Forbidden Patterns
# ❌ NEVER do this - pollutes project
Path(".agent/test.md").write_text("test")
Path("src/data/fixture.json").write_text("{}")
open("tests/output.log", "w").write("log")
# ✅ Always use tmp_path
def test_example(tmp_path):
test_file = tmp_path / "test.md"
test_file.write_text("test") # Auto-cleaned
Review Checklist (before approving tests)
- No hardcoded paths to project directories
- All file operations use
tmp_pathor mocks - Integration tests use fixtures with cleanup
- Docker fixtures auto-remove containers
When to Use
- During planning: designing test strategy for new features
- During implementation: running incremental tests
- During review: analyzing coverage and gaps
- On demand: investigating test failures, improving test suite
Preconditions
.agent/constitution.mdexists with confirmed test command.agent/baseline.mdexists (for comparison)
Test Strategy Design
For New Features
Identify test levels needed:
- Unit tests: isolated function/method behavior
- Integration tests: component interaction
- E2E tests: user-facing workflows (if applicable)
Define test cases from requirements:
- Happy path: expected inputs → expected outputs
- Edge cases: boundary values, empty inputs, max values
- Error cases: invalid inputs, failure scenarios
- Regression cases: ensure existing behavior unchanged
Document in task/plan:
## Test Strategy - Unit: [list of unit test cases] - Integration: [list of integration scenarios] - Edge cases: [specific edge cases to cover] - Not testing: [explicitly excluded with rationale]
For Bug Fixes
- Write failing test FIRST (reproduces the bug)
- Fix the bug
- Verify test passes
- Check for related regression tests needed
Test Execution
Incremental Testing (during implementation)
After each implementation step:
- Run the smallest reliable test subset covering changed code
- If tests fail: stop, diagnose, fix before proceeding
- Log test results in focus.md
Full Test Suite (end of implementation)
- Run complete test command from constitution
- Compare results to baseline
- Investigate ANY new failures (even in unrelated areas)
Test Comma
Установить agent-ops-testing в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл agent-ops-testing?
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
Как установить скилл agent-ops-testing?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл agent-ops-testing запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
skill-creator
Create new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an…
от Anthropicdiscernment-nudge
After you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals…
от Anthropicdata-consolidate
Joins the plant's scheduled exports and connector data into one working dataset — ERP items (NetSuite or Infor M3), sales orders, production work orders…
от Anthropicinspection-to-capa
Runs the quality chain end to end: writes the nonconformance against the requirement it violates, searches history at the moment of writing to say whether…
от Anthropic