协作头脑风暴
brainstorming
在实现前澄清需求、探索设计选择,并形成清晰的开发方向。
repo-development【开发与工程】Work safely in a PennyLane source checkout: focused tests, linting, module boundaries, changelog, new operators/devices/plugins, and AI/GitHub policy.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Use this sub-skill when the user asks to edit, test, review, document, or maintain a PennyLane checkout. It is not needed for simple installed-package usage.
../../references/development-conventions.md: distilled repo policy for environments, AI/GitHub safety, tests, linting, formatting, changelog, new files, and import conventions.references/workflows.md: common source-change workflows for operators, devices/plugins, tests, docs, and changelog updates.references/troubleshooting.md: pytest markers, lint/tach failures, architecture boundaries, optional frameworks, and policy blockers.scripts/dev_command_plan.py: prints relevant commands for changed source/test files without running them.good-first-issue tasks with an AI agent.pragma: no cover without human approval..venv with shell ls -ld .venv ../.venv before claiming no venv.black, then isort, then repo-wide tach check when imports/modules changed.python -m pytest tests/path/test_file.py
pylint -rn -sn --persistent=n --rcfile=.pylintrc pennylane/path/file.py
pylint -rn -sn --persistent=n --rcfile=tests/.pylintrc tests/path/test_file.py
black --config ./pyproject.toml pennylane/path/file.py tests/path/test_file.py
isort --settings-path ./pyproject.toml pennylane/path/file.py tests/path/test_file.py
tach check
tests/ops/ or tests/templates/ area, and validate with assert_valid(op) for new operators.pl-device-test for plugin/device validation and device-specific focused tests.import pennylane as qp; run Sybil/docstring tests by pointing pytest at the source/doc file when applicable.A safe development answer should name the changed files, focused tests, lint/format/tach commands, optional dependencies or skipped backends, changelog decision, and unresolved policy approvals. Never claim a repo task is complete if relevant tests are failing.