Skip to content
Back to skills

Pywf Oss Write Test

ASecurity

Write, extend, or fix the unit tests for a module of a pywf open-source Python library, following the source-to-test mapping and run_cov_test conventions, until that module is fully covered. Use when the user asks to add tests, raise coverage, or fix failing tests for a module or subpackage.

  • 3 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added November 12, 2026
testingpython

Security analysis

A100/100

Scanned November 12, 2026

npx -y skills add MacHu-GWU/sqlalchemy_upsert_kit-project --skill pywf-oss-write-test --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Pywf Oss Write Test?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Pywf Oss Write Test
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/machu-gwu-pywf-oss-write-test/badge)](https://www.skillsdirectory.com/skills/machu-gwu-pywf-oss-write-test)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: pywf-oss-write-test
description: "Write, extend, or fix the unit tests for a module of a pywf open-source Python library, following the source-to-test mapping and run_cov_test conventions, until that module is fully covered. Use when the user asks to add tests, raise coverage, or fix failing tests for a module or subpackage."
---

Write the tests for one module (or every module of one subpackage) until its own test file reports full coverage and `mise run cov` passes.

Read ../pywf-oss-base/SKILL.md, then:
- ../pywf-oss-base/references/09-code-style.md
- ../pywf-oss-base/references/10-test-layout.md
- ../pywf-oss-base/references/11-test-writing.md
- ../pywf-oss-base/references/12-coverage.md

## Steps

1. **Locate.**
   - Read the source module.
   - Get its `<test_path>` from `python ${CLAUDE_SKILL_DIR}/../pywf-oss-base/scripts/check_test_layout.py --project_root . --source <source_path>`.
   - If the test file is missing, create it there from the template in `11-test-writing.md`, never elsewhere.
2. **Baseline.** Run `.venv/bin/python <test_path>`, and note the missing lines in the `term-missing` report.
3. **Write the tests,** following `11-test-writing.md`.
4. **Close the gaps.**
   - Rerun until the module is at 100%.
   - A line that truly cannot run in unit tests may get `# pragma: no cover`, only under `12-coverage.md` section 3.
   - Never change the source just to ease coverage without telling the user.
5. **Finish.** `mise run cov` passes, the layout check without `--source` reports 0 problems, and `mise run format`, then `mise run lint`, reports nothing.

## Boundaries

- If a test reveals a bug in the source, stop and report it with the failing test as evidence. Fix the source only after the user's yes, or if the user asked for fixes.
- Edit a `run_cov_test` block only to correct its module path. Keep one argument per line.

Next step: `pywf-oss-write-doc` if the feature is user-facing, otherwise `pywf-oss-changelog`.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in testing →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.