一键导入
pytest-coverage
Run pytest with coverage, identify uncovered lines, and iteratively add tests until 100% coverage is reached.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Run pytest with coverage, identify uncovered lines, and iteratively add tests until 100% coverage is reached.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
| name | pytest-coverage |
| description | Run pytest with coverage, identify uncovered lines, and iteratively add tests until 100% coverage is reached. |
Ensure all lines of code in the backend are covered by tests.
For the entire backend:
cd backend
pytest --cov --cov-report=annotate:cov_annotate
For a specific module:
pytest --cov=app.services.credit_service --cov-report=annotate:cov_annotate
For specific tests:
pytest tests/test_credit_service.py --cov=app.services.credit_service --cov-report=annotate:cov_annotate
cov_annotate/ directory.! are not covered by tests.For each uncovered line:
pytest-asyncio with async def test_....Keep running and improving until no ! lines remain:
pytest --cov --cov-report=annotate:cov_annotate
test_credit_service.py) should mock external calls (fal_client, S3, etc.).pytest.mark.asyncio for async FastAPI endpoints.When the user wants to review, edit, or improve existing website and marketing copy, especially requests like "review copy", "audit copy website", "polish landing page copy", "improve messaging", "tighten this text", or "copy feedback". Use this for existing copy in frontend/src and frontend/docs. For rewriting from scratch, hand off to copywriting. For structural conversion issues (section flow, CTA placement, friction), hand off to page-cro.
Generate a conventional commit message from staged/unstaged changes and automatically commit.
Create a structured implementation plan for a new feature, refactor, or infrastructure change. Outputs a machine-readable markdown plan with phases, tasks, requirements, and testing criteria.
Create optimized multi-stage Dockerfiles for Next.js frontend and FastAPI backend. Smaller images, non-root user, healthcheck, pinned versions.
Generate a Playwright TypeScript E2E test for a given scenario. Navigates the app step-by-step, uses role-based locators, and saves the test in tests/e2e/.
PostgreSQL query optimization and schema review. Covers EXPLAIN ANALYZE, indexing strategy, JSONB, pagination, and security (parameterized queries).