用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/drmoisan/drm-copilot --skill python-suppressions命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
Admit one new item into a running parallel run — preparation via a preparation-mode child orchestrator run, conflict-edge computation against all items including in-flight ones, and the admission decision that either places the item in the current cohort or defers it and recolors the unstarted subgraph. Appends exactly one mutations[] entry. In-flight items are never moved.
Execute a prepared parallel run for the parallel-orchestrator agent — cohort scheduling under a max_concurrency cap, per-item fan-out onto isolated worktrees branched from origin/main, per-item merge to main after durably confirming CI green, worktree cleanup, and the generated parallel-status.md projection. There is no integration branch and no final integration pull request.
Prepare a set of thematically unrelated items for concurrent execution before any execution begins - item intake over issue numbers and potential-entry paths, concurrent preparation-mode child orchestrator delegations, blast-radius computation and V1-V3 validation, cohort seeding with a recomputation-parity check, run-manifest and planner-checkpoint authoring, and the parallel-orchestrator kickoff artifact.
基于 SOC 职业分类
正在显示 SKILL.md
| name | python-suppressions |
| paths | ["**/*.py"] |
| description | Python suppression policy for linting and type-checking exceptions. |
This rule file summarizes the suppression authorization policy for Python code.
All # noqa and # type: ignore suppressions must either:
Escalation path before requesting approval:
# noqa PatternsWhen authorized: Subprocess calls where the executable is validated via shutil.which() before use.
Required comment format: # noqa: S603 - static analysis can't verify runtime validation
Rationale: Cross-platform compatibility requires runtime PATH resolution. Static analysis cannot trace the runtime validation, but the code is safe because the executable path is resolved from PATH (not user input), existence is verified before use, and hardcoding platform-specific paths would break portability.
When authorized: Test mock/stub implementations that must match interface signatures but do not use all parameters. Must be in test code (tests/ directory) implementing a known interface.
Required comment format: # noqa: ARG002 - mock API signature or # noqa: ARG002 - match [InterfaceName] API
When authorized: Typer CLI option declarations where Option() must be evaluated at import time for CLI metadata. Must be a Typer option declaration in a CLI function signature.
Required comment format: # noqa: B008 - Typer framework pattern
When authorized: Modules used for both runtime and type hints (pytest fixtures, Typer type hints, runtime isinstance checks). The module must be used at runtime and cannot be moved to a TYPE_CHECKING block without breaking functionality.
Required comment format: # noqa: TCH002 - [module] required at runtime for [reason] or # noqa: TCH003 - [module] required at runtime for [reason]
When authorized: Accessing documented, trusted HTTPS API endpoints with timeout. URL must be a validated HTTPS endpoint, domain must be a documented trusted source, timeout must be set, and the URL must not come from user input.
Required comment format: # noqa: S310 - trusted HTTPS endpoint: [domain]
When authorized: Parsing user's own local files (EPUB, configuration) or known-safe data sources (Wikipedia dumps, curated datasets). Must NOT be parsing untrusted network data.
Required comment format: # noqa: S314 - parsing trusted [source type]
When authorized: Top-level CLI exception handlers for user-friendly error messages and clean exits. Must be at a CLI entry point, must log or display the error with context, and must exit cleanly. NOT allowed in library or internal code.
Required comment format: # noqa: BLE001 - CLI top-level error handling
When authorized: Loading known model artifacts from hardcoded trusted local paths. Path must be hardcoded or validated (not from user input or CLI args). Only for ML model/artifact loading.
Required comment format: # noqa: S301 - trusted model artifact from hardcoded path
When authorized: Test fixtures with example paths and test data literals. Must be in test code only. Not actual secrets or production paths.
Required comment format: # noqa: S108 - test fixture path or # noqa: S105 - test fixture data
# type: ignore PatternsWhen authorized: Optional third-party dependencies that lack type stubs or py.typed marker. Import must be in a try/except ImportError block; library must be optional; no type stubs available; library lacks py.typed marker.
Required comment format: # type: ignore[import-untyped] with a comment on the same or adjacent line explaining the library and why stubs are absent.
try-except-pass fallback chainsNot authorized. Use explicit platform detection via shutil.which() or environment variable checks instead. try-except-pass chains hide lazy design and make behavior unpredictable.
Workaround: Resolve the correct method at design time using shutil.which() for executables or explicit platform detection. Cache the result to avoid repeated detection overhead.
Not authorized. Use absolute imports (from project.module import Thing) instead of parent-relative imports (from ..module import).
Not authorized. Resolve executables via shutil.which() first; use the full path returned by which(). This satisfies both S607 and the pre-authorized S603 pattern.
Not authorized. Fix the root cause: rewrite docstrings in imperative mood (D401), remove unused imports (F401), and use timezone-aware datetime (UP017).
Before using any suppression, verify: