Skip to content
Back to skills

Pywf Oss Add Module

ASecurity

Create a new module or subpackage in a pywf open-source Python library, together with its mirrored test file, its all.py, and its api.py export. Use when the user asks to add a module, file, subpackage, or new feature area to the package.

  • 3 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added November 12, 2026
developmentpythonbashapi

Works with

  • api

Security analysis

A100/100

Scanned November 12, 2026

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

Installs into .claude/skills of the current project.

Are you the author of Pywf Oss Add Module?

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

Security grade badge for Pywf Oss Add Module
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/machu-gwu-pywf-oss-add-module/badge)](https://www.skillsdirectory.com/skills/machu-gwu-pywf-oss-add-module)

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-add-module
description: "Create a new module or subpackage in a pywf open-source Python library, together with its mirrored test file, its all.py, and its api.py export. Use when the user asks to add a module, file, subpackage, or new feature area to the package."
---

Scaffold a new module or subpackage that follows the template's layout, import, and test conventions before any real logic is written.

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

## Steps

1. **Pin down the target.**
   - Get the dotted path (`<package_name>.subpackage.module_name`), whether it is a module or a subpackage, and whether its names are public.
   - If the user gave only a feature description, propose a path, and confirm it before creating files.
2. **Create the source.**
   - A module gets the file header, a one-line module docstring, and the imports it needs.
   - A subpackage gets `__init__.py` (header only) and, if it exposes names, its own `api.py`.
   - Every public function and class gets at least a one-line docstring.
3. **Create the test files,** at the path the script prints, never one worked out by hand:

   ```bash
   python ${CLAUDE_SKILL_DIR}/../pywf-oss-base/scripts/check_test_layout.py --project_root . --source <package_name>/subpackage/module_name.py
   ```

   - For a module, write the test file from the template in `11-test-writing.md`, with a placeholder test.
   - For a new subpackage folder, also create its `all.py`.
4. **Export.**
   - If the names are public, add one line per name to the nearest `api.py`. If the user wants it, also expose a new subpackage's `api` from the parent `api.py`.
   - In the matching `test_..._api.py`, touch each new name (`_ = api.ClassName`).
5. **Verify.**
   - The layout check without `--source` reports 0 problems.
   - `.venv/bin/python <test_path>` runs the new test file.
   - `mise run format`, then `mise run lint`, reports nothing.

## Output

List the files you created, the `api.py` lines you added, and the layout-check result.

Next step: `pywf-oss-write-test`, once the logic is written.

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 development →

Comments

Loading comments…

Newsletter

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