type-checking-pattern
Fix F821 undefined name errors for optional dependencies using TYPE_CHECKING
Fix F821 undefined name errors for optional dependencies using TYPE_CHECKING
Use when creating Python projects, managing dependencies, or running Python scripts. Covers uv package manager commands, best practices, and common patterns for modern Python development.
Setup a new python project in this directory.
Bump lockstep versions for Dart and Flutter workspace packages based on the Unreleased section of the root CHANGELOG.md.
UV-specific patterns for single-file Python scripts using inline metadata (PEP 723). Use when creating Python hooks, standalone utilities, or executable scripts in UV-managed projects.
Python development with uv, pytest, ruff, and type hints. Use when writing Python code, running tests, managing Python packages, or working with virtual environments. Covers import organization, type hints, pytest patterns, and environment variables.
buildNpmPackage を使った Nix パッケージの作成手順。「npm パッケージを追加」「buildNpmPackage でパッケージ作成」と依頼された際に使用
Prepare a new version release with changelog and version bumps
Generates package.json with all necessary dependencies, dev dependencies, and scripts. Fetches latest package versions from npm registry.
Apply when setting up the development environment, running dev server, building, testing, or deploying the extension. Covers npm commands, CORS configuration, debugging, and deployment to ChurchTools.
Local development + build/devops workflow for Skriptoteket (FastAPI + Vue/Vite) using PDM. Use when setting up or troubleshooting local dev (`pdm install`, `.env`, `pdm run dev`, frontend proxy/logs, correlation/logging), or when changing dependency groups/extras and Dockerfile install commands to avoid PDM group/--prod pitfalls.
Initialize Django projects for HTTPS development with virtual environments and mkcert SSL certificates
Install agent docs without overwriting or deleting existing content.
Use when maintaining a fork of a Python package without GitHub access, importing upstream releases from PyPI tarballs, or merging upstream updates into a fork using vendor branch strategy
manage versioning, tags, changelogs, and release assets
Generate pnpm workspace configuration files for monorepo package management. Triggers on "create pnpm workspace", "generate pnpm-workspace.yaml", "pnpm monorepo setup", "workspace config".
Patch a Node.js project's package.json for standard build automation. Use when asked to add/standardize package.json scripts like prebuild/postbuild for TypeScript builds (rimraf dist + tsc-alias), adjust prebuild for Next.js (rimraf dist .next), or ensure an existing package.json pkg config includes required scripts/assets/targets/outputPath.
Detects the Python major and minor version of the current repository
Maintain and update CHANGELOG.md following Keep a Changelog format. Use when: updating changelog, version documentation, release notes, semver versioning, categorizing changes (Added/Changed/Fixed/Security).
Check and validate the AutoChip development environment dependencies including chip simulators (Verilator/VCS/SimVision) and Python packages (torchbit, cocotb, jsonschema) in conda environments
Manage framework usage, dependencies, build configuration, and environment setup. Use when adding new dependencies, updating packages, configuring build tools, or setting up development environment.