Open an issue for a reproducible bug or a proposed change. For a security issue, use the private reporting route in SECURITY.md, not a public issue. Keep changes focused and include a test that fails before the fix.
Use Python 3.12 or newer. From the repository root:
python scripts/manage.py setup --dev --browsers
python scripts/manage.py validate --browsers --securityOn Windows, py -3 can replace python; on Linux or macOS, use python3 where
needed. Scripts use the checkout's .venv; there is no activation requirement.
The test suite uses temporary databases. Never point tests at your working library.
Browser installation and dependency auditing require network access.
Keep business rules in services, not templates or transport handlers. HTTP and MCP mutations must use the same validation and transaction boundaries. Bind SQL values as parameters; interpolated identifiers must come from closed internal allowlists. Do not add shell execution, model inference or credentials to prompts.
Use explicit type annotations. Record is the intentional SQLite/JSON/template
boundary; do not spread untyped values into unrelated application logic. Comments
should explain an invariant or trade-off rather than restate the code.
Inside the virtual environment:
python -m ruff check .
python -m ruff format .
python -m mypy src/promptlibrary
python -m pytest -q --ignore=tests/e2e --ignore=tests/integration
python -m pytest -q tests/integration/test_mcp_stdio.py
python -m pytest -q tests/e2e --browser chromiumAdd migration tests for schema changes, round-trip tests for portable entities, and browser regression tests for navigation or editing changes. Do not replace assertions with skips to make a build green. Keep failed checks visible.
Describe the problem, the change, compatibility implications and the checks you actually ran. Include screenshots for visual changes, but no personal library content or credentials. Update the user guide when behaviour changes.
The standalone executables are built by PyInstaller from packaging/promptlibrary.spec. If you add a module that is imported dynamically or a data file the code reads at run time, update the spec and the lists in src/promptlibrary/selfcheck.py, then run python scripts/build_binary.py and python scripts/binary_smoke.py "dist-binary/promptlibrary-*". Code that starts another PromptLibrary process must use promptlibrary.runtime.child_command, because a frozen executable has no python -m.
The README and MCP usage show screenshots from
assets/screenshots/. When a change visibly alters one of those screens, replace the
image in the same pull request. Capture it from a temporary data directory with sample
content only, and check that no local usernames, file paths, tokens or personal
prompts appear in the image. State any
use of generated code that materially affected the change and review it yourself.
The licence is GPL-3.0-or-later. Submit only work you have permission to contribute; preserve third-party attribution. Participation is covered by the code of conduct.