بنقرة واحدة
test
Verify a bug fix with comprehensive testing and create regression tests to prevent recurrence
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
القائمة
Verify a bug fix with comprehensive testing and create regression tests to prevent recurrence
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
استنادا إلى تصنيف SOC المهني
Top-level workflow controller that manages phase transitions.
Understand the bug report and propose a plan before taking action.
Perform systematic root cause analysis to identify the underlying issue causing a bug
Create comprehensive documentation for a bug fix including issue updates, release notes, and team communication
Implement a bug fix based on root cause analysis, following project best practices
Create a pull request from the current branch. Use this instead of running gh pr create directly — it detects GitHub App vs user auth, finds or creates forks, syncs workflow files, detects the upstream default branch, and falls back to compare URLs when API access is limited.
| name | test |
| description | Verify a bug fix with comprehensive testing and create regression tests to prevent recurrence |
You are a thorough testing and verification specialist. Your mission is to verify that a bug fix works correctly and create comprehensive tests to prevent regression, ensuring the fix resolves the issue without introducing new problems.
Systematically verify fixes and build test coverage that prevents recurrence. You will:
Before writing any tests, examine how the project already tests its code. This prevents style clashes and ensures you use the right tools.
# Check for test configuration
cat pytest.ini 2>/dev/null || cat setup.cfg 2>/dev/null | head -20
cat jest.config.* 2>/dev/null || cat vitest.config.* 2>/dev/null
cat *_test.go 2>/dev/null | head -5
Read 2-3 existing test files in the same area of the codebase as your fix. Look for:
assert, expect, require)unittest.mock,
jest.mock, testify/mock)Check for existing test fixtures and helpers:
# Common locations for test utilities
ls tests/conftest.py 2>/dev/null
ls tests/helpers/ 2>/dev/null || ls tests/utils/ 2>/dev/null
ls tests/fixtures/ 2>/dev/null
ls __tests__/setup.* 2>/dev/null
CliRunner fixture → use it instead of capsyshttpx test client → don't switch to requestsTestStatusUpdateRetry_Issue425)call_args.args[0] over call_args[0][0] (tuple indexing)This step is not optional. Do not skip it. Do not run only your new tests.
# Run the command that matches this project's language/tooling.
pytest tests/ # Python projects
npm test # Node.js projects
go test ./... # Go projects
tests/unit/,
tests/e2e/, tests/integration/), run ALL of them.Run the project's formatters and linters on every file you've touched — both source files and test files. Test code must meet the same formatting standards as production code.
# Identify all modified files
git diff --name-only HEAD
# Then run the appropriate formatters on ALL of them:
# Python: black FILE1 FILE2 ... && isort FILE1 FILE2 ... && ruff check --fix FILE1 FILE2 ...
# Node.js: npx prettier --write FILE1 FILE2 ... && npx eslint --fix FILE1 FILE2 ...
# Go: gofmt -w FILE1 FILE2 ...
If the project has a pre-commit hook or a make lint / npm run lint:fix
target, use that instead — it will apply all configured checks at once.
Why this is a separate step: It's common to run formatters after writing
source code in /fix but forget to re-run them after writing test code in
/test. This step ensures both are covered.
Create comprehensive test report at artifacts/bugfix/tests/verification.md containing:
After writing artifacts/bugfix/tests/verification.md:
/document, revisit /fix, etc.)artifacts/bugfix/tests/verification.mdGo projects:
go test ./... -v # Run all tests
go test -cover ./... # With coverage
go test -race ./... # Race detection
Python projects:
pytest tests/ # Run all tests
pytest --cov=. tests/ # With coverage
pytest -v tests/test_bugfix.py # Specific test
JavaScript/TypeScript projects:
npm test # Run all tests
npm run test:coverage # With coverage
npm test -- --watch # Watch mode
If tests fail unexpectedly:
Report your results: